@easyling/sanity-connector 0.0.2-rc.1 → 0.0.2-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +28 -0
- package/dist-types/actions/bulkTranslate.d.ts +6 -0
- package/dist-types/actions/manageDNTFields.d.ts +11 -0
- package/dist-types/actions/translateDocument.d.ts +6 -0
- package/dist-types/components/RadioWithDefault.d.ts +16 -0
- package/dist-types/components/auth/AuthNavbar.d.ts +17 -0
- package/dist-types/components/auth/AuthStatus.d.ts +26 -0
- package/dist-types/components/auth/AuthStatusWrapper.d.ts +14 -0
- package/dist-types/components/auth/MigrationPrompt.d.ts +19 -0
- package/dist-types/components/auth/MigrationPromptWrapper.d.ts +13 -0
- package/dist-types/components/auth/OAuthCallback.d.ts +19 -0
- package/dist-types/components/auth/index.d.ts +14 -0
- package/dist-types/components/config/LocaleConfigTool.d.ts +16 -0
- package/dist-types/components/config/LocaleConfigToolWrapper.d.ts +12 -0
- package/dist-types/components/config/OAuthConfig.d.ts +25 -0
- package/dist-types/components/config/OAuthConfigWrapper.d.ts +12 -0
- package/dist-types/components/config/PasswordInput.d.ts +13 -0
- package/dist-types/components/config/index.d.ts +8 -0
- package/dist-types/components/config/localeConfigToolDefinition.d.ts +12 -0
- package/dist-types/components/config/oauthConfigToolDefinition.d.ts +12 -0
- package/dist-types/components/dialogs/ConfirmationDialog.d.ts +20 -0
- package/dist-types/components/dialogs/ErrorDialog.d.ts +20 -0
- package/dist-types/components/dialogs/LocaleSelectionDialog.d.ts +40 -0
- package/dist-types/components/dialogs/SuccessDialog.d.ts +18 -0
- package/dist-types/components/dialogs/index.d.ts +11 -0
- package/dist-types/components/dnt/DNTFieldBadge.d.ts +15 -0
- package/dist-types/components/dnt/DNTFieldComponent.d.ts +16 -0
- package/dist-types/components/dnt/DNTFieldInput.d.ts +13 -0
- package/dist-types/components/dnt/index.d.ts +6 -0
- package/dist-types/config/index.d.ts +5 -0
- package/dist-types/config/pluginConfig.d.ts +162 -0
- package/dist-types/index.d.ts +11 -0
- package/dist-types/plugin.d.ts +2 -0
- package/dist-types/services/authStateManager.d.ts +93 -0
- package/dist-types/services/contentExtractor.d.ts +94 -0
- package/dist-types/services/dialogService.d.ts +95 -0
- package/dist-types/services/dntServiceManager.d.ts +43 -0
- package/dist-types/services/dntStorageAdapter.d.ts +72 -0
- package/dist-types/services/documentCreationService.d.ts +138 -0
- package/dist-types/services/localeService.d.ts +159 -0
- package/dist-types/services/localeStorageAdapter.d.ts +41 -0
- package/dist-types/services/oauthConfigStorage.d.ts +45 -0
- package/dist-types/services/oauthService.d.ts +47 -0
- package/dist-types/services/oauthServiceManager.d.ts +188 -0
- package/dist-types/services/tokenStorage.d.ts +53 -0
- package/dist-types/services/translationService.d.ts +373 -0
- package/dist-types/services/unifiedConfigStorage.d.ts +123 -0
- package/dist-types/test-utils.d.ts +8 -0
- package/dist-types/types/dialog.d.ts +106 -0
- package/dist-types/types/dnt.d.ts +83 -0
- package/dist-types/types/index.d.ts +11 -0
- package/dist-types/types/locale.d.ts +115 -0
- package/dist-types/types/oauth.d.ts +89 -0
- package/dist-types/types/pluginConfig.d.ts +44 -0
- package/dist-types/types/translation.d.ts +121 -0
- package/dist-types/utils/htmlFormatter.d.ts +65 -0
- package/dist-types/utils/index.d.ts +14 -0
- package/dist-types/utils/logger.d.ts +104 -0
- package/dist-types/utils/oauthErrorFeedback.d.ts +75 -0
- package/dist-types/utils/oauthLogger.d.ts +175 -0
- package/dist-types/utils/validator.d.ts +66 -0
- package/package.json +13 -8
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
import*as __WEBPACK_EXTERNAL_MODULE_react__ from"react";import{definePlugin as __WEBPACK_EXTERNAL_MODULE_sanity_definePlugin__,set as __WEBPACK_EXTERNAL_MODULE_sanity_set__,unset as __WEBPACK_EXTERNAL_MODULE_sanity_unset__,useClient as __WEBPACK_EXTERNAL_MODULE_sanity_useClient__,useFormValue as __WEBPACK_EXTERNAL_MODULE_sanity_useFormValue__}from"sanity";import{createPortal as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_createPortal__,flushSync as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_flushSync__}from"react-dom";var __webpack_modules__={80:e=>{e.exports=function(e,n){for(var r,o,i,a=e||"",s=n||"div",l={},c=0;c<a.length;)t.lastIndex=c,i=t.exec(a),(r=a.slice(c,i?i.index:a.length))&&(o?"#"===o?l.id=r:l.className?l.className.push(r):l.className=[r]:s=r,c+=r.length),i&&(o=i[0],c++);return{type:"element",tagName:s,properties:l,children:[]}};var t=/[#.]/g},449:(e,t,n)=>{var r=n(1649),o=n(7054),i=n(8998),a=n(8973),s=r.createElement;function l(e){var t="language-".concat(e.language),n={className:t},r={className:[e.className||"refractor",t].filter(Boolean).join(" ")};e.inline&&(n.style={display:"inline"},n.className=e.className||"refractor");var l=o.highlight(e.value,e.language);e.markers&&e.markers.length>0&&(l=a(l,{markers:e.markers}));var c=0===l.length?e.value:l.map(i.depth(0)),u=s("code",n,c);return e.inline?u:s("pre",r,u)}l.registerLanguage=function(e){return o.register(e)},l.hasLanguage=function(e){return o.registered(e)},e.exports=l},562:(e,t,n)=>{var r=n(1684),o=n(6451),i=n(7134),a=n(6337),s=n(2250),l=n(8450);e.exports=r([i,o,a,s,l])},702:(e,t,n)=>{e.exports=n(3605)},818:(e,t,n)=>{e.exports=i;var r=n(3449);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(3610);function i(){r.call(this)}function a(e,t,n){e.length<40?o.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},i.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},i._configure()},1020:(e,t,n)=>{var r=n(1649),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1257:e=>{e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},1447:(e,t)=>{var n=t;n.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},n.read=function(e,t,n){if(n-t<1)return"";for(var r,o=null,i=[],a=0;t<n;)(r=e[t++])<128?i[a++]=r:r>191&&r<224?i[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},n.write=function(e,t,n){for(var r,o,i=n,a=0;a<e.length;++a)(r=e.charCodeAt(a))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}},1454:(e,t,n)=>{var r=n(4812),o=n(6585),i=n(6374);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},f={};for(t in c)n=new i(t,u(l,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new o(d,f,a)}},1492:(e,t)=>{t.q=function(e){var t=String(e||n).trim();return t===n?[]:t.split(r)};var n="",r=/[ \t\n\r\f]+/g},1649:e=>{e.exports=__WEBPACK_EXTERNAL_MODULE_react__},1684:(e,t,n)=>{var r=n(7510),o=n(6585);e.exports=function(e){for(var t,n,i=e.length,a=[],s=[],l=-1;++l<i;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,s),n)}},1711:e=>{e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},1983:e=>{var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,o){r[o]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=o.util.type(l);"Object"!==c||i[a(l)]?"Array"!==c||i[a(l)]||(i[a(l)]=!0,e(l,n,s,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,i);var l={element:t,language:i,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),r&&r.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(r&&r.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return c(o,o.head,e),s(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function s(e,t,n,r,l,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var h=n[f];h=Array.isArray(h)?h:[h];for(var p=0;p<h.length;++p){if(d&&d.cause==f+","+p)return;var m=h[p],g=m.inside,_=!!m.lookbehind,x=!!m.greedy,y=m.alias;if(x&&!m.pattern.global){var b=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,b+"g")}for(var v=m.pattern||m,w=r.next,j=l;w!==t.tail&&!(d&&j>=d.reach);j+=w.value.length,w=w.next){var C=w.value;if(t.length>e.length)return;if(!(C instanceof i)){var k,S=1;if(x){if(!(k=a(v,j,e,_))||k.index>=e.length)break;var L=k.index,T=k.index+k[0].length,E=j;for(E+=w.value.length;L>=E;)E+=(w=w.next).value.length;if(j=E-=w.value.length,w.value instanceof i)continue;for(var R=w;R!==t.tail&&(E<T||"string"==typeof R.value);R=R.next)S++,E+=R.value.length;S--,C=e.slice(j,E),k.index-=j}else if(!(k=a(v,0,C,_)))continue;L=k.index;var M=k[0],A=C.slice(0,L),$=C.slice(L+M.length),I=j+C.length;d&&I>d.reach&&(d.reach=I);var D=w.prev;if(A&&(D=c(t,D,A),j+=A.length),u(t,D,S),w=c(t,D,new i(f,g?o.tokenize(M,g):M,y,M)),$&&c(t,w,$),S>1){var O={cause:f+","+p,reach:I};s(e,t,n,w.prev,j,O),d&&O.reach>d.reach&&(d.reach=O.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()},!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),"undefined"!=typeof globalThis&&(globalThis.Prism=t)},2143:e=>{function t(){return!0}e.exports=function e(n){if(null==n)return t;if("string"==typeof n)return function(e){return function(t){return Boolean(t&&t.type===e)}}(n);if("object"==typeof n)return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(n);if("function"==typeof n)return n;throw new Error("Expected function, string, or object as test")}},2239:(e,t,n)=>{e.exports=o;var r=n(3610);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(r.isString(e)){if(!r.Long)return o.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;o.fromHash=function(e){return e===a?i:new o((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},2250:(e,t,n)=>{var r=n(4845),o=n(1454),i=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},2719:e=>{e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2799:(e,t)=>{var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=p,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===p},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isSuspenseList=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===f||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=_},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},2899:e=>{e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},3158:(e,t,n)=>{e.exports=i;var r=n(6237);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(3610);function i(e){r.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},3248:e=>{function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},3424:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TranslatedDocument_FieldsEntry=t.TranslatedDocument=t.TranslationResponse=t.protobufPackage=void 0;const o=r(n(6946)),i=n(7230);function a(e){return null!=e}t.protobufPackage="hu.skawa.pagetranslate.server.model.protobuffers",t.TranslationResponse={encode(e,n=o.default.Writer.create()){!1!==e.success&&n.uint32(8).bool(e.success);for(const r of e.translatedDocuments)t.TranslatedDocument.encode(r,n.uint32(18).fork()).ldelim();return""!==e.sourceLocale&&n.uint32(26).string(e.sourceLocale),""!==e.error&&n.uint32(34).string(e.error),""!==e.requestId&&n.uint32(42).string(e.requestId),n},decode(e,n){const r=e instanceof o.default.Reader?e:o.default.Reader.create(e);let i=void 0===n?r.len:r.pos+n;const a={success:!1,translatedDocuments:[],sourceLocale:"",error:"",requestId:""};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:if(8!==e)break;a.success=r.bool();continue;case 2:if(18!==e)break;a.translatedDocuments.push(t.TranslatedDocument.decode(r,r.uint32()));continue;case 3:if(26!==e)break;a.sourceLocale=r.string();continue;case 4:if(34!==e)break;a.error=r.string();continue;case 5:if(42!==e)break;a.requestId=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return a},fromJSON:e=>({success:!!a(e.success)&&globalThis.Boolean(e.success),translatedDocuments:globalThis.Array.isArray(e?.translatedDocuments)?e.translatedDocuments.map(e=>t.TranslatedDocument.fromJSON(e)):[],sourceLocale:a(e.sourceLocale)?globalThis.String(e.sourceLocale):"",error:a(e.error)?globalThis.String(e.error):"",requestId:a(e.requestId)?globalThis.String(e.requestId):""}),toJSON(e){const n={};return!1!==e.success&&(n.success=e.success),e.translatedDocuments?.length&&(n.translatedDocuments=e.translatedDocuments.map(e=>t.TranslatedDocument.toJSON(e))),""!==e.sourceLocale&&(n.sourceLocale=e.sourceLocale),""!==e.error&&(n.error=e.error),""!==e.requestId&&(n.requestId=e.requestId),n},create:e=>t.TranslationResponse.fromPartial(e??{}),fromPartial(e){const n={success:!1,translatedDocuments:[],sourceLocale:"",error:"",requestId:""};return n.success=e.success??!1,n.translatedDocuments=e.translatedDocuments?.map(e=>t.TranslatedDocument.fromPartial(e))||[],n.sourceLocale=e.sourceLocale??"",n.error=e.error??"",n.requestId=e.requestId??"",n}},t.TranslatedDocument={encode:(e,n=o.default.Writer.create())=>(""!==e.body&&n.uint32(10).string(e.body),""!==e.title&&n.uint32(18).string(e.title),""!==e.slug&&n.uint32(26).string(e.slug),Object.entries(e.fields).forEach(([e,r])=>{t.TranslatedDocument_FieldsEntry.encode({key:e,value:r},n.uint32(34).fork()).ldelim()}),""!==e.locale&&n.uint32(42).string(e.locale),n),decode(e,n){const r=e instanceof o.default.Reader?e:o.default.Reader.create(e);let i=void 0===n?r.len:r.pos+n;const a={body:"",title:"",slug:"",fields:{},locale:""};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;a.body=r.string();continue;case 2:if(18!==e)break;a.title=r.string();continue;case 3:if(26!==e)break;a.slug=r.string();continue;case 4:if(34!==e)break;const n=t.TranslatedDocument_FieldsEntry.decode(r,r.uint32());void 0!==n.value&&(a.fields[n.key]=n.value);continue;case 5:if(42!==e)break;a.locale=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return a},fromJSON(e){return{body:a(e.body)?globalThis.String(e.body):"",title:a(e.title)?globalThis.String(e.title):"",slug:a(e.slug)?globalThis.String(e.slug):"",fields:(t=e.fields,"object"==typeof t&&null!==t?Object.entries(e.fields).reduce((e,[t,n])=>(e[t]=i.TranslatableField.fromJSON(n),e),{}):{}),locale:a(e.locale)?globalThis.String(e.locale):""};var t},toJSON(e){const t={};if(""!==e.body&&(t.body=e.body),""!==e.title&&(t.title=e.title),""!==e.slug&&(t.slug=e.slug),e.fields){const n=Object.entries(e.fields);n.length>0&&(t.fields={},n.forEach(([e,n])=>{t.fields[e]=i.TranslatableField.toJSON(n)}))}return""!==e.locale&&(t.locale=e.locale),t},create:e=>t.TranslatedDocument.fromPartial(e??{}),fromPartial(e){const t={body:"",title:"",slug:"",fields:{},locale:""};return t.body=e.body??"",t.title=e.title??"",t.slug=e.slug??"",t.fields=Object.entries(e.fields??{}).reduce((e,[t,n])=>(void 0!==n&&(e[t]=i.TranslatableField.fromPartial(n)),e),{}),t.locale=e.locale??"",t}},t.TranslatedDocument_FieldsEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&i.TranslatableField.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:o.default.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const a={key:"",value:void 0};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=n.string();continue;case 2:if(18!==e)break;a.value=i.TranslatableField.decode(n,n.uint32());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return a},fromJSON:e=>({key:a(e.key)?globalThis.String(e.key):"",value:a(e.value)?i.TranslatableField.fromJSON(e.value):void 0}),toJSON(e){const t={};return""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=i.TranslatableField.toJSON(e.value)),t},create:e=>t.TranslatedDocument_FieldsEntry.fromPartial(e??{}),fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?i.TranslatableField.fromPartial(e.value):void 0,t}}},3449:(e,t,n)=>{e.exports=d;var r,o=n(3610),i=o.LongBits,a=o.base64,s=o.utf8;function l(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(c,0,0),this.tail=this.head,this.states=null}var f=function(){return o.Buffer?function(){return(d.create=function(){return new r})()}:function(){return new d}};function h(e,t,n){t[n]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=f(),d.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(d.alloc=o.pool(d.alloc,o.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new l(e,t,n),this.len+=t,this},p.prototype=Object.create(l.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(h,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var _=o.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(_,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(h,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new l(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=f(),r._configure()}},3605:(e,t,n)=>{var r=n(562),o=n(5704)(r,"div");o.displayName="html",e.exports=o},3610:function(e,t,n){var r=t;function o(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;++o)void 0!==e[r[o]]&&n||(e[r[o]]=t[r[o]]);return e}function i(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&o(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}r.asPromise=n(8045),r.base64=n(8839),r.EventEmitter=n(4358),r.float=n(9410),r.inquire=n(4153),r.utf8=n(1447),r.pool=n(9390),r.LongBits=n(2239),r.isNode=Boolean("undefined"!=typeof globalThis&&globalThis&&globalThis.process&&globalThis.process.versions&&globalThis.process.versions.node),r.global=r.isNode&&globalThis||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var e=r.Buffer;e?(r._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},r._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):r._Buffer_from=r._Buffer_allocUnsafe=null}},4153:module=>{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},4358:e=>{function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}},4363:(e,t,n)=>{e.exports=n(2799)},4394:(e,t,n)=>{var r=t;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(3449),r.BufferWriter=n(818),r.Reader=n(6237),r.BufferReader=n(3158),r.util=n(3610),r.rpc=n(5047),r.roots=n(4529),r.configure=o,o()},4529:e=>{e.exports={}},4637:e=>{function t(){this.map=new WeakMap}function n(){this.keys=[],this.values=[]}e.exports="function"==typeof WeakMap?t:n,t.prototype.has=function(e){return this.map.has(e)},t.prototype.set=function(e,t){return this.map.set(e,t),this},t.prototype.get=function(e){return this.map.get(e)},t.prototype.clear=function(){},n.prototype.has=function(e){return-1!==this.keys.indexOf(e)},n.prototype.set=function(e,t){var n=this.keys.indexOf(e);return-1===n?(this.keys.push(e),this.values.push(t)):this.values[n]=t,this},n.prototype.get=function(e){var t=this.keys.indexOf(e);return-1===t?void 0:this.values[t]},n.prototype.clear=function(){this.keys=[],this.values=[]}},4758:e=>{e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},4812:e=>{e.exports=function(e){return e.toLowerCase()}},4845:(e,t)=>{var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},4848:(e,t,n)=>{e.exports=n(1020)},4934:(e,t,n)=>{var r=n(8534),o=n(2899);e.exports=function(e){return r(e)||o(e)}},5047:(e,t,n)=>{t.Service=n(7595)},5215:(e,t)=>{t.q=function(e){for(var t,o=[],i=String(e||r),a=i.indexOf(n),s=0,l=!1;!l;)-1===a&&(a=i.length,l=!0),!(t=i.slice(s,a).trim())&&l||o.push(t),s=a+1,a=i.indexOf(n,s);return o};var n=",",r=""},5704:(e,t,n)=>{var r=n(8796),o=n(4812),i=n(80),a=n(1492).q,s=n(5215).q;e.exports=function(e,t,n){var o=n?function(e){for(var t,n=e.length,r=-1,o={};++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(n):null;return function(e,n){var r,a=i(e,t),s=Array.prototype.slice.call(arguments,2),u=a.tagName.toLowerCase();if(a.tagName=o&&l.call(o,u)?o[u]:u,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;return!("input"===e||!n||"string"!=typeof n)&&("object"==typeof t.children&&"length"in t.children||(n=n.toLowerCase(),"button"===e?"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n:"value"in t))}(t.tagName,e)}(n,a)&&(s.unshift(n),n=null),n)for(r in n)d(a.properties,r,n[r]);return c(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a};function d(t,n,o){var i,l,c;null!=o&&o==o&&(l=(i=r(e,n)).property,"string"==typeof(c=o)&&(i.spaceSeparated?c=a(c):i.commaSeparated?c=s(c):i.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===l&&"string"!=typeof o&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===l&&t.className&&(c=t.className.concat(c)),t[l]=function(e,t,n){var r,o,i;if("object"!=typeof n||!("length"in n))return u(e,t,n);for(o=n.length,r=-1,i=[];++r<o;)i[r]=u(e,t,n[r]);return i}(i,l,c))}};var l={}.hasOwnProperty;function c(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&o(n)!==o(t)||(r=!0)),r}},6237:(e,t,n)=>{e.exports=l;var r,o=n(3610),i=o.LongBits,a=o.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return o.Buffer?function(e){return(l.create=function(e){return o.Buffer.isBuffer(e)?new r(e):u(e)})(e)}:u};function f(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,l.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return h(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|h(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,n);if(t===n){var r=o.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,n)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){r=e,l.create=d(),r._configure();var t=o.Long?"toLong":"toNumber";o.merge(l.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},6311:(e,t,n)=>{e.exports=l;var r=n(2143),o=n(7192),i=!0,a="skip",s=!1;function l(e,t,n,l){var c,u;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),u=r(t),c=l?-1:1,function e(r,d,f){var h,p="object"==typeof r&&null!==r?r:{};return"string"==typeof p.type&&(h="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0,m.displayName="node ("+o(p.type+(h?"<"+h+">":""))+")"),m;function m(){var o,h,p=f.concat(r),m=[];if((!t||u(r,d,f[f.length-1]||null))&&(m=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[i,e]:[e]}(n(r,f)),m[0]===s))return m;if(r.children&&m[0]!==a)for(h=(l?r.children.length:-1)+c;h>-1&&h<r.children.length;){if((o=e(r.children[h],h,p)())[0]===s)return o;h="number"==typeof o[1]?o[1]:h+c}return m}}(e,null,[])()}l.CONTINUE=i,l.SKIP=a,l.EXIT=s},6337:(e,t,n)=>{var r=n(1454),o=n(8271);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},6374:(e,t,n)=>{var r=n(4758),o=n(4845);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function s(e,t,n,s){var c,u=-1;for(l(this,"space",s),r.call(this,e,t);++u<a;)l(this,c=i[u],(n&o[c])===o[c])}function l(e,t,n){n&&(e[t]=n)}},6451:(e,t,n)=>{var r=n(1454);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},6510:(e,t,n)=>{var r=n(7839);e.exports=function(e){return!!o.call(r,e)&&r[e]};var o={}.hasOwnProperty},6585:e=>{e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},6946:(e,t,n)=>{e.exports=n(4394)},6950:(e,t,n)=>{var r=n(2143);e.exports=function(e,t,n){var i=r(n||t),a=null==t.cascade||t.cascade;return function e(t,n,r){var s,l,c,u,d;if(!i(t,n,r))return null;if(t.children){for(s=[],l=-1;++l<t.children.length;)(c=e(t.children[l],l,t))&&s.push(c);if(a&&t.children.length&&!s.length)return null}for(d in u={},t)o.call(t,d)&&(u[d]="children"===d?s:t[d]);return u}(e,null,null)};var o={}.hasOwnProperty},7054:(e,t,n)=>{var r,o,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof globalThis?globalThis:{},a=(o=(r="Prism"in i)?i.Prism:void 0,function(){r?i.Prism=o:delete i.Prism,r=void 0,o=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=n(702),l=n(9632),c=n(1983),u=n(9264),d=n(9137),f=n(3248),h=n(9283);a();var p={}.hasOwnProperty;function m(){}m.prototype=c;var g=new m;function _(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===g.languages[e.displayName]&&e(g)}e.exports=g,g.highlight=function(e,t){var n,r=c.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===g.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!p.call(g.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=g.languages[t]}return r.call(this,e,n,t)},g.register=_,g.alias=function(e,t){var n,r,o,i,a=g.languages,s=e;for(n in t&&((s={})[e]=t),s)for(o=(r="string"==typeof(r=s[n])?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},g.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return p.call(g.languages,e)},g.listLanguages=function(){var e,t=g.languages,n=[];for(e in t)p.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},_(u),_(d),_(f),_(h),g.util.encode=function(e){return e},g.Token.stringify=function(e,t,n){var r;return"string"==typeof e?{type:"text",value:e}:"Array"===g.util.type(e)?function(e,t){for(var n,r=[],o=e.length,i=-1;++i<o;)""!==(n=e[i])&&null!=n&&r.push(n);for(i=-1,o=r.length;++i<o;)n=r[i],r[i]=g.Token.stringify(n,t,r);return r}(e,t):(r={type:e.type,content:g.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),g.hooks.run("wrap",r),s(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=l(e[t]);return e}(r.attributes),r.content))}},7134:(e,t,n)=>{var r=n(1454);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},7192:e=>{e.exports=function(e){return"[33m"+e+"[39m"}},7230:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.TranslatableField=t.Content_FieldsEntry=t.Content=t.TranslationRequestPayload=t.protobufPackage=void 0;const o=r(n(6946));function i(e){return null!=e}t.protobufPackage="hu.skawa.pagetranslate.server.model.protobuffers",t.TranslationRequestPayload={encode:(e,n=o.default.Writer.create())=>(void 0!==e.content&&t.Content.encode(e.content,n.uint32(10).fork()).ldelim(),""!==e.project&&n.uint32(34).string(e.project),""!==e.format&&n.uint32(18).string(e.format),void 0!==e.metadata&&t.Metadata.encode(e.metadata,n.uint32(26).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:o.default.Reader.create(e);let i=void 0===n?r.len:r.pos+n;const a={content:void 0,project:"",format:"",metadata:void 0};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;a.content=t.Content.decode(r,r.uint32());continue;case 4:if(34!==e)break;a.project=r.string();continue;case 2:if(18!==e)break;a.format=r.string();continue;case 3:if(26!==e)break;a.metadata=t.Metadata.decode(r,r.uint32());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return a},fromJSON:e=>({content:i(e.content)?t.Content.fromJSON(e.content):void 0,project:i(e.project)?globalThis.String(e.project):"",format:i(e.format)?globalThis.String(e.format):"",metadata:i(e.metadata)?t.Metadata.fromJSON(e.metadata):void 0}),toJSON(e){const n={};return void 0!==e.content&&(n.content=t.Content.toJSON(e.content)),""!==e.project&&(n.project=e.project),""!==e.format&&(n.format=e.format),void 0!==e.metadata&&(n.metadata=t.Metadata.toJSON(e.metadata)),n},create:e=>t.TranslationRequestPayload.fromPartial(e??{}),fromPartial(e){const n={content:void 0,project:"",format:"",metadata:void 0};return n.content=void 0!==e.content&&null!==e.content?t.Content.fromPartial(e.content):void 0,n.project=e.project??"",n.format=e.format??"",n.metadata=void 0!==e.metadata&&null!==e.metadata?t.Metadata.fromPartial(e.metadata):void 0,n}},t.Content={encode:(e,n=o.default.Writer.create())=>(""!==e.body&&n.uint32(10).string(e.body),""!==e.title&&n.uint32(18).string(e.title),""!==e.slug&&n.uint32(26).string(e.slug),Object.entries(e.fields).forEach(([e,r])=>{t.Content_FieldsEntry.encode({key:e,value:r},n.uint32(34).fork()).ldelim()}),n),decode(e,n){const r=e instanceof o.default.Reader?e:o.default.Reader.create(e);let i=void 0===n?r.len:r.pos+n;const a={body:"",title:"",slug:"",fields:{}};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;a.body=r.string();continue;case 2:if(18!==e)break;a.title=r.string();continue;case 3:if(26!==e)break;a.slug=r.string();continue;case 4:if(34!==e)break;const n=t.Content_FieldsEntry.decode(r,r.uint32());void 0!==n.value&&(a.fields[n.key]=n.value);continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return a},fromJSON(e){return{body:i(e.body)?globalThis.String(e.body):"",title:i(e.title)?globalThis.String(e.title):"",slug:i(e.slug)?globalThis.String(e.slug):"",fields:(n=e.fields,"object"==typeof n&&null!==n?Object.entries(e.fields).reduce((e,[n,r])=>(e[n]=t.TranslatableField.fromJSON(r),e),{}):{})};var n},toJSON(e){const n={};if(""!==e.body&&(n.body=e.body),""!==e.title&&(n.title=e.title),""!==e.slug&&(n.slug=e.slug),e.fields){const r=Object.entries(e.fields);r.length>0&&(n.fields={},r.forEach(([e,r])=>{n.fields[e]=t.TranslatableField.toJSON(r)}))}return n},create:e=>t.Content.fromPartial(e??{}),fromPartial(e){const n={body:"",title:"",slug:"",fields:{}};return n.body=e.body??"",n.title=e.title??"",n.slug=e.slug??"",n.fields=Object.entries(e.fields??{}).reduce((e,[n,r])=>(void 0!==r&&(e[n]=t.TranslatableField.fromPartial(r)),e),{}),n}},t.Content_FieldsEntry={encode:(e,n=o.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.TranslatableField.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:o.default.Reader.create(e);let i=void 0===n?r.len:r.pos+n;const a={key:"",value:void 0};for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;a.key=r.string();continue;case 2:if(18!==e)break;a.value=t.TranslatableField.decode(r,r.uint32());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return a},fromJSON:e=>({key:i(e.key)?globalThis.String(e.key):"",value:i(e.value)?t.TranslatableField.fromJSON(e.value):void 0}),toJSON(e){const n={};return""!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=t.TranslatableField.toJSON(e.value)),n},create:e=>t.Content_FieldsEntry.fromPartial(e??{}),fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.TranslatableField.fromPartial(e.value):void 0,n}},t.TranslatableField={encode:(e,t=o.default.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),!1!==e.dnt&&t.uint32(16).bool(e.dnt),""!==e.type&&t.uint32(26).string(e.type),t),decode(e,t){const n=e instanceof o.default.Reader?e:o.default.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={value:"",dnt:!1,type:""};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;i.value=n.string();continue;case 2:if(16!==e)break;i.dnt=n.bool();continue;case 3:if(26!==e)break;i.type=n.string();continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return i},fromJSON:e=>({value:i(e.value)?globalThis.String(e.value):"",dnt:!!i(e.dnt)&&globalThis.Boolean(e.dnt),type:i(e.type)?globalThis.String(e.type):""}),toJSON(e){const t={};return""!==e.value&&(t.value=e.value),!1!==e.dnt&&(t.dnt=e.dnt),""!==e.type&&(t.type=e.type),t},create:e=>t.TranslatableField.fromPartial(e??{}),fromPartial(e){const t={value:"",dnt:!1,type:""};return t.value=e.value??"",t.dnt=e.dnt??!1,t.type=e.type??"",t}},t.Metadata={encode(e,t=o.default.Writer.create()){""!==e.documentId&&t.uint32(10).string(e.documentId),""!==e.documentType&&t.uint32(18).string(e.documentType),""!==e.title&&t.uint32(26).string(e.title),""!==e.sourceLanguage&&t.uint32(34).string(e.sourceLanguage),""!==e.targetLanguage&&t.uint32(42).string(e.targetLanguage);for(const n of e.targetLocales)t.uint32(50).string(n);return t},decode(e,t){const n=e instanceof o.default.Reader?e:o.default.Reader.create(e);let r=void 0===t?n.len:n.pos+t;const i={documentId:"",documentType:"",title:"",sourceLanguage:"",targetLanguage:"",targetLocales:[]};for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:if(10!==e)break;i.documentId=n.string();continue;case 2:if(18!==e)break;i.documentType=n.string();continue;case 3:if(26!==e)break;i.title=n.string();continue;case 4:if(34!==e)break;i.sourceLanguage=n.string();continue;case 5:if(42!==e)break;i.targetLanguage=n.string();continue;case 6:if(50!==e)break;i.targetLocales.push(n.string());continue}if(4==(7&e)||0===e)break;n.skipType(7&e)}return i},fromJSON:e=>({documentId:i(e.documentId)?globalThis.String(e.documentId):"",documentType:i(e.documentType)?globalThis.String(e.documentType):"",title:i(e.title)?globalThis.String(e.title):"",sourceLanguage:i(e.sourceLanguage)?globalThis.String(e.sourceLanguage):"",targetLanguage:i(e.targetLanguage)?globalThis.String(e.targetLanguage):"",targetLocales:globalThis.Array.isArray(e?.targetLocales)?e.targetLocales.map(e=>globalThis.String(e)):[]}),toJSON(e){const t={};return""!==e.documentId&&(t.documentId=e.documentId),""!==e.documentType&&(t.documentType=e.documentType),""!==e.title&&(t.title=e.title),""!==e.sourceLanguage&&(t.sourceLanguage=e.sourceLanguage),""!==e.targetLanguage&&(t.targetLanguage=e.targetLanguage),e.targetLocales?.length&&(t.targetLocales=e.targetLocales),t},create:e=>t.Metadata.fromPartial(e??{}),fromPartial(e){const t={documentId:"",documentType:"",title:"",sourceLanguage:"",targetLanguage:"",targetLocales:[]};return t.documentId=e.documentId??"",t.documentType=e.documentType??"",t.title=e.title??"",t.sourceLanguage=e.sourceLanguage??"",t.targetLanguage=e.targetLanguage??"",t.targetLocales=e.targetLocales?.map(e=>e)||[],t}}},7510:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},7595:(e,t,n)=>{e.exports=o;var r=n(3610);function o(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,n,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(e,s,t,n,o,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof o))try{n=o[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)})}catch(e){return s.emit("error",e,t),void setTimeout(function(){a(e)},0)}else setTimeout(function(){a(Error("already ended"))},0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7839:e=>{e.exports=JSON.parse('{"AEli":"Æ","AElig":"Æ","AM":"&","AMP":"&","Aacut":"Á","Aacute":"Á","Abreve":"Ă","Acir":"Â","Acirc":"Â","Acy":"А","Afr":"𝔄","Agrav":"À","Agrave":"À","Alpha":"Α","Amacr":"Ā","And":"⩓","Aogon":"Ą","Aopf":"𝔸","ApplyFunction":"","Arin":"Å","Aring":"Å","Ascr":"𝒜","Assign":"≔","Atild":"Ã","Atilde":"Ã","Aum":"Ä","Auml":"Ä","Backslash":"∖","Barv":"⫧","Barwed":"⌆","Bcy":"Б","Because":"∵","Bernoullis":"ℬ","Beta":"Β","Bfr":"𝔅","Bopf":"𝔹","Breve":"˘","Bscr":"ℬ","Bumpeq":"≎","CHcy":"Ч","COP":"©","COPY":"©","Cacute":"Ć","Cap":"⋒","CapitalDifferentialD":"ⅅ","Cayleys":"ℭ","Ccaron":"Č","Ccedi":"Ç","Ccedil":"Ç","Ccirc":"Ĉ","Cconint":"∰","Cdot":"Ċ","Cedilla":"¸","CenterDot":"·","Cfr":"ℭ","Chi":"Χ","CircleDot":"⊙","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","Colon":"∷","Colone":"⩴","Congruent":"≡","Conint":"∯","ContourIntegral":"∮","Copf":"ℂ","Coproduct":"∐","CounterClockwiseContourIntegral":"∳","Cross":"⨯","Cscr":"𝒞","Cup":"⋓","CupCap":"≍","DD":"ⅅ","DDotrahd":"⤑","DJcy":"Ђ","DScy":"Ѕ","DZcy":"Џ","Dagger":"‡","Darr":"↡","Dashv":"⫤","Dcaron":"Ď","Dcy":"Д","Del":"∇","Delta":"Δ","Dfr":"𝔇","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","Diamond":"⋄","DifferentialD":"ⅆ","Dopf":"𝔻","Dot":"¨","DotDot":"⃜","DotEqual":"≐","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrow":"↓","DownArrowBar":"⤓","DownArrowUpArrow":"⇵","DownBreve":"̑","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVector":"↽","DownLeftVectorBar":"⥖","DownRightTeeVector":"⥟","DownRightVector":"⇁","DownRightVectorBar":"⥗","DownTee":"⊤","DownTeeArrow":"↧","Downarrow":"⇓","Dscr":"𝒟","Dstrok":"Đ","ENG":"Ŋ","ET":"Ð","ETH":"Ð","Eacut":"É","Eacute":"É","Ecaron":"Ě","Ecir":"Ê","Ecirc":"Ê","Ecy":"Э","Edot":"Ė","Efr":"𝔈","Egrav":"È","Egrave":"È","Element":"∈","Emacr":"Ē","EmptySmallSquare":"◻","EmptyVerySmallSquare":"▫","Eogon":"Ę","Eopf":"𝔼","Epsilon":"Ε","Equal":"⩵","EqualTilde":"≂","Equilibrium":"⇌","Escr":"ℰ","Esim":"⩳","Eta":"Η","Eum":"Ë","Euml":"Ë","Exists":"∃","ExponentialE":"ⅇ","Fcy":"Ф","Ffr":"𝔉","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","Fopf":"𝔽","ForAll":"∀","Fouriertrf":"ℱ","Fscr":"ℱ","GJcy":"Ѓ","G":">","GT":">","Gamma":"Γ","Gammad":"Ϝ","Gbreve":"Ğ","Gcedil":"Ģ","Gcirc":"Ĝ","Gcy":"Г","Gdot":"Ġ","Gfr":"𝔊","Gg":"⋙","Gopf":"𝔾","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","Gt":"≫","HARDcy":"Ъ","Hacek":"ˇ","Hat":"^","Hcirc":"Ĥ","Hfr":"ℌ","HilbertSpace":"ℋ","Hopf":"ℍ","HorizontalLine":"─","Hscr":"ℋ","Hstrok":"Ħ","HumpDownHump":"≎","HumpEqual":"≏","IEcy":"Е","IJlig":"IJ","IOcy":"Ё","Iacut":"Í","Iacute":"Í","Icir":"Î","Icirc":"Î","Icy":"И","Idot":"İ","Ifr":"ℑ","Igrav":"Ì","Igrave":"Ì","Im":"ℑ","Imacr":"Ī","ImaginaryI":"ⅈ","Implies":"⇒","Int":"∬","Integral":"∫","Intersection":"⋂","InvisibleComma":"","InvisibleTimes":"","Iogon":"Į","Iopf":"𝕀","Iota":"Ι","Iscr":"ℐ","Itilde":"Ĩ","Iukcy":"І","Ium":"Ï","Iuml":"Ï","Jcirc":"Ĵ","Jcy":"Й","Jfr":"𝔍","Jopf":"𝕁","Jscr":"𝒥","Jsercy":"Ј","Jukcy":"Є","KHcy":"Х","KJcy":"Ќ","Kappa":"Κ","Kcedil":"Ķ","Kcy":"К","Kfr":"𝔎","Kopf":"𝕂","Kscr":"𝒦","LJcy":"Љ","L":"<","LT":"<","Lacute":"Ĺ","Lambda":"Λ","Lang":"⟪","Laplacetrf":"ℒ","Larr":"↞","Lcaron":"Ľ","Lcedil":"Ļ","Lcy":"Л","LeftAngleBracket":"⟨","LeftArrow":"←","LeftArrowBar":"⇤","LeftArrowRightArrow":"⇆","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVector":"⇃","LeftDownVectorBar":"⥙","LeftFloor":"⌊","LeftRightArrow":"↔","LeftRightVector":"⥎","LeftTee":"⊣","LeftTeeArrow":"↤","LeftTeeVector":"⥚","LeftTriangle":"⊲","LeftTriangleBar":"⧏","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVector":"↿","LeftUpVectorBar":"⥘","LeftVector":"↼","LeftVectorBar":"⥒","Leftarrow":"⇐","Leftrightarrow":"⇔","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","LessLess":"⪡","LessSlantEqual":"⩽","LessTilde":"≲","Lfr":"𝔏","Ll":"⋘","Lleftarrow":"⇚","Lmidot":"Ŀ","LongLeftArrow":"⟵","LongLeftRightArrow":"⟷","LongRightArrow":"⟶","Longleftarrow":"⟸","Longleftrightarrow":"⟺","Longrightarrow":"⟹","Lopf":"𝕃","LowerLeftArrow":"↙","LowerRightArrow":"↘","Lscr":"ℒ","Lsh":"↰","Lstrok":"Ł","Lt":"≪","Map":"⤅","Mcy":"М","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","MinusPlus":"∓","Mopf":"𝕄","Mscr":"ℳ","Mu":"Μ","NJcy":"Њ","Nacute":"Ń","Ncaron":"Ň","Ncedil":"Ņ","Ncy":"Н","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","Nfr":"𝔑","NoBreak":"","NonBreakingSpace":" ","Nopf":"ℕ","Not":"⫬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","NotLeftTriangle":"⋪","NotLeftTriangleBar":"⧏̸","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangle":"⋫","NotRightTriangleBar":"⧐̸","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","Nscr":"𝒩","Ntild":"Ñ","Ntilde":"Ñ","Nu":"Ν","OElig":"Œ","Oacut":"Ó","Oacute":"Ó","Ocir":"Ô","Ocirc":"Ô","Ocy":"О","Odblac":"Ő","Ofr":"𝔒","Ograv":"Ò","Ograve":"Ò","Omacr":"Ō","Omega":"Ω","Omicron":"Ο","Oopf":"𝕆","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","Or":"⩔","Oscr":"𝒪","Oslas":"Ø","Oslash":"Ø","Otild":"Õ","Otilde":"Õ","Otimes":"⨷","Oum":"Ö","Ouml":"Ö","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","PartialD":"∂","Pcy":"П","Pfr":"𝔓","Phi":"Φ","Pi":"Π","PlusMinus":"±","Poincareplane":"ℌ","Popf":"ℙ","Pr":"⪻","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","Prime":"″","Product":"∏","Proportion":"∷","Proportional":"∝","Pscr":"𝒫","Psi":"Ψ","QUO":"\\"","QUOT":"\\"","Qfr":"𝔔","Qopf":"ℚ","Qscr":"𝒬","RBarr":"⤐","RE":"®","REG":"®","Racute":"Ŕ","Rang":"⟫","Rarr":"↠","Rarrtl":"⤖","Rcaron":"Ř","Rcedil":"Ŗ","Rcy":"Р","Re":"ℜ","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","Rfr":"ℜ","Rho":"Ρ","RightAngleBracket":"⟩","RightArrow":"→","RightArrowBar":"⇥","RightArrowLeftArrow":"⇄","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVector":"⇂","RightDownVectorBar":"⥕","RightFloor":"⌋","RightTee":"⊢","RightTeeArrow":"↦","RightTeeVector":"⥛","RightTriangle":"⊳","RightTriangleBar":"⧐","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVector":"↾","RightUpVectorBar":"⥔","RightVector":"⇀","RightVectorBar":"⥓","Rightarrow":"⇒","Ropf":"ℝ","RoundImplies":"⥰","Rrightarrow":"⇛","Rscr":"ℛ","Rsh":"↱","RuleDelayed":"⧴","SHCHcy":"Щ","SHcy":"Ш","SOFTcy":"Ь","Sacute":"Ś","Sc":"⪼","Scaron":"Š","Scedil":"Ş","Scirc":"Ŝ","Scy":"С","Sfr":"𝔖","ShortDownArrow":"↓","ShortLeftArrow":"←","ShortRightArrow":"→","ShortUpArrow":"↑","Sigma":"Σ","SmallCircle":"∘","Sopf":"𝕊","Sqrt":"√","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","Sscr":"𝒮","Star":"⋆","Sub":"⋐","Subset":"⋐","SubsetEqual":"⊆","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","SuchThat":"∋","Sum":"∑","Sup":"⋑","Superset":"⊃","SupersetEqual":"⊇","Supset":"⋑","THOR":"Þ","THORN":"Þ","TRADE":"™","TSHcy":"Ћ","TScy":"Ц","Tab":"\\t","Tau":"Τ","Tcaron":"Ť","Tcedil":"Ţ","Tcy":"Т","Tfr":"𝔗","Therefore":"∴","Theta":"Θ","ThickSpace":" ","ThinSpace":" ","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","Topf":"𝕋","TripleDot":"⃛","Tscr":"𝒯","Tstrok":"Ŧ","Uacut":"Ú","Uacute":"Ú","Uarr":"↟","Uarrocir":"⥉","Ubrcy":"Ў","Ubreve":"Ŭ","Ucir":"Û","Ucirc":"Û","Ucy":"У","Udblac":"Ű","Ufr":"𝔘","Ugrav":"Ù","Ugrave":"Ù","Umacr":"Ū","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","Uopf":"𝕌","UpArrow":"↑","UpArrowBar":"⤒","UpArrowDownArrow":"⇅","UpDownArrow":"↕","UpEquilibrium":"⥮","UpTee":"⊥","UpTeeArrow":"↥","Uparrow":"⇑","Updownarrow":"⇕","UpperLeftArrow":"↖","UpperRightArrow":"↗","Upsi":"ϒ","Upsilon":"Υ","Uring":"Ů","Uscr":"𝒰","Utilde":"Ũ","Uum":"Ü","Uuml":"Ü","VDash":"⊫","Vbar":"⫫","Vcy":"В","Vdash":"⊩","Vdashl":"⫦","Vee":"⋁","Verbar":"‖","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","Vopf":"𝕍","Vscr":"𝒱","Vvdash":"⊪","Wcirc":"Ŵ","Wedge":"⋀","Wfr":"𝔚","Wopf":"𝕎","Wscr":"𝒲","Xfr":"𝔛","Xi":"Ξ","Xopf":"𝕏","Xscr":"𝒳","YAcy":"Я","YIcy":"Ї","YUcy":"Ю","Yacut":"Ý","Yacute":"Ý","Ycirc":"Ŷ","Ycy":"Ы","Yfr":"𝔜","Yopf":"𝕐","Yscr":"𝒴","Yuml":"Ÿ","ZHcy":"Ж","Zacute":"Ź","Zcaron":"Ž","Zcy":"З","Zdot":"Ż","ZeroWidthSpace":"","Zeta":"Ζ","Zfr":"ℨ","Zopf":"ℤ","Zscr":"𝒵","aacut":"á","aacute":"á","abreve":"ă","ac":"∾","acE":"∾̳","acd":"∿","acir":"â","acirc":"â","acut":"´","acute":"´","acy":"а","aeli":"æ","aelig":"æ","af":"","afr":"𝔞","agrav":"à","agrave":"à","alefsym":"ℵ","aleph":"ℵ","alpha":"α","amacr":"ā","amalg":"⨿","am":"&","amp":"&","and":"∧","andand":"⩕","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsd":"∡","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","aogon":"ą","aopf":"𝕒","ap":"≈","apE":"⩰","apacir":"⩯","ape":"≊","apid":"≋","apos":"\'","approx":"≈","approxeq":"≊","arin":"å","aring":"å","ascr":"𝒶","ast":"*","asymp":"≈","asympeq":"≍","atild":"ã","atilde":"ã","aum":"ä","auml":"ä","awconint":"∳","awint":"⨑","bNot":"⫭","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","barvee":"⊽","barwed":"⌅","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","beta":"β","beth":"ℶ","between":"≬","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bnot":"⌐","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxDL":"╗","boxDR":"╔","boxDl":"╖","boxDr":"╓","boxH":"═","boxHD":"╦","boxHU":"╩","boxHd":"╤","boxHu":"╧","boxUL":"╝","boxUR":"╚","boxUl":"╜","boxUr":"╙","boxV":"║","boxVH":"╬","boxVL":"╣","boxVR":"╠","boxVh":"╫","boxVl":"╢","boxVr":"╟","boxbox":"⧉","boxdL":"╕","boxdR":"╒","boxdl":"┐","boxdr":"┌","boxh":"─","boxhD":"╥","boxhU":"╨","boxhd":"┬","boxhu":"┴","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxuL":"╛","boxuR":"╘","boxul":"┘","boxur":"└","boxv":"│","boxvH":"╪","boxvL":"╡","boxvR":"╞","boxvh":"┼","boxvl":"┤","boxvr":"├","bprime":"‵","breve":"˘","brvba":"¦","brvbar":"¦","bscr":"𝒷","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsol":"\\\\","bsolb":"⧅","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","bumpeq":"≏","cacute":"ć","cap":"∩","capand":"⩄","capbrcup":"⩉","capcap":"⩋","capcup":"⩇","capdot":"⩀","caps":"∩︀","caret":"⁁","caron":"ˇ","ccaps":"⩍","ccaron":"č","ccedi":"ç","ccedil":"ç","ccirc":"ĉ","ccups":"⩌","ccupssm":"⩐","cdot":"ċ","cedi":"¸","cedil":"¸","cemptyv":"⦲","cen":"¢","cent":"¢","centerdot":"·","cfr":"𝔠","chcy":"ч","check":"✓","checkmark":"✓","chi":"χ","cir":"○","cirE":"⧃","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledR":"®","circledS":"Ⓢ","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","clubs":"♣","clubsuit":"♣","colon":":","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","conint":"∮","copf":"𝕔","coprod":"∐","cop":"©","copy":"©","copysr":"℗","crarr":"↵","cross":"✗","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cup":"∪","cupbrcap":"⩈","cupcap":"⩆","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curre":"¤","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dArr":"⇓","dHar":"⥥","dagger":"†","daleth":"ℸ","darr":"↓","dash":"‐","dashv":"⊣","dbkarow":"⤏","dblac":"˝","dcaron":"ď","dcy":"д","dd":"ⅆ","ddagger":"‡","ddarr":"⇊","ddotseq":"⩷","de":"°","deg":"°","delta":"δ","demptyv":"⦱","dfisht":"⥿","dfr":"𝔡","dharl":"⇃","dharr":"⇂","diam":"⋄","diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","digamma":"ϝ","disin":"⋲","div":"÷","divid":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","dopf":"𝕕","dot":"˙","doteq":"≐","doteqdot":"≑","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","downarrow":"↓","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","dscr":"𝒹","dscy":"ѕ","dsol":"⧶","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","dzcy":"џ","dzigrarr":"⟿","eDDot":"⩷","eDot":"≑","eacut":"é","eacute":"é","easter":"⩮","ecaron":"ě","ecir":"ê","ecirc":"ê","ecolon":"≕","ecy":"э","edot":"ė","ee":"ⅇ","efDot":"≒","efr":"𝔢","eg":"⪚","egrav":"è","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","emacr":"ē","empty":"∅","emptyset":"∅","emptyv":"∅","emsp13":" ","emsp14":" ","emsp":" ","eng":"ŋ","ensp":" ","eogon":"ę","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","equals":"=","equest":"≟","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erDot":"≓","erarr":"⥱","escr":"ℯ","esdot":"≐","esim":"≂","eta":"η","et":"ð","eth":"ð","eum":"ë","euml":"ë","euro":"€","excl":"!","exist":"∃","expectation":"ℰ","exponentiale":"ⅇ","fallingdotseq":"≒","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","ffr":"𝔣","filig":"fi","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","fopf":"𝕗","forall":"∀","fork":"⋔","forkv":"⫙","fpartint":"⨍","frac1":"¼","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac3":"¾","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","gE":"≧","gEl":"⪌","gacute":"ǵ","gamma":"γ","gammad":"ϝ","gap":"⪆","gbreve":"ğ","gcirc":"ĝ","gcy":"г","gdot":"ġ","ge":"≥","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","ges":"⩾","gescc":"⪩","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","gfr":"𝔤","gg":"≫","ggg":"⋙","gimel":"ℷ","gjcy":"ѓ","gl":"≷","glE":"⪒","gla":"⪥","glj":"⪤","gnE":"≩","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gneq":"⪈","gneqq":"≩","gnsim":"⋧","gopf":"𝕘","grave":"`","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","g":">","gt":">","gtcc":"⪧","gtcir":"⩺","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","hArr":"⇔","hairsp":" ","half":"½","hamilt":"ℋ","hardcy":"ъ","harr":"↔","harrcir":"⥈","harrw":"↭","hbar":"ℏ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","horbar":"―","hscr":"𝒽","hslash":"ℏ","hstrok":"ħ","hybull":"⁃","hyphen":"‐","iacut":"í","iacute":"í","ic":"","icir":"î","icirc":"î","icy":"и","iecy":"е","iexc":"¡","iexcl":"¡","iff":"⇔","ifr":"𝔦","igrav":"ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","ijlig":"ij","imacr":"ī","image":"ℑ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","imof":"⊷","imped":"Ƶ","in":"∈","incare":"℅","infin":"∞","infintie":"⧝","inodot":"ı","int":"∫","intcal":"⊺","integers":"ℤ","intercal":"⊺","intlarhk":"⨗","intprod":"⨼","iocy":"ё","iogon":"į","iopf":"𝕚","iota":"ι","iprod":"⨼","iques":"¿","iquest":"¿","iscr":"𝒾","isin":"∈","isinE":"⋹","isindot":"⋵","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","itilde":"ĩ","iukcy":"і","ium":"ï","iuml":"ï","jcirc":"ĵ","jcy":"й","jfr":"𝔧","jmath":"ȷ","jopf":"𝕛","jscr":"𝒿","jsercy":"ј","jukcy":"є","kappa":"κ","kappav":"ϰ","kcedil":"ķ","kcy":"к","kfr":"𝔨","kgreen":"ĸ","khcy":"х","kjcy":"ќ","kopf":"𝕜","kscr":"𝓀","lAarr":"⇚","lArr":"⇐","lAtail":"⤛","lBarr":"⤎","lE":"≦","lEg":"⪋","lHar":"⥢","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","lambda":"λ","lang":"⟨","langd":"⦑","langle":"⟨","lap":"⪅","laqu":"«","laquo":"«","larr":"←","larrb":"⇤","larrbfs":"⤟","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","lat":"⪫","latail":"⤙","late":"⪭","lates":"⪭︀","lbarr":"⤌","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","lcaron":"ľ","lcedil":"ļ","lceil":"⌈","lcub":"{","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","leftarrow":"←","leftarrowtail":"↢","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","leftthreetimes":"⋋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","les":"⩽","lescc":"⪨","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","lessgtr":"≶","lesssim":"≲","lfisht":"⥼","lfloor":"⌊","lfr":"𝔩","lg":"≶","lgE":"⪑","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","ljcy":"љ","ll":"≪","llarr":"⇇","llcorner":"⌞","llhard":"⥫","lltri":"◺","lmidot":"ŀ","lmoust":"⎰","lmoustache":"⎰","lnE":"≨","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","longleftrightarrow":"⟷","longmapsto":"⟼","longrightarrow":"⟶","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","lstrok":"ł","l":"<","lt":"<","ltcc":"⪦","ltcir":"⩹","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltrPar":"⦖","ltri":"◃","ltrie":"⊴","ltrif":"◂","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","mDDot":"∺","mac":"¯","macr":"¯","male":"♂","malt":"✠","maltese":"✠","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","mcy":"м","mdash":"—","measuredangle":"∡","mfr":"𝔪","mho":"℧","micr":"µ","micro":"µ","mid":"∣","midast":"*","midcir":"⫰","middo":"·","middot":"·","minus":"−","minusb":"⊟","minusd":"∸","minusdu":"⨪","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","mopf":"𝕞","mp":"∓","mscr":"𝓂","mstpos":"∾","mu":"μ","multimap":"⊸","mumap":"⊸","nGg":"⋙̸","nGt":"≫⃒","nGtv":"≫̸","nLeftarrow":"⇍","nLeftrightarrow":"⇎","nLl":"⋘̸","nLt":"≪⃒","nLtv":"≪̸","nRightarrow":"⇏","nVDash":"⊯","nVdash":"⊮","nabla":"∇","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natur":"♮","natural":"♮","naturals":"ℕ","nbs":" ","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","ncaron":"ň","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","ncy":"н","ndash":"–","ne":"≠","neArr":"⇗","nearhk":"⤤","nearr":"↗","nearrow":"↗","nedot":"≐̸","nequiv":"≢","nesear":"⤨","nesim":"≂̸","nexist":"∄","nexists":"∄","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","ngsim":"≵","ngt":"≯","ngtr":"≯","nhArr":"⇎","nharr":"↮","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","njcy":"њ","nlArr":"⇍","nlE":"≦̸","nlarr":"↚","nldr":"‥","nle":"≰","nleftarrow":"↚","nleftrightarrow":"↮","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nlsim":"≴","nlt":"≮","nltri":"⋪","nltrie":"⋬","nmid":"∤","nopf":"𝕟","no":"¬","not":"¬","notin":"∉","notinE":"⋹̸","notindot":"⋵̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","npar":"∦","nparallel":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","npre":"⪯̸","nprec":"⊀","npreceq":"⪯̸","nrArr":"⇏","nrarr":"↛","nrarrc":"⤳̸","nrarrw":"↝̸","nrightarrow":"↛","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","ntild":"ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","nu":"ν","num":"#","numero":"№","numsp":" ","nvDash":"⊭","nvHarr":"⤄","nvap":"≍⃒","nvdash":"⊬","nvge":"≥⃒","nvgt":">⃒","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwArr":"⇖","nwarhk":"⤣","nwarr":"↖","nwarrow":"↖","nwnear":"⤧","oS":"Ⓢ","oacut":"ó","oacute":"ó","oast":"⊛","ocir":"ô","ocirc":"ô","ocy":"о","odash":"⊝","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","oelig":"œ","ofcir":"⦿","ofr":"𝔬","ogon":"˛","ograv":"ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","omacr":"ō","omega":"ω","omicron":"ο","omid":"⦶","ominus":"⊖","oopf":"𝕠","opar":"⦷","operp":"⦹","oplus":"⊕","or":"∨","orarr":"↻","ord":"º","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oscr":"ℴ","oslas":"ø","oslash":"ø","osol":"⊘","otild":"õ","otilde":"õ","otimes":"⊗","otimesas":"⨶","oum":"ö","ouml":"ö","ovbar":"⌽","par":"¶","para":"¶","parallel":"∥","parsim":"⫳","parsl":"⫽","part":"∂","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","pfr":"𝔭","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plus":"+","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plusdo":"∔","plusdu":"⨥","pluse":"⩲","plusm":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","pointint":"⨕","popf":"𝕡","poun":"£","pound":"£","pr":"≺","prE":"⪳","prap":"⪷","prcue":"≼","pre":"⪯","prec":"≺","precapprox":"⪷","preccurlyeq":"≼","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","precsim":"≾","prime":"′","primes":"ℙ","prnE":"⪵","prnap":"⪹","prnsim":"⋨","prod":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","propto":"∝","prsim":"≾","prurel":"⊰","pscr":"𝓅","psi":"ψ","puncsp":" ","qfr":"𝔮","qint":"⨌","qopf":"𝕢","qprime":"⁗","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quo":"\\"","quot":"\\"","rAarr":"⇛","rArr":"⇒","rAtail":"⤜","rBarr":"⤏","rHar":"⥤","race":"∽̱","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","rangd":"⦒","range":"⦥","rangle":"⟩","raqu":"»","raquo":"»","rarr":"→","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","rarrtl":"↣","rarrw":"↝","ratail":"⤚","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","rcaron":"ř","rcedil":"ŗ","rceil":"⌉","rcub":"}","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","rect":"▭","re":"®","reg":"®","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","rhard":"⇁","rharu":"⇀","rharul":"⥬","rho":"ρ","rhov":"ϱ","rightarrow":"→","rightarrowtail":"↣","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","rightthreetimes":"⋌","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoust":"⎱","rmoustache":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","roplus":"⨮","rotimes":"⨵","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","rsaquo":"›","rscr":"𝓇","rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","ruluhar":"⥨","rx":"℞","sacute":"ś","sbquo":"‚","sc":"≻","scE":"⪴","scap":"⪸","scaron":"š","sccue":"≽","sce":"⪰","scedil":"ş","scirc":"ŝ","scnE":"⪶","scnap":"⪺","scnsim":"⋩","scpolint":"⨓","scsim":"≿","scy":"с","sdot":"⋅","sdotb":"⊡","sdote":"⩦","seArr":"⇘","searhk":"⤥","searr":"↘","searrow":"↘","sec":"§","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","sfr":"𝔰","sfrown":"⌢","sharp":"♯","shchcy":"щ","shcy":"ш","shortmid":"∣","shortparallel":"∥","sh":"","shy":"","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","softcy":"ь","sol":"/","solb":"⧄","solbar":"⌿","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","squ":"□","square":"□","squarf":"▪","squf":"▪","srarr":"→","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","subE":"⫅","subdot":"⪽","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","subseteq":"⊆","subseteqq":"⫅","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succ":"≻","succapprox":"⪸","succcurlyeq":"≽","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","sum":"∑","sung":"♪","sup":"⊃","sup1":"¹","sup2":"²","sup3":"³","supE":"⫆","supdot":"⪾","supdsub":"⫘","supe":"⊇","supedot":"⫄","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swArr":"⇙","swarhk":"⤦","swarr":"↙","swarrow":"↙","swnwar":"⤪","szli":"ß","szlig":"ß","target":"⌖","tau":"τ","tbrk":"⎴","tcaron":"ť","tcedil":"ţ","tcy":"т","tdot":"⃛","telrec":"⌕","tfr":"𝔱","there4":"∴","therefore":"∴","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","thinsp":" ","thkap":"≈","thksim":"∼","thor":"þ","thorn":"þ","tilde":"˜","time":"×","times":"×","timesb":"⊠","timesbar":"⨱","timesd":"⨰","tint":"∭","toea":"⤨","top":"⊤","topbot":"⌶","topcir":"⫱","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","tscr":"𝓉","tscy":"ц","tshcy":"ћ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","uArr":"⇑","uHar":"⥣","uacut":"ú","uacute":"ú","uarr":"↑","ubrcy":"ў","ubreve":"ŭ","ucir":"û","ucirc":"û","ucy":"у","udarr":"⇅","udblac":"ű","udhar":"⥮","ufisht":"⥾","ufr":"𝔲","ugrav":"ù","ugrave":"ù","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","umacr":"ū","um":"¨","uml":"¨","uogon":"ų","uopf":"𝕦","uparrow":"↑","updownarrow":"↕","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","upsi":"υ","upsih":"ϒ","upsilon":"υ","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","uring":"ů","urtri":"◹","uscr":"𝓊","utdot":"⋰","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","uum":"ü","uuml":"ü","uwangle":"⦧","vArr":"⇕","vBar":"⫨","vBarv":"⫩","vDash":"⊨","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vcy":"в","vdash":"⊢","vee":"∨","veebar":"⊻","veeeq":"≚","vellip":"⋮","verbar":"|","vert":"|","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","vopf":"𝕧","vprop":"∝","vrtri":"⊳","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","vzigzag":"⦚","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","wedgeq":"≙","weierp":"℘","wfr":"𝔴","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","xfr":"𝔵","xhArr":"⟺","xharr":"⟷","xi":"ξ","xlArr":"⟸","xlarr":"⟵","xmap":"⟼","xnis":"⋻","xodot":"⨀","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrArr":"⟹","xrarr":"⟶","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","yacut":"ý","yacute":"ý","yacy":"я","ycirc":"ŷ","ycy":"ы","ye":"¥","yen":"¥","yfr":"𝔶","yicy":"ї","yopf":"𝕪","yscr":"𝓎","yucy":"ю","yum":"ÿ","yuml":"ÿ","zacute":"ź","zcaron":"ž","zcy":"з","zdot":"ż","zeetrf":"ℨ","zeta":"ζ","zfr":"𝔷","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","zscr":"𝓏","zwj":"","zwnj":""}')},8045:e=>{e.exports=function(e,t){for(var n=new Array(arguments.length-1),r=0,o=2,i=!0;o<arguments.length;)n[r++]=arguments[o++];return new Promise(function(o,a){n[r]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){i&&(i=!1,a(e))}})}},8271:(e,t,n)=>{var r=n(8326);e.exports=function(e,t){return r(e,t.toLowerCase())}},8326:e=>{e.exports=function(e,t){return t in e?e[t]:t}},8450:(e,t,n)=>{var r=n(4845),o=n(1454),i=n(8271),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},8534:e=>{e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},8796:(e,t,n)=>{var r=n(4812),o=n(6374),i=n(4758),a="data";e.exports=function(e,t){var n=r(t),f=t,h=i;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(l,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return l.test(t)?e:("-"!==(t=t.replace(c,u)).charAt(0)&&(t="-"+t),a+t)}(t),h=o),new h(f,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},8839:(e,t)=>{var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(e,t,n){for(var o,i=null,a=[],s=0,l=0;t<n;){var c=e[t++];switch(l){case 0:a[s++]=r[c>>2],o=(3&c)<<4,l=1;break;case 1:a[s++]=r[o|c>>4],o=(15&c)<<2,l=2;break;case 2:a[s++]=r[o|c>>6],a[s++]=r[63&c],l=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[o],a[s++]=61,1===l&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,i=n,s=0,l=0;l<e.length;){var c=e.charCodeAt(l++);if(61===c&&s>1)break;if(void 0===(c=o[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:t[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-i},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8973:(e,t,n)=>{var r=n(6950),o=n(6311),i=n(4637);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{lineNumber:1};return e.reduce(function(e,n){var r=t.lineNumber;if("text"===n.type){if(-1===n.value.indexOf("\n"))return n.lineStart=r,n.lineEnd=r,e.nodes.push(n),e;for(var o=n.value.split("\n"),i=0;i<o.length;i++){var s=0===i?t.lineNumber:++t.lineNumber;e.nodes.push({type:"text",value:i===o.length-1?o[i]:"".concat(o[i],"\n"),lineStart:s,lineEnd:s})}return e.lineNumber=t.lineNumber,e}if(n.children){var l=a(n.children,t),c=l.nodes[0],u=l.nodes[l.nodes.length-1];return n.lineStart=c?c.lineStart:r,n.lineEnd=u?u.lineEnd:r,n.children=l.nodes,e.lineNumber=l.lineNumber,e.nodes.push(n),e}return e.nodes.push(n),e},{nodes:[],lineNumber:t.lineNumber})}function s(e,t,n){var r=t.className||"refractor-marker";return{type:"element",tagName:t.component||"div",properties:t.component?Object.assign({},n,{className:r}):{className:r},children:e,lineStart:t.line,lineEnd:e[e.length-1].lineEnd,isMarker:!0}}e.exports=function(e,t){var n=t.markers.map(function(e){return e.line?e:{line:e}}).sort(function(e,t){return e.line-t.line});return function(e,t,n){if(0===t.length||0===e.length)return e;for(var a=t.reduce(function(e,t){return function(e,t){var n={type:"root",children:t},a=new i,s=new i,l=new i,c=[];function u(e,t,r){c.push(t),r.forEach(function(t){e.has(t)||(e.set(t,Object.assign({},t,{children:[]})),t!==n&&c.push(t))});for(var o=r.length;o--;){var i=e.get(r[o]),a=r[o+1],s=e.get(a)||t;-1===i.children.indexOf(s)&&i.children.push(s)}}o(n,function(t,n){t.children||(t.lineStart<e?u(a,t,n):t.lineStart!==e?t.lineEnd>e&&c.some(function(e){return-1!==n.indexOf(e)})&&u(l,t,n):u(s,t,n))});var d=r(n,function(e){return-1===c.indexOf(e)}),f=function(e){var t=e.get(n);return t?(o(t,function(e,t){if(e.children)return e.lineStart=0,void(e.lineEnd=0);t.forEach(function(t){t.lineStart=Math.max(t.lineStart,e.lineStart),t.lineEnd=Math.max(t.lineEnd,e.lineEnd)})}),t.children):[]},h=[].concat(f(a),f(s),f(l),d?d.children:[]);return a.clear(),s.clear(),l.clear(),h}(t.line,e)},e),l=[],c=0,u=0;u<t.length;u++){for(var d=t[u],f=a[c];f&&f.lineEnd<d.line;f=a[++c])l.push(f);for(var h=[],p=a[c];p&&p.lineEnd===d.line;p=a[++c])h.push(p);h.length>0&&l.push(s(h,d,n))}for(;c<a.length;)l.push(a[c++]);return l}(a(e).nodes,n,t)}},8998:(e,t,n)=>{var r=n(1649);t.depth=function e(t){return function(n,o){return function(t,n,o){if(t.tagName){var i=t.properties&&Array.isArray(t.properties.className)?t.properties.className.join(" "):t.properties.className;return r.createElement(t.tagName,Object.assign({key:"fract-".concat(o,"-").concat(n)},t.properties,{className:i}),t.children&&t.children.map(e(o+1)))}return t.value}(n,o,t)}}},9008:()=>{},9137:e=>{function t(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}e.exports=t,t.displayName="css",t.aliases=[]},9264:e=>{function t(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},9283:e=>{function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},9390:e=>{e.exports=function(e,t,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return e(n);a+n>r&&(i=e(r),a=0);var s=t.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},9410:e=>{function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function t(e,t,n,r){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,o),e.readFloatBE=a.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))e(0,o,i+t),e(2146959360,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,o,i+t),e((a<<31|s/4294967296)>>>0,o,i+n);else{var l=Math.floor(Math.log(r)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=r*Math.pow(2,-l))>>>0,o,i+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function a(e,t,n,r,o){var i=e(r,o+t),a=e(r,o+n),s=2*(a>>31)+1,l=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===l?c?NaN:s*(1/0):0===l?5e-324*s*c:s*Math.pow(2,l-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,o,0,4),e.readDoubleBE=a.bind(null,i,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},9632:(e,t,n)=>{var r=n(2719),o=n(1257),i=n(2899),a=n(1711),s=n(4934),l=n(6510);e.exports=function(e,t){var n,i,a={};for(i in t||(t={}),f)n=t[i],a[i]=null==n?f[i]:n;return(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start),function(e,t){var n,i,a,f,z,V,F,N,W,q,U,Z,G,Y,K,X,J,Q,ee,te=t.additional,ne=t.nonTerminated,re=t.text,oe=t.reference,ie=t.warning,ae=t.textContext,se=t.referenceContext,le=t.warningContext,ce=t.position,ue=t.indent||[],de=e.length,fe=0,he=-1,pe=ce.column||1,me=ce.line||1,ge="",_e=[];for("string"==typeof te&&(te=te.charCodeAt(0)),X=xe(),N=ie?function(e,t){var n=xe();n.column+=t,n.offset+=t,ie.call(le,P[e],n,e)}:d,fe--,de++;++fe<de;)if(z===p&&(pe=ue[he]||1),(z=e.charCodeAt(fe))===_){if((F=e.charCodeAt(fe+1))===h||F===p||F===m||F===g||F===_||F===y||F!=F||te&&F===te){ge+=u(z),pe++;continue}for(Z=G=fe+1,ee=G,F===v?(ee=++Z,(F=e.charCodeAt(ee))===w||F===j?(Y=S,ee=++Z):Y=L):Y=k,n="",U="",f="",K=E[Y],ee--;++ee<de&&K(F=e.charCodeAt(ee));)f+=u(F),Y===k&&c.call(r,f)&&(n=f,U=r[f]);(a=e.charCodeAt(ee)===x)&&(ee++,(i=Y===k&&l(f))&&(n=f,U=i)),Q=1+ee-G,(a||ne)&&(f?Y===k?(a&&!U?N(I,1):(n!==f&&(Q=1+(ee=Z+n.length)-Z,a=!1),a||(W=n?R:A,t.attribute?(F=e.charCodeAt(ee))===b?(N(W,Q),U=null):s(F)?U=null:N(W,Q):N(W,Q))),V=U):(a||N(M,Q),B(V=parseInt(f,T[Y]))?(N(O,Q),V=u(C)):V in o?(N(D,Q),V=o[V]):(q="",H(V)&&N(D,Q),V>65535&&(q+=u((V-=65536)>>>10|55296),V=56320|1023&V),V=q+u(V))):Y!==k&&N($,Q)),V?(ye(),X=xe(),fe=ee-1,pe+=ee-G+1,_e.push(V),(J=xe()).offset++,oe&&oe.call(se,V,{start:X,end:J},e.slice(G-1,ee)),X=J):(f=e.slice(G-1,ee),ge+=f,pe+=f.length,fe=ee-1)}else 10===z&&(me++,he++,pe=0),z==z?(ge+=u(z),pe++):ye();return _e.join("");function xe(){return{line:me,column:pe,offset:fe+(ce.offset||0)}}function ye(){ge&&(_e.push(ge),re&&re.call(ae,ge,{start:X,end:xe()}),ge="")}}(e,a)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h=9,p=10,m=12,g=32,_=38,x=59,y=60,b=61,v=35,w=88,j=120,C=65533,k="named",S="hexadecimal",L="decimal",T={};T[S]=16,T[L]=10;var E={};E[k]=s,E[L]=i,E[S]=a;var R=1,M=2,A=3,$=4,I=5,D=6,O=7,P={};function B(e){return e>=55296&&e<=57343||e>1114111}function H(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}P[R]="Named character references must be terminated by a semicolon",P[M]="Numeric character references must be terminated by a semicolon",P[A]="Named character references cannot be empty",P[$]="Numeric character references cannot be empty",P[I]="Named character references must be known",P[D]="Numeric character references cannot be disallowed",P[O]="Numeric character references cannot be outside the permissible Unicode range"}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nc=void 0;var __webpack_exports__={},jsx_runtime=__webpack_require__(4848),external_react_=__webpack_require__(1649);const AccessDeniedIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"access-denied",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.1568 6.84315C21.281 9.96734 21.281 15.0327 18.1568 18.1569C15.0326 21.281 9.96733 21.281 6.84313 18.1569C3.71894 15.0327 3.71894 9.96734 6.84313 6.84315C9.96733 3.71895 15.0326 3.71895 18.1568 6.84315ZM18.1568 6.84315L6.844 18.156",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ActivityIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"activity",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M21 15H19L15.5 7L11 18L8 12L6 15H4",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),AddCircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"add-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 12.4H17M12.5 8V17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),AddCommentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"add-comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M13 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5H9.5V20.5L13.5 16.5H16.5C17.6046 16.5 18.5 15.6046 18.5 14.5V12M15 6.5H22M18.5 10V3",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),AddIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"add",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 5V20M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ApiIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"api",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M5.93047 13.2107L6.66782 10.3728H6.73089L7.45854 13.2107H5.93047ZM8.17164 16H9.66089L7.56041 9H5.93047L3.82999 16H5.20767L5.65396 14.2876H7.73505L8.17164 16Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M10.5389 9V16H11.9166V13.7782H13.0323C14.541 13.7782 15.5015 12.8517 15.5015 11.3964C15.5015 9.92654 14.5701 9 13.1003 9H10.5389ZM11.9166 10.1303H12.751C13.6533 10.1303 14.1044 10.5475 14.1044 11.3867C14.1044 12.2308 13.6533 12.6431 12.751 12.6431H11.9166V10.1303Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M21.1675 16V14.8164H19.717V10.1836H21.1675V9H16.8889V10.1836H18.3393V14.8164H16.8889V16H21.1675Z",fill:"currentColor"})]})}),ArchiveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"archive",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.5 10.5V17M20.5 7.5V20.5H4.5V7.5L7.5 4.5H17.5L20.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M4.5 7.5H20.5M16 14L12.5 17.5L9 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ArrowDownIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"arrow-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.5 19.5V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M18 14L12.5 19.5L7 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ArrowLeftIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"arrow-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M5.5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11 18L5.5 12.5L11 7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ArrowRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19.5 12.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M14 7L19.5 12.5L14 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ArrowTopRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"arrow-top-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M16.5 8.5L7 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M9 8.5H16.5V16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ArrowUpIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"arrow-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M7 11L12.5 5.5L18 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M12.5 5.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),AsteriskIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"asterisk",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 4V21M16.75 5.13879L8.25 19.8612M19.8612 8.25L5.13878 16.75M4.00002 12.5H21M5.13881 8.25L19.8612 16.75M8.25002 5.13879L16.75 19.8612",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BarChartIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bar-chart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 5V19.5H20M8.5 18V13M11.5 18V9M14.5 18V11M17.5 18V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BasketIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"basket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.5 10.5H5L6.5 19.5H18.5L20 10.5H16.5M8.5 10.5L10.2721 5.18377C10.4082 4.77543 10.7903 4.5 11.2208 4.5H13.7792C14.2097 4.5 14.5918 4.77543 14.7279 5.18377L16.5 10.5M8.5 10.5H16.5M8.5 10.5L9.5 19.5M16.5 10.5L15.5 19.5M12.5 10.5V19.5M19.5 13.5H5.5M19 16.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BellIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bell",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 17.5V18.5C10.5 20 11.5 20.5 12.5 20.5C13.5 20.5 14.5 20 14.5 18.5V17.5M5.5 17.5C6.5 16 6.5 15 6.5 12C6.5 8 8.5 5.5 12.5 5.5C16.5 5.5 18.5 8 18.5 12C18.5 15 18.5 16 19.5 17.5H5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BillIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bill",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M6.50001 5.5C8.50003 5.5 8.50003 8 8.50003 8V9.5M6.50001 5.5C4.5 5.5 4.5 8 4.5 8L4.50001 9.5H8.50003M6.50001 5.5C6.50001 5.5 15.8333 5.5 17.6667 5.5C19.5 5.5 19.5 8.5 19.5 8.5V20L17.6667 19L15.8333 20L14 19L12.1667 20L10.3334 19L8.50003 20V9.5M11 12.5H15M11 9.5H16M11 15.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BinaryDocumentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"binary-document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M9.5 12.5V17.5M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM12.5 12.5V17.5H15.5V12.5H12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})]})}),BlockContentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"block-content",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 7.60002L11 7.60003V6.40003L21 6.40002V7.60002Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 11.2667L12.4833 11.2667V10.0667L21 10.0667V11.2667Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 14.9334H13.9254V13.7334L21 13.7334V14.9334Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 18.6002H4V17.4002H21V18.6002Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M9.86438 15.6H11.2L8.27623 7.60003H6.92377L4 15.6H5.29072L6.0371 13.4767H9.12362L9.86438 15.6ZM7.53546 9.05255H7.63086L8.80374 12.4344H6.35698L7.53546 9.05255Z",fill:"currentColor"})]})}),BlockElementIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"block-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5 19.5H20M5 5.5H20M6.5 8.5H18.5V16.5H6.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BlockquoteIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"blockquote",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10 17.5H19M6 7.5H19M10 12.5H17M6.5 12V18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BoldIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bold",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M13.2087 18C15.5322 18 16.9731 16.793 16.9731 14.8844C16.9731 13.4812 15.9245 12.3949 14.4836 12.2892V12.1534C15.6001 11.9875 16.4526 10.9841 16.4526 9.82991C16.4526 8.14761 15.1927 7.11409 13.0804 7.11409H8.32019V18H13.2087ZM10.5985 8.85674H12.4995C13.5859 8.85674 14.212 9.37727 14.212 10.2448C14.212 11.1199 13.5406 11.6254 12.3109 11.6254H10.5985V8.85674ZM10.5985 16.2574V13.1643H12.575C13.9178 13.1643 14.6496 13.6924 14.6496 14.6882C14.6496 15.7066 13.9404 16.2574 12.6278 16.2574H10.5985Z",fill:"currentColor"})})}),BoltIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bolt",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18 11.5L9 21L11 13.5H7L16 4L14 11.5H18Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BookIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"book",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M20.5 17.5V5.5L12.5 6.5M20.5 17.5L12.5 18.5M20.5 17.5V18.5M4.5 17.5V5.5L12.5 6.5M4.5 17.5L12.5 18.5M4.5 17.5V18.5M12.5 18.5L4.5 19.5V18.5M12.5 18.5L20.5 19.5V18.5M12.5 18.5V6.5M12.5 18.5H4.5M12.5 18.5H20.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BottleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bottle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7.5 17.5L17.5 17.5M17.5 13C17.5 12.087 17.5 11.3518 17.5 11C17.5 8.5 14.5 9 14.5 7.37494L14.5 5.5M17.5 13C17.5 15.1229 17.5 18.7543 17.5 20.5022C17.5 21.0545 17.0523 21.5 16.5 21.5L8.5 21.5C7.94772 21.5 7.5 21.0547 7.5 20.5024C7.5 18.8157 7.5 15.3546 7.5 13M17.5 13L7.5 13M7.5 13C7.5 12.2538 7.5 11.5648 7.5 11C7.5 8.5 10.5 9 10.5 7.37494L10.5 5.5M10.5 5.5L10.5 3.99999C10.5 3.72385 10.7239 3.49999 11 3.49999L14 3.49999C14.2761 3.49999 14.5 3.72385 14.5 3.99999L14.5 5.5M10.5 5.5L14.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),BulbFilledIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"bulb-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H14V20.5C14 21.0523 13.5523 21.5 13 21.5H12C11.4477 21.5 11 21.0523 11 20.5V19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10C18 11.94 17.3978 12.9767 16.4272 14.3368Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M16.4272 14.3368L15.9388 13.9883L16.4272 14.3368ZM14 19.5V18.9H13.4V19.5H14ZM11 19.5H11.6V18.9H11V19.5ZM8.57284 14.3368L9.06122 13.9883H9.06122L8.57284 14.3368ZM16.1 17.212C16.1 16.3069 16.3868 15.4261 16.9155 14.6853L15.9388 13.9883C15.2678 14.9284 14.9 16.0519 14.9 17.212H16.1ZM16.1 18.5V17.212H14.9V18.5H16.1ZM14.5 20.1C15.3837 20.1 16.1 19.3837 16.1 18.5H14.9C14.9 18.7209 14.7209 18.9 14.5 18.9V20.1ZM14 20.1H14.5V18.9H14V20.1ZM13.4 19.5V20.5H14.6V19.5H13.4ZM13.4 20.5C13.4 20.7209 13.2209 20.9 13 20.9V22.1C13.8837 22.1 14.6 21.3837 14.6 20.5H13.4ZM13 20.9H12V22.1H13V20.9ZM12 20.9C11.7791 20.9 11.6 20.7209 11.6 20.5H10.4C10.4 21.3837 11.1163 22.1 12 22.1V20.9ZM11.6 20.5V19.5H10.4V20.5H11.6ZM10.5 20.1H11V18.9H10.5V20.1ZM8.9 18.5C8.9 19.3837 9.61634 20.1 10.5 20.1V18.9C10.2791 18.9 10.1 18.7209 10.1 18.5H8.9ZM8.9 17.212V18.5H10.1V17.212H8.9ZM8.08446 14.6853C8.61315 15.4261 8.9 16.3069 8.9 17.212H10.1C10.1 16.0519 9.73217 14.9284 9.06122 13.9883L8.08446 14.6853ZM6.4 10C6.4 11.0377 6.56208 11.8595 6.86624 12.611C7.16624 13.3521 7.59495 13.9995 8.08446 14.6853L9.06122 13.9883C8.58004 13.314 8.22233 12.7629 7.97858 12.1607C7.739 11.5688 7.6 10.9023 7.6 10H6.4ZM12.5 3.9C9.16863 3.9 6.4 6.66863 6.4 10H7.6C7.6 7.33137 9.83137 5.1 12.5 5.1V3.9ZM18.6 10C18.6 6.66863 15.8314 3.9 12.5 3.9V5.1C15.1686 5.1 17.4 7.33137 17.4 10H18.6ZM16.9155 14.6853C17.4051 13.9995 17.8338 13.3521 18.1338 12.611C18.4379 11.8595 18.6 11.0377 18.6 10H17.4C17.4 10.9023 17.261 11.5688 17.0214 12.1607C16.7777 12.7629 16.42 13.314 15.9388 13.9883L16.9155 14.6853Z",fill:"currentColor"})]})}),BulbOutlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"bulb-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 16.5H15.5M11 20V20.5C11 21.0523 11.4477 21.5 12 21.5H13C13.5523 21.5 14 21.0523 14 20.5V20M18 10C18 11.94 17.3978 12.9767 16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10Z",stroke:"currentColor",strokeWidth:1.2})})}),CalendarIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"calendar",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M4.5 10.5V19.5H20.5V10.5M4.5 10.5V5.5H20.5V10.5M4.5 10.5H12.5H20.5M20.5 13.5H16.5M16.5 13.5H12.5M16.5 13.5V10.5M16.5 13.5V16.5M12.5 13.5H8.5M12.5 13.5V16.5M12.5 13.5V10.5M8.5 13.5H4.5M8.5 13.5V10.5M8.5 13.5V16.5M20.5 16.5H16.5M16.5 16.5H12.5M16.5 16.5V19.5M12.5 16.5H8.5M12.5 16.5V19.5M8.5 16.5H4.5M8.5 16.5V19.5M17.5 8V3M7.5 8V3",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CaseIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"case",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9 8.5122V6C9 5.44772 9.44772 5 10 5H15C15.5523 5 16 5.44772 16 6V8.5122M4.5 12V18.5C4.5 19.0523 4.94772 19.5 5.5 19.5H19.5C20.0523 19.5 20.5 19.0523 20.5 18.5V12M4.5 12V9.5122C4.5 8.95991 4.94772 8.5122 5.5 8.5122H19.5C20.0523 8.5122 20.5 8.95991 20.5 9.5122V12M4.5 12L11.7978 14.7367C12.2505 14.9064 12.7495 14.9064 13.2022 14.7367L20.5 12",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ChartUpwardIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"chart-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 5V19.5H20M7.5 16L11.5 11.5L15.5 14L19.5 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CheckmarkCircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"checkmark-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 12.1316L11.7414 14.5L16 10M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CheckmarkIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"checkmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ChevronDownIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17 10.5L12.5 15L8 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ChevronLeftIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M14.5 17L10 12.5L14.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),dist_ChevronRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 8L15 12.5L10.5 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ChevronUpIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 14.5L12.5 10L17 14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ClipboardIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"clipboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 5.5H6.5V19.5H18.5V5.5H17M12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ClipboardImageIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"clipboard-image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 5.5H6.5V19.5H10.5M17 5.5H18.5V11.5M10.5 18.5L12.73 15.8983C13.1327 15.4285 13.8613 15.4335 14.2575 15.909L15.299 17.1588C15.6754 17.6105 16.3585 17.6415 16.7743 17.2257L16.9903 17.0097C17.2947 16.7053 17.7597 16.6298 18.1447 16.8223L20.5 18M10.5 11.5H20.5V21.5H10.5V11.5ZM12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ClockIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"clock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 8V12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CloseCircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"close-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 15.5L12.5 12.5M12.5 12.5L15.5 9.5M12.5 12.5L9.5 9.5M12.5 12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),dist_CloseIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"close",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18 7L7 18M7 7L18 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CodeBlockIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"code-block",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 15L8.5 12.5L11 10M14 10L16.5 12.5L14 15M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CodeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"code",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 16L7.5 12.5L11 9M14 9L17.5 12.5L14 16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CogIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"cog",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M14.2624 5.40607L13.8714 4.42848C13.6471 3.86771 13.104 3.5 12.5 3.5C11.896 3.5 11.3529 3.86771 11.1286 4.42848L10.7376 5.40607C10.5857 5.78585 10.2869 6.08826 9.90901 6.2448C9.53111 6.40133 9.10603 6.39874 8.73006 6.23761L7.76229 5.82285C7.20716 5.58494 6.56311 5.70897 6.13604 6.13604C5.70897 6.56311 5.58494 7.20716 5.82285 7.76229L6.23761 8.73006C6.39874 9.10602 6.40133 9.53111 6.2448 9.90901C6.08826 10.2869 5.78585 10.5857 5.40607 10.7376L4.42848 11.1286C3.86771 11.3529 3.5 11.896 3.5 12.5C3.5 13.104 3.86771 13.6471 4.42848 13.8714L5.40607 14.2624C5.78585 14.4143 6.08826 14.7131 6.2448 15.091C6.40133 15.4689 6.39874 15.894 6.23761 16.2699L5.82285 17.2377C5.58494 17.7928 5.70897 18.4369 6.13604 18.864C6.56311 19.291 7.20716 19.4151 7.76229 19.1772L8.73006 18.7624C9.10603 18.6013 9.53111 18.5987 9.90901 18.7552C10.2869 18.9117 10.5857 19.2141 10.7376 19.5939L11.1286 20.5715C11.3529 21.1323 11.896 21.5 12.5 21.5C13.104 21.5 13.6471 21.1323 13.8714 20.5715L14.2624 19.5939C14.4143 19.2141 14.7131 18.9117 15.091 18.7552C15.4689 18.5987 15.894 18.6013 16.2699 18.7624L17.2377 19.1771C17.7928 19.4151 18.4369 19.291 18.864 18.864C19.291 18.4369 19.4151 17.7928 19.1771 17.2377L18.7624 16.2699C18.6013 15.894 18.5987 15.4689 18.7552 15.091C18.9117 14.7131 19.2141 14.4143 19.5939 14.2624L20.5715 13.8714C21.1323 13.6471 21.5 13.104 21.5 12.5C21.5 11.896 21.1323 11.3529 20.5715 11.1286L19.5939 10.7376C19.2141 10.5857 18.9117 10.2869 18.7552 9.90901C18.5987 9.53111 18.6013 9.10602 18.7624 8.73006L19.1772 7.76229C19.4151 7.20716 19.291 6.56311 18.864 6.13604C18.4369 5.70897 17.7928 5.58494 17.2377 5.82285L16.2699 6.23761C15.894 6.39874 15.4689 6.40133 15.091 6.2448C14.7131 6.08826 14.4143 5.78585 14.2624 5.40607Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M16.5 12.5C16.5 14.7091 14.7091 16.5 12.5 16.5C10.2909 16.5 8.5 14.7091 8.5 12.5C8.5 10.2909 10.2909 8.5 12.5 8.5C14.7091 8.5 16.5 10.2909 16.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),CollapseIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"collapse",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6 14.5L10.5 14.5V19M19 10.5H14.5L14.5 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10.5 14.5L6 19M14.5 10.5L19 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ColorWheelIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"color-wheel",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.43853 5.10896L11.1606 9.26642M13.8394 15.7336L15.5615 19.891M15.7336 11.1606L19.891 9.43853M9.26642 13.8394L5.10896 15.5615M5.3139 9.52342L9.23359 11.147M15.7664 13.853L19.6861 15.4766M13.853 9.23359L15.4766 5.3139M9.52342 19.6861L11.147 15.7664M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5ZM16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CommentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7.5 16.5H9.5V20.5L13.5 16.5H17.5C18.6046 16.5 19.5 15.6046 19.5 14.5V8.5C19.5 7.39543 18.6046 6.5 17.5 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ComponentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"component",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.5 8.5L12.5 12.5M12.5 12.5L16.5 16.5M12.5 12.5L16.5 8.5M12.5 12.5L8.5 16.5M12.5 4L21 12.5L12.5 21L4 12.5L12.5 4Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ComposeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"compose",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17 6L19 8M14 5.5H5.5V19.5H19.5V11M9 16L9.5 13.5L19 4L21 6L11.5 15.5L9 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ConfettiIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"confetti",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 6.25C16.9142 6.25 17.25 5.91421 17.25 5.5C17.25 5.08579 16.9142 4.75 16.5 4.75C16.0858 4.75 15.75 5.08579 15.75 5.5C15.75 5.91421 16.0858 6.25 16.5 6.25ZM19.5 16.25C19.9142 16.25 20.25 15.9142 20.25 15.5C20.25 15.0858 19.9142 14.75 19.5 14.75C19.0858 14.75 18.75 15.0858 18.75 15.5C18.75 15.9142 19.0858 16.25 19.5 16.25Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M13 4C11 6 14.5 5.5 12.5 7.5M21 12C19 14 19.5 10.5 17.5 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M6.99288 20.296L7.21541 20.8532L6.99288 20.296ZM15.3657 16.952L15.1432 16.3948L15.3657 16.952ZM4.48221 17.7853L5.03942 18.0078L4.48221 17.7853ZM7.82614 9.41242L8.38334 9.63495L8.38334 9.63495L7.82614 9.41242ZM4.9038 19.8744L4.47954 20.2986L4.9038 19.8744ZM20.6 5C20.6 4.66863 20.3314 4.4 20 4.4C19.6686 4.4 19.4 4.66863 19.4 5L20.6 5ZM15.6417 16.0661C15.6727 16.0352 15.6429 16.1034 15.3784 16.0633C15.1285 16.0255 14.78 15.9035 14.3486 15.6771C13.4924 15.2279 12.4323 14.4325 11.389 13.3892L10.5405 14.2377C11.645 15.3423 12.8008 16.2201 13.791 16.7397C14.2827 16.9977 14.7649 17.1841 15.1987 17.2498C15.6178 17.3133 16.1246 17.2803 16.4903 16.9146L15.6417 16.0661ZM11.389 13.3892C10.3457 12.3459 9.55032 11.2858 9.10105 10.4296C8.87467 9.99821 8.75268 9.64963 8.71484 9.39979C8.67477 9.13524 8.74302 9.10551 8.71208 9.13645L7.86355 8.28792C7.49788 8.65359 7.46489 9.1604 7.52837 9.5795C7.59408 10.0133 7.78043 10.4955 8.03847 10.9872C8.55805 11.9774 9.4359 13.1332 10.5405 14.2377L11.389 13.3892ZM8.71208 9.13645C8.68114 9.16739 8.71088 9.09913 8.97542 9.1392C9.22526 9.17705 9.57384 9.29904 10.0052 9.52542C10.8614 9.97469 11.9215 10.77 12.9648 11.8134L13.8134 10.9648C12.7088 9.86026 11.553 8.98242 10.5628 8.46283C10.0711 8.20479 9.58894 8.01844 9.15513 7.95274C8.73603 7.88926 8.22923 7.92224 7.86355 8.28792L8.71208 9.13645ZM12.9648 11.8134C14.0081 12.8567 14.8035 13.9168 15.2528 14.7729C15.4791 15.2043 15.6011 15.5529 15.639 15.8028C15.679 16.0673 15.6108 16.097 15.6417 16.0661L16.4903 16.9146C16.8559 16.5489 16.8889 16.0421 16.8254 15.623C16.7597 15.1892 16.5734 14.7071 16.3153 14.2153C15.7958 13.2252 14.9179 12.0694 13.8134 10.9648L12.9648 11.8134ZM7.21541 20.8532L15.5883 17.5092L15.1432 16.3948L6.77034 19.7387L7.21541 20.8532ZM5.03942 18.0078L8.38334 9.63495L7.26893 9.18988L3.92501 17.5628L5.03942 18.0078ZM7.86355 8.28792C7.60626 8.54522 7.40381 8.85216 7.26893 9.18988L8.38334 9.63495C8.45773 9.44869 8.5696 9.27894 8.71208 9.13644L7.86355 8.28792ZM3.92501 17.5628C3.54833 18.5059 3.76251 19.5816 4.47954 20.2986L5.32807 19.4501C4.95514 19.0772 4.83814 18.5118 5.03942 18.0078L3.92501 17.5628ZM15.6417 16.0661C15.4993 16.2086 15.3295 16.3204 15.1432 16.3948L15.5883 17.5092C15.926 17.3744 16.2329 17.1719 16.4903 16.9146L15.6417 16.0661ZM6.77034 19.7387C6.26637 19.94 5.70099 19.823 5.32807 19.4501L4.47954 20.2986C5.19657 21.0157 6.27225 21.2298 7.21541 20.8532L6.77034 19.7387ZM19.4 5C19.4 7.17816 18.8838 8.08287 18.3136 8.50727C17.6938 8.96864 16.8379 9.02116 15.7269 9.06388C14.7129 9.10288 13.4438 9.13208 12.4699 9.857C11.4463 10.6189 10.9 12.005 10.9 14.3269H12.1C12.1 12.1487 12.6162 11.244 13.1864 10.8196C13.8062 10.3582 14.6621 10.3057 15.7731 10.263C16.7871 10.224 18.0562 10.1948 19.0301 9.46988C20.0537 8.70799 20.6 7.32184 20.6 5L19.4 5Z",fill:"currentColor"})]})}),ControlsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"controls",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M6.5 5V7.5M6.5 7.5C5.39543 7.5 4.5 8.39543 4.5 9.5C4.5 10.6046 5.39543 11.5 6.5 11.5M6.5 7.5C7.60457 7.5 8.5 8.39543 8.5 9.5C8.5 10.6046 7.60457 11.5 6.5 11.5M6.5 11.5V20M12.5 5V13.5M12.5 13.5C11.3954 13.5 10.5 14.3954 10.5 15.5C10.5 16.6046 11.3954 17.5 12.5 17.5M12.5 13.5C13.6046 13.5 14.5 14.3954 14.5 15.5C14.5 16.6046 13.6046 17.5 12.5 17.5M12.5 17.5V20M18.5 5V7.5M18.5 7.5C17.3954 7.5 16.5 8.39543 16.5 9.5C16.5 10.6046 17.3954 11.5 18.5 11.5M18.5 7.5C19.6046 7.5 20.5 8.39543 20.5 9.5C20.5 10.6046 19.6046 11.5 18.5 11.5M18.5 11.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CopyIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"copy",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.5 8.5H5.5V20.5H16.5V16.5M19.5 4.5H8.5V16.5H19.5V4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CreditCardIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"credit-card",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M20.5 9.5H4.5V11.5H20.5V9.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7 15.5H14M5.5 18.5H19.5C20.0523 18.5 20.5 18.0523 20.5 17.5V7.5C20.5 6.94772 20.0523 6.5 19.5 6.5H5.5C4.94772 6.5 4.5 6.94772 4.5 7.5V17.5C4.5 18.0523 4.94772 18.5 5.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),CropIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"crop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 5V15.5H20M5 9.5H15.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),CubeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"cube",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M4.5 8L12.5 3L20.5 8V17L12.5 22L4.5 17V8Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M12.5 22V13M12.5 13L4.5 8M12.5 13L20.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DashboardIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"dashboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M14.5 19.5V12.5M10.5 12.5V5.5M5.5 12.5H19.5M5.5 19.5H19.5V5.5H5.5V19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DatabaseIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"database",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.5 7V17.5C18.5 19.0594 16.0504 20.5 12.5 20.5C8.9496 20.5 6.5 19.0594 6.5 17.5V7M18.5 7C18.5 8.45543 15.8137 9.5 12.5 9.5C9.18629 9.5 6.5 8.45543 6.5 7C6.5 5.54457 9.18629 4.5 12.5 4.5C15.8137 4.5 18.5 5.54457 18.5 7Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DesktopIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"desktop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M4.5 13.5V15.5C4.5 16.0523 4.94772 16.5 5.5 16.5H12.5M4.5 13.5V6.5C4.5 5.94772 4.94772 5.5 5.5 5.5H19.5C20.0523 5.5 20.5 5.94772 20.5 6.5V13.5M4.5 13.5H20.5M20.5 13.5V15.5C20.5 16.0523 20.0523 16.5 19.5 16.5H12.5M12.5 16.5V19.5M12.5 19.5H8M12.5 19.5H17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DiamondIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"diamond",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M21 10.5L12.5 21M21 10.5L18 5.5H11M21 10.5H16M12.5 21L4 10.5M12.5 21L9 10.5M12.5 21L16 10.5M4 10.5L7 5.5H11M4 10.5H9M9 10.5H12.5H16M9 10.5L11 5.5M16 10.5L14.5 5.5H11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DocumentIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5L6.5 9.5M11.5 4.5L6.5 9.5M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentPdfIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-pdf",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.7127 13.8012L12.7193 13.77C12.8488 13.2366 13.0117 12.5716 12.8845 11.969C12.7997 11.4937 12.4493 11.3084 12.1503 11.295C11.7977 11.2794 11.483 11.4803 11.4049 11.7726C11.2576 12.3082 11.3893 13.0402 11.6303 13.973C11.3268 14.6961 10.8425 15.7472 10.4877 16.3721C9.8271 16.7135 8.94113 17.2402 8.80946 17.9053C8.78268 18.028 8.81392 18.1842 8.88757 18.3248C8.97014 18.481 9.10181 18.6015 9.25579 18.6596C9.32274 18.6841 9.40308 18.7042 9.49681 18.7042C9.88959 18.7042 10.5256 18.3873 11.3736 16.9322C11.5031 16.8898 11.637 16.8452 11.7664 16.8006C12.3734 16.5953 13.0028 16.381 13.5718 16.2851C14.2012 16.622 14.9175 16.8385 15.404 16.8385C15.8861 16.8385 16.0758 16.5529 16.1472 16.381C16.2722 16.0797 16.2119 15.7004 16.0088 15.4973C15.7143 15.2072 14.9979 15.1313 13.882 15.2696C13.3331 14.9349 12.9738 14.4796 12.7127 13.8012ZM10.2645 17.1911C9.95431 17.6419 9.71998 17.8673 9.59278 17.9655C9.7423 17.691 10.0346 17.4009 10.2645 17.1911ZM12.2195 11.9355C12.3355 12.1341 12.3199 12.7345 12.2306 13.038C12.1213 12.5939 12.1056 11.9645 12.1704 11.8909L12.2195 11.9355ZM12.1837 14.6247C12.4225 15.0376 12.7238 15.3924 13.0563 15.6557C12.5743 15.7651 12.1346 15.9458 11.7419 16.1065C11.6481 16.1445 11.5566 16.1824 11.4674 16.2181C11.7642 15.6803 12.0119 15.071 12.1837 14.6247ZM15.6562 16.0864L15.6428 16.1065C15.6428 16.1065 15.4375 16.2315 14.6497 15.9213C15.5558 15.8789 15.6562 16.0864 15.6562 16.0864Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentRemoveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M6.5 14V20.5H18.5V14M6.5 11V9.5L11.5 4.5H18.5V11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentSheetIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-sheet",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10.4 19V16.4M10.4 16.4L10.4 13.4M10.4 16.4H8M10.4 16.4H14.4M10.4 13.4V11M10.4 13.4H8M10.4 13.4H14.4M14.4 19V16.4M14.4 16.4V13.4M14.4 16.4H17M14.4 13.4V11M14.4 13.4H17M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentTextIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-text",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M16 13H9M14 16H9M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentVideoIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-video",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 16.5V13.5L14 15L11.5 16.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentWordIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-word",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.4699 13.4588H12.5263L13.6328 17H14.5435L16 12H14.9952L14.0656 15.7214H14.0129L12.929 12H12.0672L10.9984 15.7214H10.9419L10.0124 12H9L10.4565 17H11.371L12.4699 13.4588Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentZipIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"document-zip",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M15 4.5L13.5 5L15.5 6L13.5 7L15.5 8L13.5 9L15.5 10L13.5 11L14.5 11.5V13M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM13.5 13H15.5L16 17H13L13.5 13Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DocumentsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"documents",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M10.5 4.5V9.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M16.5 7.5H19.5V21.5H8.5V18.5M10.5 4.5H16.5V18.5H5.5V9.5L10.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DotIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"dot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("circle",{cx:12.5,cy:12.5,r:2.5,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2})})}),DoubleChevronDownIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"double-chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17 8L12.5 12.5L8 8M17 13L12.5 17.5L8 13",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DoubleChevronLeftIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"double-chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12 17L7.5 12.5L12 8M17 17L12.5 12.5L17 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DoubleChevronRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"double-chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M13 8L17.5 12.5L13 17M8 8L12.5 12.5L8 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DoubleChevronUpIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"double-chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 12L12.5 7.5L17 12M8 17L12.5 12.5L17 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),DownloadIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"download",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19.5 17V19.5H5.5V17M12.5 16L12.5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),DragHandleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"drag-handle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M9.5 8C10.3284 8 11 7.32843 11 6.5C11 5.67157 10.3284 5 9.5 5C8.67157 5 8 5.67157 8 6.5C8 7.32843 8.67157 8 9.5 8Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M9.5 14C10.3284 14 11 13.3284 11 12.5C11 11.6716 10.3284 11 9.5 11C8.67157 11 8 11.6716 8 12.5C8 13.3284 8.67157 14 9.5 14Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M11 18.5C11 19.3284 10.3284 20 9.5 20C8.67157 20 8 19.3284 8 18.5C8 17.6716 8.67157 17 9.5 17C10.3284 17 11 17.6716 11 18.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M15.5 8C16.3284 8 17 7.32843 17 6.5C17 5.67157 16.3284 5 15.5 5C14.6716 5 14 5.67157 14 6.5C14 7.32843 14.6716 8 15.5 8Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11C16.3284 11 17 11.6716 17 12.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M15.5 20C16.3284 20 17 19.3284 17 18.5C17 17.6716 16.3284 17 15.5 17C14.6716 17 14 17.6716 14 18.5C14 19.3284 14.6716 20 15.5 20Z",fill:"currentColor"})]})}),DropIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"drop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.5 14.5C18.5 18 16 20.5 12.5 20.5C9 20.5 6.5 18 6.5 14.5C6.5 11 9.5 7.50001 12.5 4.5C15.5 7.5 18.5 11 18.5 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),EarthAmericasIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"earth-americas",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M7 13L5.5 9L10 5H15V10L14 9H11L9.5 11L10.5 12H12V13L13 14.5H15.5L18.5 17L15.5 19.5L10.5 20V17L12.5 15L9 13L7 10.5V13Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),EarthGlobeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"earth-globe",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 16.5H19.5M5.5 8.5H19.5M4.5 12.5H20.5M12.5 20.5C12.5 20.5 8 18.5 8 12.5C8 6.5 12.5 4.5 12.5 4.5M12.5 4.5C12.5 4.5 17 6.5 17 12.5C17 18.5 12.5 20.5 12.5 20.5M12.5 4.5V20.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),EditIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"edit",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M15 7L18 10M6 19L7 15L17 5L20 8L10 18L6 19Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),EllipsisHorizontalIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"ellipsis-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6.5 11C7.32843 11 8 11.6716 8 12.5C8 13.3284 7.32843 14 6.5 14C5.67157 14 5 13.3284 5 12.5C5 11.6716 5.67157 11 6.5 11Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M12.5 11C13.3284 11 14 11.6716 14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5C17 11.6716 17.6716 11 18.5 11Z",fill:"currentColor"})]})}),EllipsisVerticalIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"ellipsis-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M14 6.5C14 7.32843 13.3284 8 12.5 8C11.6716 8 11 7.32843 11 6.5C11 5.67157 11.6716 5 12.5 5C13.3284 5 14 5.67157 14 6.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11C13.3284 11 14 11.6716 14 12.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M14 18.5C14 19.3284 13.3284 20 12.5 20C11.6716 20 11 19.3284 11 18.5C11 17.6716 11.6716 17 12.5 17C13.3284 17 14 17.6716 14 18.5Z",fill:"currentColor"})]})}),EnterIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"enter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6 14.5H19.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10 18.5L6 14.5L10 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),EnterRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"enter-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19 14.5H5.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M15 18.5L19 14.5L15 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),EnvelopeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"envelope",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M20.5 18.5H4.5V6.5H20.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M20.5 18.5L17.75 15.5L15 12.5M4.5 18.5L10 12.5M20.5 6.5L12.5 15L4.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),EqualIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"equal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M7.5 4.5H3.5V20.5H7.5",stroke:"currentColor",strokeWidth:1.2}),(0,jsx_runtime.jsx)("path",{d:"M17.5 20.5L21.5 20.5L21.5 4.5L17.5 4.5",stroke:"currentColor",strokeWidth:1.2}),(0,jsx_runtime.jsx)("path",{d:"M9 10.5H16",stroke:"currentColor",strokeWidth:1.2}),(0,jsx_runtime.jsx)("path",{d:"M9 14.5H16",stroke:"currentColor",strokeWidth:1.2})]})}),ErrorFilledIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"error-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5ZM13 14.5V16H12V14.5H13ZM12 9V13H13V9H12Z",fill:"currentColor"})})}),ErrorOutlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"error-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 16V14.5M12.5 9V13M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ExpandIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"expand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M14 6.5H18.5V11M11 18.5H6.5V14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M18.5 6.5L14 11M6.5 18.5L11 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),EyeClosedIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"eye-closed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7 15.5L5.5 17.5M20.5 12.5C19.8612 13.5647 19.041 14.6294 18.0008 15.501M18.0008 15.501C16.5985 16.676 14.7965 17.5 12.5 17.5M18.0008 15.501L18 15.5M18.0008 15.501L19.5 17.5M12.5 17.5C8.5 17.5 6 15 4.5 12.5M12.5 17.5V20M15.5 17L16.5 19.5M9.5 17L8.5 19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),EyeOpenIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"eye-open",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.39999 12.5C9.39999 10.7879 10.7879 9.39999 12.5 9.39999C14.2121 9.39999 15.6 10.7879 15.6 12.5C15.6 14.2121 14.2121 15.6 12.5 15.6C10.7879 15.6 9.39999 14.2121 9.39999 12.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M12.5 7.5C8.5 7.5 6 10 4.5 12.5C6 15 8.5 17.5 12.5 17.5C16.5 17.5 19 15 20.5 12.5C19 10 16.5 7.5 12.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),FilterIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"filter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 12L6 7V6L19 6L19 7L14 12V17L11 19V12Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})}),FolderIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"folder",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11.5 8.5H19.5V18.5H5.5V5.5H10.5L11.5 8.5ZM11.5 8.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),GenerateIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"generate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M9 5.30423C6.33576 6.60253 4.5 9.33688 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5V14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M16 11L12.5 14.5L9 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),GroqIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"groq",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M13 13H21L13 21L13 13Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M12 12V4L4 12H12Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M12 13H4L12 21V13Z",fill:"currentColor"})]})}),HashIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"hash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.33894 16.1002H5.44615L5.63077 14.9002H8.52356L9.26202 10.1002H6.36923L6.55384 8.90018H9.44663L9.89281 6H11.1069L10.6608 8.90018H15.4466L15.8928 6H17.1069L16.6608 8.90018H19.5539L19.3693 10.1002H16.4761L15.7377 14.9002H18.6308L18.4462 16.1002H15.5531L15.1069 19H13.8928L14.3389 16.1002H9.55306L9.10693 19H7.89281L8.33894 16.1002ZM10.4761 10.1002L9.73767 14.9002H14.5236L15.262 10.1002H10.4761Z",fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"})})}),HeartFilledIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"heart-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),HeartIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"heart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),HelpCircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"help-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),HighlightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"highlight",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"m20.25 9.005-2.719 4.71M10.75 3.504l-2.725 4.72m9.506 5.49-9.506-5.49m9.506 5.49L16.5 15.5l-3.268.634L12 18l-.586-.352m-3.39-9.423L7 10l1 3-1 2 .586.351m0 0L4.902 20h5.155l1.357-2.352m-3.828-2.297 3.828 2.297M13 20h7",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})})}),HomeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"home",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M6.5 8.75V18.5H18.5V8.75M4.5 10L12.5 5L20.5 10M14.5 18.5V11.5H10.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),IceCreamIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"ice-cream",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 13.5L12.5 20.5L15.5 13.5M12.5 8.26389C11.9692 7.78885 11.2684 7.5 10.5 7.5C8.84315 7.5 7.5 8.84315 7.5 10.5C7.5 12.1569 8.84315 13.5 10.5 13.5C11.2684 13.5 11.9692 13.2111 12.5 12.7361M9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5M17.5 10.5C17.5 12.1569 16.1569 13.5 14.5 13.5C12.8431 13.5 11.5 12.1569 11.5 10.5C11.5 8.84315 12.8431 7.5 14.5 7.5C16.1569 7.5 17.5 8.84315 17.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ImageIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 15.5L8.79289 12.2071C9.18342 11.8166 9.81658 11.8166 10.2071 12.2071L12.8867 14.8867C13.2386 15.2386 13.7957 15.2782 14.1938 14.9796L15.1192 14.2856C15.3601 14.1049 15.6696 14.0424 15.9618 14.1154L19.5 15M5.5 6.5H19.5V18.5H5.5V6.5ZM15.5 10.5C15.5 11.0523 15.0523 11.5 14.5 11.5C13.9477 11.5 13.5 11.0523 13.5 10.5C13.5 9.94772 13.9477 9.5 14.5 9.5C15.0523 9.5 15.5 9.94772 15.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ImageRemoveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"image-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 11V6.5H19.5V11M5.5 14V18.5H19.5V14M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ImagesIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"images",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.5 7.5H20.5V19.5H6.5V17.5M4.5 14.5L7.79289 11.2071C8.18342 10.8166 8.81658 10.8166 9.20711 11.2071L11.8867 13.8867C12.2386 14.2386 12.7957 14.2782 13.1938 13.9796L14.1192 13.2856C14.3601 13.1049 14.6696 13.0424 14.9618 13.1154L18.5 14M4.5 5.5H18.5V17.5H4.5V5.5ZM14.5 9.5C14.5 10.0523 14.0523 10.5 13.5 10.5C12.9477 10.5 12.5 10.0523 12.5 9.5C12.5 8.94772 12.9477 8.5 13.5 8.5C14.0523 8.5 14.5 8.94772 14.5 9.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),InfoFilledIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"info-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5ZM12 10.5V9H13V10.5H12ZM13 16V12H12V16H13Z",fill:"currentColor"})})}),InfoOutlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"info-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 10.5V9M12.5 12V16M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),InlineElementIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"inline-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 5V20M19.5 5V20M8.5 6.5H16.5V18.5H8.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),InlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"inline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 6.5H19.5V18.5H12.5M12.5 6.5H5.5V18.5H12.5M12.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),InsertAboveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"insert-above",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M14.5 10.5556L10.5 10.5556M12.5 12.5L12.5 8.5M18.5 5.5L6.5 5.5M18.5 19.5L6.5 19.5L6.5 15.5L18.5 15.5L18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})}),InsertBelowIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"insert-below",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 14.5H14.5M12.5 12.5V16.5M6.5 19.5H18.5M6.5 5.5H18.5V9.5H6.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})}),ItalicIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"italic",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.43 18H11.7276L13.4551 9.86763H12.1576L10.43 18ZM13.3043 8.29849C13.8022 8.29849 14.2095 7.89112 14.2095 7.39322C14.2095 6.89532 13.8022 6.48795 13.3043 6.48795C12.8064 6.48795 12.399 6.89532 12.399 7.39322C12.399 7.89112 12.8064 8.29849 13.3043 8.29849Z",fill:"currentColor"})})}),JoystickIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"joystick",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 16V14.5H15.5V16M13.5 10.5V14.5M11.5 10.5V14.5M15.5 7.5C15.5 9.15685 14.1569 10.5 12.5 10.5C10.8431 10.5 9.5 9.15685 9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5ZM18.5 19.5H6.5C5.94772 19.5 5.5 19.0523 5.5 18.5V17.5C5.5 16.9477 5.94772 16.5 6.5 16.5H18.5C19.0523 16.5 19.5 16.9477 19.5 17.5V18.5C19.5 19.0523 19.0523 19.5 18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),JsonIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"json",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 5.5H9.5C8.39543 5.5 7.5 6.39543 7.5 7.5V12.5M7.5 12.5H4M7.5 12.5V17.5C7.5 18.6046 8.39543 19.5 9.5 19.5H11M14 5.5H15.5C16.6046 5.5 17.5 6.39543 17.5 7.5V12.5M17.5 12.5H21M17.5 12.5V17.5C17.5 18.6046 16.6046 19.5 15.5 19.5H14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),LaunchIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"launch",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12 7.5H6.5V18.5H17.5V13M19.5 5.5L10.5 14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M14 5.5H19.5V11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),LeaveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"leave",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M14.5 15V18.5H5.5V6.5H14.5V10M9 12.5H21.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M18 9L21.5 12.5L18 16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),LemonIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"lemon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.6569 10.3431L6.41422 14.5858C7.58579 15.7574 9.12132 16.3431 10.6569 16.3431M10.6569 10.3431L14.8995 6.1005C16.0711 7.27208 16.6569 8.80761 16.6569 10.3431M10.6569 10.3431L10.6569 16.3431M10.6569 10.3431L16.6569 10.3431M10.6569 10.3431L14.8995 14.5858M14.8995 14.5858C13.7279 15.7574 12.1924 16.3431 10.6569 16.3431M14.8995 14.5858C16.0711 13.4142 16.6569 11.8787 16.6569 10.3431M16.3137 4.68629C19.4379 7.81049 19.4379 12.8758 16.3137 16C13.1895 19.1242 8.12419 19.1242 5 16L16.3137 4.68629Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),LinkIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"link",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 12.5L12.5 14C13.281 14.781 14.719 14.781 15.5 14L18.5 11C19.281 10.219 19.281 8.78105 18.5 8L18 7.5C17.2189 6.71895 15.781 6.71895 15 7.5L13 9.5M12 15.5L10 17.5C9.21895 18.281 7.78105 18.281 7 17.5L6.5 17C5.71895 16.219 5.71896 14.781 6.5 14L9.50001 11C10.2811 10.219 11.719 10.2189 12.5 11L14 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),LinkRemovedIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"link-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.5 11C19.281 10.219 19.281 8.78108 18.5 8.00003L18 7.50003C17.2189 6.71898 15.781 6.71898 15 7.50003L13 9.50003M15.5 14C14.7189 14.7811 13.281 14.7811 12.5 14M6.5 14C5.71895 14.7811 5.71894 16.219 6.49999 17L6.99999 17.5C7.78104 18.2811 9.21894 18.2811 9.99999 17.5L12 15.5M12.5 11C11.719 10.219 10.281 10.219 9.5 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),LockIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"lock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M15.5 11.5V8.5C15.5 6.5 14 5.5 12.5 5.5C11 5.5 9.5 6.5 9.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),LogoJsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"logo-js",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM12.5254 16.1572C12.5254 17.4189 11.7742 18.1536 10.4792 18.1536C9.24243 18.1536 8.49121 17.4189 8.45801 16.2942V16.261H9.67407V16.2859C9.69897 16.7466 9.9729 17.0703 10.4626 17.0703C10.9939 17.0703 11.272 16.7507 11.272 16.1489V12.011H12.5254V16.1572ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})}),LogoTsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"logo-ts",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM11.0769 18H9.82349V13.0444H8.02637V12.011H12.874V13.0444H11.0769V18ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})}),MasterDetailIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"master-detail",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7 9.5H10M11.5 6.5V18.5M7 12.5H10M13 9.5H18M7 15.5H10M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),MenuIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"menu",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M6 7.5H19M6 17.5H19M6 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),MobileDeviceIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"mobile-device",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M7.5 6.5C7.5 5.39543 8.39543 4.5 9.5 4.5H15.5C16.6046 4.5 17.5 5.39543 17.5 6.5V18.5C17.5 19.6046 16.6046 20.5 15.5 20.5H9.5C8.39543 20.5 7.5 19.6046 7.5 18.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M13.5 17.5C13.5 18.0523 13.0523 18.5 12.5 18.5C11.9477 18.5 11.5 18.0523 11.5 17.5C11.5 16.9477 11.9477 16.5 12.5 16.5C13.0523 16.5 13.5 16.9477 13.5 17.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),MoonIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"moon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M19.6065 16.1775C18.9417 16.387 18.234 16.5 17.5 16.5C13.634 16.5 10.5 13.366 10.5 9.5C10.5 7.54163 11.3042 5.77109 12.6004 4.50062C12.567 4.50021 12.5335 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C15.5924 20.5 18.275 18.7454 19.6065 16.1775Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),NumberIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"number",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0165 17.6336H3.83636V16.4336H21.0165V17.6336Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M7.09808 13.3967V7.508H5.74066L3.83636 8.78241V10.091L5.65277 8.88495H5.74066V13.3967H3.84125V14.5539H8.89984V13.3967H7.09808Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M9.81781 9.63202V9.66132H11.1069V9.62714C11.1069 8.95331 11.5756 8.49432 12.2739 8.49432C12.9575 8.49432 13.4018 8.89471 13.4018 9.50507C13.4018 9.9787 13.1528 10.3498 12.1909 11.3117L9.89594 13.5822V14.5539H14.8618V13.3869H11.7807V13.299L13.1577 11.9855C14.3491 10.843 14.7543 10.1838 14.7543 9.41229C14.7543 8.19159 13.7729 7.36639 12.3178 7.36639C10.8383 7.36639 9.81781 8.28436 9.81781 9.63202Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M17.6694 11.4631H18.5092C19.3198 11.4631 19.8422 11.8683 19.8422 12.4982C19.8422 13.1183 19.3295 13.5139 18.5239 13.5139C17.767 13.5139 17.2592 13.133 17.2104 12.5324H15.9262C15.9897 13.8508 17.0248 14.6955 18.5629 14.6955C20.1401 14.6955 21.2192 13.841 21.2192 12.591C21.2192 11.6584 20.6528 11.0334 19.7006 10.9211V10.8332C20.4721 10.6769 20.9457 10.0666 20.9457 9.23651C20.9457 8.12323 19.9741 7.36639 18.5434 7.36639C17.0541 7.36639 16.1118 8.17694 16.0629 9.50018H17.2983C17.3422 8.88007 17.8061 8.48456 18.4995 8.48456C19.2075 8.48456 19.6567 8.85565 19.6567 9.44159C19.6567 10.0324 19.1977 10.4182 18.4946 10.4182H17.6694V11.4631Z",fill:"currentColor"})]})}),OkHandIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"ok-hand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M15.9957 11.5C14.8197 10.912 11.9957 9 10.4957 9C8.9957 9 5.17825 11.7674 6 13C7 14.5 9.15134 11.7256 10.4957 12C11.8401 12.2744 13 13.5 13 14.5C13 15.5 11.8401 16.939 10.4957 16.5C9.15134 16.061 8.58665 14.3415 7.4957 14C6.21272 13.5984 5.05843 14.6168 5.5 15.5C5.94157 16.3832 7.10688 17.6006 8.4957 19C9.74229 20.2561 11.9957 21.5 14.9957 20C17.9957 18.5 18.5 16.2498 18.5 13C18.5 11.5 13.7332 5.36875 11.9957 4.5C10.9957 4 10 5 10.9957 6.5C11.614 7.43149 13.5 9.27705 14 10.3751M15.5 8C15.5 8 15.3707 7.5 14.9957 6C14.4957 4 15.9957 3.5 16.4957 4.5C17.1281 5.76491 18.2872 10.9147 18.4957 13",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),OlistIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"olist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10 7.5H19M10 12.5H19M10 17.5H19M5 18.5H7.5L7 17.5L7.5 16.5H5M5 6.5H6.5V8.5M5 8.5H6.5M6.5 8.5H8M8 13.5H6L7 11.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),OverageIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"overage",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M18.5 11V6.5H14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M6.5 18.5L9 16L12 13L18.5 6.5M3 13.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),PackageIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"package",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 13V22M12.5 13L4.5 8M12.5 13L20.5 8M8.5 5.5L16.5 10.5M4.5 8L12.5 3L20.5 8V17L12.5 22L4.5 17V8Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PanelLeftIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"panel-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 6.5H19.5V18.5H10.5M10.5 6.5H5.5V18.5H10.5M10.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PanelRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"panel-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M14.5 6.5H19.5V18.5H14.5M14.5 6.5H5.5V18.5H14.5M14.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PauseIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"pause",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",stroke:"currentColor",strokeWidth:1.2}),(0,jsx_runtime.jsx)("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",stroke:"currentColor",strokeWidth:1.2})]})}),PinIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"pin",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 14 15.5 17.5 12.5 20.5C9.5 17.5 6.5 14 6.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M14 10.5C14 11.3284 13.3284 12 12.5 12C11.6716 12 11 11.3284 11 10.5C11 9.67157 11.6716 9 12.5 9C13.3284 9 14 9.67157 14 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),PinRemovedIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"pin-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7.39787 14C8.51075 16.2897 10.5054 18.5054 12.5 20.5C14.4946 18.5054 16.4892 16.2897 17.6021 14M6.52009 11C6.50681 10.8334 6.5 10.6667 6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 10.6667 18.4932 10.8334 18.4799 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PlayIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"play",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7.5 18.5V6.5L17.5 12.5L7.5 18.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PlugIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"plug",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M13.25 8.5L16.75 5M16.25 11.5L19.75 8M9.25 15.5L5.25 19.5M7.75 14L9.75 12C8.25 10 8.75 9 9.75 8C10.15 7.6 11.25 6.5 11.25 6.5L18.25 13.5C18.25 13.5 17.3825 14.3675 16.75 15C15.75 16 14.75 16.5 12.75 15L10.75 17L7.75 14Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PresentationIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"presentation",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 18H5.5V8.5H19.5V18H14.5M10.5 18L9 22M10.5 18H14.5M14.5 18L16 22M4.5 8.5H20.5V6.5H4.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ProjectsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"projects",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M21 17.5H14M17.5 14V21M4.5 14.5H10.5V20.5H4.5V14.5ZM14.5 4.5H20.5V10.5H14.5V4.5ZM4.5 4.5H10.5V10.5H4.5V4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),PublishIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"publish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M4.99997 5.50006H20M12.5 9.00005V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7.5 14L12.5 9.00006L17.5 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),ReadOnlyIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"read-only",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M15 7L18 10M10 12L7 15L6 19L10 18L13 15M12 10L17 5L20 8L15 13M19 19L5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),RedoIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"redo",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19 9.5L10 9.5C7.51472 9.5 5.5 11.5147 5.5 14C5.5 16.4853 7.51472 18.5 10 18.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M15 13.5L19 9.5L15 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RefreshIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"refresh",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19.5 13.5C19.5 17.366 16.366 20.5 12.5 20.5C8.63401 20.5 5.5 17.366 5.5 13.5C5.5 9.63401 8.63401 6.5 12.5 6.5H15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11.5 10.5L15.5 6.5L11.5 2.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RemoveCircleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"remove-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 12.4H17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),RemoveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ResetIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"reset",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M4.56189 13.5L4.14285 13.9294C4.25676 14.0406 4.41017 14.1019 4.56932 14.1C4.72847 14.098 4.88032 14.0329 4.99144 13.9189L4.56189 13.5ZM9.92427 15.9243L15.9243 9.92427L15.0757 9.07574L9.07574 15.0757L9.92427 15.9243ZM9.07574 9.92426L15.0757 15.9243L15.9243 15.0757L9.92426 9.07574L9.07574 9.92426ZM19.9 12.5C19.9 16.5869 16.5869 19.9 12.5 19.9V21.1C17.2496 21.1 21.1 17.2496 21.1 12.5H19.9ZM5.1 12.5C5.1 8.41309 8.41309 5.1 12.5 5.1V3.9C7.75035 3.9 3.9 7.75035 3.9 12.5H5.1ZM12.5 5.1C16.5869 5.1 19.9 8.41309 19.9 12.5H21.1C21.1 7.75035 17.2496 3.9 12.5 3.9V5.1ZM5.15728 13.4258C5.1195 13.1227 5.1 12.8138 5.1 12.5H3.9C3.9 12.8635 3.92259 13.2221 3.9665 13.5742L5.15728 13.4258ZM12.5 19.9C9.9571 19.9 7.71347 18.6179 6.38048 16.6621L5.38888 17.3379C6.93584 19.6076 9.54355 21.1 12.5 21.1V19.9ZM4.99144 13.9189L7.42955 11.4189L6.57045 10.5811L4.13235 13.0811L4.99144 13.9189ZM4.98094 13.0706L2.41905 10.5706L1.58095 11.4294L4.14285 13.9294L4.98094 13.0706Z",fill:"currentColor"})})}),RestoreIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"restore",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M5.88468 17C7.32466 19.1128 9.75033 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5V13.5M12.5 8V12.5L15.5 15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7 11L4.5 13.5L2 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RetrieveIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"retrieve",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M16 14L12.5 10.5L9 14M5.5 7.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M12.5 10.5L12.5 17.5M19.5 7.5V19.5H5.5V7.5L7.5 5.5H17.5L19.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RetryIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"retry",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19 9.5L10 9.5C7.51472 9.5 5.5 11.5147 5.5 14C5.5 16.4853 7.51472 18.5 10 18.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M15 13.5L19 9.5L15 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RevertIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"revert",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6 9.5L15 9.5C17.4853 9.5 19.5 11.5147 19.5 14C19.5 16.4853 17.4853 18.5 15 18.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10 13.5L6 9.5L10 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),RobotIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"robot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 15.5V17.5M12.5 8.5V6.5M12.5 6.5C13.3284 6.5 14 5.82843 14 5C14 4.17157 13.3284 3.5 12.5 3.5C11.6716 3.5 11 4.17157 11 5C11 5.82843 11.6716 6.5 12.5 6.5ZM20.5 20.5V19.5C20.5 18.3954 19.6046 17.5 18.5 17.5H6.5C5.39543 17.5 4.5 18.3954 4.5 19.5V20.5H20.5ZM11.5 12C11.5 12.5523 11.0523 13 10.5 13C9.94772 13 9.5 12.5523 9.5 12C9.5 11.4477 9.94772 11 10.5 11C11.0523 11 11.5 11.4477 11.5 12ZM15.5 12C15.5 12.5523 15.0523 13 14.5 13C13.9477 13 13.5 12.5523 13.5 12C13.5 11.4477 13.9477 11 14.5 11C15.0523 11 15.5 11.4477 15.5 12ZM8.5 15.5H16.5C17.6046 15.5 18.5 14.6046 18.5 13.5V10.5C18.5 9.39543 17.6046 8.5 16.5 8.5H8.5C7.39543 8.5 6.5 9.39543 6.5 10.5V13.5C6.5 14.6046 7.39543 15.5 8.5 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),RocketIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"rocket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 20.5L15.5 14M11 9.49999L4.5 12.5M9 14C9 14 7.54688 14.9531 6.5 16C5.5 17 4.5 20.5 4.5 20.5C4.5 20.5 8 19.5 9 18.5C10 17.5 11 16 11 16M9 14C9 14 10.1 9.9 12.5 7.5C15.5 4.5 20.5 4.5 20.5 4.5C20.5 4.5 20.5 9.5 17.5 12.5C15.7492 14.2508 11 16 11 16L9 14ZM16.5 9.99999C16.5 10.8284 15.8284 11.5 15 11.5C14.1716 11.5 13.5 10.8284 13.5 9.99999C13.5 9.17157 14.1716 8.49999 15 8.49999C15.8284 8.49999 16.5 9.17157 16.5 9.99999Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SchemaIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"schema",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 9.5V12.5M12.5 12.5H8.5V15.5M12.5 12.5H16.5V15.5M10.5 5.5H14.5V9.5H10.5V5.5ZM6.5 15.5H10.5V19.5H6.5V15.5ZM14.5 15.5H18.5V19.5H14.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SearchIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"search",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M15.0355 15.0355L20 20M16.5 11.5C16.5 14.2614 14.2614 16.5 11.5 16.5C8.73858 16.5 6.5 14.2614 6.5 11.5C6.5 8.73858 8.73858 6.5 11.5 6.5C14.2614 6.5 16.5 8.73858 16.5 11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SelectIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"select",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M16.5 15.5L12.5 19.5L8.5 15.5M8.5 9.5L12.5 5.5L16.5 9.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ShareIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"share",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M15 10.5H18.5V19.5H6.5L6.5 10.5H10M12.5 16V3.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M9 7L12.5 3.5L16 7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),SortIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"sort",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.5 18.5V6M16.5 19V6.5M12 15L8.5 18.5L5 15M13 10L16.5 6.5L20 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SparkleIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"sparkle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 10.5C8.5 12.5 5 12.5 5 12.5C5 12.5 8.5 12.5 10.5 14.5C12.5 16.5 12.5 20 12.5 20C12.5 20 12.5 16.5 14.5 14.5C16.5 12.5 20 12.5 20 12.5C20 12.5 16.5 12.5 14.5 10.5C12.5 8.5 12.5 5 12.5 5C12.5 5 12.5 8.5 10.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SparklesIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"sparkles",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M11 3.5V5M11 5V6.5M11 5H12.5M11 5H9.5M9.5 15C9.5 15 12.2308 14.7692 13.5 13.5C14.7692 12.2308 15 9.5 15 9.5C15 9.5 15.2308 12.2308 16.5 13.5C17.7692 14.7692 20.5 15 20.5 15C20.5 15 17.7692 15.2308 16.5 16.5C15.2308 17.7692 15 20.5 15 20.5C15 20.5 14.7692 17.7692 13.5 16.5C12.2308 15.2308 9.5 15 9.5 15ZM4.5 10C4.5 10 5.72308 9.87692 6.3 9.3C6.87692 8.72308 7 7.5 7 7.5C7 7.5 7.12308 8.72308 7.7 9.3C8.27692 9.87692 9.5 10 9.5 10C9.5 10 8.27692 10.1231 7.7 10.7C7.12308 11.2769 7 12.5 7 12.5C7 12.5 6.87692 11.2769 6.3 10.7C5.72308 10.1231 4.5 10 4.5 10Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})})}),SpinnerIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SplitHorizontalIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"split-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M19.5 10.5V20.5H5.5V10.5M19.5 10.5H5.5M19.5 10.5V4.5H5.5V10.5M12.5 13V15.5M12.5 18V15.5M12.5 15.5H15M12.5 15.5H10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SplitVerticalIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"split-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10.5 5.5V19.5M13 12.5H15.5M18 12.5H15.5M15.5 12.5V15M15.5 12.5V10M4.5 5.5H20.5V19.5H4.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SquareIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"square",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("rect",{x:5.5,y:5.5,width:14,height:14,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),StackCompactIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"stack-compact",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 15.5V18.5H19.5V15.5M5.5 15.5H19.5M5.5 15.5V9.5M19.5 15.5V9.5M5.5 9.5V6.5H19.5V9.5M5.5 9.5H19.5M5.5 12.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),StackIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"stack",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5.5 12.5H19.5M5.5 18.5H19.5V6.5H5.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),StarIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"star",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M13 4L15.2747 9.8691L21.5595 10.2188L16.6806 14.1959L18.2901 20.2812L13 16.87L7.70993 20.2812L9.31941 14.1959L4.44049 10.2188L10.7253 9.8691L13 4Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),StopIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"stop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("rect",{x:7.5,y:7.5,width:10,height:10,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),StrikethroughIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"strikethrough",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.5656 7.73438C11.0656 7.73438 10.0734 8.48438 10.0734 9.625C10.0734 10.2317 10.3649 10.6613 11.0519 11H8.90358C8.71703 10.6199 8.62813 10.1801 8.62813 9.67188C8.62813 7.75781 10.2297 6.46094 12.6125 6.46094C14.7922 6.46094 16.4172 7.75781 16.5344 9.57812H15.1203C14.925 8.42188 13.9719 7.73438 12.5656 7.73438Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M12.4875 18.2656C10.0969 18.2656 8.44844 17 8.3 15.0547H9.72188C9.89375 16.2344 11.0188 16.9844 12.6203 16.9844C14.1359 16.9844 15.2531 16.1641 15.2531 15.0469C15.2531 14.6375 15.1255 14.292 14.8589 14H16.5912C16.6638 14.266 16.6984 14.5566 16.6984 14.875C16.6984 16.9453 15.0656 18.2656 12.4875 18.2656Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M7 13.1H18V11.9H7V13.1Z",fill:"currentColor"})]})}),StringIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"string",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M11.6748 15.5227H13.1855L9.87842 6.36304H8.34863L5.0415 15.5227H6.50146L7.3457 13.0916H10.8369L11.6748 15.5227ZM9.04053 8.02612H9.14844L10.4751 11.8982H7.70752L9.04053 8.02612Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M16.8101 14.488C16.0674 14.488 15.5278 14.1262 15.5278 13.5042C15.5278 12.8948 15.9595 12.571 16.9116 12.5076L18.6001 12.3997V12.9773C18.6001 13.8342 17.8384 14.488 16.8101 14.488ZM16.4609 15.637C17.3687 15.637 18.124 15.2434 18.5366 14.5515H18.6445V15.5227H19.9585V10.8C19.9585 9.34009 18.981 8.47681 17.248 8.47681C15.6802 8.47681 14.563 9.23853 14.4233 10.4255H15.7437C15.896 9.93677 16.4229 9.65747 17.1846 9.65747C18.1177 9.65747 18.6001 10.0701 18.6001 10.8V11.3967L16.7275 11.5046C15.0835 11.6062 14.1567 12.3235 14.1567 13.5676C14.1567 14.8308 15.1279 15.637 16.4609 15.637Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9585 18.637L5.0415 18.637V17.437L19.9585 17.437V18.637Z",fill:"currentColor"})]})}),SunIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"sun",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M19 12.5H22M3 12.5H6M12.5 6V3M12.5 22V19M17.3891 7.61091L19.5104 5.48959M5.48959 19.5104L7.61091 17.3891M7.61091 7.61091L5.48959 5.48959M19.5104 19.5104L17.3891 17.3891M16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),SyncIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"sync",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M13.5 4.5H12.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 15.6631 6.33576 18.3975 9 19.6958M11.5 20.5H12.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 9.33688 18.6642 6.60253 16 5.30423",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M14 17.5619L11.5 20.5L14.5 23.0619M11 7.43811L13.5 4.50001L10.5 1.93811",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TabletDeviceIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"tablet-device",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M5.5 5.5C5.5 4.94772 5.94772 4.5 6.5 4.5H18.5C19.0523 4.5 19.5 4.94772 19.5 5.5V19.5C19.5 20.0523 19.0523 20.5 18.5 20.5H6.5C5.94772 20.5 5.5 20.0523 5.5 19.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M13 18C13 18.2761 12.7761 18.5 12.5 18.5C12.2239 18.5 12 18.2761 12 18C12 17.7239 12.2239 17.5 12.5 17.5C12.7761 17.5 13 17.7239 13 18Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TagIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"tag",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.5 20L5 20L5 12.5L12.5 5L20 12.5L12.5 20Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M11 15.5C11 16.3284 10.3284 17 9.5 17C8.67157 17 8 16.3284 8 15.5C8 14.6716 8.67157 14 9.5 14C10.3284 14 11 14.6716 11 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TagsIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"tags",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.1562 7.93179L13.9717 6.11633L20.3553 12.5L13.9717 18.8836L10.6855 18.8836M11.0283 18.8836L17.4119 12.5L11.0283 6.11633L4.64462 12.5L4.64462 18.8836L11.0283 18.8836ZM9.75153 15.0534C9.75153 15.7585 9.17992 16.3302 8.47481 16.3302C7.76969 16.3302 7.19808 15.7585 7.19808 15.0534C7.19808 14.3483 7.76969 13.7767 8.47481 13.7767C9.17992 13.7767 9.75153 14.3483 9.75153 15.0534Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TaskIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"task",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M4.88281 10.75V19.75H20.8828V10.75M4.88281 10.75V5.75H20.8828V10.75M4.88281 10.75H12.8828H20.8828M17.8828 8.25V3.25M7.88281 8.25V3.25",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10.083 14.7358L12.083 16.7358L15.683 13.1758",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TerminalIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"terminal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8.5 9.5L11.5 12.5L8.5 15.5M13 15.5H17M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TextIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"text",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M7.5 9V6.5H17.5V9M12.5 18.5V6.5M10 18.5H15",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ThLargeIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"th-large",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 6.5V12.5M12.5 12.5V18.5M12.5 12.5H20.5M12.5 12.5H4.5M4.5 6.5H20.5V18.5H4.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ThListIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"th-list",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 6.5V10.5M9.5 10.5V14.5M9.5 10.5H20.5M9.5 10.5H4.5M9.5 14.5V18.5M9.5 14.5H20.5M9.5 14.5H4.5M4.5 6.5H20.5V18.5H4.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TiersIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"tiers",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M16.5 14.5L20.5 16.5L12.5 20.5L4.5 16.5L8.5 14.5M16.5 10.5L20.5 12.5L12.5 16.5L4.5 12.5L8.5 10.5M12.5 12.5L20.5 8.5L12.5 4.5L4.5 8.5L12.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),ToggleArrowRightIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"toggle-arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M10 16.5V8.5L16 12.5L10 16.5Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})}),TokenIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"token",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17.5711 12.5C17.5711 15.2614 15.3325 17.5 12.5711 17.5M7.57107 12.5C7.57107 9.73858 9.80964 7.5 12.5711 7.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TransferIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"transfer",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M19.5 16.5H6M5.5 8.5L19 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M16 13L19.5 16.5L16 20M9 12L5.5 8.5L9 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TranslateIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"translate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4 5.4H4V6.6H13.2189C13.1612 6.78478 13.0895 6.99578 13.0025 7.22211C12.7032 8.00031 12.2402 8.91125 11.5757 9.57574L10 11.1515L9.42426 10.5757C8.72102 9.8725 8.25297 9.16987 7.96199 8.64611C7.81668 8.38455 7.71617 8.16874 7.65305 8.02146C7.62151 7.94787 7.59937 7.89154 7.5857 7.85534C7.57886 7.83725 7.57415 7.8242 7.57144 7.81657L7.56886 7.80922C7.56886 7.80922 7.56921 7.81026 7 8C6.43079 8.18974 6.43091 8.19009 6.43091 8.19009L6.43133 8.19135L6.43206 8.19351L6.4341 8.19948L6.44052 8.21786C6.44587 8.23292 6.45336 8.25357 6.46313 8.27942C6.48266 8.33112 6.5113 8.40369 6.55008 8.49416C6.62758 8.67501 6.74582 8.92795 6.91301 9.22889C7.24703 9.83013 7.77898 10.6275 8.57574 11.4243L9.15147 12L4.57964 16.5718L4.57655 16.5749L4.57577 16.5757L5.4243 17.4242L5.42688 17.4216L10.0368 12.8117L12.6159 14.9609L13.3841 14.0391L10.8888 11.9597L12.4243 10.4243C13.2598 9.58875 13.7968 8.49969 14.1225 7.65289C14.2818 7.23863 14.395 6.87072 14.4696 6.6H16V5.4H10.6V4H9.4V5.4ZM17.4405 10L21.553 19.7672H20.2509L19.1279 17.1H14.8721L13.7491 19.7672H12.447L16.5595 10H17.4405ZM15.3773 15.9H18.6227L17 12.0462L15.3773 15.9Z",fill:"currentColor"})})}),TrashIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"trash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5 6.5H20M10 6.5V4.5C10 3.94772 10.4477 3.5 11 3.5H14C14.5523 3.5 15 3.94772 15 4.5V6.5M12.5 9V17M15.5 9L15 17M9.5 9L10 17M18.5 6.5L17.571 18.5767C17.5309 19.0977 17.0965 19.5 16.574 19.5H8.42603C7.90349 19.5 7.46905 19.0977 7.42898 18.5767L6.5 6.5H18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TrendUpwardIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"trend-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M4.5 18.5L11.5 10.5L13.5 14.5L20.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M20.5 11V6.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),TriangleOutlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"triangle-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M20.5 18.5H4.5L12.5 5.5L20.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TrolleyIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"trolley",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 17.5L5.81763 6.26772C5.71013 5.81757 5.30779 5.5 4.84498 5.5H3M8 17.5H17M8 17.5C8.82843 17.5 9.5 18.1716 9.5 19C9.5 19.8284 8.82843 20.5 8 20.5C7.17157 20.5 6.5 19.8284 6.5 19C6.5 18.1716 7.17157 17.5 8 17.5ZM17 17.5C17.8284 17.5 18.5 18.1716 18.5 19C18.5 19.8284 17.8284 20.5 17 20.5C16.1716 20.5 15.5 19.8284 15.5 19C15.5 18.1716 16.1716 17.5 17 17.5ZM7.78357 14.5H17.5L19 7.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TruncateIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"truncate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M5 12.5H20M8.5 19.5L12.5 15.5L16.5 19.5M16.5 5.5L12.5 9.5L8.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),TwitterIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"twitter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M18.8738 6.65751C18.1994 5.9447 17.2445 5.5 16.1857 5.5C14.1423 5.5 12.4857 7.15655 12.4857 9.2C12.4857 9.55263 12.535 9.89374 12.6272 10.2168C7.0826 9.56422 4.55703 6.02857 4.55703 6.02857C4.55703 6.02857 4.02846 9.2 6.14274 11.3143C5.08571 11.3143 4.55703 10.7857 4.55703 10.7857C4.55703 10.7857 4.55703 13.4286 7.19989 14.4857C6.67143 15.0143 5.61417 14.4857 5.61417 14.4857C5.97533 15.9303 7.45606 16.8562 8.82133 17.1358C6.67298 19.1676 3.5 18.7143 3.5 18.7143C5.14562 19.771 7.21334 20.3 9.31429 20.3C16.1214 20.3 19.8162 15.6315 19.8848 9.37762C20.8722 8.58943 22 7.08571 22 7.08571C22 7.08571 21.277 7.45458 19.6913 7.98315C21.277 6.92601 21.4714 5.5 21.4714 5.5C21.4714 5.5 20.4135 6.55789 18.8738 6.65751Z",fill:"currentColor"})})}),UlistIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"ulist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M7.10153 17.5001C7.10153 17.8323 6.83221 18.1016 6.5 18.1016C6.16778 18.1016 5.89847 17.8323 5.89847 17.5001C5.89847 17.1678 6.16778 16.8985 6.5 16.8985C6.83221 16.8985 7.10153 17.1678 7.10153 17.5001Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7.10153 7.5C7.10153 7.83221 6.83221 8.10153 6.5 8.10153C6.16778 8.10153 5.89847 7.83221 5.89847 7.5C5.89847 7.16778 6.16778 6.89847 6.5 6.89847C6.83221 6.89847 7.10153 7.16778 7.10153 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7.10153 12.5C7.10153 12.8322 6.83221 13.1015 6.5 13.1015C6.16778 13.1015 5.89847 12.8322 5.89847 12.5C5.89847 12.1678 6.16778 11.8985 6.5 11.8985C6.83221 11.8985 7.10153 12.1678 7.10153 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10 7.5H19M10 17.5H19M10 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),UnderlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"underline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M9.52791 7.11407H8.17V14.2582C8.17 16.5817 9.79195 18.2565 12.4927 18.2565C15.1934 18.2565 16.8154 16.5817 16.8154 14.2582V7.11407H15.4574V14.1677C15.4574 15.8122 14.3787 17.0042 12.4927 17.0042C10.6067 17.0042 9.52791 15.8122 9.52791 14.1677V7.11407Z",fill:"currentColor"}),(0,jsx_runtime.jsx)("path",{d:"M7 20.5H18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),UndoIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"undo",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M6 9.5L15 9.5C17.4853 9.5 19.5 11.5147 19.5 14C19.5 16.4853 17.4853 18.5 15 18.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M10 13.5L6 9.5L10 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),UnknownIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"unknown",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M5.5 5.5H19.5V19.5H5.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),UnlockIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"unlock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M9.5 11.5V8.5C9.5 6.5 8 5.5 6.5 5.5C5 5.5 3.5 6.5 3.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),UnpublishIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"unpublish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M5 19.5H20M12.5 16V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),UploadIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsxs)("svg",{"data-sanity-icon":"upload",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,jsx_runtime.jsx)("path",{d:"M12.5 6.00003V15.5M5.5 15.5H19.5V19.5H5.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),(0,jsx_runtime.jsx)("path",{d:"M7.5 11L12.5 6.00003L17.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})}),UserIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"user",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M8 14.5C7 15 5.5 16 5.5 19.5H19.5C19.5 16 18.3416 15.1708 17 14.5C16 14 14 14 14 12.5C14 11 15 10.25 15 8.25C15 6.25 14 5.25 12.5 5.25C11 5.25 10 6.25 10 8.25C10 10.25 11 11 11 12.5C11 14 9 14 8 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),UsersIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"users",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17.5 18.5H21.5C21.5 15 20.8416 14.1708 19.5 13.5C18.5 13 16.5 12.5 16.5 11C16.5 9.5 17.5 9 17.5 7C17.5 5 16.5 4 15 4C13.6628 4 12.723 4.79472 12.5347 6.38415M4.5 20.5C4.5 17 5.5 16 6.5 15.5C7.5 15 9.5 14.5 9.5 13C9.5 11.5 8.5 11 8.5 9C8.5 7 9.5 6 11 6C12.5 6 13.5 7 13.5 9C13.5 11 12.5 11.5 12.5 13C12.5 14.5 14.5 15 15.5 15.5C16.8416 16.1708 17.5 17 17.5 20.5H4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),WarningFilledIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"warning-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.741 5.12637C13.7357 3.41737 11.2643 3.41737 10.259 5.12637L3.7558 16.1818C2.73624 17.915 3.98595 20.1 5.99683 20.1H19.0032C21.014 20.1 22.2637 17.915 21.2442 16.1818L14.741 5.12637ZM11.9 9V13H13.1V9H11.9ZM13.1 16V14.5H11.9V16H13.1Z",fill:"currentColor"})})}),WarningOutlineIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"warning-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M12.5 9V13M12.5 16V14.5M14.2239 5.43058L20.727 16.486C21.5113 17.8192 20.55 19.5 19.0032 19.5H5.99683C4.45 19.5 3.48869 17.8192 4.27297 16.486L10.7761 5.43058C11.5494 4.11596 13.4506 4.11596 14.2239 5.43058Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),WrenchIcon=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)("svg",{"data-sanity-icon":"wrench",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,jsx_runtime.jsx)("path",{d:"M17.0407 5.14624L17.4649 5.57051C17.6166 5.41887 17.6757 5.19783 17.6202 4.99071C17.5646 4.78359 17.4027 4.62189 17.1955 4.56656L17.0407 5.14624ZM14.4013 7.7856L13.977 7.36134C13.8288 7.50959 13.7687 7.72447 13.8185 7.92813L14.4013 7.7856ZM12.8778 6.26211L12.4535 5.83784V5.83784L12.8778 6.26211ZM11.8309 10.6568L12.2552 11.0811C12.4152 10.9211 12.4716 10.6847 12.401 10.4697L11.8309 10.6568ZM5.63925 16.8485L5.21498 16.4242H5.21498L5.63925 16.8485ZM5.63925 19.935L6.06351 19.5108H6.06351L5.63925 19.935ZM8.72581 19.935L9.15007 20.3593L8.72581 19.935ZM15.1184 13.5425L15.2301 12.953C15.0351 12.916 14.8344 12.9779 14.6941 13.1182L15.1184 13.5425ZM18.9718 12.3561L19.3961 12.7804L18.9718 12.3561ZM20.0877 8.19324L20.6674 8.03843C20.612 7.83125 20.4503 7.66934 20.2432 7.61375C20.0361 7.55816 19.815 7.61734 19.6634 7.76898L20.0877 8.19324ZM17.4483 10.8326L17.3058 11.4154C17.5094 11.4652 17.7243 11.4051 17.8726 11.2569L17.4483 10.8326ZM15 10.2339L14.4172 10.3764C14.4704 10.5938 14.6401 10.7635 14.8575 10.8167L15 10.2339ZM16.6164 4.72198L13.977 7.36134L14.8256 8.20986L17.4649 5.57051L16.6164 4.72198ZM13.3021 6.68637C14.2723 5.71612 15.6467 5.39501 16.8859 5.72593L17.1955 4.56656C15.5595 4.12966 13.7389 4.55245 12.4535 5.83784L13.3021 6.68637ZM12.401 10.4697C11.9779 9.18109 12.2794 7.70907 13.3021 6.68637L12.4535 5.83784C11.0985 7.19284 10.7021 9.14218 11.2608 10.844L12.401 10.4697ZM11.4066 10.2326L5.21498 16.4242L6.06351 17.2727L12.2552 11.0811L11.4066 10.2326ZM5.21498 16.4242C4.12834 17.5109 4.12834 19.2727 5.21498 20.3593L6.06351 19.5108C5.4455 18.8928 5.4455 17.8908 6.06351 17.2727L5.21498 16.4242ZM5.21498 20.3593C6.30163 21.446 8.06343 21.446 9.15007 20.3593L8.30155 19.5108C7.68353 20.1288 6.68153 20.1288 6.06351 19.5108L5.21498 20.3593ZM9.15007 20.3593L15.5426 13.9668L14.6941 13.1182L8.30155 19.5108L9.15007 20.3593ZM18.5475 11.9318C17.6463 12.8331 16.3968 13.1742 15.2301 12.953L15.0066 14.132C16.5466 14.4239 18.2023 13.9741 19.3961 12.7804L18.5475 11.9318ZM19.508 8.34804C19.8389 9.58721 19.5178 10.9616 18.5475 11.9318L19.3961 12.7804C20.6815 11.495 21.1043 9.67445 20.6674 8.03843L19.508 8.34804ZM17.8726 11.2569L20.5119 8.6175L19.6634 7.76898L17.024 10.4083L17.8726 11.2569ZM14.8575 10.8167L17.3058 11.4154L17.5908 10.2498L15.1426 9.65106L14.8575 10.8167ZM13.8185 7.92813L14.4172 10.3764L15.5829 10.0914L14.9841 7.64307L13.8185 7.92813Z",fill:"currentColor"})})}),icons={"access-denied":AccessDeniedIcon,activity:ActivityIcon,"add-circle":AddCircleIcon,"add-comment":AddCommentIcon,add:AddIcon,api:ApiIcon,archive:ArchiveIcon,"arrow-down":ArrowDownIcon,"arrow-left":ArrowLeftIcon,"arrow-right":ArrowRightIcon,"arrow-top-right":ArrowTopRightIcon,"arrow-up":ArrowUpIcon,asterisk:AsteriskIcon,"bar-chart":BarChartIcon,basket:BasketIcon,bell:BellIcon,bill:BillIcon,"binary-document":BinaryDocumentIcon,"block-content":BlockContentIcon,"block-element":BlockElementIcon,blockquote:BlockquoteIcon,bold:BoldIcon,bolt:BoltIcon,book:BookIcon,bottle:BottleIcon,"bulb-filled":BulbFilledIcon,"bulb-outline":BulbOutlineIcon,calendar:CalendarIcon,case:CaseIcon,"chart-upward":ChartUpwardIcon,"checkmark-circle":CheckmarkCircleIcon,checkmark:CheckmarkIcon,"chevron-down":ChevronDownIcon,"chevron-left":ChevronLeftIcon,"chevron-right":dist_ChevronRightIcon,"chevron-up":ChevronUpIcon,circle:CircleIcon,clipboard:ClipboardIcon,"clipboard-image":ClipboardImageIcon,clock:ClockIcon,"close-circle":CloseCircleIcon,close:dist_CloseIcon,"code-block":CodeBlockIcon,code:CodeIcon,cog:CogIcon,collapse:CollapseIcon,"color-wheel":ColorWheelIcon,comment:CommentIcon,component:ComponentIcon,compose:ComposeIcon,confetti:ConfettiIcon,controls:ControlsIcon,copy:CopyIcon,"credit-card":CreditCardIcon,crop:CropIcon,cube:CubeIcon,dashboard:DashboardIcon,database:DatabaseIcon,desktop:DesktopIcon,diamond:DiamondIcon,document:DocumentIcon,"document-pdf":DocumentPdfIcon,"document-remove":DocumentRemoveIcon,"document-sheet":DocumentSheetIcon,"document-text":DocumentTextIcon,"document-video":DocumentVideoIcon,"document-word":DocumentWordIcon,"document-zip":DocumentZipIcon,documents:DocumentsIcon,dot:DotIcon,"double-chevron-down":DoubleChevronDownIcon,"double-chevron-left":DoubleChevronLeftIcon,"double-chevron-right":DoubleChevronRightIcon,"double-chevron-up":DoubleChevronUpIcon,download:DownloadIcon,"drag-handle":DragHandleIcon,drop:DropIcon,"earth-americas":EarthAmericasIcon,"earth-globe":EarthGlobeIcon,edit:EditIcon,"ellipsis-horizontal":EllipsisHorizontalIcon,"ellipsis-vertical":EllipsisVerticalIcon,enter:EnterIcon,"enter-right":EnterRightIcon,envelope:EnvelopeIcon,equal:EqualIcon,"error-filled":ErrorFilledIcon,"error-outline":ErrorOutlineIcon,expand:ExpandIcon,"eye-closed":EyeClosedIcon,"eye-open":EyeOpenIcon,filter:FilterIcon,folder:FolderIcon,generate:GenerateIcon,groq:GroqIcon,hash:HashIcon,"heart-filled":HeartFilledIcon,heart:HeartIcon,"help-circle":HelpCircleIcon,highlight:HighlightIcon,home:HomeIcon,"ice-cream":IceCreamIcon,image:ImageIcon,"image-remove":ImageRemoveIcon,images:ImagesIcon,"info-filled":InfoFilledIcon,"info-outline":InfoOutlineIcon,"inline-element":InlineElementIcon,inline:InlineIcon,"insert-above":InsertAboveIcon,"insert-below":InsertBelowIcon,italic:ItalicIcon,joystick:JoystickIcon,json:JsonIcon,launch:LaunchIcon,leave:LeaveIcon,lemon:LemonIcon,link:LinkIcon,"link-removed":LinkRemovedIcon,lock:LockIcon,"logo-js":LogoJsIcon,"logo-ts":LogoTsIcon,"master-detail":MasterDetailIcon,menu:MenuIcon,"mobile-device":MobileDeviceIcon,moon:MoonIcon,number:NumberIcon,"ok-hand":OkHandIcon,olist:OlistIcon,overage:OverageIcon,package:PackageIcon,"panel-left":PanelLeftIcon,"panel-right":PanelRightIcon,pause:PauseIcon,pin:PinIcon,"pin-removed":PinRemovedIcon,play:PlayIcon,plug:PlugIcon,presentation:PresentationIcon,projects:ProjectsIcon,publish:PublishIcon,"read-only":ReadOnlyIcon,redo:RedoIcon,refresh:RefreshIcon,"remove-circle":RemoveCircleIcon,remove:RemoveIcon,reset:ResetIcon,restore:RestoreIcon,retrieve:RetrieveIcon,retry:RetryIcon,revert:RevertIcon,robot:RobotIcon,rocket:RocketIcon,schema:SchemaIcon,search:SearchIcon,select:SelectIcon,share:ShareIcon,sort:SortIcon,sparkle:SparkleIcon,sparkles:SparklesIcon,spinner:SpinnerIcon,"split-horizontal":SplitHorizontalIcon,"split-vertical":SplitVerticalIcon,square:SquareIcon,"stack-compact":StackCompactIcon,stack:StackIcon,star:StarIcon,stop:StopIcon,strikethrough:StrikethroughIcon,string:StringIcon,sun:SunIcon,sync:SyncIcon,"tablet-device":TabletDeviceIcon,tag:TagIcon,tags:TagsIcon,task:TaskIcon,terminal:TerminalIcon,text:TextIcon,"th-large":ThLargeIcon,"th-list":ThListIcon,tiers:TiersIcon,"toggle-arrow-right":ToggleArrowRightIcon,token:TokenIcon,transfer:TransferIcon,translate:TranslateIcon,trash:TrashIcon,"trend-upward":TrendUpwardIcon,"triangle-outline":TriangleOutlineIcon,trolley:TrolleyIcon,truncate:TruncateIcon,twitter:TwitterIcon,ulist:UlistIcon,underline:UnderlineIcon,undo:UndoIcon,unknown:UnknownIcon,unlock:UnlockIcon,unpublish:UnpublishIcon,upload:UploadIcon,user:UserIcon,users:UsersIcon,"warning-filled":WarningFilledIcon,"warning-outline":WarningOutlineIcon,wrench:WrenchIcon},Icon=(0,external_react_.forwardRef)(function(e,t){const{symbol:n,...r}=e,o=icons[n];return o?(0,external_react_.createElement)(o,{...r,ref:t}):null});class DNTStorageAdapter{constructor(e){this.configStorage=e}async getFieldsForType(e){try{return await this.configStorage.getDNTFieldsForType(e)}catch(t){return console.error(`Failed to get DNT fields for type ${e}:`,t),{}}}async setFieldDNT(e,t,n){try{await this.configStorage.setDNTField(e,t,n),console.log(`Set DNT=${n} for ${e}.${t} (applies to all ${e} documents)`)}catch(n){throw console.error(`Failed to set DNT for ${e}.${t}:`,n),n}}async toggleFieldDNT(e,t){try{const n=await this.configStorage.toggleDNTField(e,t);return console.log(`Toggled DNT to ${n} for ${e}.${t} (applies to all ${e} documents)`),n}catch(n){throw console.error(`Failed to toggle DNT for ${e}.${t}:`,n),n}}async getFieldDNT(e,t){try{return await this.configStorage.getDNTFieldStatus(e,t)}catch(n){return console.error(`Failed to get DNT status for ${e}.${t}:`,n),!1}}async clearFieldsForType(e){try{await this.configStorage.clearDNTFieldsForType(e),console.log(`Cleared all DNT fields for type ${e}`)}catch(t){throw console.error(`Failed to clear DNT fields for type ${e}:`,t),t}}async getAllDNTFields(){try{return await this.configStorage.getAllDNTFields()}catch(e){return console.error("Failed to get all DNT fields:",e),{}}}async getPreferences(e){return console.warn("getPreferences(documentId) is deprecated. Use getFieldsForType(documentType) instead."),null}async savePreferences(e){console.warn("savePreferences is deprecated. Use setFieldDNT instead.");for(const[t,n]of Object.entries(e.fields))await this.setFieldDNT(e.documentType,t,n)}async clearPreferences(e){console.warn("clearPreferences(documentId) is deprecated. Use clearFieldsForType(documentType) instead.")}}class LegacyDNTStorageAdapter{getStorageKey(e){return`${LegacyDNTStorageAdapter.STORAGE_KEY_PREFIX}${e}`}async getPreferences(e){try{const t=this.getStorageKey(e),n=localStorage.getItem(t);return n?JSON.parse(n):null}catch(t){return console.error(`Failed to get legacy DNT preferences for ${e}:`,t),null}}async savePreferences(e){try{const t=this.getStorageKey(e.documentId),n={...e,updatedAt:(new Date).toISOString()};localStorage.setItem(t,JSON.stringify(n))}catch(e){throw console.error("Failed to save legacy DNT preferences:",e),e}}async clearPreferences(e){try{const t=this.getStorageKey(e);localStorage.removeItem(t)}catch(e){throw console.error("Failed to clear legacy DNT preferences:",e),e}}async migrateToUnified(e,t,n){const r=await this.getPreferences(t);if(r){console.log(`Migrating DNT preferences for ${t} (${n}) to unified config...`);for(const[t,o]of Object.entries(r.fields))await e.setDNTField(n,t,o);await this.clearPreferences(t),console.log(`Migration complete for ${t}`)}}}LegacyDNTStorageAdapter.STORAGE_KEY_PREFIX="sanity-translation-dnt-";const UNIFIED_CONFIG_DOC_ID="sanity-translation-plugin.config",UNIFIED_CONFIG_DOC_TYPE="EL_PluginConfiguration";class UnifiedConfigStorage{constructor(e){this.client=e}convertDNTArrayToMap(e){if(!e||!Array.isArray(e))return{};const t={};for(const n of e)if(n.documentType&&n.fields){t[n.documentType]={};for(const e of n.fields)e.fieldPath&&(t[n.documentType][e.fieldPath]=!1!==e.dnt)}return t}convertDNTMapToArray(e){if(!e||"object"!=typeof e)return[];const t=[];for(const[n,r]of Object.entries(e)){const e=Object.entries(r).map(([e,t])=>({_key:`${n}-${e}`.replace(/[^a-zA-Z0-9-_]/g,"-"),fieldPath:e,dnt:t}));t.push({documentType:n,fields:e})}return t}async load(){try{const e=await this.client.fetch("*[_id == $id][0]",{id:UNIFIED_CONFIG_DOC_ID});if(!e)return console.log("No unified configuration found in Sanity"),null;let t={};e.dntFieldConfigurations?t=this.convertDNTArrayToMap(e.dntFieldConfigurations):e.dntFieldMap&&(t=e.dntFieldMap);const n={projectId:e.projectId,accessToken:e.accessToken,translationApiEndpoint:e.translationApiEndpoint,requestContentType:e.requestContentType,responseAcceptHeader:e.responseAcceptHeader,defaultDocumentCreationMode:e.defaultDocumentCreationMode,locales:e.locales||[],defaultLocale:e.defaultLocale,dntFieldMap:t,version:e.version||"1.0.0",lastUpdated:e.lastUpdated};return console.log("Loaded unified configuration from Sanity"),n}catch(e){throw console.error("Failed to load unified configuration from Sanity:",e),e}}async save(e){try{const t=this.convertDNTMapToArray(e.dntFieldMap),n={_id:UNIFIED_CONFIG_DOC_ID,_type:UNIFIED_CONFIG_DOC_TYPE,projectId:e.projectId,accessToken:e.accessToken,translationApiEndpoint:e.translationApiEndpoint,requestContentType:e.requestContentType,responseAcceptHeader:e.responseAcceptHeader,defaultDocumentCreationMode:e.defaultDocumentCreationMode,locales:e.locales,defaultLocale:e.defaultLocale,dntFieldConfigurations:t,version:e.version,lastUpdated:(new Date).toISOString()};await this.client.createOrReplace(n),console.log("Saved unified configuration to Sanity")}catch(e){throw console.error("Failed to save unified configuration to Sanity:",e),e}}async update(e){try{const t={...await this.load()||{},...e,lastUpdated:(new Date).toISOString()};await this.save(t)}catch(e){throw console.error("Failed to update unified configuration:",e),e}}async delete(){try{await this.client.delete(UNIFIED_CONFIG_DOC_ID),console.log("Deleted unified configuration from Sanity")}catch(e){throw console.error("Failed to delete unified configuration from Sanity:",e),e}}async loadOAuth(){const e=await this.load();return e&&e.projectId&&e.accessToken?{projectId:e.projectId,accessToken:e.accessToken}:null}async saveOAuth(e){await this.update({projectId:e.projectId,accessToken:e.accessToken})}async loadLocale(){const e=await this.load();return e?{locales:e.locales||[],defaultLocale:e.defaultLocale,version:e.version||"1.0.0",lastUpdated:e.lastUpdated||(new Date).toISOString()}:null}async saveLocale(e){await this.update({locales:e.locales,defaultLocale:e.defaultLocale})}async getDNTFieldsForType(e){const t=await this.load();return t?.dntFieldMap?.[e]||{}}async setDNTField(e,t,n){const r=(await this.load()||{}).dntFieldMap||{};r[e]||(r[e]={}),r[e][t]=n,await this.update({dntFieldMap:r})}async toggleDNTField(e,t){const n=(await this.load()||{}).dntFieldMap||{};n[e]||(n[e]={});const r=n[e][t]||!1;return n[e][t]=!r,await this.update({dntFieldMap:n}),n[e][t]}async getDNTFieldStatus(e,t){return(await this.getDNTFieldsForType(e))[t]||!1}async clearDNTFieldsForType(e){const t=(await this.load()||{}).dntFieldMap||{};delete t[e],await this.update({dntFieldMap:t})}async getAllDNTFields(){const e=await this.load();return e?.dntFieldMap||{}}async getTranslationEndpoint(){const e=await this.load();return e?.translationApiEndpoint||"https://app.easyling.com/_ext/sanity/translate"}async getRequestContentType(){const e=await this.load();return e?.requestContentType||"application/json"}async getResponseAcceptHeader(){const e=await this.load();return e?.responseAcceptHeader||"application/json"}async getDefaultDocumentCreationMode(){const e=await this.load();return e?.defaultDocumentCreationMode||"draft"}}class DNTServiceManager{constructor(){this.dntStorage=null,this.client=null}static getInstance(e){return DNTServiceManager.instance||(DNTServiceManager.instance=new DNTServiceManager),e&&!DNTServiceManager.instance.client&&DNTServiceManager.instance.initialize(e),DNTServiceManager.instance}initialize(e){if(this.client&&this.dntStorage)return;this.client=e;const t=new UnifiedConfigStorage(e);this.dntStorage=new DNTStorageAdapter(t),console.log("DNT Service Manager initialized")}getDNTStorage(){if(!this.dntStorage)throw new Error("DNT Service Manager not initialized. Call initialize() with a SanityClient first.");return this.dntStorage}isInitialized(){return null!==this.dntStorage}static reset(){DNTServiceManager.instance=null}}function getDNTStorage(){return DNTServiceManager.getInstance().getDNTStorage()}DNTServiceManager.instance=null;class ContentExtractor{inferSanityType(e){if(null==e)return"undefined";if("object"==typeof e&&!Array.isArray(e)){const t=e;if(t._type)return t._type}return"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":Array.isArray(e)?"array":"object"==typeof e?"object":"unknown"}async extractDocumentContent(e){if(!e||!e._id)throw new Error("Invalid document provided");return this.convertToHtml(e)}convertToHtml(e){if(!e)return"";let t="";for(const[n,r]of Object.entries(e))n.startsWith("_")||r&&(t+=this.processField(n,r));return t.trim()}async extractStructuredContent(e){if(!e||!e._id)throw new Error("Invalid document provided");const t=this.extractTitle(e),n=this.extractSlug(e),{bodyContent:r,fields:o}=this.separateContentAndFields(e),i=e._type||"document",a=await this.applyDNTPreferences(i,o);return{documentId:e._id,title:t,htmlContent:r,slug:n,fields:a}}async applyDNTPreferences(e,t){try{const n=getDNTStorage(),r=await n.getFieldsForType(e);if(!r||0===Object.keys(r).length)return t;const o={};for(const[e,n]of Object.entries(t)){const t=r[e]||!1;if(n&&"object"==typeof n&&"value"in n){const r=n;o[e]={...r,dnt:t}}else o[e]={value:n,dnt:t,type:this.inferSanityType(n)}}return o}catch(n){return console.warn(`Failed to apply DNT preferences for document type ${e}:`,n),t}}async extractBulkContent(e){const t=[];for(const n of e)try{const e=await this.extractDocumentContent(n),r=this.extractTitle(n);t.push({documentId:n._id,title:r,htmlContent:e})}catch(e){console.warn(`Failed to extract content from document ${n._id}:`,e)}return t}async extractBulkStructuredContent(e){const t=[];for(const n of e)try{const e=await this.extractStructuredContent(n);t.push(e)}catch(e){console.warn(`Failed to extract structured content from document ${n?._id||"unknown"}:`,e)}return t}processField(e,t){return null==t?"":Array.isArray(t)?this.processArray(e,t):"object"==typeof t?this.processObject(e,t):"string"==typeof t||"number"==typeof t?this.wrapInHtml(e,String(t)):""}processArray(e,t){let n="";if(t.every(e=>e&&"object"==typeof e&&"block"===e._type&&("bullet"===e.listItem||"number"===e.listItem))){const e="number"===t[0]?.listItem?"ol":"ul";n+=`<${e}>`;for(const e of t)"block"===e._type&&(n+=`<li>${this.processPortableTextBlockContent(e)}</li>`);n+=`</${e}>`}else for(const r of t)r&&"object"==typeof r?"block"===r._type?n+=this.processPortableTextBlock(r):n+=this.processObject(e,r):n+=this.wrapInHtml("item",String(r));return n}processPortableTextBlock(e){const t=this.processPortableTextBlockContent(e);switch(e.style||"normal"){case"h1":return`<h1>${t}</h1>`;case"h2":return`<h2>${t}</h2>`;case"h3":return`<h3>${t}</h3>`;case"h4":return`<h4>${t}</h4>`;case"h5":return`<h5>${t}</h5>`;case"h6":return`<h6>${t}</h6>`;case"blockquote":return`<blockquote>${t}</blockquote>`;default:return`<p>${t}</p>`}}processPortableTextBlockContent(e){if(!e.children||!Array.isArray(e.children))return"";let t="";for(const n of e.children)if("span"===n._type&&n.text){let e=n.text;if(n.marks&&Array.isArray(n.marks))for(const t of n.marks)if("string"==typeof t)switch(t){case"strong":e=`<strong>${e}</strong>`;break;case"em":e=`<em>${e}</em>`;break;case"underline":e=`<u>${e}</u>`;break;case"code":e=`<code>${e}</code>`}else if("object"==typeof t&&"link"===t._type){const n=t.href||"#";e=`<a href="${this.escapeHtml(n)}">${e}</a>`}t+=e}return t}processObject(e,t){let n="";if("reference"===t._type&&t._ref)return`<span data-reference="${t._ref}">Referenced content</span>`;if("image"===t._type){const e=t.alt||"Image",n=t.caption||"";return`<figure><img alt="${this.escapeHtml(e)}" />${n?`<figcaption>${this.escapeHtml(n)}</figcaption>`:""}</figure>`}if("file"===t._type){const e=t.title||"File";return`<a href="#" data-file-ref="${t.asset?._ref||""}">${this.escapeHtml(e)}</a>`}if("url"===t._type){const e=t.href||"#",n=t.text||e;return`<a href="${this.escapeHtml(e)}">${this.escapeHtml(n)}</a>`}if("geopoint"===t._type){const e=t.lat||0,n=t.lng||0,r=t.alt||"";return`<span data-geopoint data-lat="${e}" data-lng="${n}" ${r?`data-alt="${r}"`:""}>Location: ${e}, ${n}</span>`}if("slug"===t._type){const e=t.current||"";return`<span data-slug="${this.escapeHtml(e)}">${this.escapeHtml(e)}</span>`}if("date"===t._type||"datetime"===t._type){const e=t.value||t;if("string"==typeof e)return`<time datetime="${e}">${new Date(e).toLocaleDateString()}</time>`}if("color"===t._type){const e=t.hex||"#000000";return`<span data-color="${e}" data-alpha="${void 0!==t.alpha?t.alpha:1}" style="color: ${e}">Color: ${e}</span>`}if("span"===t._type&&t.marks&&Array.isArray(t.marks)){let e=t.text||"";for(const n of t.marks)if("string"==typeof n)switch(n){case"strong":e=`<strong>${e}</strong>`;break;case"em":e=`<em>${e}</em>`;break;case"underline":e=`<u>${e}</u>`;break;case"code":e=`<code>${e}</code>`}else if("object"==typeof n&&"link"===n._type){const t=n.href||"#";e=`<a href="${this.escapeHtml(t)}">${e}</a>`}return e}for(const[e,r]of Object.entries(t))!e.startsWith("_")&&r&&(n+=this.processField(e,r));return n}wrapInHtml(e,t){return`<div class="field-${e.replace(/[^a-zA-Z0-9-_]/g,"")}">${this.escapeHtml(t)}</div>`}separateContentAndFields(e){const t=["body","content","text","description","excerpt"],n=["title","slug","_id","_type","_createdAt","_updatedAt","_rev"];let r="";const o={};for(const[n,i]of Object.entries(e))if(!n.startsWith("_")&&"title"!==n&&"slug"!==n&&i)if(t.includes(n))r+=this.processField(n,i);else{let e,t;"object"==typeof i&&null!==i&&"_type"in i&&"slug"===i._type?(e=i.current||"",t="slug"):"object"!=typeof i||null===i||!("_type"in i)||"date"!==i._type&&"datetime"!==i._type?Array.isArray(i)&&i.every(e=>e&&"object"==typeof e&&"block"===e._type)?(e=this.processArray(n,i),t="block"):(e=i,t=this.inferSanityType(i)):(e=i.value||i,t=i._type),o[n]={value:e,dnt:!1,type:t}}if(!r.trim())for(const[t,o]of Object.entries(e))t.startsWith("_")||n.includes(t)||!o||(r+=this.processField(t,o));return{bodyContent:r.trim(),fields:o}}extractSlug(e){if(e.slug){if("object"==typeof e.slug&&null!==e.slug&&"_type"in e.slug&&"slug"===e.slug._type)return e.slug.current||"";if("string"==typeof e.slug)return e.slug}const t=["slug","path","url","permalink"];for(const n of t)if(e[n]){if("object"==typeof e[n]&&null!==e[n]&&"_type"in e[n]&&"slug"===e[n]._type)return e[n].current||"";if("string"==typeof e[n])return e[n]}return""}extractTitle(e){const t=["title","name","heading","label"];for(const n of t)if(e[n]&&"string"==typeof e[n])return e[n];return`${e._type} (${e._id})`}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}}class DocumentCreationService{constructor(e,t){this.defaultCreationMode="draft",this.client=e,t&&(this.defaultCreationMode=t)}setDefaultCreationMode(e){this.defaultCreationMode=e}async createDocumentFromTranslation(e,t,n={}){try{const r=this.validateInputsForDocumentCreation(e,t,n);if(!r.isValid)return{success:!1,error:`Input validation failed: ${r.errors.join(", ")}`};const o=t.translatedDocuments?.[0]||t.translatedContent;if(!t.success||!o)return{success:!1,error:"Translation response does not contain valid translated content"};const i=this.validateTranslationResponseForCreation(t);if(!i.isValid)return{success:!1,error:`Translation response validation failed: ${i.errors.join(", ")}`};const a=await this.mergeTranslatedContent(e,o,n),s=this.validateDocumentStructure(a);if(!s.isValid)return{success:!1,error:`Document validation failed: ${s.errors.join(", ")}`};const l=this.validateBusinessRules(a,e);if(!l.isValid)return{success:!1,error:`Business rule validation failed: ${l.errors.join(", ")}`};const c=n.creationMode||this.defaultCreationMode;try{let e;if("draft"===c){const t=a._id.startsWith("drafts.")?a._id:`drafts.${a._id}`;console.log("Creating draft document in Sanity:",t),e=await this.client.create({...a,_id:t}),console.log("Draft document created successfully:",e._id)}else{const t=a._id.startsWith("drafts.")?a._id.replace(/^drafts\./,""):a._id;console.log("Creating published document in Sanity:",t),e=await this.client.create({...a,_id:t}),console.log("Published document created successfully:",e._id)}return{success:!0,documentId:e._id,document:e}}catch(e){return console.error("Failed to create document in Sanity:",e),{success:!1,error:`Failed to save document to Sanity: ${e instanceof Error?e.message:"Unknown Sanity error"}`}}}catch(t){return{success:!1,error:this.formatErrorMessage(t,e._id)}}}validateInputsForDocumentCreation(e,t,n){const r=[];return e?(e._id||r.push("Original document must have an _id"),e._type||r.push("Original document must have a _type"),t?(n.targetLanguage&&"string"!=typeof n.targetLanguage&&r.push("Target language must be a string"),n.sourceLanguage&&"string"!=typeof n.sourceLanguage&&r.push("Source language must be a string"),void 0!==n.createAsVariant&&"boolean"!=typeof n.createAsVariant&&r.push("createAsVariant must be a boolean"),n.parentDocumentId&&"string"!=typeof n.parentDocumentId&&r.push("parentDocumentId must be a string"),{isValid:0===r.length,errors:r}):(r.push("Translation response is required"),{isValid:!1,errors:r})):(r.push("Original document is required"),{isValid:!1,errors:r})}validateBusinessRules(e,t){const n=[];return e._id===t._id&&n.push("New document ID must be different from original document ID"),e._type!==t._type&&n.push(`New document type (${e._type}) must match original document type (${t._type})`),this.documentHasContent(e)||n.push("New document must contain some translatable content"),e.slug&&t.slug&&("object"==typeof e.slug?e.slug.current:e.slug)===("object"==typeof t.slug?t.slug.current:t.slug)&&n.push("New document slug should be different from original to avoid conflicts"),{isValid:0===n.length,errors:n}}documentHasContent(e){if(e.title&&"string"==typeof e.title&&e.title.trim().length>0)return!0;const t=["body","content","text","description"];for(const n of t)if(e[n]){if("string"==typeof e[n]&&e[n].trim().length>0)return!0;if(Array.isArray(e[n])&&e[n].length>0)return!0}return!1}formatErrorMessage(e,t){const n=e instanceof Error?e.message:"Unknown error occurred during document creation",r=t?` (Document ID: ${t})`:"";if(e instanceof Error){if(e.message.includes("validation"))return`Document validation error${r}: ${e.message}`;if(e.message.includes("network")||e.message.includes("fetch"))return`Network error during document creation${r}: ${e.message}`;if(e.message.includes("permission")||e.message.includes("unauthorized"))return`Permission error during document creation${r}: ${e.message}`}return`Document creation error${r}: ${n}`}async createBulkDocumentsFromTranslations(e,t,n={}){const r={totalDocuments:e.length,successfulCreations:0,failedCreations:0,results:[],errors:[],rollbackInfo:{canRollback:!0,createdDocumentIds:[],rollbackInstructions:[]}},o=this.validateBulkTranslationResponses(e,t);if(o.length>0){r.errors.push(...o),r.failedCreations=e.length,r.rollbackInfo.canRollback=!1,r.rollbackInfo.rollbackInstructions.push("No documents were created due to validation failures");for(let t=0;t<e.length;t++)r.results.push({success:!1,error:"Bulk validation failed - no documents created"});return r}const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o];if(!s){const e=`No translation response found for document ${a._id}`;r.results.push({success:!1,error:e}),r.errors.push(e),r.failedCreations++;continue}try{const e=this.validateTranslationResponseForCreation(s);if(!e.isValid){const t=`Pre-creation validation failed for ${a._id}: ${e.errors.join(", ")}`;r.results.push({success:!1,error:t}),r.errors.push(t),r.failedCreations++;continue}const t=s.translatedDocuments||(s.translatedContent?[s.translatedContent]:[]);if(0===t.length){const e=`No translated documents found in response for ${a._id}`;r.results.push({success:!1,error:e}),r.errors.push(e),r.failedCreations++;continue}for(let e=0;e<t.length;e++){const o=t[e],l=o.fields?.locale,c=(l&&"object"==typeof l&&"value"in l?l.value:l)||o.locale||n.targetLanguage||"translated";console.log(`Creating document for ${a._id} with locale: ${c}`);const u={...s,translatedDocuments:[o],translatedContent:o},d=await this.createDocumentFromTranslation(a,u,{...n,targetLanguage:c});r.results.push(d),d.success&&d.documentId?(r.successfulCreations++,i.push({documentId:d.documentId,originalId:a._id}),r.rollbackInfo.createdDocumentIds.push(d.documentId)):(r.failedCreations++,d.error&&r.errors.push(d.error))}}catch(e){const t=e instanceof Error?e.message:"Unknown error occurred";r.results.push({success:!1,error:t}),r.errors.push(t),r.failedCreations++}}return r.successfulCreations>0?r.rollbackInfo.rollbackInstructions=[`${r.successfulCreations} documents were successfully created.`,"To rollback these changes, you would need to delete the following document IDs:",...r.rollbackInfo.createdDocumentIds.map(e=>`- ${e}`),"Note: This plugin does not automatically delete documents for safety reasons.","Manual deletion through Sanity Studio or API calls would be required."]:r.rollbackInfo.rollbackInstructions=["No documents were created, no rollback needed."],r}validateBulkTranslationResponses(e,t){const n=[];if(e.length!==t.length)return n.push(`Mismatch between original documents (${e.length}) and translation responses (${t.length})`),n;for(let r=0;r<e.length;r++){const o=e[r],i=t[r];o?o._id?o._type?i?i.success&&(0!==(i.translatedDocuments||(i.translatedContent?[i.translatedContent]:[])).length||n.push(`Translation response at index ${r} missing translatedDocuments/translatedContent despite success=true`)):n.push(`Translation response at index ${r} is null or undefined`):n.push(`Original document at index ${r} missing _type`):n.push(`Original document at index ${r} missing _id`):n.push(`Original document at index ${r} is null or undefined`)}return n}validateTranslationResponseForCreation(e){const t=[];if(!e.success)return t.push("Translation response indicates failure"),{isValid:!1,errors:t};const n=e.translatedDocuments||(e.translatedContent?[e.translatedContent]:[]);if(0===n.length)return t.push("Translation response missing translatedDocuments/translatedContent"),{isValid:!1,errors:t};for(let e=0;e<n.length;e++){const r=n[e];"object"==typeof r&&null!==r?(r.body||r.title||r.fields||t.push(`Translated document at index ${e} must contain at least one of: body, title, or fields`),void 0!==r.body&&("string"!=typeof r.body?t.push(`Translated document at index ${e} body must be a string`):0===r.body.trim().length&&t.push(`Translated document at index ${e} body cannot be empty`)),void 0!==r.title&&("string"!=typeof r.title?t.push(`Translated document at index ${e} title must be a string`):0===r.title.trim().length&&t.push(`Translated document at index ${e} title cannot be empty`)),void 0!==r.slug&&("string"!=typeof r.slug?t.push(`Translated document at index ${e} slug must be a string`):0===r.slug.trim().length?t.push(`Translated document at index ${e} slug cannot be empty`):/^[a-z0-9-_]+$/.test(r.slug)||t.push(`Translated document at index ${e} slug must contain only lowercase letters, numbers, hyphens, and underscores`)),void 0!==r.fields&&("object"!=typeof r.fields||null===r.fields||Array.isArray(r.fields))&&t.push(`Translated document at index ${e} fields must be an object`)):t.push(`Translated document at index ${e} must be an object`)}return{isValid:0===t.length,errors:t}}createRollbackPlan(e){return 0===e.length?{canRollback:!0,createdDocumentIds:[],rollbackInstructions:["No documents were created, no rollback needed."]}:{canRollback:!0,createdDocumentIds:[...e],rollbackInstructions:[`Rollback plan for ${e.length} created documents:`,"","1. Manual deletion required (for safety):",...e.map(e=>` - Delete document: ${e}`),"","2. Alternative: Use Sanity CLI or API:"," sanity documents delete <document-id>","","3. Or via Sanity Client API:"," client.delete(documentId)","","WARNING: This plugin does not provide automatic rollback to prevent","accidental data loss. Please review each document before deletion."]}}async mergeTranslatedContent(e,t,n){let r=n.targetLanguage;if(!r)if(t.locale)r=t.locale;else if(t.fields?.locale){const e=t.fields.locale;e&&"object"==typeof e&&"value"in e?r=e.value:"string"==typeof e&&(r=e)}const o={...e,_id:this.generateNewDocumentId(e._id,r),_rev:void 0,_createdAt:void 0,_updatedAt:void 0};if(t.title&&t.title.trim()&&(o.title=t.title),t.slug&&t.slug.trim()&&("object"==typeof e.slug&&null!==e.slug&&"_type"in e.slug?o.slug={_type:"slug",current:t.slug}:o.slug=t.slug),t.body&&t.body.trim()){const n=this.convertHtmlToPortableText(t.body),r=["body","content","text","description"];for(const t of r)if(e[t]){o[t]=n;break}r.some(t=>e[t])||(o.body=n)}if(t.fields&&"object"==typeof t.fields)for(const[n,r]of Object.entries(t.fields)){if("title"===n||"slug"===n||void 0===r)continue;const t=this.processTranslatedField(n,r,e[n]);void 0!==t&&(o[n]=t)}r&&(e.locale&&"object"==typeof e.locale&&"value"in e.locale?o.locale={...e.locale,value:r}:o.locale&&"object"==typeof o.locale&&"value"in o.locale?o.locale={...o.locale,value:r}:void 0!==e.locale&&(o.locale=r));const i=Object.keys(o);for(const e of i)null===o[e]&&delete o[e];return n.createAsVariant&&n.parentDocumentId&&(o.parentDocument={_type:"reference",_ref:n.parentDocumentId}),o}processTranslatedField(e,t,n){if(null==t)return t;let r=t,o=!1;if(t&&"object"==typeof t&&"value"in t&&(r=t.value,o=t.dnt||!1),o&&void 0!==n)return n;if(n&&"object"==typeof n&&null!==n){if("dnt"in n&&"value"in n){let e=r;return t&&"object"==typeof t&&"value"in t&&(e=t.value),null!=e&&""!==e||null===n.value||void 0===n.value||""===n.value?{dnt:o,value:e}:n}if("_type"in n&&"slug"===n._type)return{_type:"slug",current:"string"==typeof r?r:String(r)};if("_type"in n&&("date"===n._type||"datetime"===n._type))return{_type:n._type,value:r};if("_type"in n&&"reference"===n._type)return n}return"string"==typeof r&&this.isHtmlContent(r)?this.convertHtmlToPortableText(r):r}convertHtmlToPortableText(e){if(!e||!e.trim())return[];const t=[],n=/<(h[1-6]|p|div|blockquote|li)([^>]*)>(.*?)<\/\1>/gi;let r,o=0;for(;null!==(r=n.exec(e));){const[e,n,i,a]=r;if(!a.trim())continue;const s={_type:"block",_key:this.generateBlockKey(),style:this.getBlockStyle(n.toLowerCase()),children:this.parseInlineContent(a),markDefs:[]};"li"===n.toLowerCase()&&(s.listItem="bullet"),t.push(s),o=r.index+e.length}const i=e.substring(o).trim();if(i){const e=i.replace(/<[^>]+>/g,"").trim();e&&t.push({_type:"block",_key:this.generateBlockKey(),style:"normal",children:this.parseInlineContent(e),markDefs:[]})}if(0===t.length&&e.trim()){const n=e.replace(/<[^>]+>/g,"").trim();n&&t.push({_type:"block",_key:this.generateBlockKey(),style:"normal",children:this.parseInlineContent(n),markDefs:[]})}return t}parseInlineContent(e){const t=[],n=e.replace(/<strong[^>]*>(.*?)<\/strong>/gi,"**$1**").replace(/<em[^>]*>(.*?)<\/em>/gi,"*$1*").replace(/<u[^>]*>(.*?)<\/u>/gi,"_$1_").replace(/<code[^>]*>(.*?)<\/code>/gi,"`$1`").replace(/<[^>]+>/g,"").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'");return n.trim()&&t.push({_type:"span",_key:this.generateSpanKey(),text:n,marks:[]}),t}getBlockStyle(e){return{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",blockquote:"blockquote",p:"normal",div:"normal",li:"normal"}[e]||"normal"}isHtmlContent(e){return/<[^>]+>/.test(e)}generateNewDocumentId(e,t){return`${e.startsWith("drafts.")?e.replace(/^drafts\./,""):e}${t?`-${t}`:"-translated"}-${Date.now()}`}generateBlockKey(){return Math.random().toString(36).substr(2,9)}generateSpanKey(){return Math.random().toString(36).substr(2,9)}validateDocumentStructure(e){const t=[];e._id||t.push("Document must have an _id"),e._type||t.push("Document must have a _type");const n=["body","content","text","description"];for(const r of n)if(e[r]&&Array.isArray(e[r])){const n=this.validatePortableTextArray(e[r],r);n.isValid||t.push(...n.errors)}if(e.slug&&"object"==typeof e.slug&&null!==e.slug&&"_type"in e.slug){const n=e.slug;"slug"!==n._type&&t.push('Slug object must have _type of "slug"'),n.current||t.push("Slug object must have a current value")}return{isValid:0===t.length,errors:t}}validatePortableTextArray(e,t){const n=[];if(!Array.isArray(e))return n.push(`${t} must be an array`),{isValid:!1,errors:n};for(let r=0;r<e.length;r++){const o=e[r];if(!o||"object"!=typeof o){n.push(`${t}[${r}] must be an object`);continue}const i=o;if(i._type||n.push(`${t}[${r}] must have a _type`),i._key||n.push(`${t}[${r}] must have a _key`),"block"===i._type)if(Array.isArray(i.children)){const e=i.children;for(let o=0;o<e.length;o++){const i=e[o];if(!i||"object"!=typeof i){n.push(`${t}[${r}].children[${o}] must be an object`);continue}const a=i;a._type||n.push(`${t}[${r}].children[${o}] must have a _type`),a._key||n.push(`${t}[${r}].children[${o}] must have a _key`)}}else n.push(`${t}[${r}] block must have children array`)}return{isValid:0===n.length,errors:n}}}const LOCALE_CODE_REGEX=/^[a-z]{2}-[A-Z]{2}$/;function validateLocaleCode(e){return!(!e||"string"!=typeof e)&&LOCALE_CODE_REGEX.test(e)}function validateLocaleDefinition(e){const t=[],n=[];return e.code?validateLocaleCode(e.code)||t.push("Locale code must be in format: xx-XX (e.g., en-US, fr-FR)"):t.push("Locale code is required"),e.displayName?0===e.displayName.trim().length?t.push("Display name cannot be empty"):e.displayName.length>100&&n.push("Display name is very long (over 100 characters)"):t.push("Display name is required"),void 0!==e.enabled&&"boolean"!=typeof e.enabled&&t.push("Enabled flag must be a boolean value"),e.createdAt&&!isValidISODate(e.createdAt)&&t.push("createdAt must be a valid ISO 8601 date string"),e.updatedAt&&!isValidISODate(e.updatedAt)&&t.push("updatedAt must be a valid ISO 8601 date string"),{isValid:0===t.length,errors:t,warnings:n}}function validateLocaleConfig(e){const t=[],n=[];if(e.locales)if(Array.isArray(e.locales)){const r=new Set;e.locales.forEach((e,o)=>{const i=validateLocaleDefinition(e);i.isValid||t.push(`Locale at index ${o}: ${i.errors.join(", ")}`),i.warnings.length>0&&n.push(`Locale at index ${o}: ${i.warnings.join(", ")}`),e.code&&(r.has(e.code)&&t.push(`Duplicate locale code: ${e.code}`),r.add(e.code))}),0===e.locales.length&&n.push("No locales configured - users will not be able to translate content")}else t.push("Locales must be an array");else t.push("Locales array is required");return e.defaultLocale&&(validateLocaleCode(e.defaultLocale)?e.locales&&Array.isArray(e.locales)&&(e.locales.some(t=>t.code===e.defaultLocale)||n.push("Default locale is not in the configured locales list")):t.push("Default locale must be in format: xx-XX (e.g., en-US)")),e.version?"string"!=typeof e.version&&t.push("Configuration version must be a string"):t.push("Configuration version is required"),e.lastUpdated?isValidISODate(e.lastUpdated)||t.push("lastUpdated must be a valid ISO 8601 date string"):t.push("lastUpdated timestamp is required"),{isValid:0===t.length,errors:t,warnings:n}}function localeExists(e,t){return e.locales.some(e=>e.code===t)}function getEnabledLocales(e){return e.locales.filter(e=>e.enabled)}function findLocaleByCode(e,t){return e.locales.find(e=>e.code===t)}function isValidISODate(e){if(!e||"string"!=typeof e)return!1;const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())&&t.toISOString()===e}const RadioWithDefault=e=>{const{value:t,onChange:n,defaultValue:r,renderDefault:o}=e;return(0,external_react_.useEffect)(()=>{null!=t&&""!==t||n(__WEBPACK_EXTERNAL_MODULE_sanity_set__(r))},[t,r,n]),o({...e,value:null!=t&&""!==t?t:r})};RadioWithDefault.displayName="RadioWithDefault";const createPluginConfigSchema=e=>({name:"EL_PluginConfiguration",title:"Easyling Translation Plugin Configuration",type:"document",fields:[{name:"projectId",title:"Project ID",type:"string",description:"Easyling project identifier",group:"oauth"},{name:"accessToken",title:"Access Token",type:"string",description:"Easyling API access token (hidden for security)",group:"oauth",...e&&{components:{input:e}}},{name:"translationApiEndpoint",title:"Translation API Endpoint",type:"string",description:"The URL where translation requests will be sent (defaults to https://app.easyling.com/_ext/sanity/translate if not set)",initialValue:"https://app.easyling.com/_ext/sanity/translate",placeholder:"https://app.easyling.com/_ext/sanity/translate",group:"translation",validation:e=>e.custom(e=>{if(!e||""===e.trim())return!0;try{const t=new URL(e.trim());return!!["http:","https:"].includes(t.protocol)||"Must be a valid HTTP or HTTPS URL"}catch(e){return"Must be a valid HTTP or HTTPS URL"}})},{name:"defaultDocumentCreationMode",title:"Default Document Creation Mode",type:"string",description:"Whether translated documents should be created as drafts or published by default",initialValue:"draft",group:"translation",options:{list:[{title:"Draft",value:"draft"},{title:"Published",value:"published"}],layout:"radio"},components:{input:e=>RadioWithDefault({...e,defaultValue:"draft"})}},{name:"requestContentType",title:"Request Content-Type",type:"string",description:"Serialization format for translation request payloads",initialValue:"application/json",group:"advanced",options:{list:[{title:"JSON",value:"application/json"},{title:"Protocol Buffer",value:"application/x-protobuf"}],layout:"radio"},components:{input:e=>RadioWithDefault({...e,defaultValue:"application/json"})}},{name:"responseAcceptHeader",title:"Response Accept Header",type:"string",description:"Preferred format for translation response (content negotiation)",initialValue:"application/json",group:"advanced",options:{list:[{title:"JSON",value:"application/json"},{title:"Protocol Buffer",value:"application/x-protobuf"}],layout:"radio"},components:{input:e=>RadioWithDefault({...e,defaultValue:"application/json"})}},{name:"locales",title:"Available Locales",type:"array",description:"Configure the locales available for translation",group:"locales",of:[{type:"object",name:"localeItem",title:"Locale",fields:[{name:"code",title:"Locale Code",type:"string",description:"Locale code in ISO 639-1 + ISO 3166-1 format (e.g., en-US, fr-FR)",validation:e=>e.required().regex(/^[a-z]{2}-[A-Z]{2}$/,{name:"locale-code",invert:!1}).error("Locale code must be in format: xx-XX (e.g., en-US, fr-FR)")},{name:"displayName",title:"Display Name",type:"string",description:"Human-readable name for this locale (e.g., English (United States))",validation:e=>e.required().min(1).error("Display name is required")},{name:"enabled",title:"Enabled",type:"boolean",description:"Whether this locale is available for translation",initialValue:!0},{name:"createdAt",title:"Created At",type:"string",hidden:!0},{name:"updatedAt",title:"Updated At",type:"string",hidden:!0}],preview:{select:{title:"displayName",subtitle:"code",enabled:"enabled"},prepare:({title:e,subtitle:t,enabled:n})=>({title:e||"Unnamed Locale",subtitle:t?`${t}${!1===n?" (Disabled)":""}`:""})}}]},{name:"defaultLocale",title:"Default Locale",type:"string",description:"Default locale code to use when none is specified",group:"locales",validation:e=>e.regex(/^[a-z]{2}-[A-Z]{2}$/,{name:"locale-code",invert:!1}).error("Default locale must be in format: xx-XX (e.g., en-US)")},{name:"dntFieldConfigurations",title:"DNT Field Configurations",type:"array",description:"Document type DNT (Do Not Translate) field configurations. When you mark a field as DNT for a document type, it applies to all documents of that type. This is automatically managed when you toggle DNT badges in documents.",group:"dnt",readOnly:!0,of:[{type:"object",name:"dntTypeConfig",title:"Document Type DNT Configuration",fields:[{name:"documentType",title:"Document Type",type:"string",description:'The document type (e.g., "product", "article")',validation:e=>e.required()},{name:"fields",title:"DNT Fields",type:"array",description:"Fields marked as Do Not Translate",of:[{type:"object",name:"dntField",fields:[{name:"fieldPath",title:"Field Path",type:"string",description:'The field path (e.g., "sku", "price")',validation:e=>e.required()},{name:"dnt",title:"Do Not Translate",type:"boolean",description:"Whether this field should not be translated",initialValue:!0}],preview:{select:{fieldPath:"fieldPath",dnt:"dnt"},prepare:({fieldPath:e,dnt:t})=>({title:e||"Unknown field",subtitle:t?"Do Not Translate":"Translatable"})}}]}],preview:{select:{documentType:"documentType",fields:"fields"},prepare:({documentType:e,fields:t})=>({title:e||"Unknown type",subtitle:t?`${t.length} DNT field${1!==t.length?"s":""}`:"No DNT fields"})}}]},{name:"version",title:"Configuration Version",type:"string",description:"Internal version for configuration migration",initialValue:"1.0.0",readOnly:!0,hidden:!0},{name:"lastUpdated",title:"Last Updated",type:"datetime",description:"When this configuration was last modified",readOnly:!0,hidden:!0}],groups:[{name:"oauth",title:"Authentication",default:!0},{name:"translation",title:"Translation Settings"},{name:"locales",title:"Locales"},{name:"dnt",title:"DNT Field Configuration",description:"View DNT (Do Not Translate) settings for all document types"},{name:"advanced",title:"☢️ CAUTION ☢️ Dangerous Advanced Settings",description:"Advanced developer settings for request/response serialization. Changing these settings may break compatibility with your translation service."}],preview:{prepare:()=>({title:"Easyling Translation Plugin Configuration",subtitle:"OAuth, Translation Settings, Locales, and DNT field settings"})}}),pluginConfigSchema=createPluginConfigSchema(),legacyLocaleConfigSchema={name:"EL_translation-plugin-config",title:"Translation Plugin Configuration (Legacy)",type:"object",fields:[{name:"locales",title:"Available Locales",type:"array",description:"Configure the locales available for translation",of:[{type:"object",title:"Locale",fields:[{name:"code",title:"Locale Code",type:"string",description:"Locale code in ISO 639-1 + ISO 3166-1 format (e.g., en-US, fr-FR)",validation:e=>e.required().regex(/^[a-z]{2}-[A-Z]{2}$/,{name:"locale-code",invert:!1}).error("Locale code must be in format: xx-XX (e.g., en-US, fr-FR)")},{name:"displayName",title:"Display Name",type:"string",description:"Human-readable name for this locale (e.g., English (United States))",validation:e=>e.required().min(1).error("Display name is required")},{name:"enabled",title:"Enabled",type:"boolean",description:"Whether this locale is available for translation",initialValue:!0}],preview:{select:{title:"displayName",subtitle:"code",enabled:"enabled"},prepare:({title:e,subtitle:t,enabled:n})=>({title:e||"Unnamed Locale",subtitle:`${t}${n?"":" (Disabled)"}`,media:n?"🌐":"🚫"})}}]},{name:"defaultLocale",title:"Default Locale",type:"string",description:"Default locale code to use when none is specified",validation:e=>e.regex(/^[a-z]{2}-[A-Z]{2}$/,{name:"locale-code",invert:!1}).error("Default locale must be in format: xx-XX (e.g., en-US)")},{name:"version",title:"Configuration Version",type:"string",description:"Internal version for configuration migration",initialValue:"1.0.0",readOnly:!0}]},defaultLocaleConfig={locales:[],version:"1.0.0",lastUpdated:(new Date).toISOString()},commonLocales=[{code:"en-US",displayName:"English (United States)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"en-GB",displayName:"English (United Kingdom)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"es-ES",displayName:"Spanish (Spain)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"es-MX",displayName:"Spanish (Mexico)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"fr-FR",displayName:"French (France)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"de-DE",displayName:"German (Germany)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"it-IT",displayName:"Italian (Italy)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"pt-BR",displayName:"Portuguese (Brazil)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"ja-JP",displayName:"Japanese (Japan)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"ko-KR",displayName:"Korean (South Korea)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"zh-CN",displayName:"Chinese (Simplified)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},{code:"zh-TW",displayName:"Chinese (Traditional)",enabled:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()}];function pluginConfig_validateLocaleCode(e){return/^[a-z]{2}-[A-Z]{2}$/.test(e)}function createLocaleDefinition(e,t,n=!0){const r=(new Date).toISOString();return{code:e,displayName:t,enabled:n,createdAt:r,updatedAt:r}}function updateLocaleDefinition(e,t){return{...e,...t,updatedAt:(new Date).toISOString()}}class LocaleServiceError extends Error{constructor(e,t,n){super(e),this.code=t,this.details=n,this.name="LocaleServiceError"}}class LocaleService{constructor(e=null,t){this.storageAdapter=e,this.config=t||{...defaultLocaleConfig,locales:[...defaultLocaleConfig.locales]}}async loadConfig(){try{if(!this.storageAdapter)return this.config;const e=await this.storageAdapter.load();if(e){const t=validateLocaleConfig(e);if(!t.isValid)throw console.error("Loaded configuration is invalid:",t.errors),new LocaleServiceError("Configuration is corrupted and cannot be loaded","CONFIG_CORRUPTED",{errors:t.errors});return this.config=e,this.config}return this.config={...defaultLocaleConfig},this.config}catch(e){if(e instanceof LocaleServiceError)throw e;throw new LocaleServiceError("Failed to load locale configuration","LOAD_FAILED",{originalError:e})}}async saveConfig(e){try{const t=e||this.config,n=validateLocaleConfig(t);if(!n.isValid)throw new LocaleServiceError("Cannot save invalid configuration","INVALID_CONFIG",{errors:n.errors});t.lastUpdated=(new Date).toISOString(),this.storageAdapter&&await this.storageAdapter.save(t),this.config=t}catch(e){if(e instanceof LocaleServiceError)throw e;throw new LocaleServiceError("Failed to save locale configuration","SAVE_FAILED",{originalError:e})}}getConfig(){return{...this.config}}getAllLocales(){return[...this.config.locales]}getEnabledLocales(){return this.config.locales.filter(e=>e.enabled)}getLocaleByCode(e){return findLocaleByCode(this.config,e)}hasLocale(e){return localeExists(this.config,e)}async addLocale(e){const t=(new Date).toISOString(),n={...e,createdAt:t,updatedAt:t},r=validateLocaleDefinition(n);if(!r.isValid)throw new LocaleServiceError("Cannot add invalid locale","INVALID_LOCALE",{errors:r.errors});if(this.hasLocale(e.code))throw new LocaleServiceError(`Locale with code '${e.code}' already exists`,"DUPLICATE_LOCALE",{code:e.code});return this.config.locales.push(n),await this.saveConfig(),r}async updateLocale(e,t){const n=this.config.locales.findIndex(t=>t.code===e);if(-1===n)throw new LocaleServiceError(`Locale with code '${e}' not found`,"LOCALE_NOT_FOUND",{code:e});const r=this.config.locales[n],o={...r,...t,code:r.code,createdAt:r.createdAt,updatedAt:(new Date).toISOString()},i=validateLocaleDefinition(o);if(!i.isValid)throw new LocaleServiceError("Cannot update locale with invalid data","INVALID_LOCALE",{errors:i.errors});return this.config.locales[n]=o,await this.saveConfig(),i}async removeLocale(e){const t=this.config.locales.findIndex(t=>t.code===e);if(-1===t)throw new LocaleServiceError(`Locale with code '${e}' not found`,"LOCALE_NOT_FOUND",{code:e});this.config.locales.splice(t,1),this.config.defaultLocale===e&&(this.config.defaultLocale=void 0),await this.saveConfig()}async setDefaultLocale(e){if(!this.hasLocale(e))throw new LocaleServiceError(`Cannot set default locale: locale with code '${e}' not found`,"LOCALE_NOT_FOUND",{code:e});this.config.defaultLocale=e,await this.saveConfig()}async clearDefaultLocale(){this.config.defaultLocale=void 0,await this.saveConfig()}validateCurrentConfig(){return validateLocaleConfig(this.config)}async resetToDefault(){this.config={...defaultLocaleConfig},await this.saveConfig()}async importConfig(e){const t=validateLocaleConfig(e);if(!t.isValid)throw new LocaleServiceError("Cannot import invalid configuration","INVALID_CONFIG",{errors:t.errors});return this.config={...e},await this.saveConfig(),t}exportConfig(){return{...this.config}}}const LEGACY_LOCALE_CONFIG_DOC_ID="sanity-translation-plugin.locale-config",LEGACY_LOCALE_CONFIG_DOC_TYPE="EL_translation-plugin-config";class SanityLocaleStorageAdapter{constructor(e){this.client=e,this.unifiedStorage=new UnifiedConfigStorage(e)}async load(){try{const e=await this.unifiedStorage.loadLocale();if(e&&e.locales&&e.locales.length>0)return console.log("Loaded locale configuration from unified storage"),e;const t=await this.loadLegacy();return t?(console.log("Migrating locale configuration from legacy storage..."),await this.save(t),await this.deleteLegacy(),console.log("Locale configuration migration complete"),t):(console.log("No locale configuration found"),null)}catch(e){throw console.error("Failed to load locale configuration:",e),e}}async save(e){try{await this.unifiedStorage.saveLocale(e),console.log("Saved locale configuration to unified storage")}catch(e){throw console.error("Failed to save locale configuration:",e),e}}async loadLegacy(){try{const e=await this.client.fetch("*[_id == $id][0]",{id:LEGACY_LOCALE_CONFIG_DOC_ID});return e?{locales:e.locales||[],defaultLocale:e.defaultLocale,version:e.version||"1.0.0",lastUpdated:e.lastUpdated||(new Date).toISOString()}:null}catch(e){return console.error("Failed to load legacy locale configuration:",e),null}}async deleteLegacy(){try{await this.client.delete(LEGACY_LOCALE_CONFIG_DOC_ID),console.log("Deleted legacy locale configuration document")}catch(e){console.warn("Failed to delete legacy locale document:",e)}}}var react_is=__webpack_require__(4363),extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function __decorate(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function __param(e,t){return function(n,r){t(n,r,e)}}function __esDecorate(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,h=n.length-1;h>=0;h--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===l?o.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),f=!0}function __runInitializers(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function __propKey(e){return"symbol"==typeof e?e:"".concat(e)}function __setFunctionName(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function __generator(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var __createBinding=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function __exportStar(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||__createBinding(t,e,n)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=o[e](t)).value instanceof __await?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function __asyncDelegator(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:__await(e[r](t)),done:!1}:o?o(t):t}:o}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function __classPrivateFieldSet(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function __classPrivateFieldIn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function __addDisposableResource(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var _SuppressedError="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function __disposeResources(e){function t(t){e.error=e.hasError?new _SuppressedError(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var shallowequal=__webpack_require__(2833),shallowequal_default=__webpack_require__.n(shallowequal),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",Enum_RULESET="rule",DECLARATION="decl",PAGE="@page",MEDIA="@media",IMPORT="@import",CHARSET="@charset",VIEWPORT="@viewport",SUPPORTS="@supports",DOCUMENT="@document",NAMESPACE="@namespace",KEYFRAMES="@keyframes",FONT_FACE="@font-face",COUNTER_STYLE="@counter-style",FONT_FEATURE_VALUES="@font-feature-values",LAYER="@layer",SCOPE="@scope",abs=Math.abs,Utility_from=String.fromCharCode,Utility_assign=Object.assign;function hash(e,t){return 45^Utility_charat(e,0)?(((t<<2^Utility_charat(e,0))<<2^Utility_charat(e,1))<<2^Utility_charat(e,2))<<2^Utility_charat(e,3):0}function trim(e){return e.trim()}function match(e,t){return(e=t.exec(e))?e[0]:e}function replace(e,t,n){return e.replace(t,n)}function indexof(e,t,n){return e.indexOf(t,n)}function Utility_charat(e,t){return 0|e.charCodeAt(t)}function Utility_substr(e,t,n){return e.slice(t,n)}function Utility_strlen(e){return e.length}function Utility_sizeof(e){return e.length}function Utility_append(e,t){return t.push(e),e}function Utility_combine(e,t){return e.map(t).join("")}function filter(e,t){return e.filter(function(e){return!match(e,t)})}var line=1,column=1,Tokenizer_length=0,position=0,character=0,characters="";function node(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line,column,length:a,return:"",siblings:s}}function copy(e,t){return Utility_assign(node("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function lift(e){for(;e.root;)e=copy(e.root,{children:[e]});Utility_append(e,e.siblings)}function Tokenizer_char(){return character}function prev(){return character=position>0?Utility_charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position<Tokenizer_length?Utility_charat(characters,position++):0,column++,10===character&&(column=1,line++),character}function peek(){return Utility_charat(characters,position)}function caret(){return position}function slice(e,t){return Utility_substr(characters,e,t)}function token(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 alloc(e){return line=column=1,Tokenizer_length=Utility_strlen(characters=e),position=0,[]}function dealloc(e){return characters="",e}function delimit(e){return trim(slice(position-1,delimiter(91===e?e+2:40===e?e+1:e)))}function Tokenizer_tokenize(e){return dealloc(tokenizer(alloc(e)))}function whitespace(e){for(;(character=peek())&&character<33;)next();return token(e)>2||token(character)>3?"":" "}function tokenizer(e){for(;next();)switch(token(character)){case 0:append(identifier(position-1),e);break;case 2:append(delimit(character),e);break;default:append(from(character),e)}return e}function escaping(e,t){for(;--t&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position;case 34:case 39:34!==e&&39!==e&&delimiter(character);break;case 40:41===e&&delimiter(e);break;case 92:next()}return position}function commenter(e,t){for(;next()&&e+character!==57&&(e+character!==84||47!==peek()););return"/*"+slice(t,position-1)+"*"+Utility_from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,position)}function serialize(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function stringify(e,t,n,r){switch(e.type){case LAYER:if(e.children.length)break;case IMPORT:case DECLARATION:return e.return=e.return||e.value;case COMMENT:return"";case KEYFRAMES:return e.return=e.value+"{"+serialize(e.children,r)+"}";case Enum_RULESET:if(!Utility_strlen(e.value=e.props.join(",")))return""}return Utility_strlen(n=serialize(e.children,r))?e.return=e.value+"{"+n+"}":""}function prefix(e,t,n){switch(hash(e,t)){case 5103:return WEBKIT+"print-"+e+e;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 WEBKIT+e+e;case 4789:return MOZ+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+e+MOZ+e+MS+e+e;case 5936:switch(Utility_charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return WEBKIT+e+MS+e+e;case 6165:return WEBKIT+e+MS+"flex-"+e+e;case 5187:return WEBKIT+e+replace(e,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+e;case 5443:return WEBKIT+e+MS+"flex-item-"+replace(e,/flex-|-self/g,"")+(match(e,/flex-|baseline/)?"":MS+"grid-row-"+replace(e,/flex-|-self/g,""))+e;case 4675:return WEBKIT+e+MS+"flex-line-pack"+replace(e,/align-content|flex-|-self/g,"")+e;case 5548:return WEBKIT+e+MS+replace(e,"shrink","negative")+e;case 5292:return WEBKIT+e+MS+replace(e,"basis","preferred-size")+e;case 6060:return WEBKIT+"box-"+replace(e,"-grow","")+WEBKIT+e+MS+replace(e,"grow","positive")+e;case 4554:return WEBKIT+replace(e,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+e;case 6187:return replace(replace(replace(e,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return replace(e,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(e,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+e+e;case 4200:if(!match(e,/flex-|baseline/))return MS+"grid-column-align"+Utility_substr(e,t)+e;break;case 2592:case 3360:return MS+replace(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,match(e.props,/grid-\w+-end/)})?~indexof(e+(n=n[t].value),"span",0)?e:MS+replace(e,"-start","")+e+MS+"grid-row-span:"+(~indexof(n,"span",0)?match(n,/\d+/):+match(n,/\d+/)-+match(e,/\d+/))+";":MS+replace(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return match(e.props,/grid-\w+-start/)})?e:MS+replace(replace(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return replace(e,/(.+)-inline(.+)/,WEBKIT+"$1$2")+e;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(Utility_strlen(e)-1-t>6)switch(Utility_charat(e,t+1)){case 109:if(45!==Utility_charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==Utility_charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch",0)?prefix(replace(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return replace(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return MS+n+":"+r+s+(o?MS+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===Utility_charat(e,t+6))return replace(e,":",":"+WEBKIT)+e;break;case 6444:switch(Utility_charat(e,45===Utility_charat(e,14)?18:11)){case 120:return replace(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT+(45===Utility_charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e;case 100:return replace(e,":",":"+MS)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(e,"scroll-","scroll-snap-")+e}return e}function middleware(e){var t=Utility_sizeof(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function rulesheet(e){return function(t){t.root||(t=t.return)&&e(t)}}function prefixer(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case DECLARATION:return void(e.return=prefix(e.value,e.length,n));case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],r);case Enum_RULESET:if(e.length)return Utility_combine(n=e.props,function(t){switch(match(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy(e,{props:[replace(t,/:(read-\w+)/,":"+MOZ+"$1")]})),lift(copy(e,{props:[t]})),Utility_assign(e,{props:filter(n,r)});break;case"::placeholder":lift(copy(e,{props:[replace(t,/:(plac\w+)/,":"+WEBKIT+"input-$1")]})),lift(copy(e,{props:[replace(t,/:(plac\w+)/,":"+MOZ+"$1")]})),lift(copy(e,{props:[replace(t,/:(plac\w+)/,MS+"input-$1")]})),lift(copy(e,{props:[t]})),Utility_assign(e,{props:filter(n,r)})}return""})}}function namespace(e){e.type===RULESET&&(e.props=e.props.map(function(t){return combine(tokenize(t),function(t,n,r){switch(charat(t,0)){case 12:return substr(t,1,strlen(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+substr(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,sizeof(r)>1?"":t;case n=sizeof(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}})}))}function compile(e){return dealloc(parse("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,_=1,x=0,y="",b=o,v=i,w=r,j=y;g;)switch(p=x,x=next()){case 40:if(108!=p&&58==Utility_charat(j,d-1)){-1!=indexof(j+=replace(delimit(x),"&","&\f"),"&\f",abs(c?s[c-1]:0))&&(_=-1);break}case 34:case 39:case 91:j+=delimit(x);break;case 9:case 10:case 13:case 32:j+=whitespace(p);break;case 92:j+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(comment(commenter(next(),caret()),t,n,l),l);break;default:j+="/"}break;case 123*m:s[c++]=Utility_strlen(j)*_;case 125*m:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:-1==_&&(j=replace(j,/\f/g,"")),h>0&&Utility_strlen(j)-d&&Utility_append(h>32?declaration(j+";",r,n,d-1,l):declaration(replace(j," ","")+";",r,n,d-2,l),l);break;case 59:j+=";";default:if(Utility_append(w=ruleset(j,t,n,c,u,o,s,y,b=[],v=[],d,i),i),123===x)if(0===u)parse(j,t,w,w,b,i,d,s,v);else switch(99===f&&110===Utility_charat(j,3)?100:f){case 100:case 108:case 109:case 115:parse(e,w,w,r&&Utility_append(ruleset(e,w,w,0,0,o,s,y,o,b=[],d,v),v),o,v,d,s,r?b:v);break;default:parse(j,w,w,w,[""],v,0,s,v)}}c=u=h=0,m=_=1,y=j="",d=a;break;case 58:d=1+Utility_strlen(j),h=p;default:if(m<1)if(123==x)--m;else if(125==x&&0==m++&&125==prev())continue;switch(j+=Utility_from(x),x*m){case 38:_=u>0?1:(j+="\f",-1);break;case 44:s[c++]=(Utility_strlen(j)-1)*_,_=1;break;case 64:45===peek()&&(j+=delimit(next())),f=peek(),u=d=Utility_strlen(y=j+=identifier(caret())),x++;break;case 45:45===p&&2==Utility_strlen(j)&&(m=0)}}return i}function ruleset(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,h=0===o?i:[""],p=Utility_sizeof(h),m=0,g=0,_=0;m<r;++m)for(var x=0,y=Utility_substr(e,f+1,f=abs(g=a[m])),b=e;x<p;++x)(b=trim(g>0?h[x]+" "+y:replace(y,/&\f/g,h[x])))&&(l[_++]=b);return node(e,t,n,0===o?Enum_RULESET:s,l,c,u,d)}function comment(e,t,n,r){return node(e,t,n,COMMENT,Utility_from(Tokenizer_char()),Utility_substr(e,2,-2),0,r)}function declaration(e,t,n,r,o){return node(e,t,n,DECLARATION,Utility_substr(e,0,r),Utility_substr(e,r+1,-1),r,o)}var unitlessKeys={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},f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.19",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),b={},E=/invalid hook call/i,N=new Set,P=function(e,t){},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=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"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return(j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,z=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=function(e){return z(F,e)};function $(e){return x(M(e)>>>0)}function B(e){return e.displayName||e.name||"Component"}function G(e){return"string"==typeof e&&!0}var L="function"==typeof Symbol&&Symbol.for,Y=L?Symbol.for("react.memo"):60115,q=L?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[q]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var r=te(t);r&&r!==ne&&oe(e,r,n)}var o=K(t);Q&&(o=o.concat(Q(t)));for(var i=X(e),a=X(t),s=0;s<o.length;++s){var l=o[s];if(!(l in H||n&&n[l]||a&&l in a||i&&l in i)){var c=ee(t,l);try{Z(e,l,c)}catch(e){}}}}return e}function re(e){return"function"==typeof e}function se(e){return"object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=le(e[r],t[r]);else if(ce(t))for(var r in t)e[r]=le(e[r],t[r]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t})}var pe={};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function he(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new 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 fe=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(g);return t},e}(),me=null,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e)},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Pe=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(Ee);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(we(u,c),Ne(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(f)!==m&&(Pe(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ce(){return __webpack_require__.nc}var Ie=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(f,m),r.setAttribute(y,v);var a=Ce();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw he(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}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),De=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}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,t,n){void 0===e&&(e=C),void 0===t&&(t={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ve.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(f,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(g)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(__assign(__assign({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,r,o=void 0===e?C:e,i=o.options,a=void 0===i?C:i,s=o.plugins,l=void 0===s?_:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push(function(e){e.type===Enum_RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(r,c))}),a.prefix&&u.push(prefixer),u.push(stringify);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(xe,""),c=compile(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=Ve(c,a.namespace));var d=[];return serialize(c,middleware(u.concat(rulesheet(function(e){return d.push(e)})))),d};return d.hash=l.length?l.reduce(function(e,t){return t.name||he(15),z(e,t.name)},F).toString():"",d}var ze=new ke,Me=Fe(),$e=external_react_.default.createContext({shouldForwardProp:void 0,styleSheet:ze,stylis:Me}),Be=$e.Consumer,Ge=external_react_.default.createContext(void 0);function Le(){return(0,external_react_.useContext)($e)}function Ye(e){var t=(0,external_react_.useState)(e.stylisPlugins),n=t[0],r=t[1],o=Le().styleSheet,i=(0,external_react_.useMemo)(function(){var t=o;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,o]),a=(0,external_react_.useMemo)(function(){return Fe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,external_react_.useEffect)(function(){shallowequal_default()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=(0,external_react_.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return external_react_.default.createElement($e.Provider,{value:s},external_react_.default.createElement(Ge.Provider,{value:a},e.children))}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Me);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(o),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(o," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in unitlessKeys||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Xe(e,t,n,r){return Ue(e)?[]:se(e)?[".".concat(e.styledComponentId)]:re(e)?!re(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Xe(e(t),t,n,r):e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()];var o}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return!1}return!0}var Ke=M(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=z(Ke,t),this.baseStyle=n,ke.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else{var o=ae(Xe(this.rules,e,t,n)),i=x(z(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=ie(r,i),this.staticRulesId=i}else{for(var s=z(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=ae(Xe(u,e,t,n));s=z(s,d+c),l+=d}}if(l){var f=x(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=ie(r,f)}}return r},e}(),et=external_react_.default.createContext(void 0),tt=et.Consumer;function nt(){var e=(0,external_react_.useContext)(et);if(!e)throw he(18);return e}function ot(e){var t=external_react_.default.useContext(et),n=(0,external_react_.useMemo)(function(){return function(e,t){if(!e)throw he(14);if(re(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw he(8);return t?__assign(__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?external_react_.default.createElement(et.Provider,{value:n},e.children):null}var rt={},st=new Set;function it(e,t,n){var r=se(e),o=e,i=!G(e),a=t.attrs,s=void 0===a?_:a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var r="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,u=t.displayName,d=void 0===u?function(e){return G(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):u,f=t.displayName&&t.componentId?"".concat(R(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,p=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;p=function(e,t){return m(e,t)&&g(e,t)}}else p=m}var x=new Qe(n,f,r?o.componentStyle:void 0);function y(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,c=external_react_.default.useContext(et),u=Le(),d=e.shouldForwardProp||u.shouldForwardProp,f=I(t,c,i)||C,h=function(e,t,n){for(var r,o=__assign(__assign({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?ie(o[s],a[s]):"style"===s?__assign(__assign({},o[s]),a[s]):a[s]}return t.className&&(o.className=ie(o.className,t.className)),o}(r,t,f),p=h.as||l,m={};for(var g in h)void 0===h[g]||"$"===g[0]||"as"===g||"theme"===g&&h.theme===f||("forwardedAs"===g?m.as=h.forwardedAs:d&&!d(g,p)||(m[g]=h[g]));var _=function(e,t){var n=Le();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,h),x=ie(a,s);return _&&(x+=" "+_),h.className&&(x+=" "+h.className),m[G(p)&&!A.has(p)?"class":"className"]=x,n&&(m.ref=n),(0,external_react_.createElement)(p,m)}(b,e,t)}y.displayName=d;var b=external_react_.default.forwardRef(y);return b.attrs=h,b.componentStyle=x,b.displayName=d,b.shouldForwardProp=p,b.foldedComponentIds=r?ie(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)le(e,o[r],!0);return e}({},o.defaultProps,e):e}}),ue(b,function(){return".".concat(b.styledComponentId)}),i&&oe(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function at(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(re(e)||ce(e))return ct(Xe(at(_,__spreadArray([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,t)))}function ut(e,t,n){if(void 0===n&&(n=C),!t)throw he(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,lt.apply(void 0,__spreadArray([r],o,!1)))};return r.attrs=function(r){return ut(e,t,__assign(__assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return ut(e,t,__assign(__assign({},n),r))},r}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e)});var ht=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),ke.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(ae(Xe(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&ke.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ft(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=lt.apply(void 0,e([n],r,!1)),s="sc-global-".concat($(JSON.stringify(a))),l=new ht(a,s),c=function(e){var n=Le(),r=o.useContext(et),i=o.useRef(n.styleSheet.allocateGSInstance(s)).current;return n.styleSheet.server&&function(e,n,r,o,i){if(l.isStatic)l.renderStyles(e,b,r,i);else{var a=t(t({},n),{theme:I(n,o,c.defaultProps)});l.renderStyles(e,a,r,i)}}(i,e,n.styleSheet,r,n.stylis),null};return o.memo(c)}function mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ae(lt.apply(void 0,__spreadArray([e],t,!1))),o=$(r);return new qe(o,r)}function yt(e){var n=o.forwardRef(function(n,r){var i=I(n,o.useContext(et),e.defaultProps);return o.createElement(e,t({},n,{theme:i,ref:r}))});return n.displayName="WithTheme(".concat(B(e),")"),oe(n,e)}var vt=/^\s*<\/[a-z]/i,gt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Ce(),r=ae([n&&'nonce="'.concat(n,'"'),"".concat(f,'="true"'),"".concat(y,'="').concat(v,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw he(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw he(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[f]="",t[y]=v,t.dangerouslySetInnerHTML={__html:n},t),o=Ce();return o&&(r.nonce=o),[external_react_.default.createElement("style",__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ke({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw he(2);return external_react_.default.createElement(Ye,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(S)throw he(3);if(this.sealed)throw he(2);this.seal();var t=__webpack_require__(9008).Transform,n=e,r=this.instance,o=this._emitSheetCSS,i=new t({transform:function(e,t,n){var i=e.toString(),a=o();if(r.clearTag(),vt.test(i)){var s=i.indexOf(">")+1,l=i.slice(0,s),c=i.slice(s);this.push(l+a+c)}else this.push(a+i);n()}});return n.on("error",function(e){i.emit("error",e)}),n.pipe(i)},e}(),St={StyleSheet:ke,mainSheet:ze},wt="__sc-".concat(f,"__");const black$1="#101112",white$1="#fff",gray={50:{title:"Gray 50",hex:"#f2f3f5"},100:{title:"Gray 100",hex:"#e6e8ec"},200:{title:"Gray 200",hex:"#ced2d9"},300:{title:"Gray 300",hex:"#b6bcc6"},400:{title:"Gray 400",hex:"#9ea6b3"},500:{title:"Gray 500",hex:"#8690a0"},600:{title:"Gray 600",hex:"#6e7683"},700:{title:"Gray 700",hex:"#565d67"},800:{title:"Gray 800",hex:"#3f434a"},900:{title:"Gray 900",hex:"#272a2e"},950:{title:"Gray 950",hex:"#1b1d20"}},blue={50:{title:"Blue 50",hex:"#e8f1fe"},100:{title:"Blue 100",hex:"#d2e3fe"},200:{title:"Blue 200",hex:"#a6c8fd"},300:{title:"Blue 300",hex:"#7aacfd"},400:{title:"Blue 400",hex:"#4e91fc"},500:{title:"Blue 500",hex:"#2276fc"},600:{title:"Blue 600",hex:"#1e61cd"},700:{title:"Blue 700",hex:"#1a4d9e"},800:{title:"Blue 800",hex:"#17396f"},900:{title:"Blue 900",hex:"#132540"},950:{title:"Blue 950",hex:"#111b29"}},purple={50:{title:"Purple 50",hex:"#f8e9fe"},100:{title:"Purple 100",hex:"#f2d3fe"},200:{title:"Purple 200",hex:"#e6a7fd"},300:{title:"Purple 300",hex:"#d97bfd"},400:{title:"Purple 400",hex:"#cd4efc"},500:{title:"Purple 500",hex:"#c123fc"},600:{title:"Purple 600",hex:"#9d1fcd"},700:{title:"Purple 700",hex:"#7a1b9e"},800:{title:"Purple 800",hex:"#56186f"},900:{title:"Purple 900",hex:"#331440"},950:{title:"Purple 950",hex:"#211229"}},magenta={50:{title:"Magenta 50",hex:"#fcebf5"},100:{title:"Magenta 100",hex:"#f9d7eb"},200:{title:"Magenta 200",hex:"#f4afd8"},300:{title:"Magenta 300",hex:"#ef87c4"},400:{title:"Magenta 400",hex:"#ea5fb1"},500:{title:"Magenta 500",hex:"#e5389e"},600:{title:"Magenta 600",hex:"#ba3082"},700:{title:"Magenta 700",hex:"#8f2866"},800:{title:"Magenta 800",hex:"#65204a"},900:{title:"Magenta 900",hex:"#3a182d"},950:{title:"Magenta 950",hex:"#25141f"}},red={50:{title:"Red 50",hex:"#fdebea"},100:{title:"Red 100",hex:"#fcd8d5"},200:{title:"Red 200",hex:"#f9b1ab"},300:{title:"Red 300",hex:"#f68b82"},400:{title:"Red 400",hex:"#f36458"},500:{title:"Red 500",hex:"#f03e2f"},600:{title:"Red 600",hex:"#c33529"},700:{title:"Red 700",hex:"#962c23"},800:{title:"Red 800",hex:"#69231d"},900:{title:"Red 900",hex:"#3c1a17"},950:{title:"Red 950",hex:"#261514"}},orange={50:{title:"Orange 50",hex:"#fef0e6"},100:{title:"Orange 100",hex:"#fee2ce"},200:{title:"Orange 200",hex:"#fdc59d"},300:{title:"Orange 300",hex:"#fca86d"},400:{title:"Orange 400",hex:"#fb8b3c"},500:{title:"Orange 500",hex:"#e57322"},600:{title:"Orange 600",hex:"#ba5f1f"},700:{title:"Orange 700",hex:"#904b1b"},800:{title:"Orange 800",hex:"#653818"},900:{title:"Orange 900",hex:"#3a2415"},950:{title:"Orange 950",hex:"#251a13"}},yellow={50:{title:"Yellow 50",hex:"#fef7da"},100:{title:"Yellow 100",hex:"#fdefb6"},200:{title:"Yellow 200",hex:"#fcdf6d"},300:{title:"Yellow 300",hex:"#fbd024"},400:{title:"Yellow 400",hex:"#d9b421"},500:{title:"Yellow 500",hex:"#b7991e"},600:{title:"Yellow 600",hex:"#967e1c"},700:{title:"Yellow 700",hex:"#746219"},800:{title:"Yellow 800",hex:"#534717"},900:{title:"Yellow 900",hex:"#312c14"},950:{title:"Yellow 950",hex:"#201e13"}},green={50:{title:"Green 50",hex:"#e7f9ed"},100:{title:"Green 100",hex:"#d0f4dc"},200:{title:"Green 200",hex:"#a1eaba"},300:{title:"Green 300",hex:"#72e097"},400:{title:"Green 400",hex:"#43d675"},500:{title:"Green 500",hex:"#3ab564"},600:{title:"Green 600",hex:"#329454"},700:{title:"Green 700",hex:"#297343"},800:{title:"Green 800",hex:"#215233"},900:{title:"Green 900",hex:"#183122"},950:{title:"Green 950",hex:"#14211a"}},cyan={50:{title:"Cyan 50",hex:"#e3fafd"},100:{title:"Cyan 100",hex:"#c7f5fc"},200:{title:"Cyan 200",hex:"#90ecf9"},300:{title:"Cyan 300",hex:"#59e3f6"},400:{title:"Cyan 400",hex:"#22daf4"},500:{title:"Cyan 500",hex:"#1fb8ce"},600:{title:"Cyan 600",hex:"#1c97a8"},700:{title:"Cyan 700",hex:"#197583"},800:{title:"Cyan 800",hex:"#16545d"},900:{title:"Cyan 900",hex:"#133237"},950:{title:"Cyan 950",hex:"#112124"}},hues={gray,blue,purple,magenta,red,orange,yellow,green,cyan},COLOR_HUES=null,COLOR_TINTS=null,black={title:"Black",hex:black$1},white={title:"White",hex:white$1};var Refractor=__webpack_require__(449),Refractor_default=__webpack_require__.n(Refractor);const sides=["top","right","bottom","left"],alignments=null,floating_ui_utils_placements=null,floating_ui_utils_min=Math.min,floating_ui_utils_max=Math.max,round=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return floating_ui_utils_max(e,floating_ui_utils_min(t,n))}function floating_ui_utils_evaluate(e,t){return"function"==typeof e?e(t):e}function floating_ui_utils_getSide(e){return e.split("-")[0]}function floating_ui_utils_getAlignment(e){return e.split("-")[1]}function floating_ui_utils_getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function floating_ui_utils_getSideAxis(e){return yAxisSides.has(floating_ui_utils_getSide(e))?"y":"x"}function getAlignmentAxis(e){return floating_ui_utils_getOppositeAxis(floating_ui_utils_getSideAxis(e))}function floating_ui_utils_getAlignmentSides(e,t,n){void 0===n&&(n=!1);const r=floating_ui_utils_getAlignment(e),o=getAlignmentAxis(e),i=getAxisLength(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=getOppositePlacement(a)),[a,getOppositePlacement(a)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[floating_ui_utils_getOppositeAlignmentPlacement(e),t,floating_ui_utils_getOppositeAlignmentPlacement(t)]}function floating_ui_utils_getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>oppositeAlignmentMap[e])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(e,t,n){switch(e){case"top":case"bottom":return n?t?rlPlacement:lrPlacement:t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){const o=floating_ui_utils_getAlignment(e);let i=getSideList(floating_ui_utils_getSide(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(floating_ui_utils_getOppositeAlignmentPlacement)))),i}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>oppositeSideMap[e])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function floating_ui_utils_getPaddingObject(e){return"number"!=typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function floating_ui_utils_rectToClientRect(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let{reference:r,floating:o}=e;const i=floating_ui_utils_getSideAxis(t),a=getAlignmentAxis(t),s=getAxisLength(a),l=floating_ui_utils_getSide(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(floating_ui_utils_getAlignment(t)){case"start":h[a]-=f*(n&&c?-1:1);break;case"end":h[a]+=f*(n&&c?-1:1)}return h}const computePosition=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=computeCoordsFromPlacement(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:_,data:x,reset:y}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=_?_:d,h={...h,[i]:{...h[i],...x}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=computeCoordsFromPlacement(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}};async function detectOverflow(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=floating_ui_utils_evaluate(t,e),p=floating_ui_utils_getPaddingObject(h),m=s[f?"floating"===d?"reference":"floating":d],g=floating_ui_utils_rectToClientRect(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),_="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=floating_ui_utils_rectToClientRect(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:x,strategy:l}):_);return{top:(g.top-b.top+p.top)/y.y,bottom:(b.bottom-g.bottom+p.bottom)/y.y,left:(g.left-b.left+p.left)/y.x,right:(b.right-g.right+p.right)/y.x}}const arrow=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=floating_ui_utils_evaluate(e,t)||{};if(null==c)return{};const d=floating_ui_utils_getPaddingObject(u),f={x:n,y:r},h=getAlignmentAxis(o),p=getAxisLength(h),m=await a.getDimensions(c),g="y"===h,_=g?"top":"left",x=g?"bottom":"right",y=g?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[h]-f[h]-i.floating[p],v=f[h]-i.reference[h],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let j=w?w[y]:0;j&&await(null==a.isElement?void 0:a.isElement(w))||(j=s.floating[y]||i.floating[p]);const C=b/2-v/2,k=j/2-m[p]/2-1,S=floating_ui_utils_min(d[_],k),L=floating_ui_utils_min(d[x],k),T=S,E=j-m[p]-L,R=j/2-m[p]/2+C,M=clamp(T,R,E),A=!l.arrow&&null!=floating_ui_utils_getAlignment(o)&&R!==M&&i.reference[p]/2-(R<T?S:L)-m[p]/2<0,$=A?R<T?R-T:R-E:0;return{[h]:f[h]+$,data:{[h]:M,centerOffset:R-M-$,...A&&{alignmentOffset:$}},reset:A}}});function getPlacementList(e,t,n){return(e?[...n.filter(t=>getAlignment(t)===e),...n.filter(t=>getAlignment(t)!==e)]:n.filter(e=>getSide(e)===e)).filter(n=>!e||getAlignment(n)===e||!!t&&getOppositeAlignmentPlacement(n)!==n)}const autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:a,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=placements,autoAlignment:h=!0,...p}=evaluate(e,t),m=void 0!==d||f===placements?getPlacementList(d||null,h,f):f,g=await detectOverflow(t,p),_=(null==(n=a.autoPlacement)?void 0:n.index)||0,x=m[_];if(null==x)return{};const y=getAlignmentSides(x,i,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==x)return{reset:{placement:m[0]}};const b=[g[getSide(x)],g[y[0]],g[y[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:x,overflows:b}],w=m[_+1];if(w)return{data:{index:_+1,overflows:v},reset:{placement:w}};const j=v.map(e=>{const t=getAlignment(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=j.filter(e=>e[2].slice(0,getAlignment(e[0])?2:3).every(e=>e<=0)),k=(null==(o=C[0])?void 0:o[0])||j[0][0];return k!==s?{data:{index:_+1,overflows:v},reset:{placement:k}}:{}}}},flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=floating_ui_utils_evaluate(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const _=floating_ui_utils_getSide(o),x=floating_ui_utils_getSideAxis(s),y=floating_ui_utils_getSide(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),v=f||(y||!m?[getOppositePlacement(s)]:getExpandedPlacements(s)),w="none"!==p;!f&&w&&v.push(...getOppositeAxisPlacements(s,m,p,b));const j=[s,...v],C=await detectOverflow(t,g),k=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(C[_]),d){const e=floating_ui_utils_getAlignmentSides(o,a,b);k.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:o,overflows:k}],!k.every(e=>e<=0)){var L,T;const e=((null==(L=i.flip)?void 0:L.index)||0)+1,t=j[e];if(t&&("alignment"!==d||x===floating_ui_utils_getSideAxis(t)||S.every(e=>floating_ui_utils_getSideAxis(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(T=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=S.filter(e=>{if(w){const t=floating_ui_utils_getSideAxis(e.placement);return t===x||"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:E[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return sides.some(t=>e[t]>=0)}const hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=floating_ui_utils_evaluate(e,t);switch(r){case"referenceHidden":{const e=getSideOffsets(await detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:isAnySideFullyClipped(e)}}}case"escaped":{const e=getSideOffsets(await detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:isAnySideFullyClipped(e)}}}default:return{}}}}};function getBoundingRect(e){const t=min(...e.map(e=>e.left)),n=min(...e.map(e=>e.top));return{x:t,y:n,width:max(...e.map(e=>e.right))-t,height:max(...e.map(e=>e.bottom))-n}}function getRectsByLine(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>rectToClientRect(getBoundingRect(e)))}const inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:a}=t,{padding:s=2,x:l,y:c}=evaluate(e,t),u=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),d=getRectsByLine(u),f=rectToClientRect(getBoundingRect(u)),h=getPaddingObject(s),p=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find(e=>l>e.left-h.left&&l<e.right+h.right&&c>e.top-h.top&&c<e.bottom+h.bottom)||f;if(d.length>=2){if("y"===getSideAxis(n)){const e=d[0],t=d[d.length-1],r="top"===getSide(n),o=e.top,i=t.bottom,a=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:i,left:a,right:s,width:s-a,height:i-o,x:a,y:o}}const e="left"===getSide(n),t=max(...d.map(e=>e.right)),r=min(...d.map(e=>e.left)),o=d.filter(n=>e?n.left===r:n.right===t),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:r,right:t,width:t-r,height:a-i,x:r,y:i}}return f}},floating:r.floating,strategy:a});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=floating_ui_utils_getSide(n),s=floating_ui_utils_getAlignment(n),l="y"===floating_ui_utils_getSideAxis(n),c=originSides.has(a)?-1:1,u=i&&l?-1:1,d=floating_ui_utils_evaluate(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await convertValueToCoords(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=floating_ui_utils_evaluate(e,t),c={x:n,y:r},u=await detectOverflow(t,l),d=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(o)),f=floating_ui_utils_getOppositeAxis(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=clamp(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=clamp(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=evaluate(e,t),u={x:n,y:r},d=getSideAxis(o),f=getOppositeAxis(d);let h=u[f],p=u[d];const m=evaluate(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var _,x;const e="y"===f?"width":"height",t=originSides.has(getSide(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(_=a.offset)?void 0:_[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:h,[d]:p}}}},size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=evaluate(e,t),u=await detectOverflow(t,c),d=getSide(o),f=getAlignment(o),h="y"===getSideAxis(o),{width:p,height:m}=i.floating;let g,_;"top"===d||"bottom"===d?(g=d,_=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(_=d,g="end"===f?"top":"bottom");const x=m-u.top-u.bottom,y=p-u.left-u.right,b=min(m-u[g],x),v=min(p-u[_],y),w=!t.middlewareData.shift;let j=b,C=v;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(j=x),w&&!f){const e=max(u.left,0),t=max(u.right,0),n=max(u.top,0),r=max(u.bottom,0);h?C=p-2*(0!==e||0!==t?e+t:max(u.left,u.right)):j=m-2*(0!==n||0!==r?n+r:max(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:j});const k=await a.getDimensions(s.floating);return p!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=floating_ui_utils_dom_getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!invalidOverflowDisplayValues.has(o)}const tableElements=new Set(["table","td","th"]);function isTableElement(e){return tableElements.has(getNodeName(e))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(e){return topLayerSelectors.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(e){const t=isWebKit(),n=isElement(e)?floating_ui_utils_dom_getComputedStyle(e):e;return transformProperties.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||willChangeValues.some(e=>(n.willChange||"").includes(e))||containValues.some(e=>(n.contain||"").includes(e))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(e){return lastTraversableNodeNames.has(getNodeName(e))}function floating_ui_utils_dom_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=getNearestOverflowAncestor(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=getWindow(o);if(i){const e=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(o)?o:[],e&&n?getOverflowAncestors(e):[])}return t.concat(o,getOverflowAncestors(o,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=floating_ui_utils_dom_getComputedStyle(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=isHTMLElement(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=round(n)!==i||round(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=getCssDimensions(t);let a=(i?round(n.width):n.width)/r,s=(i?round(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const noOffsets=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}function getBoundingClientRect(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=unwrapElement(e);let a=createCoords(1);t&&(r?isElement(r)&&(a=getScale(r)):a=getScale(e));const s=shouldAddVisualOffsets(i,n,r)?getVisualOffsets(i):createCoords(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=getWindow(i),t=r&&isElement(r)?getWindow(r):r;let n=e,o=getFrameElement(n);for(;o&&r&&t!==n;){const e=getScale(o),t=o.getBoundingClientRect(),r=floating_ui_utils_dom_getComputedStyle(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=getWindow(o),o=getFrameElement(n)}}return floating_ui_utils_rectToClientRect({width:u,height:d,x:l,y:c})}function getWindowScrollBarX(e,t){const n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-getWindowScrollBarX(e,n),y:n.top+t.scrollTop}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=getDocumentElement(r),s=!!t&&isTopLayer(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=createCoords(1);const u=createCoords(0),d=isHTMLElement(r);if((d||!d&&!i)&&(("body"!==getNodeName(r)||isOverflowElement(a))&&(l=getNodeScroll(r)),isHTMLElement(r))){const e=getBoundingClientRect(r);c=getScale(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?createCoords(0):getHTMLOffset(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),r=e.ownerDocument.body,o=floating_ui_utils_max(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=floating_ui_utils_max(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+getWindowScrollBarX(e);const s=-n.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(r).direction&&(a+=floating_ui_utils_max(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const SCROLLBAR_MAX=25;function getViewportRect(e,t){const n=getWindow(e),r=getDocumentElement(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=isWebKit();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=getWindowScrollBarX(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=SCROLLBAR_MAX&&(i-=a)}else c<=SCROLLBAR_MAX&&(i+=c);return{width:i,height:a,x:s,y:l}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=isHTMLElement(e)?getScale(e):createCoords(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function getClientRectFromClippingAncestor(e,t,n){let r;if("viewport"===t)r=getViewportRect(e,n);else if("document"===t)r=getDocumentRect(getDocumentElement(e));else if(isElement(t))r=getInnerBoundingClientRect(t,n);else{const n=getVisualOffsets(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return floating_ui_utils_rectToClientRect(r)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===floating_ui_utils_dom_getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let r=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),o=null;const i="fixed"===floating_ui_utils_dom_getComputedStyle(e).position;let a=i?getParentNode(e):e;for(;isElement(a)&&!isLastTraversableNode(a);){const t=floating_ui_utils_dom_getComputedStyle(a),n=isContainingBlock(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&absoluteOrFixed.has(o.position)||isOverflowElement(a)&&!n&&hasFixedPositionAncestor(e,a))?r=r.filter(e=>e!==a):o=t,a=getParentNode(a)}return t.set(e,r),r}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=getClientRectFromClippingAncestor(t,n,o);return e.top=floating_ui_utils_max(r.top,e.top),e.right=floating_ui_utils_min(r.right,e.right),e.bottom=floating_ui_utils_min(r.bottom,e.bottom),e.left=floating_ui_utils_max(r.left,e.left),e},getClientRectFromClippingAncestor(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const r=isHTMLElement(t),o=getDocumentElement(t),i="fixed"===n,a=getBoundingClientRect(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=createCoords(0);function c(){l.x=getWindowScrollBarX(o)}if(r||!r&&!i)if(("body"!==getNodeName(t)||isOverflowElement(o))&&(s=getNodeScroll(t)),r){const e=getBoundingClientRect(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?createCoords(0):getHTMLOffset(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function isStaticPositioned(e){return"static"===floating_ui_utils_dom_getComputedStyle(e).position}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||"fixed"===floating_ui_utils_dom_getComputedStyle(e).position)return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){const n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement(e)){let t=getParentNode(e);for(;t&&!isLastTraversableNode(t);){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return n}let r=getTrueOffsetParent(e,t);for(;r&&isTableElement(r)&&isStaticPositioned(r);)r=getTrueOffsetParent(r,t);return r&&isLastTraversableNode(r)&&isStaticPositioned(r)&&!isContainingBlock(r)?n:r||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,r=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function isRTL(e){return"rtl"===floating_ui_utils_dom_getComputedStyle(e).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n,r=null;const o=getDocumentElement(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;const p={rootMargin:-floor(d)+"px "+-floor(o.clientWidth-(u+f))+"px "+-floor(o.clientHeight-(d+h))+"px "+-floor(u)+"px",threshold:floating_ui_utils_max(0,floating_ui_utils_min(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||rectsAreEqual(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}function autoUpdate(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=unwrapElement(e),u=o||i?[...c?getOverflowAncestors(c):[],...getOverflowAncestors(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?observeMove(c,n):null;let f,h=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m=l?getBoundingClientRect(e):null;return l&&function t(){const r=getBoundingClientRect(e);m&&!rectsAreEqual(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const floating_ui_dom_detectOverflow=detectOverflow,floating_ui_dom_offset=offset,floating_ui_dom_autoPlacement=null,floating_ui_dom_shift=shift,floating_ui_dom_flip=flip,floating_ui_dom_size=null,floating_ui_dom_hide=hide,floating_ui_dom_arrow=arrow,floating_ui_dom_inline=null,floating_ui_dom_limitShift=null,floating_ui_dom_computePosition=(e,t,n)=>{const r=new Map,o={platform,...n},i={...o.platform,_c:r};return computePosition(e,t,{...o,platform:i})},floating_ui_react_dom_esm_arrow=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return t&&(r=t,{}.hasOwnProperty.call(r,"current"))?null!=t.current?floating_ui_dom_arrow({element:t.current,padding:n}).fn(e):{}:t?floating_ui_dom_arrow({element:t,padding:n}).fn(e):{};var r}}};var index="undefined"!=typeof document?external_react_.useLayoutEffect:external_react_.useEffect;function deepEqual(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!deepEqual(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||deepEqual(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function getDPR(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){const t=external_react_.useRef(e);return index(()=>{t.current=e}),t}function useFloating(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=external_react_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=external_react_.useState(r);deepEqual(f,r)||h(r);const[p,m]=external_react_.useState(null),[g,_]=external_react_.useState(null),x=external_react_.useCallback(e=>{e!=w.current&&(w.current=e,m(e))},[m]),y=external_react_.useCallback(e=>{e!==j.current&&(j.current=e,_(e))},[_]),b=i||p,v=a||g,w=external_react_.useRef(null),j=external_react_.useRef(null),C=external_react_.useRef(u),k=useLatestRef(l),S=useLatestRef(o),L=external_react_.useCallback(()=>{if(!w.current||!j.current)return;const e={placement:t,strategy:n,middleware:f};S.current&&(e.platform=S.current),floating_ui_dom_computePosition(w.current,j.current,e).then(e=>{const t={...e,isPositioned:!0};T.current&&!deepEqual(C.current,t)&&(C.current=t,__WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_flushSync__(()=>{d(t)}))})},[f,t,n,S]);index(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const T=external_react_.useRef(!1);index(()=>(T.current=!0,()=>{T.current=!1}),[]),index(()=>{if(b&&(w.current=b),v&&(j.current=v),b&&v){if(k.current)return k.current(b,v,L);L()}},[b,v,L,k]);const E=external_react_.useMemo(()=>({reference:w,floating:j,setReference:x,setFloating:y}),[x,y]),R=external_react_.useMemo(()=>({reference:b,floating:v}),[b,v]),M=external_react_.useMemo(()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=roundByDPR(R.floating,u.x),r=roundByDPR(R.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,R.floating,u.x,u.y]);return external_react_.useMemo(()=>({...u,update:L,refs:E,elements:R,floatingStyles:M}),[u,L,E,R,M])}const EMPTY_ARRAY=[],EMPTY_RECORD={},FLOATING_STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"};function _fillCSSObject(e,t){return e.reduce((e,n)=>(e[n]=t,e),{})}function rem(e){return 0===e?0:"".concat(e/16,"rem")}function _responsive(e,t,n){return((null==t?void 0:t.map(n))||[]).map((t,n)=>0===n?t:{["@media screen and (min-width: ".concat(e[n-1],"px)")]:t})}function _getArrayProp(e,t){return void 0===e?t||EMPTY_ARRAY:Array.isArray(e)?e:[e]}function _getResponsiveSpace(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:EMPTY_ARRAY;if(!Array.isArray(n))throw new Error("the property must be array of numbers");return 0===n.length?null:_responsive(e.sanity.media,n,n=>_fillCSSObject(t,rem(e.sanity.space[n])))}function responsiveFont(e,t){const{$size:n,$weight:r,theme:o}=t,{fonts:i,media:a}=o.sanity,{family:s,sizes:l,weights:c}=i[e],u=r&&c[r]||c.regular,d=l[2],f={position:"relative",fontFamily:s,fontWeight:u,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0},"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};return n?[f,..._responsive(a,n,e=>fontSize(l[e]||d))]:(responsiveFont.warned||(console.warn("No size specified for responsive font",{fontKey:e,$size:n,props:t,base:f}),responsiveFont.warned=!0),[f])}function fontSize(e){const{ascenderHeight:t,descenderHeight:n,fontSize:r,iconSize:o,letterSpacing:i,lineHeight:a}=e,s=t+n,l=a-s,c=(l-o)/2,u=2*Math.floor(1.125*r/2)+1,d=(l-u)/2;return{fontSize:rem(r),lineHeight:"calc(".concat(a," / ").concat(r,")"),letterSpacing:rem(i),transform:"translateY(".concat(rem(n),")"),"&:before":{marginTop:"calc(".concat(rem(0-s)," - 1px)")},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:"calc(".concat(u," / 16 * 1rem)"),margin:rem(d)},"& [data-sanity-icon]":{fontSize:"calc(".concat(o," / 16 * 1rem)"),margin:rem(c)}}}function responsiveCodeFontStyle(e){return responsiveFont("code",e)}function responsiveHeadingFont(e){return responsiveFont("heading",e)}function responsiveLabelFont(e){return responsiveFont("label",e)}function responsiveTextAlignStyle(e){const{theme:t}=e;return _responsive(t.sanity.media,e.$align,e=>({textAlign:e}))}function responsiveTextFont(e){return responsiveFont("text",e)}function useArrayProp(e,t){const n=(0,external_react_.useMemo)(()=>JSON.stringify(null!=e?e:t),[t,e]);return(0,external_react_.useMemo)(()=>_getArrayProp(e,t),[n])}function _getElements(e,t){const n=[e];for(const e of t)Array.isArray(e)?n.push(...e):n.push(e);return n.filter(Boolean)}function useClickOutside(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EMPTY_ARRAY,n=arguments.length>2?arguments[2]:void 0;const[r,o]=(0,external_react_.useState)(null),[i,a]=(0,external_react_.useState)(()=>_getElements(r,t)),s=(0,external_react_.useRef)(i);return(0,external_react_.useEffect)(()=>{const e=s.current,n=_getElements(r,t);if(e.length!==n.length)return a(n),void(s.current=n);for(const t of e)if(!n.includes(t))return a(n),void(s.current=n);for(const t of n)if(!e.includes(t))return a(n),void(s.current=n)},[r,t]),(0,external_react_.useEffect)(()=>{if(!e)return;const t=t=>{const r=t.target;if(r instanceof Node&&(!n||n.contains(r))){for(const e of i)if(r===e||e.contains(r))return;e(t)}};return window.addEventListener("mousedown",t),()=>{window.removeEventListener("mousedown",t)}},[n,e,i]),o}var resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(e){return e.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(e){return e.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:msg}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=msg),window.dispatchEvent(e)},ResizeObserverBoxOptions;!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(e){return Object.freeze(e)},ResizeObserverSize=function(e,t){this.inlineSize=e,this.blockSize=t,freeze(this)},DOMRectReadOnly=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),isSVG=function(e){return e instanceof SVGElement&&"getBBox"in e},isHidden=function(e){if(isSVG(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},index_esm_isElement=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},isReplacedElement=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},global$1="undefined"!=typeof window?window:{},cache=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global$1.navigator&&global$1.navigator.userAgent),parseDimension=function(e){return parseFloat(e||"0")},index_esm_size$1=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new ResizeObserverSize((n?t:e)||0,(n?e:t)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:index_esm_size$1(),borderBoxSize:index_esm_size$1(),contentBoxSize:index_esm_size$1(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(e,t){if(void 0===t&&(t=!1),cache.has(e)&&!t)return cache.get(e);if(isHidden(e))return cache.set(e,zeroBoxes),zeroBoxes;var n=getComputedStyle(e),r=isSVG(e)&&e.ownerSVGElement&&e.getBBox(),o=!IE&&"border-box"===n.boxSizing,i=verticalRegexp.test(n.writingMode||""),a=!r&&scrollRegexp.test(n.overflowY||""),s=!r&&scrollRegexp.test(n.overflowX||""),l=r?0:parseDimension(n.paddingTop),c=r?0:parseDimension(n.paddingRight),u=r?0:parseDimension(n.paddingBottom),d=r?0:parseDimension(n.paddingLeft),f=r?0:parseDimension(n.borderTopWidth),h=r?0:parseDimension(n.borderRightWidth),p=r?0:parseDimension(n.borderBottomWidth),m=d+c,g=l+u,_=(r?0:parseDimension(n.borderLeftWidth))+h,x=f+p,y=s?e.offsetHeight-x-e.clientHeight:0,b=a?e.offsetWidth-_-e.clientWidth:0,v=o?m+_:0,w=o?g+x:0,j=r?r.width:parseDimension(n.width)-v-b,C=r?r.height:parseDimension(n.height)-w-y,k=j+m+b+_,S=C+g+y+x,L=freeze({devicePixelContentBoxSize:index_esm_size$1(Math.round(j*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:index_esm_size$1(k,S,i),contentBoxSize:index_esm_size$1(j,C,i),contentRect:new DOMRectReadOnly(d,l,j,C)});return cache.set(e,L),L},calculateBoxSize=function(e,t,n){var r=calculateBoxSizes(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return a;case ResizeObserverBoxOptions.BORDER_BOX:return o;default:return i}},ResizeObserverEntry=function(e){var t=calculateBoxSizes(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=freeze([t.borderBoxSize]),this.contentBoxSize=freeze([t.contentBoxSize]),this.devicePixelContentBoxSize=freeze([t.devicePixelContentBoxSize])},calculateDepthForNode=function(e){if(isHidden(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},broadcastActiveObservations=function(){var e=1/0,t=[];resizeObservers.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new ResizeObserverEntry(t.target),o=calculateDepthForNode(t.target);r.push(n),t.lastReportedSize=calculateBoxSize(t.target,t.observedBox),o<e&&(e=o)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++)(0,r[n])();return e},gatherActiveObservationsAtDepth=function(e){resizeObservers.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(calculateDepthForNode(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},index_esm_process=function(){var e=0;for(gatherActiveObservationsAtDepth(e);hasActiveObservations();)e=broadcastActiveObservations(),gatherActiveObservationsAtDepth(e);return hasSkippedObservations()&&deliverResizeLoopError(),e>0},trigger,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(e){return e()})},queueMicroTask=function(e){if(!trigger){var t=0,n=document.createTextNode("");new MutationObserver(function(){return notify()}).observe(n,{characterData:!0}),trigger=function(){n.textContent="".concat(t?t--:t++)}}callbacks.push(e),trigger()},queueResizeObserver=function(e){queueMicroTask(function(){requestAnimationFrame(e)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time=function(e){return void 0===e&&(e=0),Date.now()+e},scheduled=!1,Scheduler=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=CATCH_PERIOD),!scheduled){scheduled=!0;var n=time(e);queueResizeObserver(function(){var r=!1;try{r=index_esm_process()}finally{if(scheduled=!1,e=n-time(),!isWatching())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,observerConfig)};document.body?t():global$1.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(t){return global$1.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(t){return global$1.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}(),scheduler=new Scheduler,updateCount=function(e){!watching&&e>0&&scheduler.start(),!(watching+=e)&&scheduler.stop()},skipNotifyOnElement=function(e){return!isSVG(e)&&!isReplacedElement(e)&&"inline"===getComputedStyle(e).display},ResizeObservation=function(){function e(e,t){this.target=e,this.observedBox=t||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),ResizeObserverDetail=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},observerMap=new WeakMap,getObservationIndex=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ResizeObserverController=function(){function e(){}return e.connect=function(e,t){var n=new ResizeObserverDetail(e,t);observerMap.set(e,n)},e.observe=function(e,t,n){var r=observerMap.get(e),o=0===r.observationTargets.length;getObservationIndex(r.observationTargets,t)<0&&(o&&resizeObservers.push(r),r.observationTargets.push(new ResizeObservation(t,n&&n.box)),updateCount(1),scheduler.schedule())},e.unobserve=function(e,t){var n=observerMap.get(e),r=getObservationIndex(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&resizeObservers.splice(resizeObservers.indexOf(n),1),n.observationTargets.splice(r,1),updateCount(-1))},e.disconnect=function(e){var t=this,n=observerMap.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),index_esm_ResizeObserver=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!index_esm_isElement(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!index_esm_isElement(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,e)},e.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const _ResizeObserver="undefined"!=typeof document&&"undefined"!=typeof window&&window.ResizeObserver?window.ResizeObserver:index_esm_ResizeObserver,_elementSizeObserver=_createElementSizeObserver();function _createElementRectValueListener(){return{subscribe(e,t){const n=new _ResizeObserver(e=>{let[n]=e;t({_contentRect:n.contentRect,border:{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize},content:{width:n.contentRect.width,height:n.contentRect.height}})});return n.observe(e),()=>{n.unobserve(e),n.disconnect()}}}}function _createElementSizeObserver(){const e=new WeakMap,t=new WeakMap;return{subscribe(n,r){const o=t.get(n)||[];let i=e.get(n);if(!t.has(n)){t.set(n,o);const e=_createElementRectValueListener();i=e.subscribe(n,e=>{for(const t of o)t(e)})}return o.push(r),()=>{const e=o.indexOf(r);e>-1&&o.splice(e,1),0===o.length&&i&&i()}}}}function useElementSize(e){const[t,n]=(0,external_react_.useState)(null);return(0,external_react_.useEffect)(()=>{if(e)return _elementSizeObserver.subscribe(e,n)},[e]),t}function useElementRect(e){const t=useElementSize(e);return(null==t?void 0:t._contentRect)||null}function useGlobalKeyDown(e){return(0,external_react_.useEffect)(()=>(addEventListener("keydown",e),()=>removeEventListener("keydown",e)),[e])}function multiplyChannel(e,t){return e*t}function multiply$1(e,t){return{r:Math.round(clamp$1(255*multiplyChannel(e.r/255,t.r/255))),g:Math.round(clamp$1(255*multiplyChannel(e.g/255,t.g/255))),b:Math.round(clamp$1(255*multiplyChannel(e.b/255,t.b/255)))}}function clamp$1(e){return Math.max(Math.min(e,255),0)}function screenChannel(e,t){return e+t-e*t}function screen$1(e,t){return{r:Math.round(index_esm_clamp(255*screenChannel(e.r/255,t.r/255))),g:Math.round(index_esm_clamp(255*screenChannel(e.g/255,t.g/255))),b:Math.round(index_esm_clamp(255*screenChannel(e.b/255,t.b/255)))}}function index_esm_clamp(e){return Math.max(Math.min(e,255),0)}function hexToRgb(e){if(4===e.length){const t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function rgbToHex(e){let{r:t,g:n,b:r}=e;return"#"+((1<<24)+(t<<16)+(n<<8)+r).toString(16).slice(1)}function rgbToHsl(e){let{r:t,g:n,b:r}=e;t/=255,n/=255,r/=255;const o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s=0,l=0,c=0;return s=0==a?0:i==t?(n-r)/a%6:i==n?(r-t)/a+2:(t-n)/a+4,s=Math.round(60*s),s<0&&(s+=360),c=(i+o)/2,l=0==a?0:a/(1-Math.abs(2*c-1)),l=+(100*l).toFixed(1),c=+(100*c).toFixed(1),{h:s,s:l,l:c}}function hslToRgb(e){const t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,o=r*(1-Math.abs(e.h/60%2-1)),i=n-r/2;let a=0,s=0,l=0;return 0<=e.h&&e.h<60?(a=r,s=o,l=0):60<=e.h&&e.h<120?(a=o,s=r,l=0):120<=e.h&&e.h<180?(a=0,s=r,l=o):180<=e.h&&e.h<240?(a=0,s=o,l=r):240<=e.h&&e.h<300?(a=o,s=0,l=r):300<=e.h&&e.h<360&&(a=r,s=0,l=o),{r:Math.round(255*(a+i)),g:Math.round(255*(s+i)),b:Math.round(255*(l+i))}}const HEX_CHARS="0123456789ABCDEFabcdef",HSL_RE=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function isHexChars(e){for(const t of e)if(-1===HEX_CHARS.indexOf(t))return!1;return!0}function isHex(e){return"#"===e[0]&&(4===e.length||7===e.length)&&isHexChars(e.slice(1))}function parseHsl(e){const t=HSL_RE.exec(e);if(!t)throw new Error('parseHsl: string is not a HSL color: "'.concat(e,'"'));return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}function parseColor(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw new Error("parseColor: expected a string");if(isHex(e))return hexToRgb(e);if(e.startsWith("hsl("))return hslToRgb(parseHsl(e));throw new Error('parseColor: unexpected color format: "'.concat(e,'"'))}function rgba(e,t){const n=parseColor(e);return"rgba(".concat(n.r,",").concat(n.g,",").concat(n.b,",").concat(t,")")}function createButtonTones(e,t,n,r,o,i){return{default:e.button({base:t,dark:n,solid:r.default,muted:o.default,mode:i}),primary:e.button({base:t,dark:n,solid:r.primary,muted:o.primary,mode:i}),positive:e.button({base:t,dark:n,solid:r.positive,muted:o.positive,mode:i}),caution:e.button({base:t,dark:n,solid:r.caution,muted:o.caution,mode:i}),critical:e.button({base:t,dark:n,solid:r.critical,muted:o.critical,mode:i})}}function createButtonModes(e,t,n,r,o){return{default:createButtonTones(e,t,n,r,o,"default"),ghost:createButtonTones(e,t,n,r,o,"ghost"),bleed:createButtonTones(e,t,n,r,o,"bleed")}}function createCardStates(e,t,n,r,o,i){return{enabled:e.card({base:t,dark:n,name:r,state:"enabled",solid:o,muted:i}),disabled:e.card({base:t,dark:n,name:r,state:"disabled",solid:o,muted:i}),hovered:e.card({base:t,dark:n,name:r,state:"hovered",solid:o,muted:i}),pressed:e.card({base:t,dark:n,name:r,state:"pressed",solid:o,muted:i}),selected:e.card({base:t,dark:n,name:r,state:"selected",solid:o,muted:i})}}const index_esm_black="hsl(0, 0%, 0%)",index_esm_white="hsl(0, 0%, 100%)",colors={default:{lightest:"hsl(0, 0%, 95%)",lighter:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 65%)",base:"hsl(0, 0%, 50%)",dark:"hsl(0, 0%, 35%)",darker:"hsl(0, 0%, 20%)",darkest:"hsl(0, 0%, 5%)"},transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}},spots={gray:"hsl(0, 0%, 50%)",red:"hsl(0, 100%, 50%)",orange:"hsl(30, 100%, 50%)",yellow:"hsl(60, 100%, 50%)",green:"hsl(120, 100%, 50%)",cyan:"hsl(180, 100%, 50%)",blue:"hsl(240, 100%, 50%)",purple:"hsl(270, 100%, 50%)",magenta:"hsl(300, 100%, 50%)"},tones$1={transparent:{bg:[colors.transparent.darkest,colors.transparent.lightest],fg:[colors.transparent.lightest,colors.transparent.darkest],border:[colors.transparent.darker,colors.transparent.lighter],focusRing:[colors.transparent.base,colors.transparent.base]},primary:{bg:[colors.primary.darkest,colors.primary.lightest],fg:[colors.primary.lightest,colors.primary.darkest],border:[colors.primary.darker,colors.primary.lighter],focusRing:[colors.primary.base,colors.primary.base]},positive:{bg:[colors.positive.darkest,colors.positive.lightest],fg:[colors.positive.lightest,colors.positive.darkest],border:[colors.positive.darker,colors.positive.lighter],focusRing:[colors.positive.base,colors.positive.base]},caution:{bg:[colors.caution.darkest,colors.caution.lightest],fg:[colors.caution.lightest,colors.caution.darkest],border:[colors.caution.darker,colors.caution.lighter],focusRing:[colors.caution.base,colors.caution.base]},critical:{bg:[colors.critical.darkest,colors.critical.lightest],fg:[colors.critical.lightest,colors.critical.darkest],border:[colors.critical.darker,colors.critical.lighter],focusRing:[colors.critical.base,colors.critical.base]}},defaultOpts={base:e=>{let{dark:t,name:n}=e;return"default"===n?{bg:t?index_esm_black:index_esm_white,fg:t?index_esm_white:index_esm_black,border:t?colors.default.darkest:colors.default.lightest,focusRing:colors.primary.base,shadow:{outline:index_esm_black,umbra:index_esm_black,penumbra:index_esm_black,ambient:index_esm_black},skeleton:{from:t?index_esm_white:index_esm_black,to:t?index_esm_white:index_esm_black}}:{bg:tones$1[n].bg[t?0:1],fg:tones$1[n].fg[t?0:1],border:tones$1[n].border[t?0:1],focusRing:tones$1[n].focusRing[t?0:1],shadow:{outline:index_esm_black,umbra:index_esm_black,penumbra:index_esm_black,ambient:index_esm_black},skeleton:{from:t?index_esm_white:index_esm_black,to:t?index_esm_white:index_esm_black}}},solid:e=>{let{base:t,dark:n,state:r,tone:o}=e;const i=colors[o];return"hovered"===r?{bg:n?i.light:i.dark,bg2:n?i.light:i.dark,border:n?i.lighter:i.darker,fg:n?i.darkest:i.lightest,muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}:{bg:i.base,bg2:i.base,border:n?i.light:i.dark,fg:n?i.darkest:i.lightest,muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}},muted:e=>{let{base:t,dark:n,state:r,tone:o}=e;const i=colors[o];return"hovered"===r?{bg:n?i.darker:i.lighter,bg2:n?i.darker:i.lighter,border:n?i.lighter:i.darker,fg:n?i.lightest:i.darkest,muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}:{bg:n?i.darkest:i.lightest,bg2:n?i.darkest:i.lightest,border:n?i.darker:i.lighter,fg:n?i.lighter:i.darker,muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}},button:e=>{let{base:t,mode:n,muted:r,solid:o}=e;return"bleed"===n?{...r,enabled:{bg:"transparent",bg2:"transparent",fg:r.enabled.fg,border:"transparent",muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton},hovered:{bg:r.enabled.bg,bg2:r.enabled.bg,fg:r.hovered.fg,border:"transparent",muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}}:"ghost"===n?{...o,enabled:r.enabled}:o},card:e=>{let{base:t}=e;return{bg:index_esm_black,bg2:index_esm_black,fg:index_esm_black,border:index_esm_black,muted:{fg:index_esm_black},accent:{fg:index_esm_black},link:{fg:index_esm_black},code:{bg:index_esm_black,fg:index_esm_black},skeleton:t.skeleton}},input:()=>({bg:index_esm_black,fg:index_esm_black,border:index_esm_black,placeholder:index_esm_black}),selectable:e=>{let{muted:t,state:n,tone:r}=e;return t[r][n]},spot:e=>{let{key:t}=e;return spots[t]},syntax:()=>({atrule:index_esm_black,attrName:index_esm_black,attrValue:index_esm_black,attribute:index_esm_black,boolean:index_esm_black,builtin:index_esm_black,cdata:index_esm_black,char:index_esm_black,class:index_esm_black,className:index_esm_black,comment:index_esm_black,constant:index_esm_black,deleted:index_esm_black,doctype:index_esm_black,entity:index_esm_black,function:index_esm_black,hexcode:index_esm_black,id:index_esm_black,important:index_esm_black,inserted:index_esm_black,keyword:index_esm_black,number:index_esm_black,operator:index_esm_black,prolog:index_esm_black,property:index_esm_black,pseudoClass:index_esm_black,pseudoElement:index_esm_black,punctuation:index_esm_black,regex:index_esm_black,selector:index_esm_black,string:index_esm_black,symbol:index_esm_black,tag:index_esm_black,unit:index_esm_black,url:index_esm_black,variable:index_esm_black})};function createInputModes(e,t,n,r,o){return{default:{enabled:e.input({base:t,dark:n,mode:"default",state:"enabled",solid:r.default,muted:o.default}),disabled:e.input({base:t,dark:n,mode:"default",state:"disabled",solid:r.default,muted:o.default}),hovered:e.input({base:t,dark:n,mode:"default",state:"hovered",solid:r.default,muted:o.default}),readOnly:e.input({base:t,dark:n,mode:"default",state:"readOnly",solid:r.default,muted:o.default})},invalid:{enabled:e.input({base:t,dark:n,mode:"invalid",state:"enabled",solid:r.default,muted:o.default}),disabled:e.input({base:t,dark:n,mode:"invalid",state:"disabled",solid:r.default,muted:o.default}),hovered:e.input({base:t,dark:n,mode:"invalid",state:"hovered",solid:r.default,muted:o.default}),readOnly:e.input({base:t,dark:n,mode:"invalid",state:"readOnly",solid:r.default,muted:o.default})}}}function createMutedTones(e,t,n,r){return{default:{enabled:e.muted({base:t,dark:n,tone:"default",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"default",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"default",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"default",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"default",name:r,state:"selected"})},transparent:{enabled:e.muted({base:t,dark:n,tone:"transparent",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"transparent",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"transparent",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"transparent",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"transparent",name:r,state:"selected"})},primary:{enabled:e.muted({base:t,dark:n,tone:"primary",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"primary",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"primary",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"primary",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"primary",name:r,state:"selected"})},positive:{enabled:e.muted({base:t,dark:n,tone:"positive",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"positive",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"positive",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"positive",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"positive",name:r,state:"selected"})},caution:{enabled:e.muted({base:t,dark:n,tone:"caution",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"caution",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"caution",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"caution",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"caution",name:r,state:"selected"})},critical:{enabled:e.muted({base:t,dark:n,tone:"critical",name:r,state:"enabled"}),disabled:e.muted({base:t,dark:n,tone:"critical",name:r,state:"disabled"}),hovered:e.muted({base:t,dark:n,tone:"critical",name:r,state:"hovered"}),pressed:e.muted({base:t,dark:n,tone:"critical",name:r,state:"pressed"}),selected:e.muted({base:t,dark:n,tone:"critical",name:r,state:"selected"})}}}function createSelectableTones(e,t,n,r,o){return{default:_createSelectableStates(e,t,n,r,o,"default"),primary:_createSelectableStates(e,t,n,r,o,"primary"),positive:_createSelectableStates(e,t,n,r,o,"positive"),caution:_createSelectableStates(e,t,n,r,o,"caution"),critical:_createSelectableStates(e,t,n,r,o,"critical")}}function _createSelectableStates(e,t,n,r,o,i){return{enabled:e.selectable({base:t,dark:n,solid:r,muted:o,state:"enabled",tone:i}),hovered:e.selectable({base:t,dark:n,solid:r,muted:o,state:"hovered",tone:i}),pressed:e.selectable({base:t,dark:n,solid:r,muted:o,state:"pressed",tone:i}),selected:e.selectable({base:t,dark:n,solid:r,muted:o,state:"selected",tone:i}),disabled:e.selectable({base:t,dark:n,solid:r,muted:o,state:"disabled",tone:i})}}function createSolidTones(e,t,n,r){return{default:{enabled:e.solid({base:t,dark:n,tone:"default",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"default",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"default",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"default",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"default",name:r,state:"selected"})},transparent:{enabled:e.solid({base:t,dark:n,tone:"transparent",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"transparent",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"transparent",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"transparent",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"transparent",name:r,state:"selected"})},primary:{enabled:e.solid({base:t,dark:n,tone:"primary",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"primary",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"primary",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"primary",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"primary",name:r,state:"selected"})},positive:{enabled:e.solid({base:t,dark:n,tone:"positive",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"positive",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"positive",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"positive",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"positive",name:r,state:"selected"})},caution:{enabled:e.solid({base:t,dark:n,tone:"caution",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"caution",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"caution",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"caution",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"caution",name:r,state:"selected"})},critical:{enabled:e.solid({base:t,dark:n,tone:"critical",name:r,state:"enabled"}),disabled:e.solid({base:t,dark:n,tone:"critical",name:r,state:"disabled"}),hovered:e.solid({base:t,dark:n,tone:"critical",name:r,state:"hovered"}),pressed:e.solid({base:t,dark:n,tone:"critical",name:r,state:"pressed"}),selected:e.solid({base:t,dark:n,tone:"critical",name:r,state:"selected"})}}}function createSpot(e,t,n){return{gray:e.spot({base:t,dark:n,key:"gray"}),blue:e.spot({base:t,dark:n,key:"blue"}),purple:e.spot({base:t,dark:n,key:"purple"}),magenta:e.spot({base:t,dark:n,key:"magenta"}),red:e.spot({base:t,dark:n,key:"red"}),orange:e.spot({base:t,dark:n,key:"orange"}),yellow:e.spot({base:t,dark:n,key:"yellow"}),green:e.spot({base:t,dark:n,key:"green"}),cyan:e.spot({base:t,dark:n,key:"cyan"})}}function createColorTheme(){const e={...defaultOpts,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{light:_createColorScheme(e,!1),dark:_createColorScheme(e,!0)}}function _createColorScheme(e,t){return{default:_createColor(e,t,"default"),transparent:_createColor(e,t,"transparent"),primary:_createColor(e,t,"primary"),positive:_createColor(e,t,"positive"),caution:_createColor(e,t,"caution"),critical:_createColor(e,t,"critical")}}function _createColor(e,t,n){const r=e.base({dark:t,name:n}),o=createSolidTones(e,r,t,n),i=createMutedTones(e,r,t,n);return{base:r,button:createButtonModes(e,r,t,o,i),card:createCardStates(e,r,t,n,o,i),dark:t,input:createInputModes(e,r,t,o,i),selectable:createSelectableTones(e,r,t,o,i),spot:createSpot(e,r,t),syntax:e.syntax({base:r,dark:t}),solid:o,muted:i}}function multiply(e,t){return rgbToHex(multiply$1(parseColor(e),parseColor(t)))}function screen(e,t){return rgbToHex(screen$1(parseColor(e),parseColor(t)))}const tones={default:hues.gray,transparent:hues.gray,primary:hues.blue,positive:hues.green,caution:hues.yellow,critical:hues.red},NEUTRAL_TONES=["default","transparent"],color=createColorTheme({base:e=>{let{dark:t,name:n}=e;if("default"===n){const e=hues.gray,n=t?e[900].hex:e[100].hex;return{fg:t?white.hex:black.hex,bg:t?black.hex:white.hex,border:e[t?800:200].hex,focusRing:hues.blue[500].hex,shadow:{outline:rgba(e[500].hex,.4),umbra:t?rgba(e[950].hex,.4):rgba(e[500].hex,.2),penumbra:t?rgba(e[950].hex,.28):rgba(e[500].hex,.14),ambient:t?rgba(e[950].hex,.24):rgba(e[500].hex,.12)},skeleton:{from:n,to:rgba(n,.5)}}}if("transparent"===n){const e=tones.default,n=e[t?800:200].hex;return{fg:e[t?100:900].hex,bg:e[t?950:50].hex,border:e[t?800:300].hex,focusRing:hues.blue[500].hex,shadow:{outline:rgba(e[500].hex,.4),umbra:t?rgba(e[900].hex,.4):rgba(e[500].hex,.2),penumbra:t?rgba(e[900].hex,.28):rgba(e[500].hex,.14),ambient:t?rgba(e[900].hex,.24):rgba(e[500].hex,.12)},skeleton:{from:n,to:rgba(n,.5)}}}const r=tones[n]||tones.default,o=r[t?800:200].hex;return{fg:r[t?100:900].hex,bg:r[t?950:50].hex,border:r[t?800:200].hex,focusRing:r[500].hex,shadow:{outline:rgba(r[500].hex,.4),umbra:t?rgba(r[900].hex,.4):rgba(r[500].hex,.2),penumbra:t?rgba(r[900].hex,.28):rgba(r[500].hex,.14),ambient:t?rgba(r[900].hex,.24):rgba(r[500].hex,.12)},skeleton:{from:o,to:rgba(o,.5)}}},solid:e=>{let{base:t,dark:n,name:r,state:o,tone:i}=e;const a=n?screen:multiply,s=n?multiply:screen,l=tones[r]||tones.default,c=NEUTRAL_TONES.includes(r)&&NEUTRAL_TONES.includes(i);let u=tones["default"===i?r:i]||l;if("disabled"===o){u=l;const e=a(t.bg,u[n?800:200].hex),r=s(e,u[n?200:800].hex);return{bg:e,bg2:s(e,u[n?50:950].hex),border:a(t.bg,u[n?800:200].hex),fg:a(t.bg,n?black.hex:white.hex),muted:{fg:a(t.bg,u[n?950:50].hex)},accent:{fg:a(t.bg,u[n?950:50].hex)},link:{fg:a(t.bg,u[n?950:50].hex)},code:{bg:e,fg:a(t.bg,u[n?950:50].hex)},skeleton:{from:r,to:rgba(r,.5)}}}if("hovered"===o){const e=a(t.bg,u[n?300:600].hex),r=s(e,u[n?200:800].hex);return{bg:e,bg2:s(e,u[n?50:950].hex),border:a(t.bg,u[n?300:600].hex),fg:a(t.bg,n?black.hex:white.hex),muted:{fg:a(t.bg,u[n?800:200].hex)},accent:{fg:s(e,hues.red[n?800:200].hex)},link:{fg:s(e,hues.blue[n?800:200].hex)},code:{bg:a(e,u[n?950:50].hex),fg:a(t.bg,u[n?800:200].hex)},skeleton:{from:r,to:rgba(r,.5)}}}if("pressed"===o){const e=a(t.bg,u[n?200:800].hex),r=s(e,u[n?200:800].hex);return{bg:a(t.bg,u[n?200:800].hex),bg2:s(e,u[n?50:950].hex),border:a(t.bg,u[n?200:800].hex),fg:a(t.bg,n?black.hex:white.hex),muted:{fg:a(t.bg,u[n?800:200].hex)},accent:{fg:s(e,hues.red[n?800:200].hex)},link:{fg:s(e,hues.blue[n?800:200].hex)},code:{bg:a(e,u[n?950:50].hex),fg:a(t.bg,u[n?800:200].hex)},skeleton:{from:r,to:rgba(r,.5)}}}if("selected"===o){c&&(u=tones.primary);const e=a(t.bg,u[n?200:800].hex),r=s(e,u[n?200:800].hex);return{bg:e,bg2:s(e,u[n?50:950].hex),border:a(t.bg,u[n?200:800].hex),fg:a(t.bg,n?black.hex:white.hex),muted:{fg:a(t.bg,u[n?800:200].hex)},accent:{fg:s(e,hues.red[n?800:200].hex)},link:{fg:s(e,hues.blue[n?800:200].hex)},code:{bg:a(e,u[n?950:50].hex),fg:a(t.bg,u[n?800:200].hex)},skeleton:{from:r,to:rgba(r,.5)}}}const d=a(t.bg,u[n?400:500].hex),f=s(d,u[n?200:800].hex);return{bg:d,bg2:s(d,u[n?50:950].hex),border:a(t.bg,u[n?400:500].hex),fg:a(t.bg,n?black.hex:white.hex),muted:{fg:a(t.bg,u[n?900:100].hex)},accent:{fg:s(d,hues.red[n?900:100].hex)},link:{fg:s(d,hues.blue[n?900:100].hex)},code:{bg:a(d,u[n?950:50].hex),fg:a(t.bg,u[n?900:100].hex)},skeleton:{from:f,to:rgba(f,.5)}}},muted:e=>{let{base:t,dark:n,name:r,state:o,tone:i}=e;const a=n?screen:multiply,s=tones[r]||tones.default,l=NEUTRAL_TONES.includes(r)&&NEUTRAL_TONES.includes(i);let c=tones["default"===i?r:i]||s;if("disabled"===o){c=s;const e=t.bg,r=a(e,c[n?900:100].hex);return{bg:e,bg2:a(e,c[n?950:50].hex),border:a(e,c[n?950:50].hex),fg:a(e,c[n?800:200].hex),muted:{fg:a(e,c[n?900:100].hex)},accent:{fg:a(e,c[n?900:100].hex)},link:{fg:a(e,c[n?900:100].hex)},code:{bg:e,fg:a(e,c[n?900:100].hex)},skeleton:{from:rgba(r,.5),to:rgba(r,.25)}}}if("hovered"===o){const e=a(t.bg,c[n?950:50].hex),r=a(e,c[n?900:100].hex);return{bg:e,bg2:a(e,c[n?950:50].hex),border:a(e,c[n?900:100].hex),fg:a(t.bg,c[n?200:800].hex),muted:{fg:a(t.bg,c[n?400:600].hex)},accent:{fg:a(t.bg,hues.red[n?400:500].hex)},link:{fg:a(t.bg,hues.blue[n?400:600].hex)},code:{bg:a(e,c[n?950:50].hex),fg:a(t.bg,c[n?400:600].hex)},skeleton:{from:r,to:rgba(r,.5)}}}if("pressed"===o){l&&(c=tones.primary);const e=a(t.bg,c[n?900:100].hex),r=a(e,c[n?900:100].hex);return{bg:e,bg2:a(e,c[n?950:50].hex),border:a(e,c[n?900:100].hex),fg:a(t.bg,c[n?200:800].hex),muted:{fg:a(t.bg,c[n?400:600].hex)},accent:{fg:a(e,hues.red[n?400:500].hex)},link:{fg:a(e,hues.blue[n?400:600].hex)},code:{bg:a(e,c[n?950:50].hex),fg:a(t.bg,c[n?400:600].hex)},skeleton:{from:r,to:rgba(r,.5)}}}if("selected"===o){l&&(c=tones.primary);const e=a(t.bg,c[n?900:100].hex),r=a(e,c[n?900:100].hex);return{bg:e,bg2:a(e,c[n?950:50].hex),border:a(e,c[n?900:100].hex),fg:a(t.bg,c[n?200:800].hex),muted:{fg:a(t.bg,c[n?400:600].hex)},accent:{fg:a(e,hues.red[n?400:500].hex)},link:{fg:a(e,hues.blue[n?400:600].hex)},code:{bg:a(e,c[n?950:50].hex),fg:a(t.bg,c[n?400:600].hex)},skeleton:{from:r,to:rgba(r,.5)}}}const u=t.bg,d=a(u,c[n?900:100].hex);return{bg:u,bg2:a(u,c[n?950:50].hex),border:a(u,c[n?900:100].hex),fg:a(t.bg,c[n?300:700].hex),muted:{fg:a(t.bg,c[n?400:600].hex)},accent:{fg:a(t.bg,hues.red[n?400:500].hex)},link:{fg:a(t.bg,hues.blue[n?400:600].hex)},code:{bg:a(t.bg,c[n?950:50].hex),fg:a(t.bg,c[n?400:600].hex)},skeleton:{from:d,to:rgba(d,.5)}}},button:e=>{let{base:t,mode:n,muted:r,solid:o}=e;return"bleed"===n?{enabled:{...r.enabled,border:r.enabled.bg},hovered:{...r.hovered,border:r.hovered.bg},pressed:{...r.pressed,border:r.pressed.bg},selected:{...r.selected,border:r.selected.bg},disabled:{...r.disabled,border:r.disabled.bg}}:"ghost"===n?{...o,enabled:{...r.enabled,border:t.border},disabled:r.disabled}:o},card:e=>{let{base:t,dark:n,muted:r,name:o,solid:i,state:a}=e;if("hovered"===a)return r[o].hovered;if("disabled"===a)return r[o].disabled;const s=NEUTRAL_TONES.includes(o),l=tones[o]||tones.default,c=n?screen:multiply;if("pressed"===a)return s?r.primary.pressed:r[o].pressed;if("selected"===a)return s?i.primary.enabled:i[o].enabled;const u=t.bg,d=c(t.bg,l[n?900:100].hex);return{bg:u,bg2:c(u,l[n?950:50].hex),fg:t.fg,border:t.border,muted:{fg:c(t.bg,l[n?400:600].hex)},accent:{fg:c(t.bg,hues.red[n?400:500].hex)},link:{fg:c(t.bg,hues.blue[n?400:600].hex)},code:{bg:c(t.bg,l[n?950:50].hex),fg:l[n?400:600].hex},skeleton:{from:d,to:rgba(d,.5)}}},input:e=>{let{base:t,dark:n,mode:r,state:o}=e;const i=n?screen:multiply;if("invalid"===r){const e=tones.critical;return{bg:i(t.bg,e[n?950:50].hex),fg:i(t.bg,e[n?400:600].hex),border:i(t.bg,e[n?800:200].hex),placeholder:i(t.bg,e[n?600:400].hex)}}return"hovered"===o?{bg:t.bg,fg:t.fg,border:i(t.bg,hues.gray[n?700:300].hex),placeholder:i(t.bg,hues.gray[n?600:400].hex)}:"disabled"===o?{bg:i(t.bg,hues.gray[n?950:50].hex),fg:i(t.bg,hues.gray[n?700:300].hex),border:i(t.bg,hues.gray[n?900:100].hex),placeholder:i(t.bg,hues.gray[n?800:200].hex)}:"readOnly"===o?{bg:i(t.bg,hues.gray[n?950:50].hex),fg:i(t.bg,hues.gray[n?200:800].hex),border:i(t.bg,hues.gray[n?800:200].hex),placeholder:i(t.bg,hues.gray[n?600:400].hex)}:{bg:t.bg,fg:t.fg,border:t.border,placeholder:i(t.bg,hues.gray[n?600:400].hex)}},selectable:e=>{let{base:t,muted:n,tone:r,solid:o,state:i}=e;return"enabled"===i?{...n[r].enabled,bg:t.bg}:"pressed"===i?"default"===r?n.primary.pressed:n[r].pressed:"selected"===i?"default"===r?o.primary.enabled:o[r].enabled:"disabled"===i?{...n[r].disabled,bg:t.bg}:n[r][i]},spot:e=>{let{base:t,dark:n,key:r}=e;return(n?screen:multiply)(t.bg,hues[r][n?400:500].hex)},syntax:e=>{let{base:t,dark:n}=e;const r=n?screen:multiply,o=n?400:600,i=n?600:400;return{atrule:r(t.bg,hues.purple[o].hex),attrName:r(t.bg,hues.green[o].hex),attrValue:r(t.bg,hues.yellow[o].hex),attribute:r(t.bg,hues.yellow[o].hex),boolean:r(t.bg,hues.purple[o].hex),builtin:r(t.bg,hues.purple[o].hex),cdata:r(t.bg,hues.yellow[o].hex),char:r(t.bg,hues.yellow[o].hex),class:r(t.bg,hues.orange[o].hex),className:r(t.bg,hues.cyan[o].hex),comment:r(t.bg,hues.gray[i].hex),constant:r(t.bg,hues.purple[o].hex),deleted:r(t.bg,hues.red[o].hex),doctype:r(t.bg,hues.gray[i].hex),entity:r(t.bg,hues.red[o].hex),function:r(t.bg,hues.green[o].hex),hexcode:r(t.bg,hues.blue[o].hex),id:r(t.bg,hues.purple[o].hex),important:r(t.bg,hues.purple[o].hex),inserted:r(t.bg,hues.yellow[o].hex),keyword:r(t.bg,hues.magenta[o].hex),number:r(t.bg,hues.purple[o].hex),operator:r(t.bg,hues.magenta[o].hex),prolog:r(t.bg,hues.gray[i].hex),property:r(t.bg,hues.blue[o].hex),pseudoClass:r(t.bg,hues.yellow[o].hex),pseudoElement:r(t.bg,hues.yellow[o].hex),punctuation:r(t.bg,hues.gray[o].hex),regex:r(t.bg,hues.blue[o].hex),selector:r(t.bg,hues.red[o].hex),string:r(t.bg,hues.yellow[o].hex),symbol:r(t.bg,hues.purple[o].hex),tag:r(t.bg,hues.red[o].hex),unit:r(t.bg,hues.orange[o].hex),url:r(t.bg,hues.red[o].hex),variable:r(t.bg,hues.red[o].hex)}}}),fonts={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:3,descenderHeight:3,fontSize:10,iconSize:17,lineHeight:13,letterSpacing:0},{ascenderHeight:4,descenderHeight:4,fontSize:13,iconSize:21,lineHeight:17,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:16,iconSize:25,lineHeight:21,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:19,iconSize:29,lineHeight:25,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:22,iconSize:33,lineHeight:29,letterSpacing:0}]},heading:{family:'-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:4,descenderHeight:4,fontSize:12,iconSize:17,lineHeight:17,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:16,iconSize:25,lineHeight:21,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:21,iconSize:33,lineHeight:27,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:27,iconSize:41,lineHeight:33,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:33,iconSize:49,lineHeight:39,letterSpacing:0},{ascenderHeight:9,descenderHeight:9,fontSize:38,iconSize:53,lineHeight:45,letterSpacing:0}]},label:{family:'-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:9.8,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:11.25,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.75,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:14,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15.5,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'-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:3,descenderHeight:3,fontSize:10,iconSize:17,lineHeight:13,letterSpacing:0},{ascenderHeight:4,descenderHeight:4,fontSize:13,iconSize:21,lineHeight:17,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:16,iconSize:25,lineHeight:21,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:19,iconSize:29,lineHeight:25,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:22,iconSize:33,lineHeight:29,letterSpacing:0}]}},studioTheme={avatar:{sizes:[{distance:-3,size:25},{distance:-6,size:35},{distance:-9,size:55}]},button:{textWeight:"medium"},color,container:[320,640,960,1280,1600,1920],focusRing:{offset:1,width:2},fonts,media:[360,600,900,1200,1800,2400],radius:[0,1,3,6,9,12,21],shadows:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-1],penumbra:[0,6,10,0],ambient:[0,1,18,0]},{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:{checkbox:{size:17},radio:{size:17,markSize:9},switch:{width:33,height:17,padding:4,transitionDurationMs:150,transitionTimingFunction:"ease-out"},border:{width:1}}},DEFAULT_THEME_LAYER={dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}};function getGlobalScope(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;if("undefined"!=typeof globalThis)return globalThis;throw new Error("@sanity/ui: could not locate global scope")}const globalScope=getGlobalScope(),key$8=Symbol.for("@sanity/ui/context/theme");globalScope[key$8]=globalScope[key$8]||(0,external_react_.createContext)(null);const ThemeContext=globalScope[key$8];function ThemeProvider(e){const t=(0,external_react_.useContext)(ThemeContext),{children:n,scheme:r=(null==t?void 0:t.scheme)||"light",theme:o=(null==t?void 0:t.theme)||null,tone:i=(null==t?void 0:t.tone)||"default"}=e,a=(0,external_react_.useMemo)(()=>{if(!o)return null;const{color:e,layer:t,...n}=o,a=e[r]||e.light;return{sanity:{...n,color:a[i]||a.default,layer:t||DEFAULT_THEME_LAYER}}},[r,o,i]),s=(0,external_react_.useMemo)(()=>o&&{version:0,theme:o,scheme:r,tone:i},[o,r,i]);return a?(0,jsx_runtime.jsx)(ThemeContext.Provider,{value:s,children:(0,jsx_runtime.jsx)(ot,{theme:a,children:n})}):(0,jsx_runtime.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'})}function isRecord(e){return Boolean(e&&"object"==typeof e)}function useRootTheme(){const e=(0,external_react_.useContext)(ThemeContext);if(!e)throw new Error("useRootTheme(): missing context value");if(!isRecord(e)||0!==e.version)throw new Error("useRootTheme(): the context value is not compatible");return e}function ThemeColorProvider(e){const{children:t,scheme:n,tone:r}=e,o=useRootTheme();return(0,jsx_runtime.jsx)(ThemeProvider,{scheme:n||o.scheme,theme:o.theme,tone:r,children:t})}function useTheme(){return nt()}const MEDIA_STORE_CACHE=new WeakMap;function _getMediaQuery(e,t){return 0===t?"screen and (max-width: ".concat(e[t]-1,"px)"):t===e.length?"screen and (min-width: ".concat(e[t-1],"px)"):"screen and (min-width: ".concat(e[t-1],"px) and (max-width: ").concat(e[t]-1,"px)")}function _createMediaStore(e){const t=e.length;let n;const r=()=>{if(!n){n=[];for(let r=t;r>-1;r-=1){const t=_getMediaQuery(e,r);n.push({index:r,mq:window.matchMedia(t)})}}return n};return{getSnapshot:()=>{for(const{index:e,mq:t}of r())if(t.matches)return e;return 0},subscribe:e=>{const t=[];for(const{mq:n}of r()){const r=()=>{n.matches&&e()};n.addEventListener("change",r),t.push(()=>n.removeEventListener("change",r))}return()=>{for(const e of t)e()}}}}function getServerSnapshot$2(){return 0}function useMediaIndex(){const e=useTheme(),{media:t}=e.sanity;let n=MEDIA_STORE_CACHE.get(t);return n||(n=_createMediaStore(t),MEDIA_STORE_CACHE.set(t,n)),(0,external_react_.useSyncExternalStore)(n.subscribe,n.getSnapshot,getServerSnapshot$2)}let MEDIA_QUERY_CACHE$1,MEDIA_QUERY_CACHE;function getMatchMedia$1(){return MEDIA_QUERY_CACHE$1||(MEDIA_QUERY_CACHE$1=window.matchMedia("(prefers-color-scheme: dark)")),MEDIA_QUERY_CACHE$1}function subscribe$1(e){const t=getMatchMedia$1();return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function getSnapshot$1(){return getMatchMedia$1().matches}function getServerSnapshot$1(){return!1}function usePrefersDark(){return useSyncExternalStore(subscribe$1,getSnapshot$1,getServerSnapshot$1)}function getMatchMedia(){return MEDIA_QUERY_CACHE||(MEDIA_QUERY_CACHE=window.matchMedia("(prefers-reduced-motion: reduce)")),MEDIA_QUERY_CACHE}function subscribe(e){const t=getMatchMedia();return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function getSnapshot(){return getMatchMedia().matches}function getServerSnapshot(){return!1}function usePrefersReducedMotion(){return useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)}const useIsomorphicEffect="undefined"!=typeof window?external_react_.useLayoutEffect:external_react_.useEffect;function useForwardedRef(e){const t=(0,external_react_.useRef)(null);return useIsomorphicEffect(()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),t}function useCustomValidity(e,t){(0,external_react_.useEffect)(()=>{e.current&&e.current.setCustomValidity(t||"")},[t,e])}const BORDER_VALUE="1px solid var(--card-border-color)";function responsiveBorderStyle(){return[border,borderTop,borderRight,borderBottom,borderLeft]}function border(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$border,e=>e?{"&&":{border:BORDER_VALUE}}:{"&&":{border:0}})}function borderTop(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$borderTop,e=>e?{"&&":{borderTop:BORDER_VALUE}}:{"&&":{borderTop:0}})}function borderRight(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$borderRight,e=>e?{"&&":{borderRight:BORDER_VALUE}}:{"&&":{borderRight:0}})}function borderBottom(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$borderBottom,e=>e?{"&&":{borderBottom:BORDER_VALUE}}:{"&&":{borderBottom:0}})}function borderLeft(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$borderLeft,e=>e?{"&&":{borderLeft:BORDER_VALUE}}:{"&&":{borderLeft:0}})}const BASE_STYLE$4={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},BOX_SIZING={content:"content-box",border:"border-box"},BOX_HEIGHT={stretch:"stretch",fill:"100%"};function boxStyle(){return BASE_STYLE$4}function responsiveBoxStyle(){return[responsiveBoxSizingStyle,responsiveBoxHeightStyle,responsiveBoxOverflowStyle,responsiveBoxDisplayStyle]}function responsiveBoxDisplayStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$display,e=>({"&:not([hidden])":{display:e}}))}function responsiveBoxSizingStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$sizing,e=>({boxSizing:BOX_SIZING[e]}))}function responsiveBoxHeightStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$height,e=>({height:BOX_HEIGHT[e]}))}function responsiveBoxOverflowStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$overflow,e=>({overflow:e}))}const BASE_STYLE$3={"&&:not([hidden])":{display:"flex"}};function responsiveFlexStyle(){return[BASE_STYLE$3,responsiveFlexAlignStyle,responsiveFlexGapStyle,responsiveFlexWrapStyle,responsiveFlexJustifyStyle,responsiveFlexDirectionStyle]}function responsiveFlexAlignStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$align,e=>({alignItems:e}))}function responsiveFlexGapStyle(e){const{theme:t}=e,{media:n,space:r}=t.sanity;return _responsive(n,e.$gap,e=>({gap:e?rem(r[e]):void 0}))}function responsiveFlexWrapStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$wrap,e=>({flexWrap:e}))}function responsiveFlexJustifyStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$justify,e=>({justifyContent:e}))}function responsiveFlexDirectionStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$direction,e=>({flexDirection:e}))}const BASE_STYLE$2={minWidth:0,minHeight:0};function flexItemStyle(){return[BASE_STYLE$2,responsiveFlexItemStyle]}function responsiveFlexItemStyle(e){const{theme:t}=e,{media:n}=t.sanity;return e.$flex?_responsive(n,e.$flex,e=>({flex:e})):EMPTY_ARRAY}function focusRingBorderStyle(e){return"inset 0 0 0 ".concat(e.width,"px ").concat(e.color)}function focusRingStyle(e){const{base:t,border:n,focusRing:r}=e,o=r.offset+r.width,i=0-r.offset,a=t?t.bg:"var(--card-bg-color)";return[i>0&&"inset 0 0 0 ".concat(i,"px var(--card-focus-ring-color)"),n&&focusRingBorderStyle(n),i<0&&"0 0 0 ".concat(0-i,"px ").concat(a),o>0&&"0 0 0 ".concat(o,"px var(--card-focus-ring-color)")].filter(Boolean).join(",")}const GRID_CSS={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},GRID_AUTO_COLUMS={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},GRID_AUTO_ROWS={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function responsiveGridStyle(){return[GRID_CSS,responsiveGridAutoFlowStyle,responsiveGridAutoRowsStyle,responsiveGridAutoColsStyle,responsiveGridColumnsStyle,responsiveGridRowsStyle,responsiveGridGapStyle,responsiveGridGapXStyle,responsiveGridGapYStyle]}function responsiveGridAutoFlowStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$autoFlow,e=>({gridAutoFlow:e}))}function responsiveGridAutoRowsStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$autoRows,e=>({gridAutoRows:e&&GRID_AUTO_ROWS[e]}))}function responsiveGridAutoColsStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$autoCols,e=>({gridAutoColumns:e&&GRID_AUTO_COLUMS[e]}))}function responsiveGridColumnsStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$columns,e=>({gridTemplateColumns:e&&"repeat(".concat(e,",minmax(0,1fr));")}))}function responsiveGridRowsStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$rows,e=>({gridTemplateRows:e&&"repeat(".concat(e,",minmax(0,1fr));")}))}function responsiveGridGapStyle(e){const{theme:t}=e,{media:n,space:r}=t.sanity;return _responsive(n,e.$gap,e=>({gridGap:e?rem(r[e]):void 0}))}function responsiveGridGapXStyle(e){const{theme:t}=e,{media:n,space:r}=t.sanity;return _responsive(n,e.$gapX,e=>({columnGap:e?rem(r[e]):void 0}))}function responsiveGridGapYStyle(e){const{theme:t}=e,{media:n,space:r}=t.sanity;return _responsive(n,e.$gapY,e=>({rowGap:e?rem(r[e]):void 0}))}function responsiveGridItemStyle(){return[responsiveGridItemRowStyle,responsiveGridItemRowStartStyle,responsiveGridItemRowEndStyle,responsiveGridItemColumnStyle,responsiveGridItemColumnStartStyle,responsiveGridItemColumnEndStyle]}const GRID_ITEM_ROW={auto:"auto",full:"1 / -1"},GRID_ITEM_COLUMN={auto:"auto",full:"1 / -1"};function responsiveGridItemRowStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$row,e=>"number"==typeof e?{gridRow:"span ".concat(e," / span ").concat(e)}:{gridRow:GRID_ITEM_ROW[e]})}function responsiveGridItemRowStartStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$rowStart,e=>({gridRowStart:e}))}function responsiveGridItemRowEndStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$rowEnd,e=>({gridRowEnd:e}))}function responsiveGridItemColumnStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$column,e=>"number"==typeof e?{gridColumn:"span ".concat(e," / span ").concat(e)}:{gridColumn:GRID_ITEM_COLUMN[e]})}function responsiveGridItemColumnStartStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$columnStart,e=>({gridColumnStart:e}))}function responsiveGridItemColumnEndStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$columnEnd,e=>({gridColumnEnd:e}))}function responsiveInputPaddingStyle(e){const{$fontSize:t,$iconLeft:n,$iconRight:r,$padding:o,$space:i,theme:a}=e,{fonts:s,media:l,space:c}=a.sanity,u=Math.max(o.length,i.length,t.length),d=[],f=[],h=[];for(let e=0;e<u;e+=1)h[e]=void 0===t[e]?h[e-1]:t[e],d[e]=void 0===o[e]?d[e-1]:o[e],f[e]=void 0===i[e]?f[e-1]:i[e];return _responsive(l,d,(e,t)=>{const o=s.text.sizes[h[t]]||s.text.sizes[2],i=o.lineHeight-o.ascenderHeight-o.descenderHeight,a=c[d[t]],l=c[f[t]],u={paddingTop:rem(a-o.ascenderHeight),paddingRight:rem(a),paddingBottom:rem(a-o.descenderHeight),paddingLeft:rem(a)};return r&&(u.paddingRight=rem(a+i+l)),n&&(u.paddingLeft=rem(a+i+l)),u})}function responsiveInputPaddingIconRightStyle(e){return responsiveInputPaddingStyle({...e,$iconRight:!0})}var __freeze$D=Object.freeze,__defProp$E=Object.defineProperty,__template$D=(e,t)=>__freeze$D(__defProp$E(e,"raw",{value:__freeze$D(t||e.slice())})),_a$D,_b$m,_c$d;const ROOT_STYLE=lt(_a$D||(_a$D=__template$D(["\n &:not([hidden]) {\n display: flex;\n }\n\n align-items: center;\n"])));function textInputRootStyle(){return ROOT_STYLE}function textInputBaseStyle(e){const{theme:t,$scheme:n,$tone:r,$weight:o}=e,i=t.sanity.fonts.text,a=t.sanity.color.input;return lt(_b$m||(_b$m=__template$D(["\n appearance: none;\n background: none;\n border: 0;\n border-radius: 0;\n outline: none;\n width: 100%;\n box-sizing: border-box;\n font-family: ",";\n font-weight: ",";\n margin: 0;\n position: relative;\n z-index: 1;\n display: block;\n\n /* NOTE: This is a hack to disable Chrome’s autofill styles */\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus,\n &:-webkit-autofill:active {\n -webkit-text-fill-color: var(--input-fg-color) !important;\n transition: background-color 5000s;\n transition-delay: 86400s /* 24h */;\n }\n\n /* &:is(textarea) */\n &[data-as='textarea'] {\n resize: none;\n }\n\n color: var(--input-fg-color);\n\n &::placeholder {\n color: var(--input-placeholder-color);\n }\n\n &[data-scheme='","'][data-tone='","'] {\n --input-fg-color: ",";\n --input-placeholder-color: ",";\n\n /* enabled */\n &:not(:invalid):not(:disabled):not(:read-only) {\n --input-fg-color: ",";\n --input-placeholder-color: ",";\n }\n\n /* disabled */\n &:not(:invalid):disabled {\n --input-fg-color: ",";\n --input-placeholder-color: ",";\n }\n\n /* invalid */\n &:invalid {\n --input-fg-color: ",";\n --input-placeholder-color: ",";\n }\n\n /* readOnly */\n &:read-only {\n --input-fg-color: ",";\n --input-placeholder-color: ",";\n }\n }\n "])),i.family,o&&i.weights[o]||i.weights.regular,n,r,a.default.enabled.fg,a.default.enabled.placeholder,a.default.enabled.fg,a.default.enabled.placeholder,a.default.disabled.fg,a.default.disabled.placeholder,a.invalid.enabled.fg,a.invalid.enabled.placeholder,a.default.readOnly.fg,a.default.readOnly.placeholder)}function textInputFontSizeStyle(e){const{theme:t}=e,{fonts:n,media:r}=t.sanity;return _responsive(r,e.$fontSize,e=>{const t=n.text.sizes[e]||n.text.sizes[2];return{fontSize:rem(t.fontSize),lineHeight:t.lineHeight/t.fontSize}})}function textInputRepresentationStyle(e){const{$hasPrefix:t,$hasSuffix:n,$scheme:r,$tone:o,theme:i}=e,{focusRing:a,input:s}=i.sanity,l=i.sanity.color.input;return lt(_c$d||(_c$d=__template$D(["\n --input-box-shadow: none;\n\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: block;\n pointer-events: none;\n z-index: 0;\n\n background-color: var(--card-bg-color);\n box-shadow: var(--input-box-shadow);\n\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n\n &[data-scheme='","'][data-tone='","'] {\n --card-bg-color: ",";\n --card-fg-color: ",";\n\n /* enabled */\n *:not(:disabled) + &[data-border] {\n --input-box-shadow: ",";\n }\n\n /* invalid */\n *:not(:disabled):invalid + & {\n --card-bg-color: ",";\n --card-fg-color: ",";\n\n &[data-border] {\n --input-box-shadow: ",";\n }\n }\n\n /* focused */\n *:not(:disabled):focus + & {\n &[data-border] {\n --input-box-shadow: ",";\n }\n\n &:not([data-border]) {\n --input-box-shadow: ",";\n }\n }\n\n /* disabled */\n *:disabled + & {\n --card-bg-color: "," !important;\n --card-fg-color: "," !important;\n\n &[data-border] {\n --input-box-shadow: ",";\n }\n }\n\n /* readOnly */\n *:read-only + & {\n --card-bg-color: "," !important;\n --card-fg-color: "," !important;\n }\n\n /* hovered */\n @media (hover: hover) {\n *:not(:disabled):not(:read-only):not(:invalid):hover + & {\n --card-bg-color: ",";\n --card-fg-color: ",";\n }\n\n *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] {\n --input-box-shadow: ",";\n }\n }\n }\n "])),t?0:void 0,t?0:void 0,n?0:void 0,n?0:void 0,r,o,l.default.enabled.bg,l.default.enabled.fg,focusRingBorderStyle({color:l.default.enabled.border,width:s.border.width}),l.invalid.enabled.bg,l.invalid.enabled.fg,focusRingBorderStyle({color:l.invalid.enabled.border,width:s.border.width}),focusRingStyle({border:{color:l.default.enabled.border,width:s.border.width},focusRing:a}),focusRingStyle({focusRing:a}),l.default.disabled.bg,l.default.disabled.fg,focusRingBorderStyle({color:l.default.disabled.border,width:s.border.width}),l.default.readOnly.bg,l.default.readOnly.fg,l.default.hovered.bg,l.default.hovered.fg,focusRingBorderStyle({color:l.default.hovered.border,width:s.border.width}))}function responsiveMarginStyle(e){const{theme:t}=e;return[_getResponsiveSpace(t,["margin"],e.$margin),_getResponsiveSpace(t,["marginLeft","marginRight"],e.$marginX),_getResponsiveSpace(t,["marginTop","marginBottom"],e.$marginY),_getResponsiveSpace(t,["marginTop"],e.$marginTop),_getResponsiveSpace(t,["marginRight"],e.$marginRight),_getResponsiveSpace(t,["marginBottom"],e.$marginBottom),_getResponsiveSpace(t,["marginLeft"],e.$marginLeft)].filter(Boolean)}function responsivePaddingStyle(e){const{theme:t}=e;return[_getResponsiveSpace(t,["padding"],e.$padding),_getResponsiveSpace(t,["paddingLeft","paddingRight"],e.$paddingX),_getResponsiveSpace(t,["paddingTop","paddingBottom"],e.$paddingY),_getResponsiveSpace(t,["paddingTop"],e.$paddingTop),_getResponsiveSpace(t,["paddingRight"],e.$paddingRight),_getResponsiveSpace(t,["paddingBottom"],e.$paddingBottom),_getResponsiveSpace(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}function responsiveRadiusStyle(e){const{theme:t}=e,{media:n,radius:r}=t.sanity;return _responsive(n,e.$radius,e=>({borderRadius:rem(r[e])}))}function toBoxShadow(e,t){return"".concat(e.map(rem).join(" ")," ").concat(t)}function shadowStyle(e){if(!e)return EMPTY_RECORD;const t="0 0 0 ".concat(rem(1)," var(--card-shadow-outline-color)"),n=toBoxShadow(e.umbra,"var(--card-shadow-umbra-color)"),r=toBoxShadow(e.penumbra,"var(--card-shadow-penumbra-color)"),o=toBoxShadow(e.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:"".concat(t,", ").concat(n,", ").concat(r,", ").concat(o)}}function responsiveShadowStyle(e){const{theme:t}=e,{media:n,shadows:r}=t.sanity;return _responsive(n,e.$shadow,e=>shadowStyle(r[e]))}var __freeze$C=Object.freeze,__defProp$D=Object.defineProperty,__template$C=(e,t)=>__freeze$C(__defProp$D(e,"raw",{value:__freeze$C(t||e.slice())})),_a$C,_b$l,_c$c;function textBaseStyle(e){const{$accent:t,$muted:n,theme:r}=e,{weights:o}=r.sanity.fonts.text;return lt(_c$c||(_c$c=__template$C(["\n color: var(--card-fg-color);\n\n ","\n\n ","\n\n & code {\n font-family: ",";\n border-radius: 1px;\n background-color: var(--card-code-bg-color);\n color: var(--card-code-fg-color);\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & strong {\n font-weight: ",";\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])),t&<(_a$C||(_a$C=__template$C(["\n color: var(--card-accent-fg-color);\n "]))),n&<(_b$l||(_b$l=__template$C(["\n color: var(--card-muted-fg-color);\n "]))),r.sanity.fonts.code.family,o.bold)}var __freeze$B=Object.freeze,__defProp$C=Object.defineProperty,__template$B=(e,t)=>__freeze$B(__defProp$C(e,"raw",{value:__freeze$B(t||e.slice())})),_a$B;const Root$E=dt.div(responsiveTextFont,responsiveTextAlignStyle,textBaseStyle),SpanWithTextOverflow$2=dt.span(_a$B||(_a$B=__template$B(["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"]))),Text=(0,external_react_.forwardRef)(function(e,t){const{accent:n=!1,align:r,children:o,muted:i=!1,size:a=2,textOverflow:s,weight:l,...c}=e;let u=o;return"ellipsis"===s&&(u=(0,jsx_runtime.jsx)(SpanWithTextOverflow$2,{children:u})),(0,jsx_runtime.jsx)(Root$E,{"data-ui":"Text",...c,$accent:n,$align:useArrayProp(r),$muted:i,ref:t,$size:useArrayProp(a),$weight:l,children:(0,jsx_runtime.jsx)("span",{children:u})})}),avatarStyle={root:avatarRootStyle,arrow:avatarArrowStyle,bgStroke:avatarBgStrokeStyle,stroke:avatarStrokeStyle,initials:avatarInitialsStyle};function avatarArrowStyle(){return{position:"absolute",boxSizing:"border-box",zIndex:0,opacity:0,transition:"all 0.2s linear",transform:"rotate(-90deg) translate3d(0, 6px, 0)",left:0,right:0,top:0,bottom:0,"& > svg":{width:"11px",height:"7px",position:"absolute",top:"-5px",left:"50%",transform:"translateX(-6px)","&:not([hidden])":{display:"block"}},"[data-arrow-position='inside'] > &":{transform:"rotate(-90deg) translate3d(0, 6px, 0)",opacity:0},"[data-arrow-position='top'] > &":{opacity:1,transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:1,transform:"rotate(-180deg)"}}}function avatarRootStyle(e){const{$color:t,theme:n}=e,{focusRing:r}=n.sanity;return{backgroundColor:t,position:"relative",boxSizing:"border-box",userSelect:"none",boxShadow:"0 0 0 1px var(--card-bg-color)",'&[data-status="inactive"]':{opacity:.5},"&>svg":{"&:not([hidden])":{display:"block"}},'&[data-as="button"]':{WebkitFontSmoothing:"inherit",appearance:"none",margin:0,padding:0,border:0,font:"inherit",color:"inherit",outline:"none","&:focus":{boxShadow:focusRingStyle({focusRing:r})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}}function responsiveAvatarSizeStyle(e){const{theme:t}=e,{avatar:n,media:r}=t.sanity;return _responsive(r,e.$size,e=>{const t=n.sizes[e]||n.sizes[0];return{width:rem(t.size),height:rem(t.size),borderRadius:rem(t.size/2),"&>svg":{width:rem(t.size),height:rem(t.size),borderRadius:rem(t.size/2)}}})}function avatarInitialsStyle(e){const{theme:t}=e,{base:n}=t.sanity.color;return{width:"100%",height:"100%",color:n.fg,alignItems:"center",justifyContent:"center",textTransform:"uppercase",textAlign:"center",borderRadius:"50%","&:not([hidden])":{display:"flex"}}}function avatarBgStrokeStyle(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}}function avatarStrokeStyle(){return{strokeWidth:"3px",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}}const Root$D=dt.div(responsiveAvatarSizeStyle,avatarStyle.root),Arrow=dt.div(avatarStyle.arrow),BgStroke=dt.ellipse(avatarStyle.bgStroke),Stroke=dt.ellipse(avatarStyle.stroke),Initials=dt.div(avatarStyle.initials),Avatar=(0,external_react_.forwardRef)(function(e,t){const{as:n,color:r="gray",src:o,title:i,initials:a,onImageLoadError:s,arrowPosition:l,animateArrowFrom:c,status:u="online",size:d=0,...f}=e,h=react_is.isValidElementType(n)?n:"div",p=useArrayProp(d),m=useTheme(),g=m.sanity.color.spot[r]||m.sanity.color.spot.gray,_=(m.sanity.avatar.sizes[p[0]]||m.sanity.avatar.sizes[0]).size,x=_/2,y=(0,external_react_.useId)(),[b,v]=(0,external_react_.useState)(c||l||"inside"),[w,j]=(0,external_react_.useState)(!1),C="avatar-image-".concat(y);(0,external_react_.useEffect)(()=>{if(b===l)return;const e=requestAnimationFrame(()=>v(l));return()=>cancelAnimationFrame(e)},[b,l]),(0,external_react_.useEffect)(()=>{o&&j(!1)},[o]);const k=(0,external_react_.useCallback)(()=>{j(!0),s&&s(new Error("Avatar: the image failed to load"))},[s]),S=(0,external_react_.useMemo)(()=>p.map(e=>0===e?0:e+1),[p]);return(0,jsx_runtime.jsxs)(Root$D,{as:h,"data-as":"string"==typeof h?h:void 0,"data-ui":"Avatar",...f,$size:p,$color:g,"aria-label":i,"data-arrow-position":b,"data-status":u,ref:t,title:i,children:[(0,jsx_runtime.jsx)(Arrow,{children:(0,jsx_runtime.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,jsx_runtime.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:g})})}),!w&&o&&(0,jsx_runtime.jsxs)("svg",{viewBox:"0 0 ".concat(_," ").concat(_),fill:"none",children:[(0,jsx_runtime.jsx)("defs",{children:(0,jsx_runtime.jsx)("pattern",{id:C,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,jsx_runtime.jsx)("image",{href:o,width:"1",height:"1",onError:k})})}),(0,jsx_runtime.jsx)("circle",{cx:x,cy:x,r:x,fill:"url(#".concat(C,")")}),(0,jsx_runtime.jsx)(BgStroke,{cx:x,cy:x,rx:x,ry:x,vectorEffect:"non-scaling-stroke"}),(0,jsx_runtime.jsx)(Stroke,{cx:x,cy:x,rx:x,ry:x,stroke:g,vectorEffect:"non-scaling-stroke"})]}),(w||!o)&&a&&(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:(0,jsx_runtime.jsx)(Initials,{children:(0,jsx_runtime.jsx)(Text,{as:"span",size:S,children:(0,jsx_runtime.jsx)("strong",{children:a})})})})]})});var __freeze$A=Object.freeze,__defProp$B=Object.defineProperty,__template$A=(e,t)=>__freeze$A(__defProp$B(e,"raw",{value:__freeze$A(t||e.slice())})),_a$A;function _responsiveAvatarCounterSizeStyle(e){const{theme:t}=e,{avatar:n,media:r}=t.sanity;return _responsive(r,e.$size,e=>{const t=n.sizes[e];return t?{borderRadius:rem(t.size/2),minWidth:rem(t.size),height:rem(t.size)}:EMPTY_RECORD})}function _avatarCounterBaseStyle(e){const{theme:t}=e;return lt(_a$A||(_a$A=__template$A(["\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n user-select: none;\n color: inherit;\n color: var(--card-fg-color);\n background: var(--card-bg-color);\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n inset 0 0 0 1.5px var(--card-hairline-hard-color);\n padding: 0 ",";\n\n &:not([hidden]) {\n display: flex;\n }\n "])),rem(t.sanity.space[2]))}const Root$C=dt.div(_responsiveAvatarCounterSizeStyle,_avatarCounterBaseStyle),AvatarCounter=(0,external_react_.forwardRef)(function(e,t){const{count:n,size:r=0}=e,o=useArrayProp(r),i=(0,external_react_.useMemo)(()=>o.map(e=>0===e?0:e+1),[o]);return(0,jsx_runtime.jsx)(Root$C,{$size:o,"data-ui":"AvatarCounter",ref:t,children:(0,jsx_runtime.jsx)(Text,{as:"span",size:i,children:(0,jsx_runtime.jsx)("strong",{children:n})})})});function childrenToElementArray(e){return(Array.isArray(e)?e:[e]).filter(e=>(0,react_is.isElement)(e)||(0,react_is.isFragment)(e)||"string"==typeof e)}var __freeze$z=Object.freeze,__defProp$A=Object.defineProperty,__template$z=(e,t)=>__freeze$z(__defProp$A(e,"raw",{value:__freeze$z(t||e.slice())})),_a$z;const BASE_STYLES=lt(_a$z||(_a$z=__template$z(["\n white-space: nowrap;\n\n & > div {\n vertical-align: top;\n\n &:not([hidden]) {\n display: inline-block;\n }\n }\n"])));function avatarStackStyle(){return BASE_STYLES}function responsiveAvatarStackSizeStyle(e){const{theme:t}=e,{avatar:n,media:r}=t.sanity;return _responsive(r,e.$size,e=>{const t=n.sizes[e];return t?{"& > div + div":{marginLeft:rem(t.distance)}}:EMPTY_RECORD})}const Root$B=dt.div(responsiveAvatarStackSizeStyle,avatarStackStyle),AvatarStack=(0,external_react_.forwardRef)(function(e,t){const{children:n,maxLength:r=4,size:o=0,...i}=e,a=childrenToElementArray(n).filter(e=>"string"!=typeof e),s=Math.max(r,0),l=useArrayProp(o),c=a.length,u=c-(s-1),d=u>1?a.slice(u,c):a;return(0,jsx_runtime.jsxs)(Root$B,{"data-ui":"AvatarStack",...i,ref:t,$size:l,children:[0===c&&(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(AvatarCounter,{count:c})}),0!==c&&u>1&&(0,jsx_runtime.jsx)("div",{children:(0,jsx_runtime.jsx)(AvatarCounter,{count:u,size:l})}),d.map((e,t)=>(0,jsx_runtime.jsx)("div",{children:(0,external_react_.cloneElement)(e,{size:l})},String(t)))]})}),Root$A=dt.div(boxStyle,flexItemStyle,responsiveBoxStyle,responsiveGridItemStyle,responsiveMarginStyle,responsivePaddingStyle),Box=(0,external_react_.forwardRef)(function(e,t){const{as:n="div",column:r,columnStart:o,columnEnd:i,display:a="block",flex:s,height:l,margin:c=0,marginX:u,marginY:d,marginTop:f,marginRight:h,marginBottom:p,marginLeft:m,overflow:g,padding:_=0,paddingX:x,paddingY:y,paddingTop:b,paddingRight:v,paddingBottom:w,paddingLeft:j,row:C,rowStart:k,rowEnd:S,sizing:L,...T}=e;return(0,jsx_runtime.jsx)(Root$A,{"data-as":"string"==typeof n?n:void 0,"data-ui":"Box",...T,$column:useArrayProp(r),$columnStart:useArrayProp(o),$columnEnd:useArrayProp(i),$display:useArrayProp(a),$flex:useArrayProp(s),$height:useArrayProp(l),$margin:useArrayProp(c),$marginX:useArrayProp(u),$marginY:useArrayProp(d),$marginTop:useArrayProp(f),$marginRight:useArrayProp(h),$marginBottom:useArrayProp(p),$marginLeft:useArrayProp(m),$overflow:useArrayProp(g),$padding:useArrayProp(_),$paddingX:useArrayProp(x),$paddingY:useArrayProp(y),$paddingTop:useArrayProp(b),$paddingRight:useArrayProp(v),$paddingBottom:useArrayProp(w),$paddingLeft:useArrayProp(j),$row:useArrayProp(C),$rowStart:useArrayProp(k),$rowEnd:useArrayProp(S),$sizing:useArrayProp(L),as:n,ref:t,children:e.children})});var __freeze$y=Object.freeze,__defProp$z=Object.defineProperty,__template$y=(e,t)=>__freeze$y(__defProp$z(e,"raw",{value:__freeze$y(t||e.slice())})),_a$y,_b$k,_c$b;function labelBaseStyle(e){const{$accent:t,$muted:n,theme:r}=e,{fonts:o}=r.sanity;return lt(_c$b||(_c$b=__template$y(["\n text-transform: uppercase;\n\n ","\n\n ","\n\n & code {\n font-family: ",";\n border-radius: 1px;\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])),t&<(_a$y||(_a$y=__template$y(["\n color: var(--card-accent-fg-color);\n "]))),n&<(_b$k||(_b$k=__template$y(["\n color: var(--card-muted-fg-color);\n "]))),o.code.family)}var __freeze$x=Object.freeze,__defProp$y=Object.defineProperty,__template$x=(e,t)=>__freeze$x(__defProp$y(e,"raw",{value:__freeze$x(t||e.slice())})),_a$x;const Root$z=dt.div(responsiveLabelFont,responsiveTextAlignStyle,labelBaseStyle),SpanWithTextOverflow$1=dt.span(_a$x||(_a$x=__template$x(["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"]))),Label=(0,external_react_.forwardRef)(function(e,t){const{accent:n,align:r,children:o,muted:i=!1,size:a=2,textOverflow:s,weight:l,...c}=e;let u=o;return u="ellipsis"===s?(0,jsx_runtime.jsx)(SpanWithTextOverflow$1,{children:u}):(0,jsx_runtime.jsx)("span",{children:u}),(0,jsx_runtime.jsx)(Root$z,{"data-ui":"Label",...c,$accent:n,$align:useArrayProp(r),$muted:i,$size:useArrayProp(a),$weight:l,ref:t,children:u})});function badgeStyle(e){const{$mode:t,$tone:n,theme:r}=e,o=r.sanity.color["outline"===t?"muted":"solid"],i=o[n]||o.default;return{backgroundColor:i.enabled.bg,color:i.enabled.fg,boxShadow:"inset 0 0 0 1px ".concat(i.enabled.border),cursor:"default","&:not([hidden])":{display:"inline-block"}}}const Root$y=dt(Box)(responsiveRadiusStyle,badgeStyle),Badge=(0,external_react_.forwardRef)(function(e,t){const{children:n,fontSize:r,mode:o="default",padding:i=1,radius:a=2,tone:s="default",...l}=e;return(0,jsx_runtime.jsx)(Root$y,{"data-ui":"Badge",...l,$mode:o,$tone:s,$radius:useArrayProp(a),padding:useArrayProp(i),ref:t,children:(0,jsx_runtime.jsx)(Label,{size:r,children:n})})}),Root$x=dt(Box)(flexItemStyle,responsiveFlexStyle),Flex=(0,external_react_.forwardRef)(function(e,t){const{align:n,as:r,direction:o="row",gap:i,justify:a,wrap:s,...l}=e;return(0,jsx_runtime.jsx)(Root$x,{"data-ui":"Flex",...l,$align:useArrayProp(n),$direction:useArrayProp(o),$gap:useArrayProp(i),$justify:useArrayProp(a),$wrap:useArrayProp(s),forwardedAs:r,ref:t})});var __freeze$w=Object.freeze,__defProp$x=Object.defineProperty,__template$w=(e,t)=>__freeze$w(__defProp$x(e,"raw",{value:__freeze$w(t||e.slice())})),_a$w,_b$j;const rotate$1=mt(_a$w||(_a$w=__template$w(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"]))),Root$w=dt(Text)(_b$j||(_b$j=__template$w(["\n & > span > svg {\n animation: "," 500ms linear infinite;\n }\n"])),rotate$1),Spinner=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)(Root$w,{"data-ui":"Spinner",...e,ref:t,children:(0,jsx_runtime.jsx)(SpinnerIcon,{})})});function _colorVarsStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a,s,l,c,u;return{"--card-shadow-outline-color":e.shadow.outline,"--card-shadow-umbra-color":e.shadow.umbra,"--card-shadow-penumbra-color":e.shadow.penumbra,"--card-shadow-ambient-color":e.shadow.ambient,"--card-focus-ring-color":e.focusRing,"--card-bg-color":t.bg,"--card-bg-image":n?"repeating-conic-gradient(".concat(t.bg," 0% 25%, ").concat(t.bg2||t.bg," 0% 50%)"):void 0,"--card-fg-color":t.fg,"--card-border-color":t.border,"--card-muted-fg-color":null==(r=t.muted)?void 0:r.fg,"--card-accent-fg-color":null==(o=t.accent)?void 0:o.fg,"--card-link-fg-color":null==(i=t.link)?void 0:i.fg,"--card-code-bg-color":null==(a=t.code)?void 0:a.bg,"--card-code-fg-color":null==(s=t.code)?void 0:s.fg,"--card-skeleton-color-from":null==(l=t.skeleton)?void 0:l.from,"--card-skeleton-color-to":null==(c=t.skeleton)?void 0:c.to,"--card-link-color":null==(u=t.link)?void 0:u.fg,"--card-hairline-soft-color":t.border,"--card-hairline-hard-color":t.border}}var __freeze$v=Object.freeze,__defProp$w=Object.defineProperty,__template$v=(e,t)=>__freeze$v(__defProp$w(e,"raw",{value:__freeze$v(t||e.slice())})),_a$v;function buttonBaseStyles(){return lt(_a$v||(_a$v=__template$v(["\n -webkit-font-smoothing: inherit;\n appearance: none;\n display: inline-flex;\n align-items: center;\n font: inherit;\n border: 0;\n outline: none;\n user-select: none;\n text-decoration: none;\n border: 0;\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n white-space: nowrap;\n text-align: left;\n position: relative;\n\n & > span {\n display: block;\n flex: 1;\n min-width: 0;\n border-radius: inherit;\n }\n\n &::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n "])))}const buttonTheme={border:{width:1}};function buttonColorStyles(e){var t,n;const{$mode:r,theme:o}=e,{focusRing:i}=o.sanity,a=o.sanity.color.base,s=o.sanity.color.button[r]||o.sanity.color.button.default,l=s[e.$tone]||s.default,c={width:buttonTheme.border.width,color:"var(--card-border-color)"};return[_colorVarsStyle(a,l.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:focusRingBorderStyle(c),'&:disabled, &[data-disabled="true"]':_colorVarsStyle(a,l.disabled),"&:not([data-disabled='true'])":{"&:focus":{boxShadow:focusRingStyle({base:a,border:c,focusRing:i})},"&:focus:not(:focus-visible)":{boxShadow:focusRingBorderStyle(c)},"@media (hover: hover)":{"&:hover":_colorVarsStyle(a,l.hovered),"&:active":_colorVarsStyle(a,l.pressed),"&[data-hovered]":_colorVarsStyle(a,l.hovered)},"&[data-selected]":_colorVarsStyle(a,l.pressed)}},null==(n=null==(t=o.sanity.styles)?void 0:t.button)?void 0:n.root].filter(Boolean)}var __freeze$u=Object.freeze,__defProp$v=Object.defineProperty,__template$u=(e,t)=>__freeze$u(__defProp$v(e,"raw",{value:__freeze$u(t||e.slice())})),_a$u;const Root$v=dt.button(responsiveRadiusStyle,buttonBaseStyles,buttonColorStyles),LoadingBox=dt.div(_a$u||(_a$u=__template$u(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--card-bg-color);\n border-radius: inherit;\n z-index: 1;\n box-shadow: inherit;\n"]))),Button=(0,external_react_.forwardRef)(function(e,t){const{children:n,disabled:r,fontSize:o,icon:i,iconRight:a,justify:s="center",loading:l,mode:c="default",padding:u=3,paddingX:d,paddingY:f,paddingTop:h,paddingBottom:p,paddingLeft:m,paddingRight:g,radius:_=2,selected:x,space:y=3,text:b,textAlign:v,tone:w="default",type:j="button",...C}=e,k=useArrayProp(s),S=useArrayProp(u),L=useArrayProp(d),T=useArrayProp(f),E=useArrayProp(h),R=useArrayProp(p),M=useArrayProp(m),A=useArrayProp(g),$=useArrayProp(_),I=useArrayProp(y),D=useTheme(),O=(0,external_react_.useMemo)(()=>({padding:S,paddingX:L,paddingY:T,paddingTop:E,paddingBottom:R,paddingLeft:M,paddingRight:A}),[S,L,T,E,R,M,A]);return(0,jsx_runtime.jsxs)(Root$v,{"data-ui":"Button",...C,$mode:c,$radius:$,$tone:w,"data-disabled":Boolean(l||r),"data-selected":x?"":void 0,disabled:Boolean(l||r),ref:t,type:j,children:[Boolean(l)&&(0,jsx_runtime.jsx)(LoadingBox,{children:(0,jsx_runtime.jsx)(Spinner,{})}),(i||b||a)&&(0,jsx_runtime.jsx)(Box,{as:"span",...O,children:(0,jsx_runtime.jsxs)(Flex,{as:"span",justify:k,children:[i&&(0,jsx_runtime.jsxs)(Text,{size:o,children:[(0,external_react_.isValidElement)(i)&&i,(0,react_is.isValidElementType)(i)&&(0,external_react_.createElement)(i)]}),b&&(0,jsx_runtime.jsx)(Box,{flex:a?1:void 0,marginLeft:i?I:void 0,marginRight:a?I:void 0,children:(0,jsx_runtime.jsx)(Text,{align:v,size:o,textOverflow:"ellipsis",weight:D.sanity.button.textWeight,children:b})}),a&&(0,jsx_runtime.jsxs)(Text,{size:o,children:[(0,external_react_.isValidElement)(a)&&a,(0,react_is.isValidElementType)(a)&&(0,external_react_.createElement)(a)]})]})}),n&&(0,jsx_runtime.jsx)(Box,{as:"span",...O,children:n})]})});var __freeze$t=Object.freeze,__defProp$u=Object.defineProperty,__template$t=(e,t)=>__freeze$t(__defProp$u(e,"raw",{value:__freeze$t(t||e.slice())})),_a$t,_b$i,_c$a;function cardStyle(e){return[cardBaseStyle(e),cardColorStyle(e)]}function cardBaseStyle(e){const{$checkered:t,theme:n}=e,r=n.sanity.space;return lt(_b$i||(_b$i=__template$t(["\n ","\n\n &[data-as='button'] {\n -webkit-font-smoothing: inherit;\n appearance: none;\n outline: none;\n font: inherit;\n text-align: inherit;\n border: 0;\n width: -webkit-fill-available;\n width: stretch;\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n outline: none;\n text-decoration: none;\n }\n\n /* &:is(pre) */\n &[data-as='pre'] {\n font: inherit;\n }\n "])),t&<(_a$t||(_a$t=__template$t(["\n background-size: ","px ","px;\n background-position: 50% 50%;\n background-image: var(--card-bg-image);\n "])),r[3],r[3]))}function cardColorStyle(e){var t,n;const{$checkered:r,$focusRing:o,theme:i}=e,{focusRing:a}=i.sanity,{base:s,card:l,dark:c}=i.sanity.color,u={width:0,color:"var(--card-border-color)"};return lt(_c$a||(_c$a=__template$t(["\n color-scheme: ",";\n\n ","\n\n background-color: var(--card-bg-color);\n color: var(--card-fg-color);\n\n /* &:is(button) */\n &[data-as='button'] {\n --card-focus-ring-box-shadow: none;\n\n cursor: default;\n box-shadow: var(--card-focus-ring-box-shadow);\n\n &:disabled {\n ","\n }\n\n &:not(:disabled) {\n &[data-pressed] {\n ","\n }\n\n &[data-selected] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-pressed]):not([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n\n &:focus {\n --card-focus-ring-box-shadow: ",";\n }\n\n &:focus:not(:focus-visible) {\n --card-focus-ring-box-shadow: ",";\n }\n }\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n cursor: pointer;\n box-shadow: var(--card-focus-ring-box-shadow);\n\n &[data-disabled] {\n ","\n }\n\n &:not([data-disabled]) {\n &[data-pressed] {\n ","\n }\n\n &[data-selected] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-pressed]):not([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n\n &:focus {\n --card-focus-ring-box-shadow: ",";\n }\n\n &:focus:not(:focus-visible) {\n --card-focus-ring-box-shadow: ",";\n }\n }\n }\n\n ","\n "])),c?"dark":"light",_colorVarsStyle(s,l.enabled,r),_colorVarsStyle(s,l.disabled,r),_colorVarsStyle(s,l.pressed,r),_colorVarsStyle(s,l.selected,r),_colorVarsStyle(s,l.hovered,r),_colorVarsStyle(s,l.pressed,r),o?focusRingStyle({base:s,border:u,focusRing:a}):void 0,o?focusRingBorderStyle(u):void 0,_colorVarsStyle(s,l.disabled,r),_colorVarsStyle(s,l.pressed,r),_colorVarsStyle(s,l.selected,r),_colorVarsStyle(s,l.hovered,r),_colorVarsStyle(s,l.pressed,r),o?focusRingStyle({base:s,border:u,focusRing:a}):void 0,o?focusRingBorderStyle(u):void 0,null==(n=null==(t=i.sanity.styles)?void 0:t.card)?void 0:n.root)}const Root$u=dt(Box)(responsiveBorderStyle,responsiveRadiusStyle,responsiveShadowStyle,cardStyle),Card=(0,external_react_.forwardRef)(function(e,t){const{__unstable_checkered:n=!1,__unstable_focusRing:r=!1,as:o,border:i,borderTop:a,borderRight:s,borderBottom:l,borderLeft:c,pressed:u,radius:d=0,scheme:f,selected:h,shadow:p,tone:m="default",...g}=e,_=(0,react_is.isValidElementType)(o)?o:"div",x=useRootTheme(),y="inherit"===m?x.tone:m;return(0,jsx_runtime.jsx)(ThemeColorProvider,{scheme:f,tone:y,children:(0,jsx_runtime.jsx)(Root$u,{"data-as":"string"==typeof _?_:void 0,"data-scheme":x.scheme,"data-ui":"Card","data-tone":y,...g,$border:useArrayProp(i),$borderTop:useArrayProp(a),$borderRight:useArrayProp(s),$borderBottom:useArrayProp(l),$borderLeft:useArrayProp(c),$checkered:n,$focusRing:r,$radius:useArrayProp(d),$shadow:useArrayProp(p),$tone:y,"data-checkered":n?"":void 0,"data-pressed":u?"":void 0,"data-selected":h?"":void 0,forwardedAs:_,ref:t,selected:h})})});var __freeze$s=Object.freeze,__defProp$t=Object.defineProperty,__template$s=(e,t)=>__freeze$s(__defProp$t(e,"raw",{value:__freeze$s(t||e.slice())})),_a$s,_b$h;function checkboxBaseStyles(){return lt(_a$s||(_a$s=__template$s(["\n position: relative;\n display: inline-block;\n "])))}function inputElementStyles(e){const{theme:t}=e,n=t.sanity.color.input,{focusRing:r,input:o,radius:i}=t.sanity;return lt(_b$h||(_b$h=__template$s(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n outline: none;\n opacity: 0;\n z-index: 1;\n padding: 0;\n margin: 0;\n\n & + span {\n position: relative;\n display: block;\n height: ",";\n width: ",";\n box-sizing: border-box;\n box-shadow: ",";\n border-radius: ",";\n line-height: 1;\n background-color: ",";\n\n & > svg {\n display: block;\n position: absolute;\n opacity: 0;\n height: 100%;\n width: 100%;\n\n & > path {\n vector-effect: non-scaling-stroke;\n stroke-width: 2 !important;\n }\n }\n }\n\n &:not(:disabled):focus + span {\n box-shadow: ",";\n }\n\n &:not(:disabled):focus:not(:focus-visible) + span {\n box-shadow: ",";\n }\n\n &:checked + span > svg:first-child {\n opacity: 1;\n }\n\n &[data-read-only] + span {\n background-color: ",";\n box-shadow: ",";\n color: ",";\n }\n\n &:not([data-read-only]):disabled + span {\n background-color: ",";\n box-shadow: ",";\n color: ",";\n }\n\n &:indeterminate + span > svg:last-child {\n opacity: 1;\n }\n "])),rem(o.checkbox.size),rem(o.checkbox.size),focusRingBorderStyle({color:n.default.enabled.border,width:o.border.width}),rem(i[2]),n.default.enabled.bg,focusRingStyle({border:{width:o.border.width,color:n.default.enabled.border},focusRing:r}),focusRingBorderStyle({color:n.default.enabled.border,width:o.border.width}),n.default.readOnly.bg,focusRingBorderStyle({width:o.border.width,color:n.default.readOnly.border}),n.default.readOnly.fg,n.default.disabled.bg,focusRingBorderStyle({width:o.border.width,color:n.default.disabled.border}),n.default.disabled.fg)}const Root$t=dt.div(checkboxBaseStyles),Input$5=dt.input(inputElementStyles),Checkbox=(0,external_react_.forwardRef)(function(e,t){const{checked:n,className:r,disabled:o,indeterminate:i,customValidity:a,readOnly:s,style:l,...c}=e,u=useForwardedRef(t);return useCustomValidity(u,a),(0,external_react_.useEffect)(()=>{u.current&&(u.current.indeterminate=i||!1)},[i,u]),(0,jsx_runtime.jsxs)(Root$t,{className:r,"data-ui":"Checkbox",style:l,children:[(0,jsx_runtime.jsx)(Input$5,{"data-read-only":!o&&s?"":void 0,...c,checked:n,disabled:o||s,type:"checkbox",readOnly:s,ref:u}),(0,jsx_runtime.jsxs)("span",{children:[(0,jsx_runtime.jsx)(CheckmarkIcon,{}),(0,jsx_runtime.jsx)(RemoveIcon,{})]})]})});var __freeze$r=Object.freeze,__defProp$s=Object.defineProperty,__template$r=(e,t)=>__freeze$r(__defProp$s(e,"raw",{value:__freeze$r(t||e.slice())})),_a$r;function codeSyntaxHighlightingStyle(e){let{theme:t}=e;const n=t.sanity.color.syntax;return{"&.atrule":{color:n.atrule},"&.attr-name":{color:n.attrName},"&.attr-value":{color:n.attrValue},"&.attribute":{color:n.attribute},"&.boolean":{color:n.boolean},"&.builtin":{color:n.builtin},"&.cdata":{color:n.cdata},"&.char":{color:n.char},"&.class":{color:n.class},"&.class-name":{color:n.className},"&.comment":{color:n.comment},"&.constant":{color:n.constant},"&.deleted":{color:n.deleted},"&.doctype":{color:n.doctype},"&.entity":{color:n.entity},"&.function":{color:n.function},"&.hexcode":{color:n.hexcode},"&.id":{color:n.id},"&.important":{color:n.important},"&.inserted":{color:n.inserted},"&.keyword":{color:n.keyword},"&.number":{color:n.number},"&.operator":{color:n.operator},"&.prolog":{color:n.prolog},"&.property":{color:n.property},"&.pseudo-class":{color:n.pseudoClass},"&.pseudo-element":{color:n.pseudoElement},"&.punctuation":{color:n.punctuation},"&.regex":{color:n.regex},"&.selector":{color:n.selector},"&.string":{color:n.string},"&.symbol":{color:n.symbol},"&.tag":{color:n.tag},"&.unit":{color:n.unit},"&.url":{color:n.url},"&.variable":{color:n.variable}}}function codeBaseStyle(){return lt(_a$r||(_a$r=__template$r(["\n color: var(--card-code-fg-color);\n\n & code {\n font-family: inherit;\n\n &.refractor .token {\n ","\n }\n }\n\n & a {\n color: inherit;\n text-decoration: underline;\n border-radius: 1px;\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])),codeSyntaxHighlightingStyle)}const Root$s=dt.pre(codeBaseStyle,responsiveCodeFontStyle),Code=(0,external_react_.forwardRef)(function(e,t){const{children:n,language:r,size:o=2,weight:i,...a}=e,s="string"==typeof r?r:void 0,l=!!s&&Refractor_default().hasLanguage(s);return(0,jsx_runtime.jsxs)(Root$s,{"data-ui":"Code",...a,$size:useArrayProp(o),$weight:i,ref:t,children:[!(s&&l)&&(0,jsx_runtime.jsx)("code",{children:n}),s&&l&&(0,jsx_runtime.jsx)(Refractor_default(),{inline:!0,language:s,value:String(n)})]})}),BASE_STYLE$1={width:"100%",margin:"0 auto"};function containerBaseStyle(){return BASE_STYLE$1}function responsiveContainerWidthStyle(e){const{theme:t}=e,{container:n,media:r}=t.sanity;return _responsive(r,e.$width,e=>({maxWidth:"auto"===e?"none":rem(n[e])}))}const Root$r=dt(Box)(containerBaseStyle,responsiveContainerWidthStyle),Container=(0,external_react_.forwardRef)(function(e,t){const{as:n,width:r=2,...o}=e;return(0,jsx_runtime.jsx)(Root$r,{"data-ui":"Container",...o,$width:useArrayProp(r),forwardedAs:n,ref:t})}),Root$q=dt(Box)(responsiveGridStyle),Grid=(0,external_react_.forwardRef)(function(e,t){const{as:n,autoRows:r,autoCols:o,autoFlow:i,columns:a,gap:s,gapX:l,gapY:c,rows:u,children:d,...f}=e;return(0,jsx_runtime.jsx)(Root$q,{"data-as":"string"==typeof n?n:void 0,"data-ui":"Grid",...f,$autoRows:useArrayProp(r),$autoCols:useArrayProp(o),$autoFlow:useArrayProp(i),$columns:useArrayProp(a),$gap:useArrayProp(s),$gapX:useArrayProp(l),$gapY:useArrayProp(c),$rows:useArrayProp(u),forwardedAs:n,ref:t,children:d})});var __freeze$q=Object.freeze,__defProp$r=Object.defineProperty,__template$q=(e,t)=>__freeze$q(__defProp$r(e,"raw",{value:__freeze$q(t||e.slice())})),_a$q,_b$g,_c$9;function headingBaseStyle(e){const{$accent:t,$muted:n,theme:r}=e;return lt(_c$9||(_c$9=__template$q(["\n ","\n\n ","\n\n & code {\n font-family: ",";\n border-radius: 1px;\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n }\n "])),t&<(_a$q||(_a$q=__template$q(["\n color: var(--card-accent-fg-color);\n "]))),n&<(_b$g||(_b$g=__template$q(["\n color: var(--card-muted-fg-color);\n "]))),r.sanity.fonts.code.family)}var __freeze$p=Object.freeze,__defProp$q=Object.defineProperty,__template$p=(e,t)=>__freeze$p(__defProp$q(e,"raw",{value:__freeze$p(t||e.slice())})),_a$p;const Root$p=dt.div(headingBaseStyle,responsiveTextAlignStyle,responsiveHeadingFont),SpanWithTextOverflow=dt.span(_a$p||(_a$p=__template$p(["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"]))),Heading=(0,external_react_.forwardRef)(function(e,t){const{accent:n=!1,align:r,children:o,muted:i=!1,size:a=2,textOverflow:s,weight:l,...c}=e;let u=o;return"ellipsis"===s&&(u=(0,jsx_runtime.jsx)(SpanWithTextOverflow,{children:u})),(0,jsx_runtime.jsx)(Root$p,{"data-ui":"Heading",...c,$accent:n,$align:useArrayProp(r),$muted:i,$size:useArrayProp(a),$weight:l,ref:t,children:(0,jsx_runtime.jsx)("span",{children:u})})});function inlineBaseStyle(){return{lineHeight:0,"&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}}function inlineSpaceStyle(e){const{theme:t}=e;return _responsive(t.sanity.media,e.$space,e=>{const n=rem(t.sanity.space[e]);return{margin:"-".concat(n," 0 0 -").concat(n),"& > div":{padding:"".concat(n," 0 0 ").concat(n)}}})}const Root$o=dt(Box)(inlineBaseStyle,inlineSpaceStyle),Inline=(0,external_react_.forwardRef)(function(e,t){const{as:n,children:r,space:o,...i}=e,a=(0,external_react_.useMemo)(()=>childrenToElementArray(r).filter(Boolean).map((e,t)=>(0,jsx_runtime.jsx)("div",{children:e},t)),[r]);return(0,jsx_runtime.jsx)(Root$o,{"data-ui":"Inline",...i,$space:useArrayProp(o),forwardedAs:n,ref:t,children:a})});var __freeze$o=Object.freeze,__defProp$p=Object.defineProperty,__template$o=(e,t)=>__freeze$o(__defProp$p(e,"raw",{value:__freeze$o(t||e.slice())})),_a$o;function kbdStyle(){return lt(_a$o||(_a$o=__template$o(["\n background: var(--card-bg-color);\n font: inherit;\n box-shadow: inset 0 0 0 1px var(--card-hairline-hard-color);\n\n &:not([hidden]) {\n display: inline-block;\n }\n "])))}const Root$n=dt.kbd(responsiveRadiusStyle,kbdStyle),KBD=(0,external_react_.forwardRef)(function(e,t){const{children:n,fontSize:r=1,padding:o=1,radius:i=2,...a}=e;return(0,jsx_runtime.jsx)(Root$n,{"data-ui":"KBD",...a,$radius:useArrayProp(i),ref:t,children:(0,jsx_runtime.jsx)(Box,{as:"span",padding:o,children:(0,jsx_runtime.jsx)(Code,{as:"span",muted:!0,size:r,children:n})})})}),key$7=Symbol.for("@sanity/ui/context/boundaryElement");globalScope[key$7]=globalScope[key$7]||(0,external_react_.createContext)(null);const BoundaryElementContext=globalScope[key$7];function BoundaryElementProvider(e){const{children:t,element:n}=e,r=useMemo(()=>({version:0,element:n}),[n]);return jsx(BoundaryElementContext.Provider,{value:r,children:t})}const DEFAULT_VALUE={version:0,element:null};function useBoundaryElement(){const e=(0,external_react_.useContext)(BoundaryElementContext);if(e&&(!isRecord(e)||0!==e.version))throw new Error("useBoundaryElement(): the context value is not compatible");return e||DEFAULT_VALUE}function findMaxBreakpoints(e,t){const n=[];for(let r=0;r<e.length;r+=1)e[r]>t&&n.push(r);return n}function findMinBreakpoints(e,t){const n=[];for(let r=0;r<e.length;r+=1)e[r]<=t&&n.push(r);return n}const ElementQuery=(0,external_react_.forwardRef)(function(e,t){const n=useTheme(),{children:r,media:o=n.sanity.media,...i}=e,a=useForwardedRef(t),[s,l]=(0,external_react_.useState)(null),c=useElementSize(s),u=(0,external_react_.useMemo)(()=>{var e;return null!=(e=null==c?void 0:c.border.width)?e:window.innerWidth},[c]),d=(0,external_react_.useMemo)(()=>findMaxBreakpoints(o,u),[o,u]),f=(0,external_react_.useMemo)(()=>findMinBreakpoints(o,u),[o,u]),h=(0,external_react_.useCallback)(e=>{a.current=e,l(e)},[a]);return(0,jsx_runtime.jsx)("div",{"data-ui":"ElementQuery",...i,"data-eq-max":d.length?d.join(" "):void 0,"data-eq-min":f.length?f.join(" "):void 0,ref:h,children:r})});var __defProp$o=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);class ErrorBoundary extends external_react_.Component{constructor(){super(...arguments),__publicField(this,"state",{error:null})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){const{error:e}=this.state;if(e){const t="string"==typeof(null==e?void 0:e.message)?e.message:"Error";return(0,jsx_runtime.jsx)(Code,{children:t})}return this.props.children}}function getLayerContext(e){if(!isRecord(e)||0!==e.version)throw new Error("the context value is not compatible");if(!e)throw new Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");if(0===e.version)return e;throw new Error("could not get layer context")}const key$6=Symbol.for("@sanity/ui/context/layer");globalScope[key$6]=globalScope[key$6]||(0,external_react_.createContext)(null);const LayerContext=globalScope[key$6];function useLayer(){const e=(0,external_react_.useContext)(LayerContext);if(!e)throw new Error("useLayer(): missing context value");try{return getLayerContext(e)}catch(e){throw e instanceof Error?new Error("useLayer(): ".concat(e.message)):new Error("useLayer(): ".concat(e))}}function _raf(e){const t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function _raf2(e){let t=null;const n=_raf(()=>{t=_raf(e)});return()=>{t&&t(),n()}}function _isEnterToClickElement(e){return isHTMLAnchorElement(e)||isHTMLButtonElement(e)}function index_esm_isHTMLElement(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function isHTMLAnchorElement(e){return index_esm_isHTMLElement(e)&&"A"===e.nodeName}function isHTMLInputElement(e){return index_esm_isHTMLElement(e)&&"INPUT"===e.nodeName}function isHTMLButtonElement(e){return index_esm_isHTMLElement(e)&&"BUTTON"===e.nodeName}function isHTMLSelectElement(e){return index_esm_isHTMLElement(e)&&"SELECT"===e.nodeName}function isHTMLTextAreaElement(e){return index_esm_isHTMLElement(e)&&"TEXTAREA"===e.nodeName}function containsOrEqualsElement(e,t){return e.contains(t)||e===t}function _hasFocus(e){return Boolean(document.activeElement)&&e.contains(document.activeElement)}function isFocusable(e){return e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||(isHTMLAnchorElement(e)?Boolean(e.href)&&"ignore"!==e.rel:isHTMLInputElement(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!(isHTMLButtonElement(e)||isHTMLSelectElement(e)||isHTMLTextAreaElement(e))&&!e.disabled)}function attemptFocus(e){if(!isFocusable(e))return!1;try{e.focus()}catch(e){}return document.activeElement===e}function focusFirstDescendant(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(index_esm_isHTMLElement(n)&&(attemptFocus(n)||focusFirstDescendant(n)))return!0}return!1}function focusLastDescendant(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(index_esm_isHTMLElement(n)&&(attemptFocus(n)||focusLastDescendant(n)))return!0}return!1}function _isScrollable(e){if(!(e instanceof Element))return!1;const t=window.getComputedStyle(e);return t.overflowX.includes("auto")||t.overflowX.includes("scroll")||t.overflowY.includes("auto")||t.overflowY.includes("scroll")}function LayerProvider(e){var t;const{children:n,zOffset:r=0}=e,o=(0,external_react_.useContext)(LayerContext),i=o&&getLayerContext(o),a=null==i?void 0:i.registerChild,s=(null!=(t=null==i?void 0:i.level)?t:0)+1,l=useArrayProp(r),c=l.length-1,u=Math.min(useMediaIndex(),c),d=i?i.zIndex+l[u]:l[u],[,f]=(0,external_react_.useState)({}),[h,p]=(0,external_react_.useState)(0),m=0===h,g=(0,external_react_.useCallback)(e=>{const t=null==a?void 0:a(e);return void 0!==e?f(t=>{var n;const r=null!=(n=t[e])?n:0,o={...t,[e]:r+1};return p(Object.keys(o).length),o}):p(e=>e+1),()=>{void 0!==e?f(t=>{const n={...t};return 1===n[e]?(delete n[e],p(Object.keys(n).length)):n[e]-=1,n}):p(e=>e-1),null==t||t()}},[a]);(0,external_react_.useEffect)(()=>null==a?void 0:a(s),[s,a]);const _=(0,external_react_.useMemo)(()=>({version:0,isTopLayer:m,level:s,registerChild:g,size:h,zIndex:d}),[m,s,g,h,d]);return(0,jsx_runtime.jsx)(LayerContext.Provider,{value:_,children:n})}const Root$m=dt.div({position:"relative"}),LayerChildren=(0,external_react_.forwardRef)(function(e,t){const{children:n,onActivate:r,onFocus:o,style:i=EMPTY_RECORD,...a}=e,{zIndex:s,isTopLayer:l}=useLayer(),c=(0,external_react_.useRef)(null),u=useForwardedRef(t),d=(0,external_react_.useRef)(l);(0,external_react_.useEffect)(()=>{d.current!==l&&l&&(null==r||r({activeElement:c.current})),d.current=l},[l,r]);const f=(0,external_react_.useCallback)(e=>{null==o||o(e);const t=u.current,n=document.activeElement;l&&t&&n&&index_esm_isHTMLElement(n)&&containsOrEqualsElement(t,n)&&(c.current=n)},[u,l,o]);return(0,jsx_runtime.jsx)(Root$m,{...a,"data-ui":"Layer",onFocus:f,ref:u,style:{...i,zIndex:s},children:n})}),Layer=(0,external_react_.forwardRef)(function(e,t){const{children:n,zOffset:r=1,...o}=e;return(0,jsx_runtime.jsx)(LayerProvider,{zOffset:r,children:(0,jsx_runtime.jsx)(LayerChildren,{...o,ref:t,children:n})})}),key$5=Symbol.for("@sanity/ui/context/portal"),elementKey=Symbol.for("@sanity/ui/context/portal/element");globalScope[elementKey]=null;const defaultContextValue={version:0,boundaryElement:null,get element(){return"undefined"==typeof document?null:(globalScope[elementKey]||(globalScope[elementKey]=document.createElement("div"),globalScope[elementKey].setAttribute("data-portal",""),document.body.appendChild(globalScope[elementKey])),globalScope[elementKey])}};globalScope[key$5]=globalScope[key$5]||(0,external_react_.createContext)(defaultContextValue);const PortalContext=globalScope[key$5];function usePortal(){const e=(0,external_react_.useContext)(PortalContext);if(!e)throw new Error("usePortal(): missing context value");if(!isRecord(e)||0!==e.version)throw new Error("usePortal(): the context value is not compatible");return e}function Portal(e){var t;const{children:n,__unstable_name:r}=e,o=usePortal(),i=(r?o.elements&&o.elements[r]:o.element)||(null==(t=o.elements)?void 0:t.default);return i?__WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee_createPortal__(n,i):null}function useUnique(e){const t=useRef(e);return _isEqual(t.current,e)||(t.current=e),t.current}function _isEqual(e,t){if(!e||!t)return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])}const __BROWSER__="undefined"!=typeof document;function PortalProvider(e){const{boundaryElement:t,children:n,element:r,__unstable_elements:o}=e,i=useUnique(o),a=useMemo(()=>({version:0,boundaryElement:t||null,element:r||__BROWSER__&&document.body||null,elements:i}),[t,r,i]);return jsx(PortalContext.Provider,{value:a,children:n})}var __freeze$n=Object.freeze,__defProp$n=Object.defineProperty,__template$n=(e,t)=>__freeze$n(__defProp$n(e,"raw",{value:__freeze$n(t||e.slice())})),_a$n;const Root$l=dt.div(_a$n||(_a$n=__template$n(["\n display: block;\n width: 0;\n height: 0;\n position: absolute;\n overflow: hidden;\n overflow: clip;\n"]))),SrOnly=(0,external_react_.forwardRef)(function(e,t){const{as:n,children:r}=e;return(0,jsx_runtime.jsx)(Root$l,{"aria-hidden":!0,as:n,"data-ui":"SrOnly",ref:t,children:r})});var __freeze$m=Object.freeze,__defProp$m=Object.defineProperty,__template$m=(e,t)=>__freeze$m(__defProp$m(e,"raw",{value:__freeze$m(t||e.slice())})),_a$m,_b$f;const Root$k=dt.div(_a$m||(_a$m=__template$m(["\n position: relative;\n"]))),ItemWrapper=dt.div(_b$f||(_b$f=__template$m(["\n position: absolute;\n left: 0;\n right: 0;\n"]))),VirtualList=(0,external_react_.forwardRef)(function(e,t){const{as:n="div",gap:r=0,getItemKey:o,items:i=[],onChange:a,renderItem:s,...l}=e,{space:c}=useTheme().sanity,u=useForwardedRef(t),d=(0,external_react_.useRef)(null),[f,h]=(0,external_react_.useState)(0),[p,m]=(0,external_react_.useState)(0),[g,_]=(0,external_react_.useState)(-1);(0,external_react_.useEffect)(()=>{if(!d.current)return;const e=d.current.firstChild;e instanceof HTMLElement&&_(e.offsetHeight)},[s]),(0,external_react_.useEffect)(()=>{if(!u.current)return;let e=u.current.parentNode;for(;e&&!_isScrollable(e);)e=e.parentNode;if(e){const t=e;if(!(t instanceof HTMLElement))return;const n=()=>{h(t.scrollTop)};t.addEventListener("scroll",n,{passive:!0});const r=new _ResizeObserver(e=>{m(e[0].contentRect.height)});return r.observe(t),n(),()=>{t.removeEventListener("scroll",n),r.unobserve(t),r.disconnect()}}const t=()=>{h(window.scrollY)},n=()=>{m(window.innerHeight)};return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",n),m(window.innerHeight),t(),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",n)}},[u]);const x=i.length,y=g?x*(g+c[r])-c[r]:0,b=y?Math.max(Math.floor(f/y*x)-2,0):0,v=y?Math.ceil((f+p)/y*x)+1:0;(0,external_react_.useEffect)(()=>{a&&a({fromIndex:b,gap:c[r],itemHeight:g,scrollHeight:p,scrollTop:f,toIndex:v})},[b,r,g,a,p,f,c,v]);const w=(0,external_react_.useMemo)(()=>s&&0!==i.length?-1===g?[(0,jsx_runtime.jsx)(ItemWrapper,{children:s(i[0])},0)]:i.slice(b,v).map((e,t)=>{const n=b+t,i=s(e),a=o?o(e,n):n;return(0,jsx_runtime.jsx)(ItemWrapper,{style:{top:n*(g+c[r])},children:i},a)}):null,[b,r,o,g,i,s,c,v]),j=(0,external_react_.useMemo)(()=>({height:y}),[y]);return(0,jsx_runtime.jsx)(Root$k,{as:n,"data-ui":"VirtualList",...l,ref:u,children:(0,jsx_runtime.jsx)("div",{ref:d,style:j,children:w})})}),DEFAULT_POPOVER_DISTANCE=4,DEFAULT_POPOVER_PADDING=4,DEFAULT_POPOVER_ARROW_WIDTH=27,DEFAULT_POPOVER_ARROW_HEIGHT=11,DEFAULT_POPOVER_MARGINS=[0,0,0,0],DEFAULT_FALLBACK_PLACEMENTS$1={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]};function index_esm_size(e){const{apply:t,margins:n,padding:r=0}=e;return{name:"@sanity/ui/size",async fn(o){const{elements:i,placement:a,platform:s,rects:l}=o,{floating:c,reference:u}=l,d=await floating_ui_dom_detectOverflow(o,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:r,rootBoundary:"viewport"});let f=1/0,h=1/0;const p=c.width,m=c.height;a.includes("top")&&(f=p-(d.left+d.right),h=m-d.top),a.includes("right")&&(f=p-d.right,h=m-(d.top+d.bottom)),a.includes("bottom")&&(f=p-(d.left+d.right),h=m-d.bottom),a.includes("left")&&(f=p-d.left,h=m-(d.top+d.bottom)),t({availableWidth:f-n[1]-n[3],availableHeight:h-n[0]-n[2],elements:i,referenceWidth:u.width-n[1]-n[3]});const g=await s.getDimensions(i.floating),_=g.height;return p!==g.width||m!==_?{reset:{rects:!0}}:{}}}}function calcCurrentWidth(e){const{mediaIndex:t,theme:n,width:r}=e,o=r[t],i=void 0===o?r[r.length-1]:o;return"number"==typeof i?n.sanity.container[i]:void 0}function calcMaxWidth(e){const{boundaryWidth:t,currentWidth:n}=e;if(void 0!==n||void 0!==t)return Math.min(null!=n?n:1/0,(t||1/0)-2*DEFAULT_POPOVER_PADDING)}var __freeze$l=Object.freeze,__defProp$l=Object.defineProperty,__template$l=(e,t)=>__freeze$l(__defProp$l(e,"raw",{value:__freeze$l(t||e.slice())})),_a$l,_b$e,_c$8;const Root$j=dt.div(_a$l||(_a$l=__template$l(["\n position: absolute;\n pointer-events: none;\n width: ","px;\n height: ","px;\n fill: none;\n\n :empty + & {\n display: none;\n }\n\n & > svg {\n display: block;\n transform-origin: ","px ","px;\n }\n\n [data-placement^='top'] > & {\n bottom: -","px;\n }\n\n [data-placement^='right'] > & {\n left: -","px;\n\n & > svg {\n transform: rotate(90deg);\n }\n }\n\n [data-placement^='left'] > & {\n right: -","px;\n\n & > svg {\n transform: rotate(-90deg);\n }\n }\n\n [data-placement^='bottom'] > & {\n top: -","px;\n\n & > svg {\n transform: rotate(180deg);\n }\n }\n"])),DEFAULT_POPOVER_ARROW_WIDTH,DEFAULT_POPOVER_ARROW_WIDTH,DEFAULT_POPOVER_ARROW_WIDTH/2,DEFAULT_POPOVER_ARROW_WIDTH/2,DEFAULT_POPOVER_ARROW_WIDTH,DEFAULT_POPOVER_ARROW_WIDTH,DEFAULT_POPOVER_ARROW_WIDTH,DEFAULT_POPOVER_ARROW_WIDTH),BorderPath=dt.path(_b$e||(_b$e=__template$l(["\n fill: var(--card-shadow-outline-color);\n"]))),ShapePath=dt.path(_c$8||(_c$8=__template$l(["\n fill: var(--card-bg-color);\n"]))),PopoverArrow=(0,external_react_.forwardRef)(function(e,t){return(0,jsx_runtime.jsx)(Root$j,{"data-ui":"Popover__arrow",...e,ref:t,children:(0,jsx_runtime.jsxs)("svg",{width:DEFAULT_POPOVER_ARROW_WIDTH,height:DEFAULT_POPOVER_ARROW_HEIGHT,viewBox:"0 0 27 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,jsx_runtime.jsx)(BorderPath,{d:"M1.18708 1C3.29803 1.0011 5.29585 1.95479 6.62414 3.59561L11.1683 9.20895C12.369 10.6922 14.631 10.6922 15.8317 9.20894L20.3759 3.59561C21.7042 1.95478 23.702 1.0011 25.8129 1H21.9436C21.0533 1.49255 20.2545 2.15618 19.5986 2.96641L15.0545 8.57975C14.254 9.56855 12.746 9.56855 11.9455 8.57975L7.40139 2.96642C6.74548 2.15618 5.94673 1.49255 5.05643 1H1.18708Z"}),(0,jsx_runtime.jsx)(ShapePath,{d:"M1.18342 0C3.59749 0 5.88246 1.0901 7.40138 2.96642L11.9455 8.57975C12.746 9.56855 14.254 9.56855 15.0545 8.57975L19.5986 2.96641C21.1175 1.0901 23.4025 0 25.8166 0H27H0H1.18342Z"})]})})}),Root$i=dt(Card)({"&:not([hidden])":{display:"flex"},flexDirection:"column",width:"max-content",minWidth:"min-content"}),PopoverCard=(0,external_react_.memo)((0,external_react_.forwardRef)(function(e,t){const{__unstable_margins:n,arrow:r,arrowRef:o,arrowX:i,arrowY:a,children:s,padding:l,placement:c,overflow:u,radius:d,scheme:f,shadow:h,strategy:p,style:m,tone:g,width:_,x,y,...b}=e,{zIndex:v}=useLayer(),w=(0,external_react_.useMemo)(()=>n||DEFAULT_POPOVER_MARGINS,[n]),j=(null!=x?x:0)+w[3],C=(null!=y?y:0)+w[0],k=(0,external_react_.useMemo)(()=>({position:p,top:C,left:j,width:_,zIndex:v,...m}),[p,m,_,j,C,v]),S=c&&FLOATING_STATIC_SIDES[c.split("-")[0]],L=(0,external_react_.useMemo)(()=>{const e={left:null!==i?i:void 0,top:null!==a?a:void 0,right:void 0,bottom:void 0};return S&&(e[S]=0-DEFAULT_POPOVER_ARROW_WIDTH),e},[i,a,S]);return(0,jsx_runtime.jsxs)(Root$i,{"data-ui":"Popover",...b,"data-placement":c,radius:d,ref:t,scheme:f,shadow:h,sizing:"border",style:k,tone:g,children:[(0,jsx_runtime.jsx)(Flex,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:u,children:(0,jsx_runtime.jsx)(Flex,{direction:"column",flex:1,padding:l,children:s})}),r&&(0,jsx_runtime.jsx)(PopoverArrow,{ref:o,style:L})]})}));PopoverCard.displayName="PopoverCard";const Popover=(0,external_react_.memo)((0,external_react_.forwardRef)(function(e,t){var n,r,o,i,a,s,l,c,u;const d=useTheme(),f=useBoundaryElement(),{__unstable_margins:h=DEFAULT_POPOVER_MARGINS,arrow:p=!0,boundaryElement:m=f.element,children:g,constrainSize:_=!1,content:x,disabled:y,fallbackPlacements:b=(null!=(r=e.fallbackPlacements)?r:DEFAULT_FALLBACK_PLACEMENTS$1[null!=(n=e.placement)?n:"bottom"]),matchReferenceWidth:v,floatingBoundary:w=(null!=(o=e.boundaryElement)?o:f.element),open:j,overflow:C="hidden",padding:k,placement:S="bottom",portal:L,preventOverflow:T=!0,radius:E=3,referenceBoundary:R=(null!=(i=e.boundaryElement)?i:f.element),referenceElement:M,scheme:A,shadow:$=3,tone:I="inherit",width:D="auto",zOffset:O=(null==(a=d.sanity.layer)?void 0:a.popover.zOffset),updateRef:P,...B}=e,H=null==(s=useElementSize(m))?void 0:s.border,z=useArrayProp(k),V=useArrayProp(E),F=useArrayProp($),N=useArrayProp(D),W=useArrayProp(O),q=useForwardedRef(t),U=(0,external_react_.useRef)(null),Z="viewport",G=useMediaIndex(),Y=_||T?null==H?void 0:H.width:void 0,K=calcCurrentWidth({mediaIndex:G,theme:d,width:N}),X=(0,external_react_.useRef)(K);(0,external_react_.useEffect)(()=>{X.current=K},[K]);const J=calcMaxWidth({boundaryWidth:Y,currentWidth:K}),Q=(0,external_react_.useRef)(J);(0,external_react_.useEffect)(()=>{Q.current=J},[J]);const ee=(0,external_react_.useRef)();(0,external_react_.useEffect)(()=>{const e=q.current;if(!j||!e)return;const t=ee.current;v?void 0!==t&&(e.style.width="".concat(t,"px")):void 0!==K&&(e.style.width="".concat(K,"px")),"number"==typeof J&&(e.style.maxWidth="".concat(J,"px"))},[K,q,v,J,j]);const te=(0,external_react_.useMemo)(()=>{const e=[];return(_||T)&&e.push(floating_ui_dom_flip({boundary:w||void 0,fallbackPlacements:b,padding:DEFAULT_POPOVER_PADDING,rootBoundary:Z})),e.push(floating_ui_dom_offset({mainAxis:p?DEFAULT_POPOVER_DISTANCE:0})),(_||v)&&e.push(index_esm_size({apply(e){let{availableWidth:t,availableHeight:n,elements:r,referenceWidth:o}=e;ee.current=o;const i=X.current,a=Q.current;v?r.floating.style.width="".concat(o,"px"):void 0!==i&&(r.floating.style.width="".concat(i,"px")),_&&(r.floating.style.maxWidth="".concat(Math.min(t,null!=a?a:1/0),"px"),r.floating.style.maxHeight="".concat(n,"px"))},boundaryElement:w||void 0,constrainSize:_,margins:h,matchReferenceWidth:v,padding:DEFAULT_POPOVER_PADDING})),T&&e.push(floating_ui_dom_shift({boundary:w||void 0,rootBoundary:Z,padding:DEFAULT_POPOVER_PADDING})),p&&e.push(floating_ui_react_dom_esm_arrow({element:U,padding:DEFAULT_POPOVER_PADDING})),e.push(floating_ui_dom_hide({boundary:R||void 0,padding:DEFAULT_POPOVER_PADDING,strategy:"referenceHidden"})),e},[p,_,b,w,h,v,T,R]),{x:ne,y:re,middlewareData:oe,placement:ie,refs:ae,strategy:se,update:le}=useFloating({middleware:te,placement:S,whileElementsMounted:autoUpdate}),ce=null==(l=oe.hide)?void 0:l.referenceHidden,ue=null==(c=oe.arrow)?void 0:c.x,de=null==(u=oe.arrow)?void 0:u.y,fe=(0,external_react_.useCallback)(e=>{U.current=e},[]),he=(0,external_react_.useCallback)(e=>{q.current=e,ae.setFloating(e)},[q,ae]),pe=(0,external_react_.useCallback)(e=>{ae.setReference(e);const t=null==g?void 0:g.ref;"function"==typeof t?t(e):t&&(t.current=e)},[g,ae]),me=(0,external_react_.useMemo)(()=>!g||M?null:(0,external_react_.cloneElement)(g,{ref:pe}),[g,M,pe]);if((0,external_react_.useEffect)(()=>{P&&("function"==typeof P?P(le):P&&(P.current=le))},[le,P]),(0,external_react_.useEffect)(()=>{ae.setReference(M||null)},[M,ae]),y)return g||(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{});const ge=(0,jsx_runtime.jsx)(LayerProvider,{zOffset:W,children:(0,jsx_runtime.jsx)(PopoverCard,{...B,__unstable_margins:h,arrow:p,arrowRef:fe,arrowX:ue,arrowY:de,hidden:ce,overflow:C,padding:z,placement:ie,radius:V,ref:he,scheme:A,shadow:F,strategy:se,tone:I,width:v?ee.current:K,x:ne,y:re,children:x})});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[j&&(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:L?(0,jsx_runtime.jsx)(Portal,{__unstable_name:"string"==typeof L?L:void 0,children:ge}):ge}),me]})}));Popover.displayName="Popover";var __freeze$k=Object.freeze,__defProp$k=Object.defineProperty,__template$k=(e,t)=>__freeze$k(__defProp$k(e,"raw",{value:__freeze$k(t||e.slice())})),_a$k,_b$d;function radioBaseStyle(){return lt(_a$k||(_a$k=__template$k(["\n position: relative;\n\n &:not([hidden]) {\n display: inline-block;\n }\n\n &[data-read-only] {\n outline: 1px solid red;\n }\n "])))}function inputElementStyle(e){const{theme:t}=e,{focusRing:n,input:r}=t.sanity,o=t.sanity.color.input,i=(r.radio.size-r.radio.markSize)/2;return lt(_b$d||(_b$d=__template$k(["\n appearance: none;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n height: 100%;\n width: 100%;\n outline: none;\n z-index: 1;\n padding: 0;\n margin: 0;\n border-radius: ",";\n border: none;\n\n /* enabled */\n & + span {\n display: block;\n position: relative;\n height: ",";\n width: ",";\n border-radius: ",";\n background: ",";\n box-shadow: ",";\n\n &::after {\n content: '';\n position: absolute;\n top: ",";\n left: ",";\n height: ",";\n width: ",";\n border-radius: ",";\n background: ",";\n opacity: 0;\n }\n }\n\n /* focused */\n &:not(:disabled):focus + span {\n box-shadow: ",";\n }\n\n &:not(:disabled):focus:not(:focus-visible) + span {\n box-shadow: ",";\n }\n\n &:checked + span::after {\n opacity: 1;\n }\n\n /* read only */\n &[data-read-only] + span {\n box-shadow: 0 0 0 1px ",";\n background: ",";\n\n &::after {\n background: ",";\n }\n }\n\n /* disabled */\n &:not([data-read-only]):disabled + span {\n box-shadow: 0 0 0 1px ",";\n background: ",";\n\n &::after {\n background: ",";\n }\n }\n "])),rem(r.radio.size/2),rem(r.radio.size),rem(r.radio.size),rem(r.radio.size/2),o.default.enabled.bg,focusRingBorderStyle({color:o.default.enabled.border,width:r.border.width}),rem(i),rem(i),rem(r.radio.markSize),rem(r.radio.markSize),rem(r.radio.markSize/2),o.default.enabled.fg,focusRingStyle({border:{width:r.border.width,color:o.default.enabled.border},focusRing:n}),focusRingBorderStyle({color:o.default.enabled.border,width:r.border.width}),o.default.readOnly.border,o.default.readOnly.bg,o.default.readOnly.fg,o.default.disabled.border,o.default.disabled.bg,o.default.disabled.fg)}const Root$h=dt.div(radioBaseStyle),Input$4=dt.input(inputElementStyle),Radio=(0,external_react_.forwardRef)(function(e,t){const{className:n,disabled:r,style:o,customValidity:i,readOnly:a,...s}=e,l=useForwardedRef(t);return useCustomValidity(l,i),(0,jsx_runtime.jsxs)(Root$h,{className:n,"data-ui":"Radio",style:o,children:[(0,jsx_runtime.jsx)(Input$4,{"data-read-only":!r&&a?"":void 0,...s,disabled:r||a,readOnly:a,ref:l,type:"radio"}),(0,jsx_runtime.jsx)("span",{})]})});var __freeze$j=Object.freeze,__defProp$j=Object.defineProperty,__template$j=(e,t)=>__freeze$j(__defProp$j(e,"raw",{value:__freeze$j(t||e.slice())})),_a$j,_b$c,_c$7,_d$5;function rootStyle(){return lt(_a$j||(_a$j=__template$j(["\n position: relative;\n width: -webkit-fill-available;\n width: stretch;\n\n &:not([hidden]) {\n display: inline-block;\n }\n "])))}function inputBaseStyle(e){const{theme:t}=e,n=t.sanity.fonts.text;return lt(_b$c||(_b$c=__template$j(["\n -webkit-font-smoothing: antialiased;\n appearance: none;\n border: 0;\n font-family: ",";\n color: inherit;\n width: 100%;\n outline: none;\n margin: 0;\n\n &:disabled {\n opacity: 1;\n }\n "])),n.family)}function inputColorStyle(e){const{theme:t}=e,{focusRing:n,input:r}=t.sanity,o=t.sanity.color.input;return lt(_c$7||(_c$7=__template$j(["\n /* enabled */\n background-color: ",";\n color: ",";\n box-shadow: ",";\n\n /* hovered */\n @media (hover: hover) {\n &:not(:disabled):hover {\n background-color: ",";\n color: ",";\n box-shadow: ",";\n }\n }\n\n /* focused */\n &:not(:disabled):focus {\n box-shadow: ",";\n }\n\n /* read-only */\n &[data-read-only] {\n background-color: ",";\n color: ",";\n box-shadow: ",";\n }\n\n /* disabled */\n &:not([data-read-only]):disabled {\n background-color: ",";\n color: ",";\n box-shadow: ",";\n }\n "])),o.default.enabled.bg,o.default.enabled.fg,focusRingBorderStyle({color:o.default.enabled.border,width:r.border.width}),o.default.hovered.bg,o.default.hovered.fg,focusRingBorderStyle({color:o.default.hovered.border,width:r.border.width}),focusRingStyle({border:{width:r.border.width,color:o.default.enabled.border},focusRing:n}),o.default.readOnly.bg,o.default.readOnly.fg,focusRingBorderStyle({color:o.default.readOnly.border,width:r.border.width}),o.default.disabled.bg,o.default.disabled.fg,focusRingBorderStyle({color:o.default.disabled.border,width:r.border.width}))}function textSize(e){return{fontSize:rem(e.fontSize),lineHeight:rem(e.lineHeight)}}function inputTextSizeStyle(e){const{theme:t,$fontSize:n}=e,{sizes:r}=t.sanity.fonts.text;return _responsive(t.sanity.media,n,e=>textSize(r[e]||r[2]))}function inputStyle(){return[responsiveRadiusStyle,inputBaseStyle,inputColorStyle,inputTextSizeStyle,responsiveInputPaddingIconRightStyle]}function iconBoxStyle(e){const{theme:t}=e,n=t.sanity.color.input;return lt(_d$5||(_d$5=__template$j(["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n\n /* enabled */\n --card-fg-color: ",";\n\n /* hover */\n @media (hover: hover) {\n select:not(disabled):not(:read-only):hover + && {\n --card-fg-color: ",";\n }\n }\n\n /* disabled */\n select:disabled + && {\n --card-fg-color: ",";\n }\n\n /* read-only */\n select[data-read-only] + && {\n --card-fg-color: ",";\n }\n "])),n.default.enabled.fg,n.default.hovered.fg,n.default.disabled.fg,n.default.readOnly.fg)}const selectStyle={root:rootStyle,input:inputStyle,iconBox:iconBoxStyle},Root$g=dt.div(selectStyle.root),Input$3=dt.select(selectStyle.input),IconBox=dt(Box)(selectStyle.iconBox),Select=(0,external_react_.forwardRef)(function(e,t){const{children:n,customValidity:r,disabled:o,fontSize:i=2,padding:a=3,radius:s=1,readOnly:l,space:c=3,...u}=e,d=useForwardedRef(t);return useCustomValidity(d,r),(0,jsx_runtime.jsxs)(Root$g,{"data-ui":"Select",children:[(0,jsx_runtime.jsx)(Input$3,{"data-read-only":!o&&l?"":void 0,"data-ui":"Select",...u,$fontSize:useArrayProp(i),$padding:useArrayProp(a),$radius:useArrayProp(s),$space:useArrayProp(c),disabled:o||l,ref:d,children:n}),(0,jsx_runtime.jsx)(IconBox,{padding:a,children:(0,jsx_runtime.jsx)(Text,{size:i,children:(0,jsx_runtime.jsx)(SelectIcon,{})})})]})}),BASE_STYLE={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"};function stackBaseStyle(){return BASE_STYLE}function responsiveStackSpaceStyle(e){const{theme:t}=e,{media:n,space:r}=t.sanity;return _responsive(n,e.$space,e=>({gridGap:rem(r[e])}))}const Root$f=dt(Box)(stackBaseStyle,responsiveStackSpaceStyle),Stack=(0,external_react_.forwardRef)(function(e,t){const{as:n,space:r,...o}=e;return(0,jsx_runtime.jsx)(Root$f,{"data-as":"string"==typeof n?n:void 0,"data-ui":"Stack",...o,$space:useArrayProp(r),forwardedAs:n,ref:t})});var __freeze$i=Object.freeze,__defProp$i=Object.defineProperty,__template$i=(e,t)=>__freeze$i(__defProp$i(e,"raw",{value:__freeze$i(t||e.slice())})),_a$i,_b$b,_c$6,_d$4,_e$2,_f$2,_g;function switchBaseStyles(){return lt(_a$i||(_a$i=__template$i(["\n position: relative;\n &:not([hidden]) {\n display: inline-block;\n }\n "])))}function switchInputStyles(){return lt(_b$b||(_b$b=__template$i(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n height: 100%;\n width: 100%;\n outline: none;\n padding: 0;\n margin: 0;\n\n /* Place the input element above the representation element */\n z-index: 1;\n "])))}function switchRepresentationStyles(e){const{theme:t}=e,{focusRing:n,input:r}=t.sanity,o=t.sanity.color.button.default;return lt(_c$6||(_c$6=__template$i(["\n --switch-bg-color: ",";\n --switch-fg-color: ",";\n --switch-box-shadow: none;\n\n &:not([hidden]) {\n display: block;\n }\n position: relative;\n width: ",";\n height: ",";\n border-radius: ",";\n\n /* Make sure it’s not possible to interact with the wrapper element */\n pointer-events: none;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1;\n box-shadow: var(--switch-box-shadow);\n border-radius: inherit;\n }\n\n /* Focus styles */\n input:focus + && {\n --switch-box-shadow: ",";\n }\n\n input:focus:not(:focus-visible) + && {\n --switch-box-shadow: none;\n }\n\n input:checked + && {\n --switch-bg-color: ",";\n --switch-fg-color: ",";\n }\n\n @media (hover: hover) {\n input:not(:disabled):hover + && {\n --switch-bg-color: ",";\n --switch-fg-color: ",";\n }\n\n input:not(:disabled):checked:hover + && {\n --switch-bg-color: ",";\n --switch-fg-color: ",";\n }\n }\n\n input:not([data-read-only]):disabled + && {\n --switch-bg-color: ",";\n --switch-fg-color: ",";\n }\n "])),o.default.enabled.bg,o.default.enabled.fg,rem(r.switch.width),rem(r.switch.height),rem(r.switch.height/2),focusRingStyle({focusRing:n}),o.positive.enabled.bg,o.positive.enabled.fg,o.default.hovered.bg,o.default.hovered.fg,o.positive.hovered.bg,o.positive.hovered.fg,o.default.disabled.bg,o.default.disabled.fg)}function switchTrackStyles(e){const{theme:t}=e,{input:n}=t.sanity;return lt(_d$4||(_d$4=__template$i(["\n &:not([hidden]) {\n display: block;\n }\n background-color: var(--switch-bg-color);\n position: absolute;\n left: 0;\n top: 0;\n width: ",";\n height: ",";\n border-radius: ",";\n "])),rem(n.switch.width),rem(n.switch.height),rem(n.switch.height/2))}function switchThumbStyles(e){const{$indeterminate:t,theme:n}=e,{input:r}=n.sanity,o=r.switch.width,i=r.switch.height,a=r.switch.padding,s=i-2*r.switch.padding,l=o-2*a-s,c=o/2-s/2-a,u=!0!==t&&!0===e.$checked;return lt(_g||(_g=__template$i(["\n &:not([hidden]) {\n display: block;\n }\n position: absolute;\n left: ",";\n top: ",";\n height: ",";\n width: ",";\n border-radius: ",";\n transition-property: transform;\n transition-duration: ","ms;\n transition-timing-function: ",";\n background: var(--switch-fg-color);\n transform: translate3d(0, 0, 0);\n\n ","\n\n ","\n "])),rem(a),rem(a),rem(s),rem(s),rem(s/2),r.switch.transitionDurationMs,r.switch.transitionTimingFunction,u&<(_e$2||(_e$2=__template$i(["\n transform: translate3d(","px, 0, 0);\n "])),l),t&<(_f$2||(_f$2=__template$i(["\n transform: translate3d(","px, 0, 0);\n "])),c))}const Root$e=dt.span(switchBaseStyles),Input$2=dt.input(switchInputStyles),Representation=dt.span(switchRepresentationStyles),Track=dt.span(switchTrackStyles),Thumb=dt.span(switchThumbStyles),Switch=(0,external_react_.forwardRef)(function(e,t){const{checked:n,className:r,disabled:o,indeterminate:i,readOnly:a,style:s,...l}=e,c=useForwardedRef(t);return(0,external_react_.useEffect)(()=>{c.current&&(c.current.indeterminate=i||!1)},[i,c]),(0,jsx_runtime.jsxs)(Root$e,{className:r,"data-ui":"Switch",style:s,children:[(0,jsx_runtime.jsx)(Input$2,{"data-read-only":!o&&a?"":void 0,...l,checked:!0!==i&&n,disabled:o||a,type:"checkbox",ref:c}),(0,jsx_runtime.jsxs)(Representation,{"aria-hidden":!0,"data-name":"representation",children:[(0,jsx_runtime.jsx)(Track,{}),(0,jsx_runtime.jsx)(Thumb,{$checked:n,$indeterminate:i})]})]})});var __freeze$h=Object.freeze,__defProp$h=Object.defineProperty,__template$h=(e,t)=>__freeze$h(__defProp$h(e,"raw",{value:__freeze$h(t||e.slice())})),_a$h;const Root$d=dt.span(textInputRootStyle),InputRoot$1=dt.span(_a$h||(_a$h=__template$h(["\n flex: 1;\n min-width: 0;\n display: block;\n position: relative;\n"]))),Input$1=dt.textarea(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),Presentation$1=dt.div(responsiveRadiusStyle,textInputRepresentationStyle),TextArea=(0,external_react_.forwardRef)(function(e,t){const{border:n=!0,customValidity:r,disabled:o=!1,fontSize:i=2,padding:a=3,radius:s=1,weight:l,...c}=e,u=useForwardedRef(t),d=useRootTheme();return useCustomValidity(u,r),(0,jsx_runtime.jsx)(Root$d,{"data-ui":"TextArea",children:(0,jsx_runtime.jsxs)(InputRoot$1,{children:[(0,jsx_runtime.jsx)(Input$1,{"data-as":"textarea","data-scheme":d.scheme,"data-tone":d.tone,...c,$fontSize:useArrayProp(i),$padding:useArrayProp(a),$scheme:d.scheme,$space:useArrayProp(0),$tone:d.tone,$weight:l,disabled:o,ref:u}),(0,jsx_runtime.jsx)(Presentation$1,{$radius:useArrayProp(s),$scheme:d.scheme,$tone:d.tone,"data-border":n?"":void 0,"data-scheme":d.scheme,"data-tone":d.tone})]})})});var __freeze$g=Object.freeze,__defProp$g=Object.defineProperty,__template$g=(e,t)=>__freeze$g(__defProp$g(e,"raw",{value:__freeze$g(t||e.slice())})),_a$g,_b$a,_c$5,_d$3,_e$1,_f$1;const CLEAR_BUTTON_BOX_STYLE={zIndex:2},Root$c=dt(Card).attrs({forwardedAs:"span"})(textInputRootStyle),InputRoot=dt.span(_a$g||(_a$g=__template$g(["\n flex: 1;\n min-width: 0;\n display: block;\n position: relative;\n"]))),Prefix=dt(Card).attrs({forwardedAs:"span"})(_b$a||(_b$a=__template$g(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n & > span {\n display: block;\n margin: -1px;\n }\n"]))),Suffix=dt(Card).attrs({forwardedAs:"span"})(_c$5||(_c$5=__template$g(["\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n & > span {\n display: block;\n margin: -1px;\n }\n"]))),Input=dt.input(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),Presentation=dt.span(responsiveRadiusStyle,textInputRepresentationStyle),LeftBox=dt(Box)(_d$3||(_d$3=__template$g(["\n position: absolute;\n top: 0;\n left: 0;\n"]))),RightBox=dt(Box)(_e$1||(_e$1=__template$g(["\n position: absolute;\n top: 0;\n right: 0;\n"]))),RightCard=dt(Card)(_f$1||(_f$1=__template$g(["\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n"]))),TextInputClearButton=dt(Button)({"&:not([hidden])":{display:"block"}}),TextInput=(0,external_react_.forwardRef)(function(e,t){const{border:n=!0,clearButton:r,disabled:o=!1,fontSize:i=2,icon:a,iconRight:s,onClear:l,padding:c=3,prefix:u,radius:d=1,readOnly:f,space:h=3,suffix:p,customValidity:m,type:g="text",weight:_,...x}=e,y=useForwardedRef(t),b=useRootTheme(),v=useArrayProp(i),w=useArrayProp(c),j=useArrayProp(d),C=useArrayProp(h),k=Boolean(r),S=Boolean(a),L=Boolean(s),T=Boolean(p),E=Boolean(u);useCustomValidity(y,m);const R=(0,external_react_.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),M=(0,external_react_.useCallback)(e=>{var t;e.preventDefault(),e.stopPropagation(),l&&l(),null==(t=y.current)||t.focus()},[l,y]),A=(0,external_react_.useMemo)(()=>u&&(0,jsx_runtime.jsx)(Prefix,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:j,sizing:"border",tone:"inherit",children:(0,jsx_runtime.jsx)("span",{children:u})}),[u,j]),$=(0,external_react_.useMemo)(()=>(0,jsx_runtime.jsxs)(Presentation,{$hasPrefix:E,$hasSuffix:T,$radius:j,$scheme:b.scheme,$tone:b.tone,"data-border":n?"":void 0,"data-scheme":b.scheme,"data-tone":b.tone,children:[a&&(0,jsx_runtime.jsx)(LeftBox,{padding:w,children:(0,jsx_runtime.jsxs)(Text,{size:v,children:[(0,external_react_.isValidElement)(a)&&a,(0,react_is.isValidElementType)(a)&&(0,external_react_.createElement)(a)]})}),!k&&s&&(0,jsx_runtime.jsx)(RightBox,{padding:w,children:(0,jsx_runtime.jsxs)(Text,{size:v,children:[(0,external_react_.isValidElement)(s)&&s,(0,react_is.isValidElementType)(s)&&(0,external_react_.createElement)(s)]})})]}),[n,v,a,s,w,j,b,k,E,T]),I=(0,external_react_.useMemo)(()=>w.map(e=>0===e?0:1===e||2===e?1:e-2),[w]),D=(0,external_react_.useMemo)(()=>w.map(e=>0===e||1===e?0:2===e?1:e-1),[w]),O=(0,external_react_.useMemo)(()=>"object"==typeof r?r:EMPTY_RECORD,[r]),P=(0,external_react_.useMemo)(()=>!o&&!f&&r&&(0,jsx_runtime.jsx)(RightCard,{forwardedAs:"span",padding:I,style:CLEAR_BUTTON_BOX_STYLE,tone:m?"critical":"inherit",children:(0,jsx_runtime.jsx)(TextInputClearButton,{"aria-label":"Clear","data-qa":"clear-button",fontSize:v,icon:dist_CloseIcon,mode:"bleed",padding:D,radius:j,...O,onClick:M,onMouseDown:R})}),[r,I,D,O,m,o,v,M,R,j,f]),B=(0,external_react_.useMemo)(()=>p&&(0,jsx_runtime.jsx)(Suffix,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:j,sizing:"border",tone:"inherit",children:(0,jsx_runtime.jsx)("span",{children:p})}),[j,p]);return(0,jsx_runtime.jsxs)(Root$c,{"data-ui":"TextInput",tone:b.tone,children:[A,(0,jsx_runtime.jsxs)(InputRoot,{children:[(0,jsx_runtime.jsx)(Input,{"data-as":"input","data-scheme":b.scheme,"data-tone":b.tone,...x,$fontSize:v,$iconLeft:S,$iconRight:L||k,$padding:w,$scheme:b.scheme,$space:C,$tone:b.tone,$weight:_,disabled:o,readOnly:f,ref:y,type:g}),$,P]}),B]})});function useDelayedState(e){const[t,n]=(0,external_react_.useState)(e),r=(0,external_react_.useRef)();return[t,(0,external_react_.useCallback)((e,t)=>{const o=()=>{n(e)};if(r.current&&(clearTimeout(r.current),r.current=void 0),!t)return o();r.current=setTimeout(o,t)},[])]}const DEFAULT_TOOLTIP_PADDING=4,DEFAULT_FALLBACK_PLACEMENTS={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]};var __freeze$f=Object.freeze,__defProp$f=Object.defineProperty,__template$f=(e,t)=>__freeze$f(__defProp$f(e,"raw",{value:__freeze$f(t||e.slice())})),_a$f,_b$9,_c$4;const Root$b=dt.div(_a$f||(_a$f=__template$f(["\n position: absolute;\n pointer-events: none;\n width: 15px;\n height: 15px;\n fill: none;\n\n :empty + & {\n display: none;\n }\n\n & > svg {\n display: block;\n transform-origin: 7.5px 7.5px;\n }\n\n /* position: absolute;\n width: 15px;\n height: 15px;\n fill: none;\n\n :empty + & {\n display: none;\n }\n\n & > svg {\n &:not([hidden]) {\n display: block;\n }\n transform-origin: 7.5px 7.5px;\n } */\n\n [data-placement^='top'] > & {\n bottom: -27px;\n }\n\n [data-placement^='right'] > & {\n left: -27px;\n\n & > svg {\n transform: rotate(90deg);\n }\n }\n\n [data-placement^='left'] > & {\n right: -27px;\n\n & > svg {\n transform: rotate(-90deg);\n }\n }\n\n [data-placement^='bottom'] > & {\n top: -27px;\n\n & > svg {\n transform: rotate(180deg);\n }\n }\n"]))),Border=dt.path(_b$9||(_b$9=__template$f(["\n fill: var(--card-shadow-outline-color);\n"]))),Shape=dt.path(_c$4||(_c$4=__template$f(["\n fill: var(--card-bg-color);\n"]))),TooltipArrow=(0,external_react_.forwardRef)(function(e,t){const{...n}=e;return(0,jsx_runtime.jsx)(Root$b,{"data-ui":"Tooltip__arrow",...n,ref:t,children:(0,jsx_runtime.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",children:[(0,jsx_runtime.jsx)(Border,{d:"M11.5266 1C11.032 1.32802 10.5837 1.73105 10.1995 2.20057L9.04792 3.6081C8.24771 4.58614 6.7523 4.58614 5.95209 3.6081L4.80047 2.20057C4.41632 1.73105 3.96796 1.32802 3.47341 1H0.156727C1.65639 1 3.07687 1.67313 4.02651 2.83381L5.17813 4.24134C6.37844 5.70839 8.62156 5.70839 9.82187 4.24134L10.9735 2.83381C11.9231 1.67313 13.3436 1 14.8433 1H11.5266Z"}),(0,jsx_runtime.jsx)(Shape,{d:"M0.156725 0C1.95632 0 3.66089 0.80776 4.80047 2.20057L5.95209 3.6081C6.75229 4.58614 8.24771 4.58614 9.04791 3.6081L10.1995 2.20057C11.3391 0.80776 13.0437 0 14.8433 0H15H0H0.156725Z"})]})})}),key$4=Symbol.for("@sanity/ui/context/tooltipDelayGroup");globalScope[key$4]=globalScope[key$4]||(0,external_react_.createContext)(null);const TooltipDelayGroupContext=globalScope[key$4];function useTooltipDelayGroup(){return(0,external_react_.useContext)(TooltipDelayGroupContext)}function TooltipDelayGroupProvider(e){const{children:t,delay:n}=e,[r,o]=useDelayedState(!1),[i,a]=useDelayedState(null);if(useTooltipDelayGroup())throw new Error("TooltipDelayGroupProvider cannot be nested inside another TooltipDelayGroupProvider");const s="number"==typeof n?n:(null==n?void 0:n.open)||0,l="number"==typeof n?n:(null==n?void 0:n.close)||0,c=useMemo(()=>({isGroupActive:r,setIsGroupActive:o,openTooltipId:i,setOpenTooltipId:a,openDelay:r?1:s,closeDelay:l}),[l,r,s,i,o,a]);return jsx(TooltipDelayGroupContext.Provider,{value:c,children:t})}var __freeze$e=Object.freeze,__defProp$e=Object.defineProperty,__template$e=(e,t)=>__freeze$e(__defProp$e(e,"raw",{value:__freeze$e(t||e.slice())})),_a$e;const Root$a=dt(Layer)(_a$e||(_a$e=__template$e(["\n pointer-events: none;\n max-width: ","px;\n"])),e=>{let{$maxWidth:t}=e;return t}),Tooltip=(0,external_react_.forwardRef)(function(e,t){var n,r,o,i,a,s;const l=useBoundaryElement(),c=useTheme(),{boundaryElement:u=(null==l?void 0:l.element),children:d,content:f,disabled:h,fallbackPlacements:p=(null!=(r=e.fallbackPlacements)?r:DEFAULT_FALLBACK_PLACEMENTS[null!=(n=e.placement)?n:"bottom"]),padding:m,placement:g="bottom",portal:_,scheme:x,shadow:y=2,zOffset:b=(null==(o=c.sanity.layer)?void 0:o.tooltip.zOffset),delay:v,...w}=e,j=useArrayProp(p),C=useForwardedRef(t),[k,S]=(0,external_react_.useState)(null),L=(0,external_react_.useRef)(null),T="viewport",E=usePortal(),R="string"==typeof _?(null==(i=E.elements)?void 0:i[_])||null:E.element,M=(0,external_react_.useMemo)(()=>{const e=[...u?[u.offsetWidth]:[],(null==R?void 0:R.offsetWidth)||document.body.offsetWidth];return Math.min(...e)-2*DEFAULT_TOOLTIP_PADDING},[u,null==R?void 0:R.offsetWidth]),A=(0,external_react_.useMemo)(()=>{const e=[];return e.push(floating_ui_dom_flip({boundary:u||void 0,fallbackPlacements:j,padding:DEFAULT_TOOLTIP_PADDING,rootBoundary:T})),e.push(floating_ui_dom_offset({mainAxis:3})),e.push(floating_ui_dom_shift({boundary:u||void 0,rootBoundary:T,padding:DEFAULT_TOOLTIP_PADDING})),e.push(floating_ui_react_dom_esm_arrow({element:L,padding:2})),e},[u,j]),{floatingStyles:$,placement:I,middlewareData:D,refs:O,update:P}=useFloating({middleware:A,placement:g,whileElementsMounted:autoUpdate}),B=I&&FLOATING_STATIC_SIDES[I.split("-")[0]],H=null==(a=D.arrow)?void 0:a.x,z=null==(s=D.arrow)?void 0:s.y,V=(0,external_react_.useMemo)(()=>{const e={left:null!==H?H:void 0,top:null!==z?z:void 0,right:void 0,bottom:void 0};return B&&(e[B]=-15),e},[H,z,B]),F=(0,external_react_.useId)(),[N,W]=useDelayedState(!1),q=useTooltipDelayGroup(),U=N||(null==q?void 0:q.openTooltipId)===F,Z=null!==q,G="number"==typeof v?v:(null==v?void 0:v.open)||0,Y="number"==typeof v?v:(null==v?void 0:v.close)||0,K=Z?q.openDelay:G,X=Z?q.closeDelay:Y,J=(0,external_react_.useCallback)((e,t)=>{if(Z)if(e){const n=t?0:K;q.setIsGroupActive(e,n),q.setOpenTooltipId(F,n)}else{const n=200,r=X>n?X:n;q.setIsGroupActive(e,r),q.setOpenTooltipId(null,t?0:X)}else W(e,t?0:e?K:X)},[Z,q,K,F,X,W]),Q=(0,external_react_.useCallback)(e=>{var t,n;J(!1),null==(n=null==(t=null==d?void 0:d.props)?void 0:t.onBlur)||n.call(t,e)},[null==d?void 0:d.props,J]),ee=(0,external_react_.useCallback)(e=>{var t,n;J(!1,!0),null==(n=null==d?void 0:(t=d.props).onClick)||n.call(t,e)},[null==d?void 0:d.props,J]),te=(0,external_react_.useCallback)(e=>{var t,n;J(!1,!0),null==(n=null==d?void 0:(t=d.props).onContextMenu)||n.call(t,e)},[null==d?void 0:d.props,J]),ne=(0,external_react_.useCallback)(e=>{var t,n;J(!0),null==(n=null==(t=null==d?void 0:d.props)?void 0:t.onFocus)||n.call(t,e)},[null==d?void 0:d.props,J]),re=(0,external_react_.useCallback)(e=>{var t,n;J(!0),null==(n=null==(t=null==d?void 0:d.props)?void 0:t.onMouseEnter)||n.call(t,e)},[null==d?void 0:d.props,J]),oe=(0,external_react_.useCallback)(e=>{var t,n;J(!1),null==(n=null==(t=null==d?void 0:d.props)?void 0:t.onMouseLeave)||n.call(t,e)},[null==d?void 0:d.props,J]);(0,external_react_.useEffect)(()=>{if(N)return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)};function e(t){k&&(k===t.target||t.target instanceof Node&&k.contains(t.target)||(J(!1),window.removeEventListener("mousemove",e)))}},[N,k,J]),(0,external_react_.useEffect)(()=>{h&&J(!1)},[h,J]),(0,external_react_.useEffect)(()=>{f||J(!1)},[f,J]),(0,external_react_.useEffect)(()=>O.setReference(k),[k,O]),(0,external_react_.useEffect)(()=>{if(U)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(!1,!0)}},[J,U]);const ie=(0,external_react_.useCallback)(e=>{L.current=e,P()},[P]),ae=(0,external_react_.useCallback)(e=>{C.current=e,O.setFloating(e)},[C,O]),se=null==d?void 0:d.ref,le=(0,external_react_.useCallback)(e=>{"function"==typeof se?se(e):se&&(se.current=e),S(e)},[se]),ce=(0,external_react_.useMemo)(()=>d?(0,external_react_.cloneElement)(d,{onBlur:Q,onFocus:ne,onMouseEnter:re,onMouseLeave:oe,onClick:ee,onContextMenu:te,ref:le}):null,[d,Q,ee,te,ne,re,oe,le]);if(!ce)return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{});if(h)return ce;const ue=(0,jsx_runtime.jsx)(Root$a,{"data-ui":"Tooltip",...w,ref:ae,style:$,zOffset:b,$maxWidth:M,children:(0,jsx_runtime.jsxs)(Card,{"data-ui":"Tooltip__card","data-placement":I,padding:m,radius:2,scheme:x,shadow:y,children:[f,(0,jsx_runtime.jsx)(TooltipArrow,{ref:ie,style:V})]})});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[ce,U&&(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:_?(0,jsx_runtime.jsx)(Portal,{__unstable_name:"string"==typeof _?_:void 0,children:ue}):ue})]})});var __freeze$d=Object.freeze,__defProp$d=Object.defineProperty,__template$d=(e,t)=>__freeze$d(__defProp$d(e,"raw",{value:__freeze$d(t||e.slice())})),_a$d,_b$8,_c$3,_d$2;const Root$9=dt.div(_a$d||(_a$d=__template$d(["\n line-height: 0;\n"]))),ListBox=dt(Box)(_b$8||(_b$8=__template$d(["\n & > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n }\n"]))),rotate=mt(_c$3||(_c$3=__template$d(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"]))),AnimatedSpinnerIcon=dt(SpinnerIcon)(_d$2||(_d$2=__template$d(["\n animation: "," 500ms linear infinite;\n"])),rotate);function AutocompleteOption(e){const{children:t,id:n,onSelect:r,selected:o,value:i}=e,a=(0,external_react_.useCallback)(()=>{setTimeout(()=>{r(i)},0)},[r,i]),s=(0,external_react_.useCallback)(e=>{"Enter"!==e.key||_isEnterToClickElement(e.currentTarget)||a()},[a]);return(0,jsx_runtime.jsx)("li",{"aria-selected":o,"data-ui":"AutocompleteOption",id:n,role:"option",onClick:a,onKeyDown:s,children:t})}function autocompleteReducer(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}const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],AUTOCOMPLETE_POPOVER_PLACEMENT="bottom-start",AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS=["bottom-start","top-start"],DEFAULT_RENDER_VALUE=(e,t)=>t?t.value:e,DEFAULT_FILTER_OPTION=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,InnerAutocomplete=(0,external_react_.forwardRef)(function(e,t){const{border:n=!0,customValidity:r,disabled:o,filterOption:i,fontSize:a=2,icon:s,id:l,listBox:c=EMPTY_RECORD,loading:u,onBlur:d,onChange:f,onFocus:h,onQueryChange:p,onSelect:m,openButton:g,options:_,padding:x=3,popover:y=EMPTY_RECORD,prefix:b,radius:v=3,readOnly:w,relatedElements:j,renderOption:C,renderPopover:k,renderValue:S=DEFAULT_RENDER_VALUE,suffix:L,value:T,...E}=e,[R,M]=(0,external_react_.useReducer)(autocompleteReducer,{activeValue:T||null,focused:!1,listFocused:!1,query:null,value:T||null}),{activeValue:A,focused:$,listFocused:I,query:D,value:O}=R,P=(0,external_react_.useCallback)(e=>{let{value:t}=e;return(0,jsx_runtime.jsx)(Card,{"data-as":"button",padding:x,radius:2,tone:"inherit",children:(0,jsx_runtime.jsx)(Text,{size:a,textOverflow:"ellipsis",children:t})})},[a,x]),B="function"==typeof C?C:P,H="function"==typeof i?i:DEFAULT_FILTER_OPTION,z=(0,external_react_.useRef)(null),V=(0,external_react_.useRef)(null),F=(0,external_react_.useRef)(null),N=(0,external_react_.useRef)(null),W=(0,external_react_.useRef)(!1),q=(0,external_react_.useRef)(O),U=(0,external_react_.useRef)(T),Z=(0,external_react_.useRef)(!1),G=useForwardedRef(t),Y="".concat(l,"-listbox"),K=Array.isArray(_)?_:EMPTY_ARRAY,X=useArrayProp(x),J=(0,external_react_.useMemo)(()=>null!==O?K.find(e=>e.value===O):void 0,[K,O]),Q=(0,external_react_.useMemo)(()=>K.filter(e=>!D||H(D,e)),[H,K,D]),ee=Q.length,te=A?"".concat(l,"-option-").concat(A):void 0,ne=null!==D&&u||$&&null!==D,re=(0,external_react_.useCallback)(e=>{setTimeout(()=>{if(Z.current)return;const t=(j||[]).concat(z.current?[z.current]:[],V.current?[V.current]:[]);let n=!1;if(document.activeElement)for(const e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}!1===n&&(M({type:"root/blur"}),Z.current=!1,p&&p(null),d&&d(e))},0)},[d,p,j]),oe=(0,external_react_.useCallback)(e=>{const t=N.current,n=e.target instanceof HTMLElement?e.target:null,r=(null==t?void 0:t.contains(n))||!1;r!==W.current&&(W.current=r,M({type:"root/setListFocused",listFocused:r}))},[]),ie=(0,external_react_.useCallback)(e=>{var t;M({type:"value/change",value:e}),Z.current=!1,m&&m(e),q.current=e,f&&f(e),p&&p(null),null==(t=F.current)||t.focus()},[f,m,p]),ae=(0,external_react_.useCallback)(e=>{var t,n;if("ArrowDown"===e.key){if(e.preventDefault(),!ee)return;const t=Q.find(e=>e.value===A),n=t?Q.indexOf(t):-1,r=Q[(n+1)%ee];return void(r&&M({type:"root/setActiveValue",value:r.value,listFocused:!0}))}if("ArrowUp"===e.key){if(e.preventDefault(),!ee)return;const t=Q.find(e=>e.value===A),n=t?Q.indexOf(t):-1,r=Q[-1===n?ee-1:(ee+n-1)%ee];return void(r&&M({type:"root/setActiveValue",value:r.value,listFocused:!0}))}if("Escape"===e.key)return M({type:"root/escape"}),Z.current=!1,p&&p(null),void(null==(t=F.current)||t.focus());const r=e.target,o=N.current;o!==r&&!(null==o?void 0:o.contains(r))||AUTOCOMPLETE_LISTBOX_IGNORE_KEYS.includes(e.key)||null==(n=F.current)||n.focus()},[A,Q,ee,p]),se=(0,external_react_.useCallback)(e=>{const t=e.currentTarget.value;M({type:"input/change",query:t}),p&&p(t)},[p]),le=(0,external_react_.useCallback)(e=>{$||(M({type:"input/focus"}),h&&h(e))},[$,h]),ce=(0,external_react_.useCallback)(()=>{Z.current=!0},[]),ue=(0,external_react_.useCallback)(()=>{Z.current=!1},[]),de=(0,external_react_.useCallback)(()=>{var e;M({type:"root/clear"}),q.current="",f&&f(""),p&&p(null),null==(e=F.current)||e.focus()},[f,p]),fe=(0,external_react_.useCallback)(()=>{M({type:"input/focus"})},[]);(0,external_react_.useEffect)(()=>{if(T!==U.current)return U.current=T,void(void 0!==T&&(M({type:"value/change",value:T}),q.current=T));T!==q.current&&(q.current=T||null,M({type:"value/change",value:T||null}))},[T]),(0,external_react_.useEffect)(()=>{!$&&q.current&&M({type:"root/setActiveValue",value:q.current})},[$]),(0,external_react_.useEffect)(()=>{const e=N.current;if(!e)return;const t=Q.find(e=>e.value===A);if(t){const n=Q.indexOf(t),r=e.childNodes[n];if(r){if(_hasFocus(r))return;focusFirstDescendant(r)}}},[A,Q]);const he=(0,external_react_.useCallback)(e=>{F.current=e,G.current=e},[G]),pe=(0,external_react_.useMemo)(()=>{if(!u&&!o&&O)return{"aria-label":"Clear",onFocus:fe}},[o,fe,u,O]),me=(0,external_react_.useMemo)(()=>X.map(e=>0===e?0:1===e||2===e?1:e-2),[X]),ge=(0,external_react_.useMemo)(()=>X.map(e=>Math.max(e-1,0)),[X]),_e=(0,external_react_.useMemo)(()=>"object"==typeof g?g:EMPTY_RECORD,[g]),xe=(0,external_react_.useCallback)(e=>{M({type:"root/open",query:O?S(O,J):""}),_e.onClick&&_e.onClick(e),_raf(()=>{var e;return null==(e=F.current)?void 0:e.focus()})},[J,_e,S,O]),ye=(0,external_react_.useMemo)(()=>o||w||!g?void 0:(0,jsx_runtime.jsx)(Box,{"aria-hidden":ne,padding:me,children:(0,jsx_runtime.jsx)(Button,{"aria-label":"Open",disabled:ne,fontSize:a,icon:ChevronDownIcon,mode:"bleed",padding:ge,..._e,onClick:xe})}),[o,ne,a,xe,g,me,ge,_e,w]),be=(0,external_react_.useMemo)(()=>null===D?null!==O?S(O,J):"":D,[J,D,S,O]),ve=(0,jsx_runtime.jsx)(TextInput,{...E,"aria-activedescendant":te,"aria-autocomplete":"list","aria-expanded":ne,"aria-owns":Y,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:pe,customValidity:r,disabled:o,fontSize:a,icon:s,iconRight:u&&AnimatedSpinnerIcon,id:l,inputMode:"search",onChange:se,onClear:de,onFocus:le,padding:X,prefix:b,radius:v,readOnly:w,ref:he,role:"combobox",spellCheck:!1,suffix:L||ye,value:be}),we=(0,external_react_.useCallback)(e=>{var t;"Tab"===e.key&&I&&(null==(t=F.current)||t.focus())},[I]),je=(0,external_react_.useMemo)(()=>0===Q.length?null:(0,jsx_runtime.jsx)(ListBox,{"data-ui":"AutoComplete__results",onKeyDown:we,padding:1,...c,tabIndex:-1,children:(0,jsx_runtime.jsx)(Stack,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:Y,ref:N,role:"listbox",space:1,children:Q.map(e=>{const t=null!==A?e.value===A:J===e;return(0,jsx_runtime.jsx)(AutocompleteOption,{id:"".concat(l,"-option-").concat(e.value),onSelect:ie,selected:t,value:e.value,children:(0,external_react_.cloneElement)(B(e),{disabled:u,selected:t,tabIndex:I&&t?0:-1})},e.value)})})}),[A,J,Q,ie,we,l,c,Y,I,u,B]),Ce=(0,external_react_.useMemo)(()=>k?k({content:je,hidden:!ne,inputElement:F.current,onMouseEnter:ce,onMouseLeave:ue},V):0===ee?null:(0,jsx_runtime.jsx)(Popover,{arrow:!1,constrainSize:!0,content:je,fallbackPlacements:AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS,matchReferenceWidth:!0,onMouseEnter:ce,onMouseLeave:ue,open:ne,overflow:"auto",placement:AUTOCOMPLETE_POPOVER_PLACEMENT,portal:!0,radius:v,ref:V,referenceElement:F.current,...y}),[je,ne,ee,ce,ue,y,v,k]);return(0,jsx_runtime.jsxs)(Root$9,{"data-ui":"Autocomplete",onBlur:re,onFocus:oe,onKeyDown:ae,ref:z,children:[ve,Ce]})}),Autocomplete=null;var __freeze$c=Object.freeze,__defProp$c=Object.defineProperty,__template$c=(e,t)=>__freeze$c(__defProp$c(e,"raw",{value:__freeze$c(t||e.slice())})),_a$c,_b$7;const Root$8=dt.ol(_a$c||(_a$c=__template$c(["\n margin: 0;\n padding: 0;\n display: flex;\n list-style: none;\n align-items: center;\n white-space: nowrap;\n line-height: 0;\n"]))),ExpandButton=dt(Button)(_b$7||(_b$7=__template$c(["\n appearance: none;\n margin: -4px;\n"]))),Breadcrumbs=(0,external_react_.forwardRef)(function(e,t){const{children:n,maxLength:r,separator:o,space:i=2,...a}=e,s=useArrayProp(i),[l,c]=(0,external_react_.useState)(!1),[u,d]=(0,external_react_.useState)(null),[f,h]=(0,external_react_.useState)(null),p=(0,external_react_.useCallback)(()=>c(!1),[]),m=(0,external_react_.useCallback)(()=>c(!0),[]);useClickOutside(p,[u,f]);const g=(0,external_react_.useMemo)(()=>external_react_.Children.toArray(n).filter(e=>(0,external_react_.isValidElement)(e)),[n]),_=(0,external_react_.useMemo)(()=>{const e=g.length;if(r&&e>r){const t=Math.ceil(r/2),n=Math.floor(r/2);return[...g.slice(0,t-1),(0,jsx_runtime.jsx)(Popover,{constrainSize:!0,content:(0,jsx_runtime.jsx)(Stack,{as:"ol",overflow:"auto",padding:s,space:s,children:g.slice(t-1,e-n)}),open:l,placement:"top",portal:!0,ref:h,children:(0,jsx_runtime.jsx)(ExpandButton,{fontSize:1,mode:"bleed",onClick:l?p:m,padding:1,ref:d,selected:l,text:"…"})},"button"),...g.slice(e-n)]}return g},[p,m,r,l,g,s]);return(0,jsx_runtime.jsx)(Root$8,{"data-ui":"Breadcrumbs",...a,ref:t,children:_.map((e,t)=>(0,jsx_runtime.jsxs)(external_react_.Fragment,{children:[t>0&&(0,jsx_runtime.jsx)(Box,{"aria-hidden":!0,as:"li",paddingX:s,children:o||(0,jsx_runtime.jsx)(Text,{muted:!0,children:"/"})}),(0,jsx_runtime.jsx)(Box,{as:"li",children:e})]},t))})});function dialogStyle(e){let{theme:t}=e;return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.sanity.color.base.shadow.umbra}}function responsiveDialogPositionStyle(e){const{theme:t}=e,{media:n}=t.sanity;return _responsive(n,e.$position,e=>({"&&":{position:e}}))}const key$3=Symbol.for("@sanity/ui/context/dialog");globalScope[key$3]=globalScope[key$3]||(0,external_react_.createContext)({version:0});const DialogContext=globalScope[key$3];function useDialog(){return(0,external_react_.useContext)(DialogContext)}var __freeze$b=Object.freeze,__defProp$b=Object.defineProperty,__template$b=(e,t)=>__freeze$b(__defProp$b(e,"raw",{value:__freeze$b(t||e.slice())})),_a$b,_b$6,_c$2,_d$1,index_esm_e,_f;function isTargetWithinScope(e,t,n){return!e||!t||containsOrEqualsElement(e,n)||containsOrEqualsElement(t,n)}const Root$7=dt(Layer)(responsivePaddingStyle,dialogStyle,responsiveDialogPositionStyle),DialogContainer=dt(Container)(_a$b||(_a$b=__template$b(["\n &:not([hidden]) {\n display: flex;\n }\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),DialogCardRoot=dt(Card)(_b$6||(_b$6=__template$b(["\n &:not([hidden]) {\n display: flex;\n }\n width: 100%;\n min-height: 0;\n max-height: 100%;\n overflow: hidden;\n overflow: clip;\n"]))),DialogLayout=dt(Flex)(_c$2||(_c$2=__template$b(["\n flex: 1;\n min-height: 0;\n width: 100%;\n"]))),DialogHeader=dt(Card)(_d$1||(_d$1=__template$b(["\n position: relative;\n z-index: 2;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: -1px;\n border-bottom: 1px solid var(--card-hairline-soft-color);\n }\n"]))),DialogContent=dt(Box)(index_esm_e||(index_esm_e=__template$b(["\n position: relative;\n z-index: 1;\n overflow: auto;\n outline: none;\n"]))),DialogFooter=dt(Box)(_f||(_f=__template$b(["\n position: relative;\n z-index: 3;\n border-top: 1px solid var(--card-hairline-soft-color);\n"]))),DialogCard=(0,external_react_.forwardRef)(function(e,t){var n;const{__unstable_autoFocus:r,__unstable_hideCloseButton:o,children:i,contentRef:a,footer:s,header:l,id:c,onClickOutside:u,onClose:d,portal:f,radius:h,scheme:p,shadow:m,width:g}=e,_=usePortal(),x=f?(null==(n=_.elements)?void 0:n[f])||null:_.element,y=useBoundaryElement().element,b=useArrayProp(h),v=useArrayProp(m),w=useArrayProp(g),j=useForwardedRef(t),[C,k]=(0,external_react_.useState)(null),S=(0,external_react_.useRef)(null),L=useLayer(),{isTopLayer:T}=L,E="".concat(c,"_label"),R=Boolean(d)&&!1===o,M=Boolean(l)||R;(0,external_react_.useEffect)(()=>{r&&j.current&&focusFirstDescendant(j.current)},[r,j]),useGlobalKeyDown((0,external_react_.useCallback)(e=>{if(!T||!d)return;const t=document.activeElement;t&&!isTargetWithinScope(y,x,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),d())},[y,T,d,x])),useClickOutside((0,external_react_.useCallback)(e=>{if(!T||!u)return;const t=e.target;t&&!isTargetWithinScope(y,x,t)||u()},[y,T,u,x]),[C]);const A=(0,external_react_.useCallback)(e=>{k(e),j.current=e},[j]),$=(0,external_react_.useCallback)(e=>{S.current=e,"function"==typeof a?a(e):a&&(a.current=e)},[a]);return(0,jsx_runtime.jsx)(DialogContainer,{"data-ui":"DialogCard",width:w,children:(0,jsx_runtime.jsx)(DialogCardRoot,{radius:b,ref:A,scheme:p,shadow:v,children:(0,jsx_runtime.jsxs)(DialogLayout,{direction:"column",children:[M&&(0,jsx_runtime.jsx)(DialogHeader,{children:(0,jsx_runtime.jsxs)(Flex,{children:[(0,jsx_runtime.jsx)(Box,{flex:1,padding:4,children:l&&(0,jsx_runtime.jsx)(Text,{id:E,weight:"semibold",children:l})}),R&&(0,jsx_runtime.jsx)(Box,{padding:2,children:(0,jsx_runtime.jsx)(Button,{"aria-label":"Close dialog",disabled:!d,icon:dist_CloseIcon,mode:"bleed",onClick:d,padding:3})})]})}),(0,jsx_runtime.jsx)(DialogContent,{flex:1,ref:$,tabIndex:-1,children:i}),s&&(0,jsx_runtime.jsx)(DialogFooter,{children:s})]})})})}),Dialog=(0,external_react_.forwardRef)(function(e,t){var n,r;const o=useDialog(),i=useTheme(),{__unstable_autoFocus:a=!0,__unstable_hideCloseButton:s=!1,cardRadius:l=3,cardShadow:c=4,children:u,contentRef:d,footer:f,header:h,id:p,onActivate:m,onClickOutside:g,onClose:_,onFocus:x,padding:y=4,portal:b,position:v=o.position||"fixed",scheme:w,width:j=0,zOffset:C=o.zOffset||(null==(n=i.sanity.layer)?void 0:n.dialog.zOffset),...k}=e,S=usePortal(),L=b?(null==(r=S.elements)?void 0:r[b])||null:S.element,T=useBoundaryElement().element,E=useArrayProp(l),R=useArrayProp(y),M=useArrayProp(v),A=useArrayProp(j),$=useArrayProp(C),I=(0,external_react_.useRef)(null),D=(0,external_react_.useRef)(null),O=(0,external_react_.useRef)(null),P=(0,external_react_.useRef)(null),B=(0,external_react_.useCallback)(e=>{null==x||x(e);const t=e.target,n=O.current;n&&t===I.current?focusLastDescendant(n):n&&t===D.current?focusFirstDescendant(n):index_esm_isHTMLElement(e.target)&&(P.current=e.target)},[x]),H="".concat(p,"_label"),z=(0,external_react_.useRef)(),V=(0,external_react_.useCallback)(()=>{z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{const e=document.activeElement;if(e&&!isTargetWithinScope(T,L,e)){const e=P.current;if(!e||!document.body.contains(e)){const e=O.current;return void(e&&focusFirstDescendant(e))}e.focus()}},0)},[T,L]);return(0,jsx_runtime.jsx)(Portal,{__unstable_name:b,children:(0,jsx_runtime.jsxs)(Root$7,{...k,$padding:R,$position:M,"aria-labelledby":H,"aria-modal":!0,"data-ui":"Dialog",id:p,onActivate:m,onClick:V,onFocus:B,ref:t,role:"dialog",zOffset:$,children:[(0,jsx_runtime.jsx)("div",{ref:I,tabIndex:0}),(0,jsx_runtime.jsx)(DialogCard,{__unstable_autoFocus:a,__unstable_hideCloseButton:s,contentRef:d,footer:f,header:h,id:p,onClickOutside:g,onClose:_,portal:b,radius:E,ref:O,scheme:w,shadow:c,width:A,children:u}),(0,jsx_runtime.jsx)("div",{ref:D,tabIndex:0})]})})});function DialogProvider(e){const{children:t,position:n,zOffset:r}=e,o=useMemo(()=>({version:0,position:n,zOffset:r}),[n,r]);return jsx(DialogContext.Provider,{value:o,children:t})}var __freeze$a=Object.freeze,__defProp$a=Object.defineProperty,__template$a=(e,t)=>__freeze$a(__defProp$a(e,"raw",{value:__freeze$a(t||e.slice())})),_a$a,_b$5;const Root$6=dt.kbd(_a$a||(_a$a=__template$a(["\n &:not([hidden]) {\n display: block;\n }\n font: inherit;\n"]))),Key=dt(KBD)(_b$5||(_b$5=__template$a(["\n &:not([hidden]) {\n display: block;\n }\n"]))),Hotkeys=(0,external_react_.forwardRef)(function(e,t){const{fontSize:n,keys:r,padding:o,radius:i,space:a=1,...s}=e,l=useArrayProp(a);return r&&0!==r.length?(0,jsx_runtime.jsx)(Root$6,{"data-ui":"Hotkeys",...s,ref:t,children:(0,jsx_runtime.jsx)(Inline,{as:"span",space:l,children:r.map((e,t)=>(0,jsx_runtime.jsx)(Key,{fontSize:n,padding:o,radius:i,children:e},t))})}):(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{})}),key$2=Symbol.for("@sanity/ui/context/menu");globalScope[key$2]=globalScope[key$2]||(0,external_react_.createContext)(null);const MenuContext=globalScope[key$2];function _isFocusable(e){return isHTMLAnchorElement(e)&&"true"!==e.getAttribute("data-disabled")||isHTMLButtonElement(e)&&!e.disabled}function _getFocusableElements(e){return e.filter(_isFocusable)}function _getDOMPath(e,t){const n=[];let r=t;for(;r!==e;){const t=r.parentElement;if(!t)return n;const o=Array.from(t.childNodes).indexOf(r);if(n.unshift(o),t===e)return n;r=t}return n}const EMPTY_PATH=[];function _sortElements(e,t){if(!e)return;const n=new WeakMap;for(const r of t)n.set(r,_getDOMPath(e,r));t.sort((e,t)=>{const r=n.get(e)||EMPTY_PATH,o=n.get(t)||EMPTY_PATH,i=Math.max(r.length,o.length);for(let e=0;e<i;e+=1){const t=r[e]||-1,n=o[e]||-1;if(t!==n)return t-n}return 0})}function useMenuController(e){const{onKeyDown:t,originElement:n,shouldFocus:r}=e,o=(0,external_react_.useRef)([]),[i,a]=(0,external_react_.useState)(null),[s,l]=(0,external_react_.useState)(-1),c=(0,external_react_.useRef)(s),u=o.current[s]||null,d=Boolean(i),f=(0,external_react_.useCallback)(e=>{l(e),c.current=e},[]),h=(0,external_react_.useCallback)((e,t)=>{if(!e)return()=>{};if(-1===o.current.indexOf(e)&&(o.current.push(e),_sortElements(i,o.current)),t){const t=o.current.indexOf(e);f(t)}return()=>{const t=o.current.indexOf(e);t>-1&&o.current.splice(t,1)}},[i,f]),p=(0,external_react_.useCallback)(e=>{if("Tab"!==e.key){if("Home"===e.key){e.preventDefault(),e.stopPropagation();const t=_getFocusableElements(o.current)[0];if(!t)return;const n=o.current.indexOf(t);return void f(n)}if("End"===e.key){e.preventDefault(),e.stopPropagation();const t=_getFocusableElements(o.current),n=t[t.length-1];if(!n)return;const r=o.current.indexOf(n);return void f(r)}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();const t=_getFocusableElements(o.current),n=t.length;if(0===n)return;const r=o.current[c.current];let i=t.indexOf(r);i=(i-1+n)%n;const a=t[i],s=o.current.indexOf(a);return void f(s)}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();const t=_getFocusableElements(o.current),n=t.length;if(0===n)return;const r=o.current[c.current];let i=t.indexOf(r);i=(i+1)%n;const a=t[i],s=o.current.indexOf(a);return void f(s)}t&&t(e)}else n&&n.focus()},[t,n,f]),m=(0,external_react_.useCallback)(e=>{const t=e.currentTarget,n=o.current.indexOf(t);f(n)},[f]),g=(0,external_react_.useCallback)(()=>{f(-2),null==i||i.focus()},[f,i]);return(0,external_react_.useEffect)(()=>{if(!d)return;const e=window.requestAnimationFrame(()=>{const e=c.current;if(-1===e){if("first"===r){const e=_getFocusableElements(o.current)[0];if(e){const t=o.current.indexOf(e);f(t),c.current=t}}if("last"===r){const e=_getFocusableElements(o.current),t=e[e.length-1];if(t){const e=o.current.indexOf(t);f(e),c.current=e}}return}const t=o.current[e]||null;null==t||t.focus()});return()=>{window.cancelAnimationFrame(e)}},[s,d,f,r]),{activeElement:u,activeIndex:s,handleItemMouseEnter:m,handleItemMouseLeave:g,handleKeyDown:p,mount:h,rootElement:i,setRootElement:a}}var __freeze$9=Object.freeze,__defProp$9=Object.defineProperty,__template$9=(e,t)=>__freeze$9(__defProp$9(e,"raw",{value:__freeze$9(t||e.slice())})),_a$9;const Root$5=dt(Box)(_a$9||(_a$9=__template$9(["\n outline: none;\n overflow: auto;\n"]))),Menu=(0,external_react_.forwardRef)(function(e,t){const{children:n,focusFirst:r,focusLast:o,onClickOutside:i,onEscape:a,onItemClick:s,onItemSelect:l,onKeyDown:c,originElement:u,padding:d=1,registerElement:f,shouldFocus:h=(e.focusFirst?"first":e.focusLast&&"last")||null,space:p=1,...m}=e,g=useForwardedRef(t),{isTopLayer:_}=useLayer(),{activeElement:x,activeIndex:y,handleItemMouseEnter:b,handleItemMouseLeave:v,handleKeyDown:w,mount:j,rootElement:C,setRootElement:k}=useMenuController({onKeyDown:c,originElement:u,shouldFocus:h}),S=(0,external_react_.useCallback)(e=>{k(e),g.current=e},[g,k]);(0,external_react_.useEffect)(()=>{l&&l(y)},[y,l]),useClickOutside((0,external_react_.useCallback)(e=>_&&i&&i(e),[_,i]),[C]),useGlobalKeyDown((0,external_react_.useCallback)(e=>{_&&"Escape"===e.key&&(e.stopPropagation(),a&&a())},[_,a])),(0,external_react_.useEffect)(()=>{if(C&&f)return f(C)},[f,C]);const L=(0,external_react_.useMemo)(()=>({version:0,activeElement:x,activeIndex:y,mount:j,onClickOutside:i,onEscape:a,onItemClick:s,onItemMouseEnter:b,onItemMouseLeave:v,registerElement:f,onMouseEnter:b,onMouseLeave:v}),[x,y,j,b,v,i,a,s,f]);return(0,jsx_runtime.jsx)(MenuContext.Provider,{value:L,children:(0,jsx_runtime.jsx)(Root$5,{"data-ui":"Menu",...m,onKeyDown:w,padding:d,ref:S,role:"menu",tabIndex:-1,children:(0,jsx_runtime.jsx)(Stack,{space:p,children:n})})})}),MenuButton=(0,external_react_.forwardRef)(function(e,t){const{__unstable_disableRestoreFocusOnClose:n=!1,boundaryElement:r,button:o,id:i,menu:a,onClose:s,onOpen:l,placement:c,popoverScheme:u,portal:d=!0,popover:f,popoverRadius:h,preventOverflow:p}=e,[m,g]=(0,external_react_.useState)(!1),[_,x]=(0,external_react_.useState)(null),[y,b]=(0,external_react_.useState)(null),[v,w]=(0,external_react_.useState)([]),j=(0,external_react_.useRef)(m);(0,external_react_.useEffect)(()=>{l&&m&&!j.current&&l()},[l,m]),(0,external_react_.useEffect)(()=>{s&&!m&&j.current&&s()},[s,m]),(0,external_react_.useEffect)(()=>{j.current=m},[m]);const C=(0,external_react_.useCallback)(()=>{g(e=>!e),x(null)},[]),k=(0,external_react_.useCallback)(e=>"ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),g(!0),void x("first")):"ArrowUp"===e.key?(e.preventDefault(),g(!0),void x("last")):void 0,[]),S=(0,external_react_.useCallback)(e=>{const t=e.target;if(t instanceof Node&&(!y||t!==y&&!y.contains(t))){for(const e of v)if(t===e||e.contains(t))return;g(!1)}},[y,v]),L=(0,external_react_.useCallback)(()=>{g(!1),n||y&&y.focus()},[y,n]),T=(0,external_react_.useCallback)(e=>{const t=e.relatedTarget;if(t instanceof Node){for(const e of v)if(e===t||e.contains(t))return;g(!1)}},[v]),E=(0,external_react_.useCallback)(()=>{g(!1),n||y&&y.focus()},[y,n]),R=(0,external_react_.useCallback)(e=>(w(t=>t.concat([e])),()=>{w(t=>t.filter(t=>t!==e))}),[]),M=(0,external_react_.useMemo)(()=>({"aria-labelledby":i,onBlurCapture:T,onClickOutside:S,onEscape:L,onItemClick:E,originElement:y,registerElement:R,shouldFocus:_}),[y,S,L,E,i,T,R,_]),A=(0,react_is.isElement)(a)?(0,external_react_.cloneElement)(a,M):null,$=(0,external_react_.useCallback)(e=>{"function"==typeof t?t(e):t&&(t.current=e),b(e)},[t]),I=(0,external_react_.useMemo)(()=>(0,react_is.isElement)(o)?(0,external_react_.cloneElement)(o,{"data-ui":"MenuButton",id:i,onClick:C,onKeyDown:k,"aria-haspopup":!0,"aria-expanded":m,ref:$,selected:m}):null,[o,C,k,i,m,$]),D=(0,external_react_.useMemo)(()=>({boundaryElement:r,overflow:"auto",placement:c,portal:d,preventOverflow:p,radius:h,scheme:u,...f||{}}),[r,c,h,u,d,p,f]);return(0,jsx_runtime.jsx)(Popover,{"data-ui":"MenuButton__popover",...D,content:A,open:m,children:I||(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{})})});var __freeze$8=Object.freeze,__defProp$8=Object.defineProperty,__template$8=(e,t)=>__freeze$8(__defProp$8(e,"raw",{value:__freeze$8(t||e.slice())})),_a$8;const MenuDivider=dt.hr(_a$8||(_a$8=__template$8(["\n height: 1px;\n border: 0;\n background: var(--card-hairline-soft-color);\n margin: 0;\n"])));var __freeze$7=Object.freeze,__defProp$7=Object.defineProperty,__template$7=(e,t)=>__freeze$7(__defProp$7(e,"raw",{value:__freeze$7(t||e.slice())})),_a$7,_b$4;function selectableBaseStyle(){return lt(_a$7||(_a$7=__template$7(["\n background-color: inherit;\n color: inherit;\n\n &[data-as='button'] {\n -webkit-font-smoothing: inherit;\n appearance: none;\n outline: none;\n font: inherit;\n text-align: inherit;\n border: 0;\n width: -webkit-fill-available;\n width: stretch;\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n text-decoration: none;\n }\n "])))}function selectableColorStyle(e){var t,n;const{$tone:r,theme:o}=e,{base:i,muted:a,selectable:s}=o.sanity.color,l=s?s[r]||s.default:a[r]||a.default;return lt(_b$4||(_b$4=__template$7(["\n ","\n\n background-color: var(--card-bg-color);\n color: var(--card-fg-color);\n outline: none;\n\n /* &:is(button) */\n &[data-as='button'] {\n &:disabled {\n ","\n }\n\n &:not(:disabled) {\n &[aria-pressed='true'] {\n ","\n }\n\n &[data-selected],\n &[aria-selected='true'] > & {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n }\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n &[data-disabled] {\n ","\n }\n\n &:not([data-disabled]) {\n &[data-pressed] {\n ","\n }\n\n &[data-selected] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n }\n }\n\n ","\n "])),_colorVarsStyle(i,l.enabled),_colorVarsStyle(i,l.disabled),_colorVarsStyle(i,l.pressed),_colorVarsStyle(i,l.selected),_colorVarsStyle(i,l.hovered),_colorVarsStyle(i,l.pressed),_colorVarsStyle(i,l.disabled),_colorVarsStyle(i,l.pressed),_colorVarsStyle(i,l.selected),_colorVarsStyle(i,l.hovered),_colorVarsStyle(i,l.pressed),null==(n=null==(t=o.sanity.styles)?void 0:t.card)?void 0:n.root)}const Selectable=dt(Box)(responsiveRadiusStyle,selectableBaseStyle,selectableColorStyle);function useMenu(){const e=(0,external_react_.useContext)(MenuContext);if(!e)throw new Error("useMenu(): missing context value");if(!isRecord(e)||0!==e.version)throw new Error("useMenu(): the context value is not compatible");return e}function MenuGroup(e){const{as:t="button",children:n,fontSize:r,icon:o,onClick:i,padding:a=3,popover:s,radius:l=2,space:c=3,text:u,tone:d="default",...f}=e,h=useMenu(),{activeElement:p,mount:m,onClickOutside:g,onEscape:_,onItemClick:x,onItemMouseEnter:y=h.onMouseEnter,registerElement:b}=h,[v,w]=useState(null),[j,C]=useState(!1),k=useRef(null),S=Boolean(p)&&p===v,[L,T]=useState(!1),E=useCallback(e=>{T(!1),y(e),C(!0)},[y]),R=useCallback(e=>{"ArrowLeft"===e.key&&(e.stopPropagation(),C(!1),requestAnimationFrame(()=>{null==v||v.focus()}))},[v]),M=useCallback(e=>{i&&i(e),k.current="first",C(!0),requestAnimationFrame(()=>{k.current=null})},[i]),A=useCallback(()=>{C(!1),x&&x()},[x]),$=useCallback(()=>T(!0),[]);useEffect(()=>m(v),[m,v]),useEffect(()=>{S||C(!1)},[S]),useEffect(()=>{j||T(!1)},[j]);const I=jsx(Menu,{onClickOutside:g,onEscape:_,onItemClick:A,onKeyDown:R,onMouseEnter:$,registerElement:b,shouldFocus:k.current,children:n}),D=useCallback(e=>{const t=e.currentTarget;if(document.activeElement===t)return"ArrowRight"===e.key?(k.current="first",C(!0),T(!0),void requestAnimationFrame(()=>{k.current=null})):void 0},[]);return jsx(Popover,{...s,content:I,"data-ui":"MenuGroup__popover",open:j,children:jsx(Selectable,{"data-as":t,"data-ui":"MenuGroup",forwardedAs:t,...f,"aria-pressed":"button"===t?L:void 0,"data-pressed":"button"!==t?L:void 0,"data-selected":!L&&S?"":void 0,$radius:useArrayProp(l),$tone:d,onClick:M,onKeyDown:D,onMouseEnter:E,ref:w,tabIndex:-1,type:"button"===t?"button":void 0,children:jsx(Box,{padding:a,children:jsxs(Flex,{children:[o&&jsxs(Text,{size:r,children:[isValidElement(o)&&o,isValidElementType(o)&&createElement(o)]}),jsx(Box,{flex:1,marginLeft:o?c:void 0,children:jsx(Text,{size:r,textOverflow:"ellipsis",children:u})}),jsx(Box,{marginLeft:c,children:jsx(Text,{size:r,children:jsx(ChevronRightIcon,{})})})]})})})})}const MenuItem=(0,external_react_.forwardRef)(function(e,t){const{as:n="button",children:r,disabled:o,fontSize:i=2,hotkeys:a,icon:s,iconRight:l,onClick:c,padding:u=3,paddingX:d,paddingY:f,paddingTop:h,paddingRight:p,paddingBottom:m,paddingLeft:g,pressed:_,radius:x=2,selected:y,space:b=3,text:v,tone:w="default",...j}=e,C=useMenu(),{activeElement:k,mount:S,onItemClick:L,onItemMouseEnter:T=C.onMouseEnter,onItemMouseLeave:E=C.onMouseLeave}=C,[R,M]=(0,external_react_.useState)(null),A=Boolean(k)&&k===R;(0,external_react_.useEffect)(()=>S(R,y),[S,R,y]);const $=useForwardedRef(t),I=(0,external_react_.useCallback)(e=>{o||(c&&c(e),L&&L())},[o,c,L]),D=(0,external_react_.useMemo)(()=>({padding:u,paddingX:d,paddingY:f,paddingTop:h,paddingRight:p,paddingBottom:m,paddingLeft:g}),[u,d,f,h,p,m,g]),O=(0,external_react_.useCallback)(e=>{$.current=e,M(e)},[$]);return(0,jsx_runtime.jsxs)(Selectable,{"data-ui":"MenuItem",...j,"aria-pressed":"button"===n&&_,"data-pressed":"button"!==n&&_?"":void 0,"data-selected":A?"":void 0,"data-disabled":o?"":void 0,forwardedAs:n,$radius:useArrayProp(x),$padding:useArrayProp(0),$tone:w,disabled:o,onClick:I,onMouseEnter:T,onMouseLeave:E,ref:O,role:"menuitem",tabIndex:-1,type:"button"===n?"button":void 0,children:[(s||v||l)&&(0,jsx_runtime.jsx)(Box,{as:"span",...D,children:(0,jsx_runtime.jsxs)(Flex,{as:"span",children:[s&&(0,jsx_runtime.jsxs)(Text,{size:i,children:[(0,external_react_.isValidElement)(s)&&s,(0,react_is.isValidElementType)(s)&&(0,external_react_.createElement)(s)]}),v&&(0,jsx_runtime.jsx)(Box,{flex:1,marginLeft:s?b:void 0,marginRight:l?b:void 0,children:(0,jsx_runtime.jsx)(Text,{size:i,textOverflow:"ellipsis",children:v})}),a&&(0,jsx_runtime.jsx)(Box,{marginLeft:b,style:{marginTop:-4,marginBottom:-4},children:(0,jsx_runtime.jsx)(Hotkeys,{fontSize:i,keys:a})}),l&&(0,jsx_runtime.jsxs)(Text,{size:i,children:[(0,external_react_.isValidElement)(l)&&l,(0,react_is.isValidElementType)(l)&&(0,external_react_.createElement)(l)]})]})}),r&&(0,jsx_runtime.jsx)(Box,{as:"span",...D,children:r})]})});var __freeze$6=Object.freeze,__defProp$6=Object.defineProperty,__template$6=(e,t)=>__freeze$6(__defProp$6(e,"raw",{value:__freeze$6(t||e.slice())})),_a$6,_b$3,_c$1,_d;const keyframe=mt(_a$6||(_a$6=__template$6(["\n 0% {\n background-position: 100%;\n }\n 100% {\n background-position: -100%;\n }\n"]))),animation=lt(_b$3||(_b$3=__template$6(["\n background-image: linear-gradient(\n to right,\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-to),\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-from)\n );\n background-position: 100%;\n background-size: 200% 100%;\n background-attachment: fixed;\n animation-name: ",";\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n animation-duration: 2000ms;\n"])),keyframe),skeletonStyle=lt(_d||(_d=__template$6(["\n opacity: ",";\n transition: opacity 200ms ease-in;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n ","\n }\n\n @media screen and (prefers-reduced-motion: reduce) {\n background-color: var(--card-skeleton-color-from);\n }\n"])),e=>{let{$visible:t}=e;return t?1:0},e=>{let{$animated:t}=e;return t?animation:lt(_c$1||(_c$1=__template$6(["\n background-color: var(--card-skeleton-color-from);\n "])))}),Root$4=dt(Box)(responsiveRadiusStyle,skeletonStyle),Skeleton=(0,external_react_.forwardRef)(function(e,t){const{animated:n=!1,delay:r,radius:o,...i}=e,[a,s]=(0,external_react_.useState)(!r);return(0,external_react_.useEffect)(()=>{if(!r)return s(!0);const e=setTimeout(()=>{s(!0)},r);return()=>{clearTimeout(e)}},[r]),(0,jsx_runtime.jsx)(Root$4,{...i,$animated:n,$radius:useArrayProp(o),$visible:a,ref:t})}),Root$3=dt(Skeleton)(e=>{let{$size:t,$style:n,theme:r}=e;const{media:o}=r.sanity,i=r.sanity.fonts[n],a=_responsive(o,t,e=>{const t=i.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}});return a}),TextSkeleton=(0,external_react_.forwardRef)(function(e,t){const{size:n=2,...r}=e,o=useArrayProp(n);return(0,jsx_runtime.jsx)(Root$3,{...r,$size:o,ref:t,$style:"text"})}),LabelSkeleton=(0,external_react_.forwardRef)(function(e,t){const{size:n=2,...r}=e,o=useArrayProp(n);return(0,jsx_runtime.jsx)(Root$3,{...r,$size:o,ref:t,$style:"label"})}),HeadingSkeleton=(0,external_react_.forwardRef)(function(e,t){const{size:n=2,...r}=e,o=useArrayProp(n);return(0,jsx_runtime.jsx)(Root$3,{...r,$size:o,ref:t,$style:"heading"})}),CodeSkeleton=(0,external_react_.forwardRef)(function(e,t){const{size:n=2,...r}=e,o=useArrayProp(n);return(0,jsx_runtime.jsx)(Root$3,{...r,$size:o,ref:t,$style:"code"})});var __freeze$5=Object.freeze,__defProp$5=Object.defineProperty,__template$5=(e,t)=>__freeze$5(__defProp$5(e,"raw",{value:__freeze$5(t||e.slice())})),_a$5;const CustomButton=dt(Button)(_a$5||(_a$5=__template$5(["\n max-width: 100%;\n"]))),Tab=(0,external_react_.forwardRef)(function(e,t){const{icon:n,id:r,focused:o,fontSize:i,label:a,onClick:s,onFocus:l,padding:c=2,selected:u,...d}=e,f=(0,external_react_.useRef)(null),h=(0,external_react_.useRef)(!1),p=(0,external_react_.useCallback)(()=>{h.current=!1},[]),m=(0,external_react_.useCallback)(e=>{h.current=!0,l&&l(e)},[l]),g=useForwardedRef(t);return(0,external_react_.useEffect)(()=>{o&&!h.current&&(f.current&&f.current.focus(),h.current=!0)},[o]),(0,jsx_runtime.jsx)(CustomButton,{"data-ui":"Tab",...d,"aria-selected":u?"true":"false",fontSize:i,icon:n,id:r,mode:"bleed",onClick:s,onBlur:p,onFocus:m,padding:c,ref:e=>{f.current=e,g.current=e},role:"tab",selected:u,tabIndex:u?0:-1,text:a,type:"button"})});var __freeze$4=Object.freeze,__defProp$4=Object.defineProperty,__template$4=(e,t)=>__freeze$4(__defProp$4(e,"raw",{value:__freeze$4(t||e.slice())})),_a$4;function _isReactElement(e){return Boolean(e)}const CustomInline=dt(Inline)(_a$4||(_a$4=__template$4(["\n & > div {\n display: inline-block;\n vertical-align: middle;\n max-width: 100%;\n box-sizing: border-box;\n }\n"]))),TabList=(0,external_react_.forwardRef)(function(e,t){const{children:n,...r}=e,[o,i]=(0,external_react_.useState)(-1),a=(0,external_react_.useMemo)(()=>n.filter(_isReactElement),[n]).map((e,t)=>(0,external_react_.cloneElement)(e,{focused:o===t,key:t,onFocus:()=>l(t)})),s=a.length,l=(0,external_react_.useCallback)(e=>{i(e)},[]),c=(0,external_react_.useCallback)(e=>{"ArrowLeft"===e.key&&i(e=>(e+s-1)%s),"ArrowRight"===e.key&&i(e=>(e+1)%s)},[s]);return(0,jsx_runtime.jsx)(CustomInline,{"data-ui":"TabList",...r,onKeyDown:c,ref:t,role:"tablist",children:a})}),TabPanel=(0,external_react_.forwardRef)(function(e,t){const{flex:n,...r}=e;return(0,jsx_runtime.jsx)(Box,{"data-ui":"TabPanel",...r,flex:n,ref:t,role:"tabpanel",tabIndex:void 0===e.tabIndex?0:e.tabIndex,children:e.children})});var __freeze$3=Object.freeze,__defProp$3=Object.defineProperty,__template$3=(e,t)=>__freeze$3(__defProp$3(e,"raw",{value:__freeze$3(t||e.slice())})),_a$3,_b$2;const STATUS_CARD_TONE={error:"critical",warning:"caution",success:"positive",info:"primary"},ROLES={error:"alert",warning:"alert",success:"alert",info:"alert"},Root$2=dt(Card)(_a$3||(_a$3=__template$3(["\n pointer-events: all;\n"]))),TextBox=dt(Flex)(_b$2||(_b$2=__template$3(["\n overflow-x: auto;\n"])));function Toast(e){const{closable:t,description:n,onClose:r,title:o,status:i,...a}=e,s=i?STATUS_CARD_TONE[i]:"default",l=i?ROLES[i]:"status";return jsx(Root$2,{"data-ui":"Toast",role:l,...a,marginTop:3,radius:2,shadow:2,tone:s,children:jsxs(Flex,{align:"flex-start",children:[jsx(TextBox,{flex:1,padding:3,children:jsxs(Stack,{space:3,children:[o&&jsx(Text,{weight:"semibold",children:o}),n&&jsx(Text,{muted:!0,size:1,children:n})]})}),t&&jsx(Box,{padding:1,children:jsx(Button,{as:"button",icon:CloseIcon,mode:"bleed",padding:2,onClick:r,style:{verticalAlign:"top"}})})]})})}function useMounted(){const[e,t]=useReducer(()=>!0,!1);return useEffect(t,[t]),e}const key$1=Symbol.for("@sanity/ui/context/toast");globalScope[key$1]=globalScope[key$1]||(0,external_react_.createContext)(null);const ToastContext=globalScope[key$1];var __freeze$2=Object.freeze,__defProp$2=Object.defineProperty,__template$2=(e,t)=>__freeze$2(__defProp$2(e,"raw",{value:__freeze$2(t||e.slice())})),_a$2,_b$1;const Root$1=dt(Layer)(_a$2||(_a$2=__template$2(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n"]))),ToastContainer=dt.div(_b$1||(_b$1=__template$2(["\n box-sizing: border-box;\n position: absolute;\n right: 0;\n bottom: 0;\n max-width: 420px;\n width: 100%;\n"])));let toastId=0;function ToastProvider(e){const{children:t,padding:n=4,paddingX:r,paddingY:o,zOffset:i}=e,[a,s]=useState([]),l=useRef({}),c=useCallback(e=>{const t=e=>startTransition(()=>s(e)),n=e.id||String(toastId++),r=e.duration||5e3,o=()=>{var e;const r=null==(e=l.current[n])?void 0:e.timeoutId;t(e=>{const t=e.findIndex(e=>e.id===n);if(t>-1){const n=e.slice(0);return n.splice(t,1),n}return e}),void 0!==r&&(clearTimeout(r),delete l.current[n])};return t(t=>t.filter(e=>e.id!==n).concat([{dismiss:o,id:n,params:{...e,duration:r}}])),l.current[n]&&(clearTimeout(l.current[n].timeoutId),delete l.current[n]),l.current[n]={timeoutId:setTimeout(o,r)},n},[]);useEffect(()=>()=>{for(const{timeoutId:e}of Object.values(l.current))clearTimeout(e);l.current={}},[]);const u=useMemo(()=>({version:0,push:c}),[c]),d=useMounted();return jsxs(ToastContext.Provider,{value:u,children:[t,d&&jsx(Root$1,{"data-ui":"ToastProvider",zOffset:i,children:jsx(ToastContainer,{children:jsx(Box,{padding:n,paddingX:r,paddingY:o,children:jsx(AnimatePresence,{initial:!1,children:a.map(e=>{let{dismiss:t,id:n,params:r}=e;return jsx(motion.div,{animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.5,transition:{duration:.2}},initial:{opacity:0,y:32,scale:.25},layout:"position",transition:{type:"spring",damping:30,stiffness:400},children:jsx(Toast,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title})},n)})})})})})]})}function useToast(){const e=useContext(ToastContext);if(!e)throw new Error("useToast(): missing context value");if(!isRecord(e)||0!==e.version)throw new Error("useToast(): the context value is not compatible");return e}function _findPrevItemElement(e,t,n){var r;const o=t.indexOf(n),i=t.slice(0,o);for(let t=i.length-1;t>=0;t-=1){const n=i[t].getAttribute("data-tree-key");if(!n)continue;const o=n.split("/");o.pop();const a=[];let s=!0;for(let t=0;t<o.length;t+=1)if(a.push(o[t]),!(null==(r=e[a.join("/")])?void 0:r.expanded)){s=!1;break}if(s)return i[t]}return null}function _findNextItemElement(e,t,n){var r;const o=t.indexOf(n),i=t.slice(o),a=t.length;for(let t=1;t<a;t+=1){if(!i[t])continue;const n=i[t].getAttribute("data-tree-key");if(!n)continue;const o=n.split("/");o.pop();const a=[];let s=!0;for(let t=0;t<o.length;t+=1)if(a.push(o[t]),!(null==(r=e[a.join("/")])?void 0:r.expanded)){s=!1;break}if(s)return i[t]}return null}function _focusItemElement(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){const t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}const key=Symbol.for("@sanity/ui/context/tree");globalScope[key]=globalScope[key]||(0,external_react_.createContext)(null);const TreeContext=globalScope[key],Tree=(0,external_react_.memo)((0,external_react_.forwardRef)(function(e,t){const{children:n,space:r=1,onFocus:o,...i}=e,a=useForwardedRef(t),[s,l]=(0,external_react_.useState)(null),c=(0,external_react_.useRef)(s),u=(0,external_react_.useMemo)(()=>[],[]),[d,f]=(0,external_react_.useState)([]),[h,p]=(0,external_react_.useState)({}),m=(0,external_react_.useRef)(h);(0,external_react_.useEffect)(()=>{c.current=s},[s]),(0,external_react_.useEffect)(()=>{m.current=h},[h]);const g=(0,external_react_.useCallback)((e,t,n,r)=>(p(r=>({...r,[t]:{element:e,expanded:n}})),r&&l(e),()=>{p(e=>{const n={...e};return delete n[t],n})}),[]),_=(0,external_react_.useCallback)((e,t)=>{p(n=>{const r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},[]),x=(0,external_react_.useMemo)(()=>({version:0,focusedElement:s||d[0]||null,level:0,path:u,registerItem:g,setExpanded:_,setFocusedElement:l,space:r,state:h}),[s,d,u,g,_,r,h]),y=(0,external_react_.useCallback)(e=>{var t;if(c.current){if("ArrowDown"===e.key){e.preventDefault();const t=_findNextItemElement(m.current,d,c.current);return void(t&&(_focusItemElement(t),l(t)))}if("ArrowUp"===e.key){e.preventDefault();const t=_findPrevItemElement(m.current,d,c.current);return void(t&&(_focusItemElement(t),l(t)))}if("ArrowLeft"===e.key){e.preventDefault();const t=c.current.getAttribute("data-tree-key");if(!t)return;const n=m.current[t];if(!n)return;if(n.expanded)p(e=>{const n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{const e=t.split("/");e.pop();const n=e.join("/"),r=n&&m.current[n];r&&(r.element.focus(),l(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();const n=c.current.getAttribute("data-tree-key");if(!n)return;return void((null==(t=m.current[n])?void 0:t.expanded)||p(e=>{const t=e[n];return t?{...e,[n]:{...t,expanded:!0}}:e}))}}},[d]),b=(0,external_react_.useCallback)(e=>{l(e.target),null==o||o(e)},[o]);return(0,external_react_.useEffect)(()=>{if(!a.current)return;const e=Array.from(a.current.querySelectorAll('[data-ui="TreeItem"]'));f(e)},[n,a]),(0,jsx_runtime.jsx)(TreeContext.Provider,{value:x,children:(0,jsx_runtime.jsx)(Stack,{as:"ul","data-ui":"Tree",...i,onFocus:b,onKeyDown:y,ref:a,role:"tree",space:r,children:n})})}));Tree.displayName="Tree";var __freeze$1=Object.freeze,__defProp$1=Object.defineProperty,__template$1=(e,t)=>__freeze$1(__defProp$1(e,"raw",{value:__freeze$1(t||e.slice())})),_a$1,_b,_c;function treeItemRootStyle(){return lt(_a$1||(_a$1=__template$1(["\n &[role='none'] > [role='treeitem'] {\n outline: none;\n cursor: default;\n border-radius: 3px;\n\n &:focus {\n position: relative;\n }\n }\n\n &[role='treeitem'] {\n outline: none;\n\n & > div {\n cursor: default;\n border-radius: 3px;\n }\n\n &:focus > div {\n position: relative;\n }\n }\n "])))}function treeItemRootColorStyle(e){const{theme:t}=e,n="default",{base:r,muted:o,selectable:i}=t.sanity.color,a=i?i[n]||i.default:o[n]||o.default;return lt(_b||(_b=__template$1(['\n /* <div role="none"><a data-ui="TreeItem__box" role="treeitem" tabIndex="0"></div> */\n &[role=\'none\'] {\n & > [role=\'treeitem\'] {\n ',"\n\n background-color: var(--card-bg-color);\n color: var(--treeitem-fg-color);\n }\n\n &[data-selected] > [role='treeitem'] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-selected]) > [role='treeitem']:not(:focus):hover {\n ","\n }\n\n & > [role='treeitem']:focus {\n ",'\n }\n }\n }\n\n /* <div role="treeitem" tabIndex="0"><div data-ui="TreeItem__box"></div> */\n &[role=\'treeitem\'] {\n & > [data-ui=\'TreeItem__box\'] {\n ',"\n\n background-color: var(--card-bg-color);\n color: var(--card-fg-color);\n }\n\n &[data-selected] > [data-ui='TreeItem__box'] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {\n ","\n }\n\n &:focus > [data-ui='TreeItem__box'] {\n ","\n }\n }\n }\n "])),_colorVarsStyle(r,a.enabled),_colorVarsStyle(r,a.pressed),_colorVarsStyle(r,a.hovered),_colorVarsStyle(r,a.selected),_colorVarsStyle(r,a.enabled),_colorVarsStyle(r,a.pressed),_colorVarsStyle(r,a.hovered),_colorVarsStyle(r,a.selected))}function treeItemBoxStyle(e){const{$level:t,theme:n}=e,{space:r}=n.sanity;return lt(_c||(_c=__template$1(["\n padding-left: ",";\n\n &[data-as='a'] {\n text-decoration: none;\n }\n "])),rem(r[2]*t))}function useTree(){const e=(0,external_react_.useContext)(TreeContext);if(!e)throw new Error("Tree: missing context value");return e}const TreeGroup=(0,external_react_.memo)(function(e){const{children:t,expanded:n=!1,...r}=e,o=useTree();return(0,jsx_runtime.jsx)(Stack,{as:"ul","data-ui":"TreeGroup",...r,hidden:!n,marginTop:o.space,role:"group",space:o.space,children:t})});var __freeze=Object.freeze,__defProp=Object.defineProperty,__template=(e,t)=>__freeze(__defProp(e,"raw",{value:__freeze(t||e.slice())})),_a;const Root=(0,external_react_.memo)(dt.li(treeItemRootStyle,treeItemRootColorStyle)),TreeItemBox=dt(Box).attrs({forwardedAs:"a"})(treeItemBoxStyle),ToggleArrowText=dt(Text)(_a||(_a=__template(["\n & > svg {\n transition: transform 100ms;\n }\n"]))),TreeItem=(0,external_react_.memo)(function(e){const{children:t,expanded:n=!1,fontSize:r,href:o,icon:i,id:a,linkAs:s,muted:l,onClick:c,padding:u=3,selected:d=!1,space:f=2,text:h,weight:p,...m}=e,g=(0,external_react_.useRef)(null),_=(0,external_react_.useRef)(null),x=useTree(),{path:y,registerItem:b,setExpanded:v,setFocusedElement:w}=x,j=(0,external_react_.useId)(),C=a||j,k=(0,external_react_.useMemo)(()=>y.concat([C||""]),[C,y]),S=k.join("/"),L=x.state[S],T=x.focusedElement===g.current,E=void 0===(null==L?void 0:L.expanded)?n:(null==L?void 0:L.expanded)||!1,R=x.focusedElement&&x.focusedElement===g.current?0:-1,M=(0,external_react_.useMemo)(()=>({...x,level:x.level+1,path:k}),[k,x]),A=(0,external_react_.useCallback)(e=>{c&&c(e);const t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),v(S,!E),w(g.current))},[E,S,c,v,w]),$=(0,external_react_.useCallback)(e=>{if(T&&"Enter"===e.key){const e=_.current||g.current;null==e||e.click()}},[T]);(0,external_react_.useEffect)(()=>{if(g.current)return b(g.current,k.join("/"),E,d)},[E,k,b,d]);const I=(0,jsx_runtime.jsxs)(Flex,{padding:u,children:[(0,jsx_runtime.jsxs)(Box,{marginRight:f,style:{visibility:i||t?"visible":"hidden",pointerEvents:"none"},children:[i&&(0,jsx_runtime.jsx)(Text,{muted:l,size:r,weight:p,children:(0,external_react_.createElement)(i)}),!i&&(0,jsx_runtime.jsx)(ToggleArrowText,{muted:l,size:r,weight:p,children:(0,jsx_runtime.jsx)(ToggleArrowRightIcon,{style:{transform:E?"rotate(90deg)":void 0}})})]}),(0,jsx_runtime.jsx)(Box,{flex:1,children:(0,jsx_runtime.jsx)(Text,{muted:l,size:r,textOverflow:"ellipsis",weight:p,children:h})})]});return o?(0,jsx_runtime.jsxs)(Root,{"data-selected":d?"":void 0,"data-tree-id":C,"data-tree-key":S,"data-ui":"TreeItem",...m,onClick:A,ref:g,role:"none",children:[(0,jsx_runtime.jsx)(TreeItemBox,{$level:x.level,"aria-expanded":E,as:s,"data-ui":"TreeItem__box",href:o,ref:_,role:"treeitem",tabIndex:R,children:I}),(0,jsx_runtime.jsx)(TreeContext.Provider,{value:M,children:t&&(0,jsx_runtime.jsx)(TreeGroup,{hidden:!E,children:t})})]}):(0,jsx_runtime.jsxs)(Root,{"data-selected":d?"":void 0,"data-ui":"TreeItem","data-tree-id":C,"data-tree-key":S,...m,"aria-expanded":E,onClick:A,onKeyDown:$,ref:g,role:"treeitem",tabIndex:R,children:[(0,jsx_runtime.jsx)(TreeItemBox,{$level:x.level,as:"div","data-ui":"TreeItem__box",children:I}),(0,jsx_runtime.jsx)(TreeContext.Provider,{value:M,children:t&&(0,jsx_runtime.jsx)(TreeGroup,{expanded:E,children:t})})]})}),ConfirmationDialog=({open:e,title:t,message:n,details:r,confirmText:o="Confirm",cancelText:i="Cancel",tone:a="primary",closable:s=!0,onConfirm:l,onCancel:c})=>{const u=(0,external_react_.useRef)(null);return(0,external_react_.useEffect)(()=>{e&&u.current&&setTimeout(()=>{u.current?.focus()},100)},[e]),e?(0,jsx_runtime.jsx)(Dialog,{id:"confirmation-dialog",header:t,onClose:s?c:void 0,onClickOutside:s?c:void 0,width:1,role:"alertdialog","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:(0,jsx_runtime.jsx)(Box,{padding:4,children:(0,jsx_runtime.jsxs)(Stack,{space:4,children:[(0,jsx_runtime.jsx)(Card,{children:(0,jsx_runtime.jsx)(Box,{padding:3,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Text,{id:"confirmation-dialog-description",size:2,weight:"regular",children:n}),r&&(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:r})]})})}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Button,{ref:u,text:o,tone:a,onClick:l,mode:"default","aria-label":`${o} action`}),(0,jsx_runtime.jsx)(Button,{text:i,tone:"default",onClick:c,mode:"ghost","aria-label":`${i} action`})]})]})})}):null},SuccessDialog=({open:e,title:t,message:n,details:r,autoCloseTimeout:o,closable:i=!0,onClose:a})=>{const s=(0,external_react_.useRef)(null);return(0,external_react_.useEffect)(()=>{e&&s.current&&setTimeout(()=>{s.current?.focus()},100)},[e]),(0,external_react_.useEffect)(()=>{if(!e||!o)return;const t=setTimeout(()=>{a()},o);return()=>clearTimeout(t)},[e,o,a]),e?(0,jsx_runtime.jsx)(Dialog,{id:"success-dialog",header:t,onClose:i?a:void 0,onClickOutside:i?a:void 0,width:1,role:"dialog","aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description",children:(0,jsx_runtime.jsx)(Box,{padding:4,children:(0,jsx_runtime.jsxs)(Stack,{space:4,children:[(0,jsx_runtime.jsx)(Card,{tone:"positive",padding:3,radius:2,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Box,{children:(0,jsx_runtime.jsx)(Text,{size:3,children:(0,jsx_runtime.jsx)(CheckmarkCircleIcon,{})})}),(0,jsx_runtime.jsx)(Text,{id:"success-dialog-description",size:2,weight:"regular",children:n}),r&&(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:r})]})}),(0,jsx_runtime.jsx)(Button,{ref:s,text:"Close",tone:"positive",onClick:a,mode:"default","aria-label":"Close success dialog"})]})})}):null},ErrorDialog=({open:e,title:t,message:n,error:r,showRetry:o=!1,retryText:i="Retry",closable:a=!0,onClose:s,onRetry:l})=>{const c=(0,external_react_.useRef)(null);return(0,external_react_.useEffect)(()=>{e&&c.current&&setTimeout(()=>{c.current?.focus()},100)},[e]),e?(0,jsx_runtime.jsx)(Dialog,{id:"error-dialog",header:t,onClose:a?s:void 0,onClickOutside:a?s:void 0,width:1,role:"alertdialog","aria-labelledby":"error-dialog-title","aria-describedby":"error-dialog-description",children:(0,jsx_runtime.jsx)(Box,{padding:4,children:(0,jsx_runtime.jsxs)(Stack,{space:4,children:[(0,jsx_runtime.jsx)(Card,{tone:"critical",padding:3,radius:2,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Box,{children:(0,jsx_runtime.jsx)(Text,{size:3,children:(0,jsx_runtime.jsx)(ErrorOutlineIcon,{})})}),(0,jsx_runtime.jsx)(Text,{id:"error-dialog-description",size:2,weight:"regular",children:n}),r&&(0,jsx_runtime.jsxs)(Box,{marginTop:2,children:[(0,jsx_runtime.jsx)(Code,{size:1,language:"text",children:r.message}),r.stack&&(0,jsx_runtime.jsx)(Box,{marginTop:2,children:(0,jsx_runtime.jsxs)("details",{children:[(0,jsx_runtime.jsx)("summary",{children:(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Stack trace"})}),(0,jsx_runtime.jsx)(Box,{marginTop:2,children:(0,jsx_runtime.jsx)(Code,{size:0,language:"text",children:r.stack})})]})})]})]})}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[o&&l&&(0,jsx_runtime.jsx)(Button,{ref:c,text:i,tone:"critical",onClick:l,mode:"default","aria-label":`${i} action`}),(0,jsx_runtime.jsx)(Button,{ref:o?void 0:c,text:"Close",tone:"default",onClick:s,mode:o?"ghost":"default","aria-label":"Close error dialog"})]})]})})}):null},LocaleSelectionDialog=({open:e,title:t,message:n,availableLocales:r,selectedLocales:o,selectedDocuments:i=[],mode:a,allowMultiple:s=!0,required:l=!0,showCreationModeOption:c=!1,defaultCreationMode:u="draft",onConfirm:d,onCancel:f})=>{const[h,p]=(0,external_react_.useState)(new Set(o)),[m,g]=(0,external_react_.useState)(u),[_,x]=(0,external_react_.useState)(""),[y,b]=(0,external_react_.useState)(null),v=(0,external_react_.useRef)(null),w=(0,external_react_.useRef)(null);(0,external_react_.useEffect)(()=>{e&&(p(new Set(o)),g(u),x(""),b(null),setTimeout(()=>{v.current?.focus()},100))},[e,o,u]);const j=(0,external_react_.useMemo)(()=>{if(!_.trim())return r.filter(e=>e.enabled);const e=_.toLowerCase();return r.filter(e=>e.enabled).filter(t=>t.code.toLowerCase().includes(e)||t.displayName.toLowerCase().includes(e))},[r,_]),C=e=>{b(null);const t=new Set(h);t.has(e)?t.delete(e):(s||t.clear(),t.add(e)),p(t)},k=()=>{l&&0===h.size?b("Please select at least one locale"):d(Array.from(h),c?m:void 0)};if((0,external_react_.useEffect)(()=>{if(!e)return;const t=e=>{"Escape"===e.key?(e.preventDefault(),f()):"Enter"===e.key&&e.ctrlKey&&(e.preventDefault(),k())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e,h,f]),!e)return null;const S=i.length||1,L=!l||h.size>0;return(0,jsx_runtime.jsx)(Dialog,{id:"locale-selection-dialog",header:t,onClose:f,onClickOutside:f,width:1,role:"dialog","aria-labelledby":"locale-selection-dialog-title","aria-describedby":"locale-selection-dialog-description",children:(0,jsx_runtime.jsx)(Box,{padding:4,children:(0,jsx_runtime.jsxs)(Stack,{space:4,children:[(0,jsx_runtime.jsx)(Card,{children:(0,jsx_runtime.jsx)(Box,{padding:3,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Text,{id:"locale-selection-dialog-description",size:2,weight:"regular",children:n}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"bulk"===a?`Translating ${S} document${1!==S?"s":""}`:"Translating 1 document"})]})})}),(0,jsx_runtime.jsx)(Box,{children:(0,jsx_runtime.jsx)(TextInput,{ref:v,icon:SearchIcon,placeholder:"Search locales by code or name...",value:_,onChange:e=>x(e.currentTarget.value),"aria-label":"Search locales"})}),(0,jsx_runtime.jsx)(Card,{border:!0,padding:3,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[s&&j.length>1&&(0,jsx_runtime.jsxs)(Flex,{justify:"space-between",align:"center",children:[(0,jsx_runtime.jsxs)(Text,{size:1,weight:"semibold",children:[h.size," of ",j.length," selected"]}),(0,jsx_runtime.jsxs)(Flex,{gap:2,children:[(0,jsx_runtime.jsx)(Button,{text:"Select All",mode:"ghost",fontSize:1,padding:2,onClick:()=>{b(null);const e=new Set(j.map(e=>e.code));p(e)},disabled:h.size===j.length}),(0,jsx_runtime.jsx)(Button,{text:"Clear All",mode:"ghost",fontSize:1,padding:2,onClick:()=>{b(null),p(new Set)},disabled:0===h.size})]})]}),(0,jsx_runtime.jsx)(Box,{style:{maxHeight:"300px",overflowY:"auto"},children:(0,jsx_runtime.jsx)(Stack,{space:2,children:0===j.length?(0,jsx_runtime.jsx)(Box,{padding:3,children:(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,align:"center",children:_?"No locales match your search":"No locales available. Please configure locales first."})}):j.map(e=>(0,jsx_runtime.jsx)(Card,{padding:3,radius:2,shadow:1,style:{cursor:"pointer"},onClick:()=>C(e.code),role:"checkbox","aria-checked":h.has(e.code),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),C(e.code))},children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:3,children:[(0,jsx_runtime.jsx)(Checkbox,{checked:h.has(e.code),readOnly:!0,"aria-label":`Select ${e.displayName}`}),(0,jsx_runtime.jsxs)(Stack,{space:1,flex:1,children:[(0,jsx_runtime.jsx)(Text,{size:2,weight:"medium",children:e.displayName}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:e.code})]})]})},e.code))})})]})}),c&&(0,jsx_runtime.jsx)(Card,{border:!0,padding:3,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"semibold",children:"Document Creation Mode"}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Choose whether to create translated documents as drafts or publish them immediately."}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Card,{padding:3,radius:2,tone:"draft"===m?"primary":"default",style:{cursor:"pointer"},onClick:()=>g("draft"),children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:3,children:[(0,jsx_runtime.jsx)(Radio,{checked:"draft"===m,readOnly:!0,"aria-label":"Create as draft"}),(0,jsx_runtime.jsxs)(Stack,{space:1,flex:1,children:[(0,jsx_runtime.jsx)(Text,{size:2,weight:"medium",children:"Draft"}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Create documents as drafts that need to be published manually"})]})]})}),(0,jsx_runtime.jsx)(Card,{padding:3,radius:2,tone:"published"===m?"primary":"default",style:{cursor:"pointer"},onClick:()=>g("published"),children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:3,children:[(0,jsx_runtime.jsx)(Radio,{checked:"published"===m,readOnly:!0,"aria-label":"Create as published"}),(0,jsx_runtime.jsxs)(Stack,{space:1,flex:1,children:[(0,jsx_runtime.jsx)(Text,{size:2,weight:"medium",children:"Published"}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Create and publish documents immediately"})]})]})})]})]})}),y&&(0,jsx_runtime.jsx)(Card,{tone:"critical",padding:3,children:(0,jsx_runtime.jsx)(Text,{size:1,style:{color:"var(--card-fg-color)"},children:y})}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Button,{ref:w,text:`Translate to ${h.size} locale${1!==h.size?"s":""}`,tone:"primary",onClick:k,disabled:!L||0===j.length,mode:"default","aria-label":"Confirm locale selection and start translation"}),(0,jsx_runtime.jsx)(Button,{text:"Cancel",tone:"default",onClick:f,mode:"ghost","aria-label":"Cancel locale selection"})]}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,align:"center",children:"Press Ctrl+Enter to confirm, Esc to cancel"})]})})})},dialogService_DialogContext=(0,external_react_.createContext)(null),useDialogService=()=>{const e=(0,external_react_.useContext)(dialogService_DialogContext);if(!e)throw new Error("useDialogService must be used within a DialogProvider");return e},dialogService_DialogProvider=({children:e})=>{const[t,n]=(0,external_react_.useState)(null),[r,o]=(0,external_react_.useState)([]),i=(0,external_react_.useCallback)(()=>{o(e=>{if(0===e.length)return n(null),e;const[t,...r]=e;return n(t),r})},[]),a=(0,external_react_.useCallback)((e,r)=>new Promise((i,a)=>{const s={id:`dialog-${Date.now()}-${Math.random()}`,type:e,options:r,resolve:i,reject:a};o(e=>t||0!==e.length?[...e,s]:(n(s),[]))}),[t]),s=(0,external_react_.useCallback)(e=>{t?.resolve&&t.resolve(e),i()},[t,i]),l=(0,external_react_.useCallback)(e=>a("confirmation",e),[a]),c=(0,external_react_.useCallback)(e=>a("localeSelection",e),[a]),u=(0,external_react_.useCallback)(e=>{a("success",e).catch(()=>{})},[a]),d=(0,external_react_.useCallback)(e=>a("error",e),[a]),f=(0,external_react_.useCallback)(()=>{t?.reject&&t.reject(new Error("Dialog closed")),r.forEach(e=>{e.reject&&e.reject(new Error("Dialog closed"))}),n(null),o([])},[t,r]),h=(0,external_react_.useCallback)(()=>{s(!0)},[s]),p=(0,external_react_.useCallback)(()=>{s(!1)},[s]),m=(0,external_react_.useCallback)((e,t)=>{s({locales:e,creationMode:t})},[s]),g=(0,external_react_.useCallback)(()=>{s({locales:[]})},[s]),_=(0,external_react_.useCallback)(()=>{s(!0)},[s]),x=(0,external_react_.useCallback)(()=>{s(!1)},[s]),y=(0,external_react_.useCallback)(()=>{s(!0)},[s]),b={currentDialog:t,dialogQueue:r,showConfirmation:l,showLocaleSelection:c,showSuccess:u,showError:d,closeAll:f};return(0,jsx_runtime.jsxs)(dialogService_DialogContext.Provider,{value:b,children:[e,"confirmation"===t?.type&&(0,jsx_runtime.jsx)(ConfirmationDialog,{open:!0,...t.options,onConfirm:h,onCancel:p}),"localeSelection"===t?.type&&(0,jsx_runtime.jsx)(LocaleSelectionDialog,{open:!0,...t.options,onConfirm:m,onCancel:g}),"success"===t?.type&&(0,jsx_runtime.jsx)(SuccessDialog,{open:!0,...t.options,onClose:_}),"error"===t?.type&&(0,jsx_runtime.jsx)(ErrorDialog,{open:!0,...t.options,onClose:x,onRetry:t.options.showRetry?y:void 0})]})};class DialogService{constructor(){this.contextRef=null}static getInstance(){return DialogService.instance||(DialogService.instance=new DialogService),DialogService.instance}setContext(e){this.contextRef=e}async showConfirmation(e){if(!this.contextRef)throw new Error("DialogService not initialized. Ensure DialogProvider is mounted.");return this.contextRef.showConfirmation(e)}async showLocaleSelection(e){if(!this.contextRef)throw new Error("DialogService not initialized. Ensure DialogProvider is mounted.");return this.contextRef.showLocaleSelection(e)}showSuccess(e){if(!this.contextRef)throw new Error("DialogService not initialized. Ensure DialogProvider is mounted.");this.contextRef.showSuccess(e)}async showError(e){if(!this.contextRef)throw new Error("DialogService not initialized. Ensure DialogProvider is mounted.");return this.contextRef.showError(e)}closeAll(){if(!this.contextRef)throw new Error("DialogService not initialized. Ensure DialogProvider is mounted.");this.contextRef.closeAll()}}const dialogService=DialogService.getInstance();var OAuthErrorType;!function(e){e.INVALID_CONFIG="invalid_config",e.NETWORK_ERROR="network_error",e.AUTH_FAILED="auth_failed",e.STORAGE_ERROR="storage_error"}(OAuthErrorType||(OAuthErrorType={}));class OAuthError extends Error{constructor(e,t,n){super(t),this.name="OAuthError",this.type=e,this.details=n,Error.captureStackTrace&&Error.captureStackTrace(this,OAuthError)}getUserMessage(){switch(this.type){case OAuthErrorType.INVALID_CONFIG:return"Configuration is invalid. Please check your access token and project ID.";case OAuthErrorType.NETWORK_ERROR:return"Network error. Please check your connection.";case OAuthErrorType.AUTH_FAILED:return"Authentication failed. Please check your access token.";case OAuthErrorType.STORAGE_ERROR:return"Failed to save authentication data. Please try again.";default:return"An unexpected error occurred. Please try again."}}isRecoverable(){return[OAuthErrorType.NETWORK_ERROR,OAuthErrorType.STORAGE_ERROR].includes(this.type)}}class OAuthService{constructor(e){this.validateConfig(e),this.config=e,console.log("Easyling Authentication Service initialized",{projectId:e.projectId,hasAccessToken:!!e.accessToken})}validateConfig(e){const t=[];if(e.accessToken&&""!==e.accessToken.trim()||t.push("accessToken is required"),e.projectId&&""!==e.projectId.trim()||t.push("projectId is required"),t.length>0)throw new OAuthError(OAuthErrorType.INVALID_CONFIG,`Invalid configuration: ${t.join(", ")}`)}getAccessToken(){return this.config.accessToken}getProjectId(){return this.config.projectId}getConfig(){return{...this.config}}}const AUTH_DATA_STORAGE_KEY="sanity-translation-plugin:oauth:auth-data";class TokenStorage{async storeAuthData(e){try{if(!e.accessToken||!e.projectId)throw new OAuthError(OAuthErrorType.STORAGE_ERROR,"Invalid auth data: missing required fields (accessToken or projectId)");const t={...e,storedAt:Date.now()},n=JSON.stringify(t);localStorage.setItem(AUTH_DATA_STORAGE_KEY,n),console.log("Auth data stored successfully",{projectId:e.projectId})}catch(e){if(e instanceof OAuthError)throw e;throw new OAuthError(OAuthErrorType.STORAGE_ERROR,"Failed to store authentication data",e)}}async getAuthData(){try{const e=localStorage.getItem(AUTH_DATA_STORAGE_KEY);if(!e)return null;const t=JSON.parse(e);return t.accessToken&&t.projectId?t:(console.warn("Stored auth data is corrupted, clearing storage"),await this.clearAuthData(),null)}catch(e){if(e instanceof SyntaxError)return console.warn("Failed to parse stored auth data, clearing storage"),await this.clearAuthData(),null;throw new OAuthError(OAuthErrorType.STORAGE_ERROR,"Failed to retrieve authentication data",e)}}async clearAuthData(){try{localStorage.removeItem(AUTH_DATA_STORAGE_KEY),console.log("Auth data cleared successfully")}catch(e){throw new OAuthError(OAuthErrorType.STORAGE_ERROR,"Failed to clear authentication data",e)}}async isTokenExpired(){try{return!await this.getAuthData()}catch(e){return console.error("Error checking token:",e),!0}}async getValidAccessToken(){try{const e=await this.getAuthData();return e?e.accessToken:null}catch(e){return console.error("Error getting valid access token:",e),null}}}const VALID_TRANSITIONS={unauthenticated:["authenticated","error"],authenticated:["unauthenticated","error"],error:["unauthenticated","authenticated"]};class AuthStateManager{constructor(e){this.tokenStorage=e,this.subscribers=new Set,this.currentState={state:"unauthenticated"},console.log("AuthStateManager initialized")}isValidTransition(e,t){return e===t||VALID_TRANSITIONS[e].includes(t)}getState(){return{...this.currentState}}setState(e,t){if(!this.isValidTransition(this.currentState.state,e))throw new OAuthError(OAuthErrorType.INVALID_CONFIG,`Invalid state transition from ${this.currentState.state} to ${e}`);const n={state:e,...t};"error"===this.currentState.state&&"error"!==e&&delete n.error,"unauthenticated"===e&&(delete n.projectId,delete n.projectName,delete n.error),console.log("Auth state changed",{from:this.currentState.state,to:e,projectId:n.projectId}),this.currentState=n,this.notifySubscribers()}notifySubscribers(){const e=this.getState();this.subscribers.forEach(t=>{try{t(e)}catch(e){console.error("Error in state change subscriber:",e)}})}subscribe(e){this.subscribers.add(e);try{e(this.getState())}catch(e){console.error("Error in initial state callback:",e)}return()=>{this.subscribers.delete(e)}}async initialize(){try{console.log("Initializing auth state from storage");const e=await this.tokenStorage.getAuthData();if(!e)return console.log("No stored auth data found, remaining unauthenticated"),void this.setState("unauthenticated");if(await this.tokenStorage.isTokenExpired())return console.log("No valid token found"),void this.setState("unauthenticated");console.log("Valid token found, setting authenticated state"),this.setState("authenticated",{projectId:e.projectId,projectName:e.projectName})}catch(e){console.error("Error initializing auth state:",e),this.setState("error",{error:"Failed to initialize authentication state"})}}async logout(){try{console.log("Logging out"),await this.tokenStorage.clearAuthData(),this.setState("unauthenticated"),console.log("Logout complete")}catch(e){throw console.error("Error during logout:",e),this.setState("unauthenticated"),new OAuthError(OAuthErrorType.STORAGE_ERROR,"Failed to clear authentication data during logout",e)}}}var translation_request=__webpack_require__(7230),translation_response=__webpack_require__(3424);class TranslationService{constructor(e="http://localhost:8275/translate",t="application/json",n="application/json"){this.placeholderEndpoint=e,this.requestContentType=t,this.responseAcceptHeader=n}inferSanityType(e){if(null==e)return"undefined";if("object"==typeof e&&!Array.isArray(e)){const t=e;if(t._type)return t._type}return"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":Array.isArray(e)?"array":"object"==typeof e?"object":"unknown"}setAuthToken(e,t){this.accessToken=e,this.projectId=t}clearAuth(){this.accessToken=void 0,this.projectId=void 0}setConfiguration(e,t,n){void 0!==e&&(this.placeholderEndpoint=e),void 0!==t&&(this.requestContentType=t),void 0!==n&&(this.responseAcceptHeader=n)}convertPayloadToProtobuf(e){const t={};for(const[n,r]of Object.entries(e.content.fields))if(r&&"object"==typeof r&&"value"in r){const e=r;let o=e.type;o||(console.warn(`Field '${n}' missing type in protobuf conversion, inferring from value`),o=this.inferSanityType(e.value)),t[n]={value:"string"==typeof e.value?e.value:JSON.stringify(e.value),dnt:e.dnt||!1,type:o}}else console.warn(`Field '${n}' not in TranslatableField format, wrapping with inferred type`),t[n]={value:"string"==typeof r?r:JSON.stringify(r),dnt:!1,type:this.inferSanityType(r)};const n=translation_request.TranslationRequestPayload.create({content:{body:e.content.body,title:e.content.title,slug:e.content.slug,fields:t},project:this.projectId||"",format:e.format,metadata:{documentId:e.metadata.documentId,documentType:e.metadata.documentType,title:e.metadata.title,sourceLanguage:e.metadata.sourceLanguage||"",targetLanguage:e.metadata.targetLanguage||"",targetLocales:e.metadata.targetLocales||[]}});return translation_request.TranslationRequestPayload.encode(n).finish()}convertPayloadToProtobufJSON(e){const t={};for(const[n,r]of Object.entries(e.content.fields))if(r&&"object"==typeof r&&"value"in r){const e=r;t[n]={value:"string"==typeof e.value?e.value:JSON.stringify(e.value),dnt:e.dnt||!1,type:e.type||"unknown"}}else t[n]={value:"string"==typeof r?r:JSON.stringify(r),dnt:!1,type:"unknown"};const n=translation_request.TranslationRequestPayload.create({content:{body:e.content.body,title:e.content.title,slug:e.content.slug,fields:t},project:this.projectId||"",format:e.format,metadata:{documentId:e.metadata.documentId,documentType:e.metadata.documentType,title:e.metadata.title,sourceLanguage:e.metadata.sourceLanguage||"",targetLanguage:e.metadata.targetLanguage||"",targetLocales:e.metadata.targetLocales||[]}});return translation_request.TranslationRequestPayload.toJSON(n)}normalizeTranslatedFields(e){const t={};if(!e||"object"!=typeof e)return t;for(const[n,r]of Object.entries(e))t[n]=r&&"object"==typeof r&&"value"in r?{value:r.value,dnt:r.dnt||!1,type:r.type||this.inferSanityType(r.value)}:{value:r,dnt:!1,type:this.inferSanityType(r)};return t}convertProtobufBinaryToResponse(e){const t=translation_response.TranslationResponse.decode(e),n=t.translatedDocuments.map(e=>{const t={};if(e.fields&&"object"==typeof e.fields)for(const[n,r]of Object.entries(e.fields))if(r&&"object"==typeof r&&"value"in r){const e=r.value,o=r.type;try{const i=JSON.parse(e);t[n]={value:i,dnt:r.dnt||!1,type:o||this.inferSanityType(i)}}catch{t[n]={value:e,dnt:r.dnt||!1,type:o||this.inferSanityType(e)}}}return{body:e.body,title:e.title,slug:e.slug,fields:t,locale:e.locale}});return{success:t.success,translatedDocuments:n,sourceLocale:t.sourceLocale,error:t.error,requestId:t.requestId}}convertProtobufJSONToResponse(e){const t=translation_response.TranslationResponse.fromJSON(e),n=t.translatedDocuments.map((t,n)=>{const r=e.translatedDocuments?.[n],o={};if(t.fields&&"object"==typeof t.fields)for(const[e,n]of Object.entries(t.fields)){const t=r?.fields?.[e];if(n&&"object"==typeof n&&"value"in n){const r=n.value,i=n.type;if(""!==r&&void 0!==r||void 0===t||""===t)try{const t=JSON.parse(r);o[e]={value:t,dnt:n.dnt||!1,type:i||this.inferSanityType(t)}}catch{o[e]={value:r,dnt:n.dnt||!1,type:i||this.inferSanityType(r)}}else o[e]=t}else o[e]=void 0===t||n&&""!==n?n:t}if(r?.fields&&"object"==typeof r.fields)for(const[e,t]of Object.entries(r.fields))e in o||(o[e]=t);const i=this.normalizeTranslatedFields(o);return{body:t.body,title:t.title,slug:t.slug,fields:i,locale:t.locale}});return{success:t.success,translatedDocuments:n,sourceLocale:t.sourceLocale,error:t.error,requestId:t.requestId}}prepareTranslationRequest(e,t="document",n,r,o){if(!e||!e.documentId||!e.htmlContent)throw new Error("Invalid document content provided");const i={};if(e.fields)for(const[t,n]of Object.entries(e.fields))if(n&&"object"==typeof n&&"value"in n){const e=n;e.type||console.warn(`Field '${t}' missing type, inferring from value`),i[t]={...e,type:e.type||this.inferSanityType(e.value)}}else console.warn(`Field '${t}' not in TranslatableField format, converting`),i[t]={value:n,dnt:!1,type:this.inferSanityType(n)};const a={content:{body:e.htmlContent,title:e.title||`Document ${e.documentId}`,slug:e.slug||"",fields:i},format:"html",metadata:{documentId:e.documentId,documentType:t,title:e.title||`Document ${e.documentId}`,...n&&{sourceLanguage:n},...r&&{targetLanguage:r},...o&&o.length>0&&{targetLocales:o}}};return{documentId:e.documentId,endpoint:this.placeholderEndpoint,payload:a}}async translateDocument(e,t="document",n,r,o){const i=this.prepareTranslationRequest(e,t,n,r,o);return this.sendTranslationRequest(i)}async sendTranslationRequest(e){try{this.logTranslationRequest(e);const t={"Content-Type":this.requestContentType,Accept:this.responseAcceptHeader};let n;if(this.accessToken&&(t.Authorization=`Bearer ${this.accessToken}`),"application/x-protobuf"===this.requestContentType)n=this.convertPayloadToProtobuf(e.payload);else{const t=this.convertPayloadToProtobufJSON(e.payload);n=JSON.stringify(t)}const r=await fetch(e.endpoint,{method:"POST",headers:t,body:n});if(!r.ok){if(401===r.status)return{success:!1,error:"Authentication failed. Please check your access token in the Easyling Configuration."};throw new Error(`HTTP error! status: ${r.status}`)}if("application/x-protobuf"===this.responseAcceptHeader){const e=await r.arrayBuffer(),t=new Uint8Array(e);return this.convertProtobufBinaryToResponse(t)}const o=await r.json();try{if(void 0!==o.success&&(o.translatedDocuments||o.error))return this.convertProtobufJSONToResponse(o)}catch(e){console.warn("Failed to parse response as protobuf format, falling back to legacy handling:",e)}if(o.translatedDocuments&&Array.isArray(o.translatedDocuments))return{success:!0,translatedDocuments:o.translatedDocuments.map(e=>({...e,fields:this.normalizeTranslatedFields(e.fields||{})})),sourceLocale:o.sourceLocale,requestId:o.requestId};if(o.translations){const e=[];for(const[t,n]of Object.entries(o.translations))if(n&&"object"==typeof n&&"content"in n){const r=n.content;e.push({...r,fields:this.normalizeTranslatedFields(r.fields||{}),locale:t})}return{success:!0,translatedDocuments:e,sourceLocale:o.sourceLocale,requestId:o.requestId,translations:o.translations}}if(o.translatedContent){const t=e.payload.metadata.targetLanguage||e.payload.metadata.targetLocales?.[0];return{success:!0,translatedDocuments:[{...o.translatedContent,fields:this.normalizeTranslatedFields(o.translatedContent.fields||{}),locale:t}],sourceLocale:e.payload.metadata.sourceLanguage,requestId:o.requestId,translatedContent:o.translatedContent}}if(o.content){const t=e.payload.metadata.targetLanguage||e.payload.metadata.targetLocales?.[0];return{success:!0,translatedDocuments:[{...o.content,fields:this.normalizeTranslatedFields(o.content.fields||{}),locale:t}],sourceLocale:e.payload.metadata.sourceLanguage,requestId:o.requestId,translatedContent:o.content}}throw new Error("Invalid response format: missing translatedDocuments, translations, or translatedContent")}catch(t){return console.error(`Translation request failed for document ${e.documentId}:`,t),{success:!1,error:t instanceof Error?t.message:"Unknown error occurred"}}}logTranslationRequest(e){console.log("Translation Request:",{timestamp:(new Date).toISOString(),documentId:e.documentId,endpoint:e.endpoint,payload:e.payload})}async processBulkTranslation(e,t="document",n,r,o){const i={totalDocuments:e.length,processedDocuments:0,failedDocuments:0,requests:[],responses:[]},a=o?.length||1;console.log(`Starting bulk translation for ${e.length} documents to ${a} locale(s)`);for(const a of e)try{const e=this.prepareTranslationRequest(a,t,n,r,o),s=await this.sendTranslationRequest(e);i.requests.push(e),i.responses.push(s),s.success?i.processedDocuments++:i.failedDocuments++}catch(e){console.error(`Failed to process document ${a.documentId}:`,e),i.failedDocuments++,i.responses.push({success:!1,error:e instanceof Error?e.message:"Unknown error occurred"})}return this.logBulkTranslationSummary(i),i}logBulkTranslationSummary(e){console.log("Bulk Translation Summary:",{timestamp:(new Date).toISOString(),totalDocuments:e.totalDocuments,processedDocuments:e.processedDocuments,failedDocuments:e.failedDocuments,successRate:e.totalDocuments>0?(e.processedDocuments/e.totalDocuments*100).toFixed(2)+"%":"0%"})}setEndpoint(e){this.placeholderEndpoint=e}getEndpoint(){return this.placeholderEndpoint}}const LEGACY_OAUTH_CONFIG_DOC_ID="sanity-translation-plugin.oauth-config",LEGACY_OAUTH_CONFIG_DOC_TYPE="EL_oauth-config";class OAuthConfigStorage{constructor(e){this.client=e,this.unifiedStorage=new UnifiedConfigStorage(e)}async load(){try{const e=await this.unifiedStorage.loadOAuth();if(e)return console.log("Loaded OAuth configuration from unified storage"),e;const t=await this.loadLegacy();return t?(console.log("Migrating OAuth configuration from legacy storage..."),await this.save(t),await this.deleteLegacy(),console.log("OAuth configuration migration complete"),t):(console.log("No OAuth configuration found"),null)}catch(e){throw console.error("Failed to load OAuth configuration:",e),e}}async save(e){try{await this.unifiedStorage.saveOAuth(e),console.log("Saved OAuth configuration to unified storage")}catch(e){throw console.error("Failed to save OAuth configuration:",e),e}}async delete(){try{await this.unifiedStorage.update({projectId:void 0,accessToken:void 0}),console.log("Deleted OAuth configuration")}catch(e){throw console.error("Failed to delete OAuth configuration:",e),e}}async loadLegacy(){try{const e=await this.client.fetch("*[_id == $id][0]",{id:LEGACY_OAUTH_CONFIG_DOC_ID});return e?{projectId:e.projectId,accessToken:e.accessToken}:null}catch(e){return console.error("Failed to load legacy OAuth configuration:",e),null}}async deleteLegacy(){try{await this.client.delete(LEGACY_OAUTH_CONFIG_DOC_ID),console.log("Deleted legacy OAuth configuration document")}catch(e){console.warn("Failed to delete legacy OAuth document:",e)}}}class OAuthServiceManager{constructor(e){this.oauthService=null,this.initialized=!1,this.client=e,this.tokenStorage=new TokenStorage,this.authStateManager=new AuthStateManager(this.tokenStorage),this.translationService=new TranslationService,this.oauthConfigStorage=new OAuthConfigStorage(e),this.unifiedConfigStorage=new UnifiedConfigStorage(e),console.log("OAuthServiceManager created")}static getInstance(e){return OAuthServiceManager.instance||(OAuthServiceManager.instance=new OAuthServiceManager(e)),OAuthServiceManager.instance}static resetInstance(){OAuthServiceManager.instance=null}async initialize(){if(this.initialized)console.log("OAuthServiceManager already initialized");else try{console.log("Initializing OAuth services...");const e=await this.loadOAuthConfig();e?(this.oauthService=new OAuthService(e),console.log("OAuth service initialized with configuration")):console.log("No OAuth configuration found, OAuth features will be disabled"),await this.authStateManager.initialize(),console.log("Authentication state initialized"),await this.setupTranslationServiceAuth(),this.initialized=!0,console.log("OAuth services initialization complete")}catch(e){console.error("Error initializing OAuth services:",e),this.initialized=!0}}async loadOAuthConfig(){try{return await this.oauthConfigStorage.load()}catch(e){return console.error("Failed to load OAuth configuration:",e),null}}async setupTranslationServiceAuth(){try{if(await this.setupTranslationServiceEndpoint(),!this.isOAuthConfigured())return void console.log("Easyling not configured, translation service will use legacy mode");let e=await this.tokenStorage.getAuthData();if(!e){console.log("No stored authentication data found in localStorage, checking Sanity configuration");const t=await this.loadOAuthConfig();if(!(t&&t.accessToken&&t.projectId))return void console.log("No valid configuration found, translation service will use legacy mode");console.log("Found configuration in Sanity, syncing to localStorage"),await this.tokenStorage.storeAuthData({accessToken:t.accessToken,projectId:t.projectId,storedAt:Date.now()}),this.authStateManager.setState("authenticated",{projectId:t.projectId}),e=await this.tokenStorage.getAuthData(),console.log("Successfully synced configuration from Sanity to localStorage")}if(!e)return void console.log("No authentication data available, translation service will use legacy mode");this.translationService.setAuthToken(e.accessToken,e.projectId),console.log("Translation service configured with Easyling authentication"),await this.setupTranslationServiceEndpoint()}catch(e){console.error("Error setting up translation service authentication:",e),console.log("Translation service will fall back to legacy mode");try{await this.setupTranslationServiceEndpoint()}catch(e){console.error("Error setting up translation service endpoint:",e)}}}async setupTranslationServiceEndpoint(){try{const e=await this.unifiedConfigStorage.getTranslationEndpoint();this.translationService.setEndpoint(e),console.log(`Translation service endpoint configured: ${e}`)}catch(e){console.error("Error loading translation service endpoint:",e)}}getOAuthService(){return this.oauthService}getTokenStorage(){return this.tokenStorage}getAuthStateManager(){return this.authStateManager}getTranslationService(){return this.translationService}getOAuthConfigStorage(){return this.oauthConfigStorage}isOAuthConfigured(){return null!==this.oauthService}getAuthenticationMode(){return this.isOAuthConfigured()?"oauth":"legacy"}async isOAuthAuthenticated(){return!!this.isOAuthConfigured()&&(!!await this.tokenStorage.getAuthData()&&!await this.tokenStorage.isTokenExpired())}async getAuthenticationStatus(){const e=this.getAuthenticationMode(),t=this.isOAuthConfigured(),n=await this.isOAuthAuthenticated();return{mode:e,isOAuthConfigured:t,isAuthenticated:n,requiresAuthentication:"oauth"===e&&!n}}isInitialized(){return this.initialized}async saveAuth(e,t){try{await this.tokenStorage.storeAuthData({accessToken:e,projectId:t,storedAt:Date.now()}),this.authStateManager.setState("authenticated",{projectId:t}),this.translationService.setAuthToken(e,t),console.log("Authentication saved successfully")}catch(e){throw console.error("Failed to save authentication:",e),this.authStateManager.setState("error",{error:e instanceof Error?e.message:"Failed to save authentication"}),e}}async logout(){this.translationService.clearAuth(),await this.authStateManager.logout(),console.log("Logged out successfully")}async refreshConfiguration(){try{console.log("Refreshing configuration from Sanity..."),await this.setupTranslationServiceEndpoint(),console.log("Configuration refreshed successfully")}catch(e){throw console.error("Error refreshing configuration:",e),e}}}OAuthServiceManager.instance=null;let isTranslating=!1;const translateDocumentAction=e=>{console.log("translateDocumentAction called with props:",{id:e.id,type:e.type,hasDraft:!!e.draft,hasPublished:!!e.published});const{draft:t,published:n,id:r,type:o,onComplete:i}=e,a=__WEBPACK_EXTERNAL_MODULE_sanity_useClient__({apiVersion:"2023-01-01"}),s=useDialogService(),l=t||n;if(!l)return console.log("no document found"),null;if(["EL_PluginConfiguration","EL_oauth-config","EL_translation-plugin-config"].includes(o))return console.log("Excluding translate action for plugin configuration type:",o),null;console.log("translateDocumentAction returning action for document:",r);const c={label:isTranslating?"Translating...":"Translate",icon:TranslateIcon,onHandle:async()=>{if(!isTranslating){isTranslating=!0;try{const e=new ContentExtractor,t=new DocumentCreationService(a),n=new SanityLocaleStorageAdapter(a),r=new LocaleService(n),c=OAuthServiceManager.getInstance(a);await c.refreshConfiguration();const u=c.getTranslationService(),d=c.getAuthStateManager().getState();if(c.isOAuthConfigured()&&"authenticated"!==d.state)return void await s.showError({title:"Authentication Required",message:"You need to configure your Easyling credentials to use translation services.",error:new Error("Please go to the Easyling Configuration tool to enter your access token and project ID.")});await r.loadConfig();const f=r.getEnabledLocales();if(0===f.length)return void await s.showError({title:"No Locales Configured",message:"Please configure target locales before translating documents.",error:new Error("No translation locales have been configured. Please use the Locale Configuration tool to add target languages.")});const h=await e.extractStructuredContent(l);if(!h.htmlContent||0===h.htmlContent.trim().length)return void await s.showError({title:"Translation Failed",message:"No translatable content found in this document.",error:new Error("The document does not contain any translatable content.")});const p=await s.showLocaleSelection({title:"Select Target Locales",message:`Choose the languages to translate "${h.title}" into:`,availableLocales:f,selectedLocales:[],selectedDocuments:[l],mode:"single",allowMultiple:!0,required:!0,showCreationModeOption:!0,defaultCreationMode:"draft"});if(!p||!p.locales||0===p.locales.length)return;const m=p.locales,g=p.creationMode||"draft";if(!await s.showConfirmation({title:"Confirm Translation",message:`Translate "${h.title}" to ${m.length} locale(s)?`,details:`This will:\n• Send the translation request for ${m.length} locale(s)\n• Create new documents with translated content\n• Preserve the original document structure`,confirmText:"Translate & Create Documents",cancelText:"Cancel",tone:"primary"}))return;console.log(`Sending translation request for "${h.title}" to ${m.length} locale(s)...`),console.log("Selected locales:",m);const _=await u.translateDocument(h,o,void 0,void 0,m);if(!_.success)throw console.error(`Translation failed for "${h.title}":`,_.error),new Error(_.error||"Translation request failed");{console.log(`Translation completed successfully for "${h.title}"`),console.log("Translated documents:",_.translatedDocuments),_.requestId&&console.log("Request ID:",_.requestId);const e=_.translatedDocuments||(_.translatedContent?[_.translatedContent]:[]);if(e.length>0){console.log(`Creating ${e.length} new translated document(s)...`);const n=[];let r=0,o=0;for(let i=0;i<e.length;i++){const a=e[i],s=a.fields?.locale,c=(s&&"object"==typeof s&&"value"in s?s.value:s)||a.locale||m[i]||m[0];console.log(`Creating document ${i+1}/${e.length} for locale: ${c}`);const u={..._,translatedDocuments:[a],translatedContent:a},d=await t.createDocumentFromTranslation(l,u,{targetLanguage:c,createAsVariant:!0,parentDocumentId:l._id,creationMode:g});n.push(d),d.success?(r++,console.log(`Document ${i+1} created successfully with ID: ${d.documentId}`),console.log("New document structure:",d.document)):(o++,console.error(`Failed to create document ${i+1}:`,d.error))}if(r===e.length){const e=n.filter(e=>e.success).map(e=>e.documentId).join("\n");s.showSuccess({title:"Translation Completed",message:`Successfully translated "${h.title}" to ${r} locale(s)`,details:`Created ${r} new document(s):\n${e}\n\nTarget locale(s): ${m.join(", ")}`})}else if(r>0){const t=n.filter(e=>e.success).map(e=>e.documentId).join("\n"),i=n.filter(e=>!e.success).map(e=>e.error).join("\n");await s.showError({title:"Partial Translation Success",message:`Created ${r} of ${e.length} documents. ${o} failed.`,error:new Error(`Successfully created:\n${t}\n\nErrors:\n${i}`)})}else{const e=n.map(e=>e.error).join("\n");await s.showError({title:"Document Creation Failed",message:"Translation completed, but failed to create any documents.",error:new Error(e||"Unknown error during document creation")})}}}i&&i()}catch(e){console.error("Translation failed:",e);const t=e instanceof Error?e.message:"An unexpected error occurred";console.error(`Failed to translate document: ${t}`),await s.showError({title:"Translation Failed",message:"An error occurred during translation.",error:e instanceof Error?e:new Error(t),showRetry:!0})}finally{isTranslating=!1}}},tone:"primary",disabled:isTranslating};return console.log("translateDocumentAction returning action:",c),c},BulkTranslateTool=()=>{const e=__WEBPACK_EXTERNAL_MODULE_sanity_useClient__(),t=useDialogService(),[n,r]=(0,external_react_.useState)({isProcessing:!1,isLoadingDocuments:!1,selectedDocuments:[],availableDocuments:{},selectedTypes:new Set,selectedDocumentIds:new Set,expandedTypes:new Set,summary:null,error:null,processingStatus:[],currentProcessingIndex:-1,createDocuments:!1,documentCreationResult:null,selectedLocales:null}),o=(0,external_react_.useCallback)(async()=>{r(e=>({...e,isLoadingDocuments:!0,error:null}));try{const t='*[!(_id in path("_.**")) && !(_type match "sanity.**") && !(_type match "EL_*")] | order(_createdAt desc) {\n _id,\n _type,\n _createdAt,\n _updatedAt,\n _rev,\n title,\n name,\n heading,\n label,\n ...\n }';console.log("Fetching documents from Sanity...");const n=await e.fetch(t);console.log(`Fetched ${n.length} documents`);const o={};n.forEach(e=>{o[e._type]||(o[e._type]=[]),o[e._type].push(e)}),Object.keys(o).forEach(e=>{console.log(`Type "${e}": ${o[e].length} documents`)}),r(e=>({...e,availableDocuments:o,isLoadingDocuments:!1}))}catch(e){console.error("Failed to fetch documents:",e),r(t=>({...t,error:e instanceof Error?e.message:"Failed to fetch documents",isLoadingDocuments:!1}))}},[e]);(0,external_react_.useEffect)(()=>{o()},[o]);const i=(0,external_react_.useCallback)((e,t)=>{r(n=>{const r=new Set(n.selectedTypes),o=new Set(n.selectedDocumentIds);t?(r.add(e),n.availableDocuments[e]&&n.availableDocuments[e].forEach(e=>{o.add(e._id)})):(r.delete(e),n.availableDocuments[e]&&n.availableDocuments[e].forEach(e=>{o.delete(e._id)}));const i=Object.values(n.availableDocuments).flat().filter(e=>o.has(e._id)),a=i.map(e=>({documentId:e._id,title:u(e),status:"pending"}));return{...n,selectedTypes:r,selectedDocumentIds:o,selectedDocuments:i,processingStatus:a,summary:null,error:null,currentProcessingIndex:-1}})},[]),a=(0,external_react_.useCallback)((e,t)=>{r(n=>{const r=new Set(n.selectedDocumentIds),o=new Set(n.selectedTypes);t?r.add(e._id):(r.delete(e._id),(n.availableDocuments[e._type]||[]).some(t=>t._id!==e._id&&r.has(t._id))||o.delete(e._type));const i=n.availableDocuments[e._type]||[];i.every(e=>r.has(e._id))&&i.length>0&&o.add(e._type);const a=Object.values(n.availableDocuments).flat().filter(e=>r.has(e._id)),s=a.map(e=>({documentId:e._id,title:u(e),status:"pending"}));return{...n,selectedTypes:o,selectedDocumentIds:r,selectedDocuments:a,processingStatus:s,summary:null,error:null,currentProcessingIndex:-1}})},[]),s=(0,external_react_.useCallback)(e=>{r(t=>{const n=new Set(t.expandedTypes);return n.has(e)?n.delete(e):n.add(e),{...t,expandedTypes:n}})},[]),l=(0,external_react_.useCallback)(()=>{const e=Object.keys(n.availableDocuments),t=Object.values(n.availableDocuments).flat(),o=new Set(t.map(e=>e._id)),i=t.map(e=>({documentId:e._id,title:u(e),status:"pending"}));r(n=>({...n,selectedTypes:new Set(e),selectedDocumentIds:o,selectedDocuments:t,processingStatus:i,summary:null,error:null,currentProcessingIndex:-1,documentCreationResult:null}))},[n.availableDocuments]),c=(0,external_react_.useCallback)(()=>{r(e=>({...e,selectedTypes:new Set,selectedDocumentIds:new Set,selectedDocuments:[],processingStatus:[],summary:null,error:null,currentProcessingIndex:-1,documentCreationResult:null}))},[]),u=e=>{const t=["title","name","heading","label"];for(const n of t)if(e[n]&&"string"==typeof e[n])return e[n];return`${e._type} (${e._id})`},d=(0,external_react_.useCallback)(async()=>{if(0!==n.selectedDocuments.length)try{const o=OAuthServiceManager.getInstance(e),i=o.getAuthStateManager().getState();if(o.isOAuthConfigured()&&"authenticated"!==i.state)return void await t.showError({title:"Authentication Required",message:"You need to configure your Easyling credentials to use translation services.",error:new Error("Please go to the Easyling Configuration tool to enter your access token and project ID.")});const a=new SanityLocaleStorageAdapter(e),s=new LocaleService(a);await s.loadConfig();const l=s.getEnabledLocales();if(0===l.length)return void await t.showError({title:"No Locales Configured",message:"Please configure target locales before translating documents.",error:new Error("No translation locales have been configured. Please use the Locale Configuration tool to add target languages.")});const c=await t.showLocaleSelection({title:"Select Target Locales",message:`Choose the languages to translate ${n.selectedDocuments.length} document${1!==n.selectedDocuments.length?"s":""} into:`,availableLocales:l,selectedLocales:[],selectedDocuments:n.selectedDocuments,mode:"bulk",allowMultiple:!0,required:!0,showCreationModeOption:!0,defaultCreationMode:"draft"});if(!c||!c.locales||0===c.locales.length)return;const u=c.locales,d=c.creationMode||"draft",f=await t.showConfirmation({title:"Confirm Bulk Translation",message:`Translate ${n.selectedDocuments.length} document${1!==n.selectedDocuments.length?"s":""} to ${u.length} locale${1!==u.length?"s":""}?`,details:`This will:\n• Send translation requests for all selected documents\n• Create new documents with translated content for successful translations\n• Preserve the original document structures\n\nTarget locales: ${u.join(", ")}`,confirmText:"Translate & Create Documents",cancelText:"Cancel",tone:"primary"});if(!f)return;r(e=>({...e,isProcessing:!0,error:null,summary:null,currentProcessingIndex:0,createDocuments:f,documentCreationResult:null,selectedLocales:u}));const h=new ContentExtractor,p=o.getTranslationService(),m=new DocumentCreationService(e);console.log(`Starting bulk translation for ${n.selectedDocuments.length} documents`);const g=(await h.extractBulkStructuredContent(n.selectedDocuments)).filter(e=>{const t=e.htmlContent&&e.htmlContent.trim().length>0;return t||r(t=>({...t,processingStatus:t.processingStatus.map(t=>t.documentId===e.documentId?{...t,status:"failed",error:"No translatable content found"}:t)})),t});if(0===g.length)throw new Error("No translatable content found in selected documents");console.log(`Processing ${g.length} documents with valid content`);const _={totalDocuments:n.selectedDocuments.length,processedDocuments:0,failedDocuments:0,requests:[],responses:[]};for(let e=0;e<g.length;e++){const t=g[e];r(n=>({...n,currentProcessingIndex:e,processingStatus:n.processingStatus.map(e=>e.documentId===t.documentId?{...e,status:"processing"}:e)}));try{const e=p.prepareTranslationRequest(t,void 0,void 0,void 0,u),n=await p.sendTranslationRequest(e);_.requests.push(e),_.responses.push(n),n.success?(_.processedDocuments++,r(e=>({...e,processingStatus:e.processingStatus.map(e=>e.documentId===t.documentId?{...e,status:"completed",response:n}:e)}))):(_.failedDocuments++,r(e=>({...e,processingStatus:e.processingStatus.map(e=>e.documentId===t.documentId?{...e,status:"failed",error:n.error,response:n}:e)}))),await new Promise(e=>setTimeout(e,500))}catch(e){console.error(`Failed to process document ${t.documentId}:`,e),_.failedDocuments++;const n=e instanceof Error?e.message:"Unknown error occurred";_.responses.push({success:!1,error:n}),r(e=>({...e,processingStatus:e.processingStatus.map(e=>e.documentId===t.documentId?{...e,status:"failed",error:n}:e)}))}}let x=null;if(f&&_.processedDocuments>0){console.log("Creating new documents from successful translations...");const e=_.responses.filter(e=>e.success),t=n.selectedDocuments.filter(e=>{const t=_.responses.findIndex((t,n)=>{const r=_.requests[n];return r&&r.documentId===e._id});return t>=0&&_.responses[t].success});t.length>0&&e.length>0&&(x=await m.createBulkDocumentsFromTranslations(t,e,{targetLanguage:"translated",createAsVariant:!0,creationMode:d}),console.log("Document Creation Summary:",{totalDocuments:x.totalDocuments,successfulCreations:x.successfulCreations,failedCreations:x.failedCreations,errors:x.errors}))}console.log("Bulk Translation Summary:",{timestamp:(new Date).toISOString(),totalDocuments:_.totalDocuments,processedDocuments:_.processedDocuments,failedDocuments:_.failedDocuments,successRate:_.totalDocuments>0?(_.processedDocuments/_.totalDocuments*100).toFixed(2)+"%":"0%"}),r(e=>({...e,summary:_,documentCreationResult:x,isProcessing:!1,currentProcessingIndex:-1})),console.log("Bulk translation completed:",_),f&&x?t.showSuccess({title:"Bulk Translation Completed",message:`Successfully translated ${_.processedDocuments} of ${_.totalDocuments} documents to ${u.length} locale${1!==u.length?"s":""}`,details:`Translations: ${_.processedDocuments}/${_.totalDocuments} successful\nDocuments created: ${x.successfulCreations}/${x.totalDocuments} successful\nTarget locales: ${u.join(", ")}\n\nCheck the console for detailed results and new document structures.`}):t.showSuccess({title:"Bulk Translation Completed",message:`Successfully translated ${_.processedDocuments} of ${_.totalDocuments} documents`,details:`Translations: ${_.processedDocuments}/${_.totalDocuments} successful\nTarget locales: ${u.join(", ")}\n\nTranslation responses have been logged to the console for verification.`})}catch(e){console.error("Bulk translation failed:",e),await t.showError({title:"Bulk Translation Failed",message:"An error occurred during bulk translation.",error:e instanceof Error?e:new Error("An unexpected error occurred")}),r(t=>({...t,error:e instanceof Error?e.message:"An unexpected error occurred",isProcessing:!1,currentProcessingIndex:-1}))}else await t.showError({title:"No Documents Selected",message:"Please select at least one document to translate.",error:new Error("No documents selected for translation")})},[n.selectedDocuments,e,t]);return(0,jsx_runtime.jsx)(Card,{padding:4,children:(0,jsx_runtime.jsxs)(Stack,{space:4,children:[(0,jsx_runtime.jsx)(Text,{size:2,weight:"semibold",children:"Bulk Document Translation"}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Select multiple documents to translate them in batch. Translation requests will be logged to the console for verification."}),(0,jsx_runtime.jsx)(Card,{padding:3,border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Document Selection"}),(0,jsx_runtime.jsxs)(Flex,{gap:2,children:[(0,jsx_runtime.jsx)(Button,{text:"Refresh",icon:RefreshIcon,onClick:o,disabled:n.isLoadingDocuments,mode:"ghost",fontSize:1}),n.selectedDocuments.length>0&&(0,jsx_runtime.jsx)(Button,{text:"Clear All",tone:"critical",mode:"ghost",onClick:c,fontSize:1})]})]}),n.isLoadingDocuments?(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,children:[(0,jsx_runtime.jsx)(Spinner,{size:1}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"Loading documents..."})]}):0===Object.keys(n.availableDocuments).length?(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:"No documents found"}):(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Text,{size:1,children:["Selected: ",n.selectedDocuments.length," documents from ",n.selectedTypes.size," types"]}),(0,jsx_runtime.jsx)(Button,{text:"Select All Types",onClick:l,mode:"ghost",fontSize:1})]}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Document Types"}),Object.entries(n.availableDocuments).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>{const r=n.expandedTypes.has(e),o=t.filter(e=>n.selectedDocumentIds.has(e._id)).length,l=o>0&&o<t.length,c=o===t.length;return(0,jsx_runtime.jsx)(Card,{padding:2,border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,children:[(0,jsx_runtime.jsx)(Checkbox,{checked:c,indeterminate:l,onChange:t=>i(e,t.currentTarget.checked)}),(0,jsx_runtime.jsx)(Button,{icon:r?ChevronDownIcon:dist_ChevronRightIcon,mode:"ghost",onClick:()=>s(e),style:{minWidth:"auto",padding:"4px"}}),(0,jsx_runtime.jsxs)(Box,{children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:e}),(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,children:[o,"/",t.length," selected • Latest: ",new Date(t[0]._createdAt).toLocaleDateString()]})]})]}),(0,jsx_runtime.jsx)(Badge,{tone:o>0?"positive":"primary",fontSize:0,children:o>0?`${o}/${t.length}`:t.length})]}),r&&(0,jsx_runtime.jsx)(Box,{style:{marginLeft:"32px"},children:(0,jsx_runtime.jsx)(Stack,{space:1,children:t.map(e=>(0,jsx_runtime.jsx)(Card,{padding:2,tone:"transparent",border:!0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,children:[(0,jsx_runtime.jsx)(Checkbox,{checked:n.selectedDocumentIds.has(e._id),onChange:t=>a(e,t.currentTarget.checked)}),(0,jsx_runtime.jsxs)(Box,{children:[(0,jsx_runtime.jsx)(Text,{size:1,children:u(e)}),(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,children:[e._id," • ",new Date(e._createdAt).toLocaleDateString()]})]})]}),n.selectedDocumentIds.has(e._id)&&(0,jsx_runtime.jsx)(Badge,{tone:"positive",fontSize:0,children:"Selected"})]})},e._id))})})]})},e)})]}),n.selectedDocuments.length>0&&(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsxs)(Text,{size:1,weight:"medium",children:["Selected Documents (",n.selectedDocuments.length,")"]}),(0,jsx_runtime.jsx)(Box,{style:{maxHeight:"200px",overflowY:"auto"},children:(0,jsx_runtime.jsxs)(Stack,{space:1,children:[n.selectedDocuments.slice(0,10).map(e=>(0,jsx_runtime.jsx)(Card,{padding:2,tone:"primary",children:(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Box,{children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:u(e)}),(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,children:[e._type," • ",new Date(e._createdAt).toLocaleDateString()]})]}),(0,jsx_runtime.jsx)(Badge,{tone:"primary",fontSize:0,children:e._type})]})},e._id)),n.selectedDocuments.length>10&&(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,style:{textAlign:"center",padding:"8px"},children:["... and ",n.selectedDocuments.length-10," more documents"]})]})})]})]})]})}),n.selectedDocuments.length>0&&(0,jsx_runtime.jsx)(Card,{padding:3,border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Translation Action"}),n.selectedLocales&&n.selectedLocales.length>0&&(0,jsx_runtime.jsx)(Card,{padding:2,tone:"primary",children:(0,jsx_runtime.jsxs)(Text,{size:1,children:["Target Locales: ",n.selectedLocales.join(", ")]})}),(0,jsx_runtime.jsx)(Button,{text:n.isProcessing?"Processing...":`Translate ${n.selectedDocuments.length} Documents`,icon:n.isProcessing?Spinner:TranslateIcon,onClick:d,tone:"primary",disabled:n.isProcessing})]})}),n.isProcessing&&n.processingStatus.length>0&&(0,jsx_runtime.jsx)(Card,{padding:3,border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Translation Progress"}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Text,{size:1,children:["Overall Progress: ",n.currentProcessingIndex+1," of ",n.selectedDocuments.length]}),(0,jsx_runtime.jsx)(Text,{size:1,muted:!0,children:n.currentProcessingIndex>=0?`${Math.round((n.currentProcessingIndex+1)/n.selectedDocuments.length*100)}%`:"0%"})]}),(0,jsx_runtime.jsx)(Box,{style:{width:"100%",height:"8px",backgroundColor:"#e0e0e0",borderRadius:"4px",overflow:"hidden"},children:(0,jsx_runtime.jsx)(Box,{style:{width:(n.currentProcessingIndex>=0?(n.currentProcessingIndex+1)/n.selectedDocuments.length*100:0)+"%",height:"100%",backgroundColor:"#0066cc",transition:"width 0.3s ease"}})})]}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Document Status"}),n.processingStatus.map(e=>(0,jsx_runtime.jsx)(Card,{padding:2,border:!0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Box,{flex:1,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:e.title}),(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,children:["ID: ",e.documentId]}),e.error&&(0,jsx_runtime.jsxs)(Text,{size:0,style:{color:"red"},children:["Error: ",e.error]})]}),(0,jsx_runtime.jsxs)(Box,{children:["pending"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"default",fontSize:0,children:"Pending"}),"processing"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"primary",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(Spinner,{size:0}),"Processing"]})}),"completed"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"positive",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(CheckmarkIcon,{}),"Completed"]})}),"failed"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"critical",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(dist_CloseIcon,{}),"Failed"]})})]})]})},e.documentId))]})]})}),n.error&&(0,jsx_runtime.jsx)(Card,{padding:3,tone:"critical",border:!0,children:(0,jsx_runtime.jsxs)(Text,{size:1,weight:"medium",children:["Error: ",n.error]})}),n.summary&&(0,jsx_runtime.jsx)(Card,{padding:3,tone:0===n.summary.failedDocuments?"positive":"caution",border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,children:[0===n.summary.failedDocuments?(0,jsx_runtime.jsx)(CheckmarkIcon,{style:{color:"green"}}):(0,jsx_runtime.jsx)(WarningOutlineIcon,{style:{color:"orange"}}),(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Translation Summary"})]}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Total Documents:"}),(0,jsx_runtime.jsx)(Badge,{tone:"primary",children:n.summary.totalDocuments})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Successfully Processed:"}),(0,jsx_runtime.jsx)(Badge,{tone:"positive",children:n.summary.processedDocuments})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Failed:"}),(0,jsx_runtime.jsx)(Badge,{tone:"critical",children:n.summary.failedDocuments})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Success Rate:"}),(0,jsx_runtime.jsx)(Badge,{tone:0===n.summary.failedDocuments?"positive":"caution",children:n.summary.totalDocuments>0?`${(n.summary.processedDocuments/n.summary.totalDocuments*100).toFixed(1)}%`:"0%"})]})]}),n.processingStatus.length>0&&(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Detailed Results"}),n.processingStatus.map(e=>(0,jsx_runtime.jsx)(Card,{padding:2,border:!0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsxs)(Box,{flex:1,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:e.title}),(0,jsx_runtime.jsxs)(Text,{size:0,muted:!0,children:["ID: ",e.documentId]}),e.error&&(0,jsx_runtime.jsxs)(Text,{size:0,style:{color:"red"},children:["Error: ",e.error]})]}),(0,jsx_runtime.jsxs)(Box,{children:["pending"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"default",fontSize:0,children:"Pending"}),"processing"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"primary",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(Spinner,{size:0}),"Processing"]})}),"completed"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"positive",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(CheckmarkIcon,{}),"Completed"]})}),"failed"===e.status&&(0,jsx_runtime.jsx)(Badge,{tone:"critical",fontSize:0,children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[(0,jsx_runtime.jsx)(dist_CloseIcon,{}),"Failed"]})})]})]})},e.documentId))]})]})}),n.documentCreationResult&&(0,jsx_runtime.jsx)(Card,{padding:3,tone:0===n.documentCreationResult.failedCreations?"positive":"caution",border:!0,children:(0,jsx_runtime.jsxs)(Stack,{space:3,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,children:[0===n.documentCreationResult.failedCreations?(0,jsx_runtime.jsx)(CheckmarkIcon,{style:{color:"green"}}):(0,jsx_runtime.jsx)(WarningOutlineIcon,{style:{color:"orange"}}),(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Document Creation Summary"})]}),(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Documents to Create:"}),(0,jsx_runtime.jsx)(Badge,{tone:"primary",children:n.documentCreationResult.totalDocuments})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Successfully Created:"}),(0,jsx_runtime.jsx)(Badge,{tone:"positive",children:n.documentCreationResult.successfulCreations})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Failed to Create:"}),(0,jsx_runtime.jsx)(Badge,{tone:"critical",children:n.documentCreationResult.failedCreations})]}),(0,jsx_runtime.jsxs)(Flex,{align:"center",justify:"space-between",children:[(0,jsx_runtime.jsx)(Text,{size:1,children:"Creation Success Rate:"}),(0,jsx_runtime.jsx)(Badge,{tone:0===n.documentCreationResult.failedCreations?"positive":"caution",children:n.documentCreationResult.totalDocuments>0?`${(n.documentCreationResult.successfulCreations/n.documentCreationResult.totalDocuments*100).toFixed(1)}%`:"0%"})]})]}),n.documentCreationResult.errors.length>0&&(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Text,{size:1,weight:"medium",children:"Creation Errors"}),(0,jsx_runtime.jsx)(Box,{style:{maxHeight:"150px",overflowY:"auto"},children:(0,jsx_runtime.jsx)(Stack,{space:1,children:n.documentCreationResult.errors.map((e,t)=>(0,jsx_runtime.jsx)(Card,{padding:2,tone:"critical",children:(0,jsx_runtime.jsx)(Text,{size:0,style:{color:"red"},children:e})},t))})})]})]})})]})})},bulkTranslateTool={name:"bulk-translate",title:"Bulk Translate",icon:TranslateIcon,component:BulkTranslateTool},manageDNTFieldsAction=e=>{const{id:t,type:n,draft:r,published:o}=e,i=useDialogService(),[a,s]=(0,external_react_.useState)(!1),l=r||o,c=t;if(["EL_PluginConfiguration","EL_oauth-config","EL_translation-plugin-config"].includes(n))return{label:"Manage Translation Fields",icon:BlockElementIcon,disabled:!0,hidden:!0};const u=(0,external_react_.useCallback)(async()=>{if(!l)return void await i.showError({title:"No Document",message:"Cannot manage DNT fields: No document available"});const e=[],t=(n,r="")=>{if(n&&"object"==typeof n)for(const[o,i]of Object.entries(n)){if(o.startsWith("_"))continue;const n=r?`${r}.${o}`:o;"string"==typeof i||"number"==typeof i||Array.isArray(i)?e.push({path:n,value:i,type:typeof i}):i&&"object"==typeof i&&t(i,n)}};t(l);const r=getDNTStorage(),o=await r.getFieldsForType(n),a=e.map(e=>({...e,isDNT:o[e.path]||!1})),s=a.length>0?`Found ${a.length} translatable fields in this ${n} document. Use the field badges to toggle DNT status. Settings apply to ALL ${n} documents.`:"No translatable fields found in this document.";await i.showConfirmation({title:"Manage Translation Fields",message:s,confirmText:a.length>0?`Clear All DNT Settings for ${n}`:"OK",cancelText:"Close",tone:"primary"})&&a.length>0&&(await r.clearFieldsForType(n),await i.showSuccess({title:"DNT Settings Cleared",message:`All fields in ${n} documents are now marked as translatable.`}))},[l,c,i]);return{label:"Manage Translation Fields",icon:BlockElementIcon,onHandle:u,disabled:!l}},PasswordInput=e=>{const{elementProps:t,onChange:n,value:r=""}=e,o=external_react_.default.useCallback(e=>{const t=e.currentTarget.value;n(t?__WEBPACK_EXTERNAL_MODULE_sanity_set__(t):__WEBPACK_EXTERNAL_MODULE_sanity_unset__())},[n]);return(0,jsx_runtime.jsx)(TextInput,{...t,type:"password",value:r,onChange:o})};function DNTFieldBadge(e){const{documentId:t,documentType:n,fieldPath:r,fieldTitle:o}=e,[i,a]=(0,external_react_.useState)(!1),[s,l]=(0,external_react_.useState)(!0);(0,external_react_.useEffect)(()=>{n&&r&&(async()=>{try{l(!0);const e=getDNTStorage(),t=await e.getFieldDNT(n,r);a(t)}catch(e){console.error("Failed to load DNT status:",e)}finally{l(!1)}})()},[n,r]);const c=(0,external_react_.useCallback)(async()=>{try{const e=getDNTStorage(),t=await e.toggleFieldDNT(n,r);a(t)}catch(e){console.error("Failed to toggle DNT status:",e)}},[n,r]);if(s)return null;const u=i?`This field will NOT be translated for ALL ${n} documents. Click to make it translatable.`:`This field will be translated. Click to mark as "Do Not Translate" for ALL ${n} documents.`;return(0,jsx_runtime.jsx)(Tooltip,{content:(0,jsx_runtime.jsxs)(Flex,{padding:2,direction:"column",gap:2,children:[(0,jsx_runtime.jsx)("div",{style:{fontWeight:"bold"},children:o||r}),(0,jsx_runtime.jsx)("div",{children:u})]}),placement:"top",children:(0,jsx_runtime.jsx)(Button,{mode:"bleed",padding:2,onClick:c,style:{minHeight:"auto"},children:(0,jsx_runtime.jsx)(Badge,{tone:i?"critical":"positive",mode:i?"default":"outline",children:(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:1,children:[i?(0,jsx_runtime.jsx)(BlockElementIcon,{}):(0,jsx_runtime.jsx)(TranslateIcon,{}),(0,jsx_runtime.jsx)("span",{style:{fontSize:"0.75rem"},children:i?"DNT":"Translate"})]})})})})}function withDNTBadge(e){return function(t){const{documentId:n,documentType:r,...o}=t,i=o,a=i.path?.join(".")||"",s=i.schemaType?.title;return n&&a?(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(e,{...i}),(0,jsx_runtime.jsx)("div",{style:{marginTop:"0.25rem"},children:(0,jsx_runtime.jsx)(DNTFieldBadge,{documentId:n,documentType:r||"document",fieldPath:a,fieldTitle:s})})]}):(0,jsx_runtime.jsx)(e,{...i})}}function DNTFieldInput(e){const{renderDefault:t,schemaType:n,path:r}=e,o=__WEBPACK_EXTERNAL_MODULE_sanity_useFormValue__([]),i=o?._id,a=o?._type,s=r?.join(".")||"",l=n?.title||s;if(a&&["EL_PluginConfiguration","EL_oauth-config","EL_translation-plugin-config"].includes(a))return t(e);const[c,u]=(0,external_react_.useState)(!1),[d,f]=(0,external_react_.useState)(!0);(0,external_react_.useEffect)(()=>{a&&s?(async()=>{try{const e=getDNTStorage(),t=await e.getFieldDNT(a,s);u(t)}catch(e){console.error("Failed to load DNT status:",e)}finally{f(!1)}})():f(!1)},[a,s]);const h=(0,external_react_.useCallback)(async()=>{if(a&&s)try{const e=getDNTStorage(),t=await e.toggleFieldDNT(a,s);u(t)}catch(e){console.error("Failed to toggle DNT:",e)}},[a,s]);if(!i||!s||s.startsWith("_"))return t(e);const p=c?`This field will NOT be translated for ALL ${a} documents. Click to make it translatable.`:`This field will be translated. Click to mark as "Do Not Translate" for ALL ${a} documents.`;return(0,jsx_runtime.jsxs)(Stack,{space:2,children:[(0,jsx_runtime.jsx)(Box,{children:t(e)}),!d&&(0,jsx_runtime.jsxs)(Flex,{align:"center",gap:2,paddingTop:2,children:[(0,jsx_runtime.jsx)(Tooltip,{content:(0,jsx_runtime.jsx)(Box,{padding:2,children:(0,jsx_runtime.jsx)(Text,{size:1,children:p})}),placement:"top",children:(0,jsx_runtime.jsx)(Button,{mode:"ghost",tone:c?"critical":"positive",padding:2,fontSize:1,onClick:h,icon:c?BlockElementIcon:TranslateIcon,text:c?"Do Not Translate":"Will Translate"})}),(0,jsx_runtime.jsxs)(Text,{muted:!0,size:1,children:["Translation: ",(0,jsx_runtime.jsx)("strong",{children:c?"Disabled":"Enabled"})," for ",l]})]})]})}console.log("Loading sanity-translation-plugin...");const legacyOAuthConfigSchema={name:"EL_oauth-config",title:"Easyling Configuration (Legacy)",type:"document",hidden:!0,fields:[{name:"projectId",title:"Project ID",type:"string",description:"Your Easyling project ID",validation:e=>e.required()},{name:"accessToken",title:"Access Token",type:"string",description:"Long-lived access token provided by Easyling (hidden for security)",validation:e=>e.required(),components:{input:PasswordInput}},{name:"lastUpdated",title:"Last Updated",type:"datetime",readOnly:!0}]};function StudioLayout(e){const t=__WEBPACK_EXTERNAL_MODULE_sanity_useClient__({apiVersion:"2023-01-01"}),[n,r]=external_react_.default.useState(!1);return(0,external_react_.useEffect)(()=>{(async()=>{try{const e=OAuthServiceManager.getInstance(t);await e.initialize(),DNTServiceManager.getInstance(t).initialize(t),console.log("Services initialized successfully"),r(!0)}catch(e){console.error("Failed to initialize services:",e),r(!0)}})()},[t]),(0,jsx_runtime.jsx)(dialogService_DialogProvider,{children:e.renderDefault(e)})}const src_plugin=__WEBPACK_EXTERNAL_MODULE_sanity_definePlugin__({name:"sanity-translation-plugin",studio:{components:{layout:StudioLayout}},document:{actions:e=>{console.log("Document actions being registered, previous actions:",e.length);const t=[...e,translateDocumentAction,manageDNTFieldsAction];return console.log("New actions array length:",t.length),t}},form:{components:{field:e=>{const t=e.schemaType?.type?.name,n=e.schemaType?.name,r=e.path?.join("."),o=["locale","_type","_id","_rev","_createdAt","_updatedAt"],i=o.includes(n||"")||o.some(e=>r?.includes(e)),a=t&&["date","datetime","image","file","reference","boolean","object","document","slug"].includes(t);return t&&["string","text","number","url","email","array"].includes(t)&&!i&&!a?DNTFieldInput(e):e.renderDefault(e)}}},tools:e=>{console.log("Tools being registered, previous tools:",e.length);const t=[...e,bulkTranslateTool];return console.log("New tools array length:",t.length),t},schema:{types:[createPluginConfigSchema(PasswordInput),legacyLocaleConfigSchema,legacyOAuthConfigSchema]}});export{DNTFieldBadge,DNTFieldInput,DNTServiceManager,DNTStorageAdapter,LegacyDNTStorageAdapter,UnifiedConfigStorage,createPluginConfigSchema,src_plugin as default,getDNTStorage,pluginConfigSchema,withDNTBadge};
|