@kition/kit-sheet-ui 0.0.0-stage → 0.1.4
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/package.json +40 -4
- package/sheet-ui/LICENSE +177 -0
- package/sheet-ui/NOTICE +73 -0
- package/sheet-ui/THIRD_PARTY_NOTICES.txt +8905 -0
- package/sheet-ui/agent/checks.json +56 -0
- package/sheet-ui/agent/guide.md +340 -0
- package/sheet-ui/assets/dev-D8UCHOb0.js +1 -0
- package/sheet-ui/assets/index-16dHlxGR.js +98 -0
- package/sheet-ui/assets/index-CcQhqOwu.css +1 -0
- package/sheet-ui/assets/index-DblcoJ90.js +1 -0
- package/sheet-ui/assets/kitEngine.worker-9PIHJagj-Dwbox6hp.js +13020 -0
- package/sheet-ui/assets/ko-Fe7YrdBh.js +274 -0
- package/sheet-ui/assets/pt-BK3ToRXt.js +275 -0
- package/sheet-ui/assets/ru-Di_jxcA2.js +274 -0
- package/sheet-ui/assets/symbolNames--e2SA9f6.js +3120 -0
- package/sheet-ui/assets/zh-C0AkZS0b.js +274 -0
- package/sheet-ui/engine/kition_sheet_kit.js +1126 -0
- package/sheet-ui/engine/kition_sheet_kit_bg.wasm +0 -0
- package/sheet-ui/fonts/Arimo-Italic-Variable.ttf +0 -0
- package/sheet-ui/fonts/Arimo-Variable.ttf +0 -0
- package/sheet-ui/fonts/Caladea-Bold.ttf +0 -0
- package/sheet-ui/fonts/Caladea-BoldItalic.ttf +0 -0
- package/sheet-ui/fonts/Caladea-Italic.ttf +0 -0
- package/sheet-ui/fonts/Caladea-Regular.ttf +0 -0
- package/sheet-ui/fonts/Carlito-Bold.ttf +0 -0
- package/sheet-ui/fonts/Carlito-BoldItalic.ttf +0 -0
- package/sheet-ui/fonts/Carlito-Italic.ttf +0 -0
- package/sheet-ui/fonts/Carlito-Regular.ttf +0 -0
- package/sheet-ui/fonts/Cousine-Regular.ttf +0 -0
- package/sheet-ui/fonts/DroidSansFallback-NOTICE.txt +190 -0
- package/sheet-ui/fonts/DroidSansFallbackFull.ttf +0 -0
- package/sheet-ui/fonts/MaShanZheng-Regular.ttf +0 -0
- package/sheet-ui/fonts/Tinos-Bold.ttf +0 -0
- package/sheet-ui/fonts/Tinos-Italic.ttf +0 -0
- package/sheet-ui/fonts/Tinos-Regular.ttf +0 -0
- package/sheet-ui/fonts/arimo-OFL.txt +93 -0
- package/sheet-ui/fonts/caladea-OFL.txt +93 -0
- package/sheet-ui/fonts/carlito-OFL.txt +94 -0
- package/sheet-ui/fonts/cousine-OFL.txt +93 -0
- package/sheet-ui/fonts/ma-shan-zheng-OFL.txt +93 -0
- package/sheet-ui/fonts/tinos-OFL.txt +93 -0
- package/sheet-ui/index.html +14 -0
- package/sheet-ui/kit-ui.json +1 -0
- package/sheet-ui/kit.json +244 -0
- package/sheet-ui/model/schema.json +275 -0
- package/README.md +0 -3
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var qw=Object.defineProperty;var $w=(n,i,o)=>i in n?qw(n,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[i]=o;var pt=(n,i,o)=>$w(n,typeof i!="symbol"?i+"":i,o);import{V as Gw,F as Od,U as Pw,h as Kw,y as Yv,t as Xv,c as ht,E as Zv,$ as Yw,R as Xw,z as Hc,d as Pg,D as Zw,X as Ww,W as Z0}from"./index-DblcoJ90.js";function Qw(n,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(r,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const Jw="modulepreload",eC=function(n,i){return new URL(n,i).href},Wv={},ns=function(i,o,r){let u=Promise.resolve();if(o&&o.length>0){let h=function(m){return Promise.all(m.map(x=>Promise.resolve(x).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const v=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),y=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));u=h(o.map(m=>{if(m=eC(m,r),m in Wv)return;Wv[m]=!0;const x=m.endsWith(".css"),b=x?'[rel="stylesheet"]':"";if(!!r)for(let w=v.length-1;w>=0;w--){const T=v[w];if(T.href===m&&(!x||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${b}`))return;const E=document.createElement("link");if(E.rel=x?"stylesheet":Jw,x||(E.as="script"),E.crossOrigin="",E.href=m,y&&E.setAttribute("nonce",y),document.head.appendChild(E),x)return new Promise((w,T)=>{E.addEventListener("load",w),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(h){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=h,window.dispatchEvent(v),!v.defaultPrevented)throw h}return u.then(h=>{for(const v of h||[])v.status==="rejected"&&f(v.reason);return i().catch(f)})};function Kg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ld={exports:{}},ts={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Qv;function tC(){if(Qv)return ts;Qv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var v in u)v!=="key"&&(f[v]=u[v])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:h,ref:u!==void 0?u:null,props:f}}return ts.Fragment=i,ts.jsx=o,ts.jsxs=o,ts}var Jv;function aC(){return Jv||(Jv=1,Ld.exports=tC()),Ld.exports}var s=aC(),Hd={exports:{}},as={},Bd={exports:{}},_d={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ep;function nC(){return ep||(ep=1,(function(n){function i(A,H){var le=A.length;A.push(H);e:for(;0<le;){var ve=le-1>>>1,Z=A[ve];if(0<u(Z,H))A[ve]=H,A[le]=Z,le=ve;else break e}}function o(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var H=A[0],le=A.pop();if(le!==H){A[0]=le;e:for(var ve=0,Z=A.length,I=Z>>>1;ve<I;){var P=2*(ve+1)-1,ue=A[P],k=P+1,B=A[k];if(0>u(ue,le))k<Z&&0>u(B,ue)?(A[ve]=B,A[k]=le,ve=k):(A[ve]=ue,A[P]=le,ve=P);else if(k<Z&&0>u(B,le))A[ve]=B,A[k]=le,ve=k;else break e}}return H}function u(A,H){var le=A.sortIndex-H.sortIndex;return le!==0?le:A.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,v=h.now();n.unstable_now=function(){return h.now()-v}}var p=[],y=[],m=1,x=null,b=3,C=!1,E=!1,w=!1,T=!1,S=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function K(A){for(var H=o(y);H!==null;){if(H.callback===null)r(y);else if(H.startTime<=A)r(y),H.sortIndex=H.expirationTime,i(p,H);else break;H=o(y)}}function X(A){if(w=!1,K(A),!E)if(o(p)!==null)E=!0,re||(re=!0,Me());else{var H=o(y);H!==null&&F(X,H.startTime-A)}}var re=!1,ae=-1,de=5,ge=-1;function je(){return T?!0:!(n.unstable_now()-ge<de)}function be(){if(T=!1,re){var A=n.unstable_now();ge=A;var H=!0;try{e:{E=!1,w&&(w=!1,z(ae),ae=-1),C=!0;var le=b;try{t:{for(K(A),x=o(p);x!==null&&!(x.expirationTime>A&&je());){var ve=x.callback;if(typeof ve=="function"){x.callback=null,b=x.priorityLevel;var Z=ve(x.expirationTime<=A);if(A=n.unstable_now(),typeof Z=="function"){x.callback=Z,K(A),H=!0;break t}x===o(p)&&r(p),K(A)}else r(p);x=o(p)}if(x!==null)H=!0;else{var I=o(y);I!==null&&F(X,I.startTime-A),H=!1}}break e}finally{x=null,b=le,C=!1}H=void 0}}finally{H?Me():re=!1}}}var Me;if(typeof L=="function")Me=function(){L(be)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,ye=Be.port2;Be.port1.onmessage=be,Me=function(){ye.postMessage(null)}}else Me=function(){S(be,0)};function F(A,H){ae=S(function(){A(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(A){switch(b){case 1:case 2:case 3:var H=3;break;default:H=b}var le=b;b=H;try{return A()}finally{b=le}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(A,H){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var le=b;b=A;try{return H()}finally{b=le}},n.unstable_scheduleCallback=function(A,H,le){var ve=n.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ve+le:ve):le=ve,A){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=le+Z,A={id:m++,callback:H,priorityLevel:A,startTime:le,expirationTime:Z,sortIndex:-1},le>ve?(A.sortIndex=le,i(y,A),o(p)===null&&A===o(y)&&(w?(z(ae),ae=-1):w=!0,F(X,le-ve))):(A.sortIndex=Z,i(p,A),E||C||(E=!0,re||(re=!0,Me()))),A},n.unstable_shouldYield=je,n.unstable_wrapCallback=function(A){var H=b;return function(){var le=b;b=H;try{return A.apply(this,arguments)}finally{b=le}}}})(_d)),_d}var tp;function lC(){return tp||(tp=1,Bd.exports=nC()),Bd.exports}var Fd={exports:{}},Ue={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ap;function iC(){if(ap)return Ue;ap=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),C=Symbol.iterator;function E(k){return k===null||typeof k!="object"?null:(k=C&&k[C]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,S={};function z(k,B,W){this.props=k,this.context=B,this.refs=S,this.updater=W||w}z.prototype.isReactComponent={},z.prototype.setState=function(k,B){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,B,"setState")},z.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function L(){}L.prototype=z.prototype;function K(k,B,W){this.props=k,this.context=B,this.refs=S,this.updater=W||w}var X=K.prototype=new L;X.constructor=K,T(X,z.prototype),X.isPureReactComponent=!0;var re=Array.isArray;function ae(){}var de={H:null,A:null,T:null,S:null},ge=Object.prototype.hasOwnProperty;function je(k,B,W){var ie=W.ref;return{$$typeof:n,type:k,key:B,ref:ie!==void 0?ie:null,props:W}}function be(k,B){return je(k.type,B,k.props)}function Me(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function Be(k){var B={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return B[W]})}var ye=/\/+/g;function F(k,B){return typeof k=="object"&&k!==null&&k.key!=null?Be(""+k.key):B.toString(36)}function A(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ae,ae):(k.status="pending",k.then(function(B){k.status==="pending"&&(k.status="fulfilled",k.value=B)},function(B){k.status==="pending"&&(k.status="rejected",k.reason=B)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function H(k,B,W,ie,xe){var Ce=typeof k;(Ce==="undefined"||Ce==="boolean")&&(k=null);var He=!1;if(k===null)He=!0;else switch(Ce){case"bigint":case"string":case"number":He=!0;break;case"object":switch(k.$$typeof){case n:case i:He=!0;break;case m:return He=k._init,H(He(k._payload),B,W,ie,xe)}}if(He)return xe=xe(k),He=ie===""?"."+F(k,0):ie,re(xe)?(W="",He!=null&&(W=He.replace(ye,"$&/")+"/"),H(xe,B,W,"",function(Te){return Te})):xe!=null&&(Me(xe)&&(xe=be(xe,W+(xe.key==null||k&&k.key===xe.key?"":(""+xe.key).replace(ye,"$&/")+"/")+He)),B.push(xe)),1;He=0;var $=ie===""?".":ie+":";if(re(k))for(var te=0;te<k.length;te++)ie=k[te],Ce=$+F(ie,te),He+=H(ie,B,W,Ce,xe);else if(te=E(k),typeof te=="function")for(k=te.call(k),te=0;!(ie=k.next()).done;)ie=ie.value,Ce=$+F(ie,te++),He+=H(ie,B,W,Ce,xe);else if(Ce==="object"){if(typeof k.then=="function")return H(A(k),B,W,ie,xe);throw B=String(k),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return He}function le(k,B,W){if(k==null)return k;var ie=[],xe=0;return H(k,ie,"","",function(Ce){return B.call(W,Ce,xe++)}),ie}function ve(k){if(k._status===-1){var B=k._result,W=B();W.then(function(ie){(k._status===0||k._status===-1)&&(k._status=1,k._result=ie,W.status===void 0&&(W.status="fulfilled",W.value=ie))},function(ie){(k._status===0||k._status===-1)&&(k._status=2,k._result=ie,W.status===void 0&&(W.status="rejected",W.reason=ie))}),k._status===-1&&(k._status=0,k._result=W)}if(k._status===1)return k._result.default;throw k._result}var Z=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function I(k){var B=de.T,W={};W.types=B!==null?B.types:null,de.T=W;try{var ie=k(),xe=de.S;xe!==null&&xe(W,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(ae,Z)}catch(Ce){Z(Ce)}finally{B!==null&&W.types!==null&&(B.types=W.types),de.T=B}}function P(k){var B=de.T;if(B!==null){var W=B.types;W===null?B.types=[k]:W.indexOf(k)===-1&&W.push(k)}else I(P.bind(null,k))}var ue={map:le,forEach:function(k,B,W){le(k,function(){B.apply(this,arguments)},W)},count:function(k){var B=0;return le(k,function(){B++}),B},toArray:function(k){return le(k,function(B){return B})||[]},only:function(k){if(!Me(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ue.Activity=x,Ue.Children=ue,Ue.Component=z,Ue.Fragment=o,Ue.Profiler=u,Ue.PureComponent=K,Ue.StrictMode=r,Ue.Suspense=p,Ue.ViewTransition=b,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(k){return de.H.useMemoCache(k)}},Ue.addTransitionType=P,Ue.cache=function(k){return function(){return k.apply(null,arguments)}},Ue.cacheSignal=function(){return null},Ue.cloneElement=function(k,B,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ie=T({},k.props),xe=k.key;if(B!=null)for(Ce in B.key!==void 0&&(xe=""+B.key),B)!ge.call(B,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&B.ref===void 0||(ie[Ce]=B[Ce]);var Ce=arguments.length-2;if(Ce===1)ie.children=W;else if(1<Ce){for(var He=Array(Ce),$=0;$<Ce;$++)He[$]=arguments[$+2];ie.children=He}return je(k.type,xe,ie)},Ue.createContext=function(k){return k={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:f,_context:k},k},Ue.createElement=function(k,B,W){var ie,xe={},Ce=null;if(B!=null)for(ie in B.key!==void 0&&(Ce=""+B.key),B)ge.call(B,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(xe[ie]=B[ie]);var He=arguments.length-2;if(He===1)xe.children=W;else if(1<He){for(var $=Array(He),te=0;te<He;te++)$[te]=arguments[te+2];xe.children=$}if(k&&k.defaultProps)for(ie in He=k.defaultProps,He)xe[ie]===void 0&&(xe[ie]=He[ie]);return je(k,Ce,xe)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(k){return{$$typeof:v,render:k}},Ue.isValidElement=Me,Ue.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ve}},Ue.memo=function(k,B){return{$$typeof:y,type:k,compare:B===void 0?null:B}},Ue.startTransition=I,Ue.unstable_useCacheRefresh=function(){return de.H.useCacheRefresh()},Ue.use=function(k){return de.H.use(k)},Ue.useActionState=function(k,B,W){return de.H.useActionState(k,B,W)},Ue.useCallback=function(k,B){return de.H.useCallback(k,B)},Ue.useContext=function(k){return de.H.useContext(k)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(k,B){return de.H.useDeferredValue(k,B)},Ue.useEffect=function(k,B){return de.H.useEffect(k,B)},Ue.useEffectEvent=function(k){return de.H.useEffectEvent(k)},Ue.useId=function(){return de.H.useId()},Ue.useImperativeHandle=function(k,B,W){return de.H.useImperativeHandle(k,B,W)},Ue.useInsertionEffect=function(k,B){return de.H.useInsertionEffect(k,B)},Ue.useLayoutEffect=function(k,B){return de.H.useLayoutEffect(k,B)},Ue.useMemo=function(k,B){return de.H.useMemo(k,B)},Ue.useOptimistic=function(k,B){return de.H.useOptimistic(k,B)},Ue.useReducer=function(k,B,W){return de.H.useReducer(k,B,W)},Ue.useRef=function(k){return de.H.useRef(k)},Ue.useState=function(k){return de.H.useState(k)},Ue.useSyncExternalStore=function(k,B,W){return de.H.useSyncExternalStore(k,B,W)},Ue.useTransition=function(){return de.H.useTransition()},Ue.version="19.3.0",Ue}var np;function W0(){return np||(np=1,Fd.exports=iC()),Fd.exports}var Ud={exports:{}},Kt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var lp;function rC(){if(lp)return Kt;lp=1;var n=W0();function i(m){var x="https://react.dev/errors/"+m;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)x+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),h=Symbol.for("react.optimistic_key");function v(m,x,b){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:C==null?null:C===h?h:""+C,children:m,containerInfo:x,implementation:b}}var p=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,x){if(m==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Kt.browser=function(m){return{$$typeof:f,_reason:m}},Kt.createPortal=function(m,x){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(i(299));return v(m,x,null,b)},Kt.flushSync=function(m){var x=p.T,b=r.p;try{if(p.T=null,r.p=2,m)return m()}finally{p.T=x,r.p=b,r.d.f()}},Kt.preconnect=function(m,x){typeof m=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(m,x))},Kt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Kt.preinit=function(m,x){if(typeof m=="string"&&x&&typeof x.as=="string"){var b=x.as,C=y(b,x.crossOrigin),E=typeof x.integrity=="string"?x.integrity:void 0,w=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;b==="style"?r.d.S(m,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:C,integrity:E,fetchPriority:w}):b==="script"&&r.d.X(m,{crossOrigin:C,integrity:E,fetchPriority:w,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Kt.preinitModule=function(m,x){if(typeof m=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var b=y(x.as,x.crossOrigin);r.d.M(m,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&r.d.M(m)},Kt.preload=function(m,x){if(typeof m=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var b=x.as,C=y(b,x.crossOrigin);r.d.L(m,b,{crossOrigin:C,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Kt.preloadModule=function(m,x){if(typeof m=="string")if(x){var b=y(x.as,x.crossOrigin);r.d.m(m,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else r.d.m(m)},Kt.requestFormReset=function(m){r.d.r(m)},Kt.unstable_batchedUpdates=function(m,x){return m(x)},Kt.useFormState=function(m,x,b){return p.H.useFormState(m,x,b)},Kt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Kt.version="19.3.0",Kt}var ip;function Yg(){if(ip)return Ud.exports;ip=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Ud.exports=rC(),Ud.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var rp;function sC(){if(rp)return as;rp=1;var n=lC(),i=W0(),o=Yg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var c=a.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){a=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===a)return p(c),e;if(d===l)return p(c),t;d=d.sibling}throw Error(r(188))}if(a.return!==l.return)a=c,l=d;else{for(var M=!1,j=c.child;j;){if(j===a){M=!0,a=c,l=d;break}if(j===l){M=!0,l=c,a=d;break}j=j.sibling}if(!M){for(j=d.child;j;){if(j===a){M=!0,a=d,l=c;break}if(j===l){M=!0,l=d,a=c;break}j=j.sibling}if(!M)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function x(e,t,a,l,c,d){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,l,c,d)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,a,l,c,d))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function C(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function E(e){var t=[null,null],a=b(e);return a===null||w(t,e,a.child,{foundSelf:!1}),t}function w(e,t,a,l){for(;a!==null;){if(a===t)l.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(l.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&w(e,t,a.child,l))return!0;a=a.sibling}return!1}function T(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(r(559))}}var S=null,z=null;function L(e,t,a){return e===a?!0:e===t?(S=e,!0):!1}function K(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(S=e),!0):!1}function X(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function re(e,t,a){for(var l=0,c=e;c;c=a(c))l++;c=0;for(var d=t;d;d=a(d))c++;for(;0<l-c;)e=a(e),l--;for(;0<c-l;)t=a(t),c--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var ae=Object.assign,de=Symbol.for("react.element"),ge=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),F=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),P=Symbol.for("react.legacy_hidden"),ue=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),B=Symbol.for("react.recoverable"),W=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case be:return"Fragment";case Be:return"Profiler";case Me:return"StrictMode";case H:return"Suspense";case le:return"SuspenseList";case I:return"Activity";case k:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case je:return"Portal";case F:return e.displayName||"Context";case ye:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var He=Array.isArray,$=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},_e=[],J=-1;function he(e){return{current:e}}function Ee(e){0>J||(e.current=_e[J],_e[J]=null,J--)}function O(e,t){J++,_e[J]=e.current,e.current=t}var oe=he(null),fe=he(null),N=he(null),G=he(null);function me(e,t){switch(O(N,t),O(fe,e),O(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nv(t),e=lv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ee(oe),O(oe,e)}function pe(){Ee(oe),Ee(fe),Ee(N)}function ke(e){var t=e.memoizedState;t!==null&&(Pi._currentValue=t.memoizedState,O(G,e)),t=oe.current;var a=lv(t,e.type);t!==a&&(O(fe,e),O(oe,a))}function Re(e){fe.current===e&&(Ee(oe),Ee(fe)),G.current===e&&(Ee(G),Pi._currentValue=Te)}var Pe,Ve;function Ke(e){if(Pe===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pe=t&&t[1]||"",Ve=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Pe+e+Ve}var Xe=!1;function wt(e,t){if(!e||Xe)return"";Xe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Se){var U=Se}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(Se){U=Se}ce=!1;try{var Q=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),ce=!0,new e}finally{ce&&(Q!==void 0?Object.defineProperty(e.prototype,"props",Q):delete e.prototype.props)}}}else{try{throw Error()}catch(Se){U=Se}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(Se){if(Se&&U&&typeof Se.stack=="string")return[Se.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),M=d[0],j=d[1];if(M&&j){var R=M.split(`
|
|
44
|
+
`),q=j.split(`
|
|
45
|
+
`);for(c=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;c<q.length&&!q[c].includes("DetermineComponentFrameRoot");)c++;if(l===R.length||c===q.length)for(l=R.length-1,c=q.length-1;1<=l&&0<=c&&R[l]!==q[c];)c--;for(;1<=l&&0<=c;l--,c--)if(R[l]!==q[c]){if(l!==1||c!==1)do if(l--,c--,0>c||R[l]!==q[c]){var ee=`
|
|
46
|
+
`+R[l].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=l&&0<=c);break}}}finally{Xe=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ke(a):""}function ga(e,t){switch(e.tag){case 26:case 27:case 5:return Ke(e.type);case 16:return Ke("Lazy");case 13:return e.child!==t&&t!==null?Ke("Suspense Fallback"):Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 15:return wt(e.type,!1);case 11:return wt(e.type.render,!1);case 1:return wt(e.type,!0);case 31:return Ke("Activity");case 30:return Ke("ViewTransition");default:return""}}function Qt(e){try{var t="",a=null;do t+=ga(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Dt=Object.prototype.hasOwnProperty,yn=n.unstable_scheduleCallback,Za=n.unstable_cancelCallback,ur=n.unstable_shouldYield,iu=n.unstable_requestPaint,Ut=n.unstable_now,ru=n.unstable_getCurrentPriorityLevel,li=n.unstable_ImmediatePriority,ii=n.unstable_UserBlockingPriority,Ml=n.unstable_NormalPriority,Ts=n.unstable_LowPriority,ne=n.unstable_IdlePriority,qe=n.log,st=n.unstable_setDisableYieldValue,Ot=null,At=null;function na(e){if(typeof qe=="function"&&st(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Ot,e)}catch{}}var Nt=Math.clz32?Math.clz32:wl,xl=Math.log,Sl=Math.LN2;function wl(e){return e>>>=0,e===0?32:31-(xl(e)/Sl|0)|0}var Wa=256,Qa=262144,Ja=4194304;function ya(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function en(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,M=e.pingedLanes;e=e.warmLanes;var j=l&134217727;return j!==0?(l=j&~d,l!==0?c=ya(l):(M&=j,M!==0?c=ya(M):a||(a=j&~e,a!==0&&(c=ya(a))))):(j=l&~d,j!==0?c=ya(j):M!==0?c=ya(M):a||(a=l&~e,a!==0&&(c=ya(a)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:c}function Ba(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vn(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-Nt(a),c=1<<l;t|=e[l],a&=~c}return t}function Cl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qn(){var e=Ja;return Ja<<=1,(Ja&62914560)===0&&(Ja=4194304),e}function bn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function _a(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function su(e,t,a,l,c,d){var M=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var j=e.entanglements,R=e.expirationTimes,q=e.hiddenUpdates;for(a=M&~a;0<a;){var ee=31-Nt(a),ce=1<<ee;j[ee]=0,R[ee]=-1;var U=q[ee];if(U!==null)for(q[ee]=null,ee=0;ee<U.length;ee++){var Q=U[ee];Q!==null&&(Q.lane&=-536870913)}a&=~ce}l!==0&&Nf(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(M&~t))}function Nf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Nt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Rf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Nt(a),c=1<<l;c&t|e[l]&t&&(e[l]|=t),a&=~c}}function Df(e,t){var a=t&-t;return a=(a&42)!==0?1:ou(a),(a&(e.suspendedLanes|t))!==0?0:a}function ou(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Of(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:Iv(e.type))}function Lf(e,t){var a=te.p;try{return te.p=e,t()}finally{te.p=a}}var Mn=Math.random().toString(36).slice(2),It="__reactFiber$"+Mn,la="__reactProps$"+Mn,ri="__reactContainer$"+Mn,Hf="__reactEvents$"+Mn,iS="__reactListeners$"+Mn,rS="__reactHandles$"+Mn,Bf="__reactResources$"+Mn,dr="__reactMarker$"+Mn,ks="__reactLoad$"+Mn;function As(e){delete e[It],delete e[la],delete e[iS],delete e[rS]}function El(e){var t;if(t=e[It])return t;for(var a=e.parentNode;a;){if(t=a[ri]||a[It]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=xv(e);e!==null;){if(a=e[It])return a;e=xv(e)}return t}e=a,a=e.parentNode}return null}function si(e){if(e=e[It]||e[ri]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function oi(e){var t=e[Bf];return t||(t=e[Bf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Lt(e){e[dr]=!0}function _f(e){e[ks]=void 0}var Ff=new Set,Uf={};function zl(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(Uf[e]=t,e=0;e<t.length;e++)Ff.add(t[e])}var sS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),If={},Vf={};function oS(e){return Dt.call(Vf,e)?!0:Dt.call(If,e)?!1:sS.test(e)?Vf[e]=!0:(If[e]=!0,!1)}var lt=!1;function qf(){var e=lt;return lt=!1,e}function Ns(e,t,a){if(oS(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Rs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function xn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,l)}}function ba(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cS(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(M){a=""+M,d.call(this,M)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(M){a=""+M},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uu(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=cS(e,t,""+e[t])}}function Gf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=$f(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}var uS=/[\n"\\]/g;function Ta(e){return e.replace(uS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function du(e,t,a,l,c,d,M,j){e.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?e.type=M:e.removeAttribute("type"),t!=null?M==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ba(t)):e.value!==""+ba(t)&&(e.value=""+ba(t)):M!=="submit"&&M!=="reset"||e.removeAttribute("value"),t!=null?M==="number"&&e.value==t?fu(e,ba(e.value)):fu(e,ba(t)):a!=null?fu(e,ba(a)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?e.name=""+ba(j):e.removeAttribute("name")}function Pf(e,t,a,l,c,d,M,j){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){uu(e);return}a=a!=null?""+ba(a):"",t=t!=null?""+ba(t):a,j||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=j?e.checked:!!l,e.defaultChecked=!!l,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(e.name=M),uu(e)}function fu(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ui(e,t,a,l){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&l&&(e[a].defaultSelected=!0)}else{for(a=""+ba(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Kf(e,t,a){if(t!=null&&(t=""+ba(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ba(a):""}function Yf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(He(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=ba(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),uu(e)}function di(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var dS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||dS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Zf(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",lt=!0);for(var c in t)l=t[c],t.hasOwnProperty(c)&&a[c]!==l&&(Xf(e,c,l),lt=!0)}else for(var d in t)t.hasOwnProperty(d)&&Xf(e,d,t[d])}function hu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ds(e){return hS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tn(){}var mu=null;function vu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,hi=null;function Wf(e){var t=si(e);if(t&&(e=t.stateNode)){var a=e[la]||null;e:switch(e=t.stateNode,t.type){case"input":if(du(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ta(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var c=l[la]||null;if(!c)throw Error(r(90));du(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Gf(l)}break e;case"textarea":Kf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ui(e,!!a.multiple,t,!1)}}}var pu=!1;function Qf(e,t,a){if(pu)return e(t,a);pu=!0;try{var l=e(t);return l}finally{if(pu=!1,(fi!==null||hi!==null)&&(Oo(),fi&&(t=fi,e=hi,hi=fi=null,Wf(t),e)))for(t=0;t<e.length;t++)Wf(e[t])}}function hr(e,t){var a=e.stateNode;if(a===null)return null;var l=a[la]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=!1;if(Sn)try{var mr={};Object.defineProperty(mr,"passive",{get:function(){gu=!0}}),window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{gu=!1}var $n=null,yu=null,Os=null;function Jf(){if(Os)return Os;var e,t=yu,a=t.length,l,c="value"in $n?$n.value:$n.textContent,d=c.length;for(e=0;e<a&&t[e]===c[e];e++);var M=a-e;for(l=1;l<=M&&t[a-l]===c[d-l];l++);return Os=c.slice(e,1<l?1-l:void 0)}function Ls(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Hs(){return!0}function e2(){return!1}function Jt(e){function t(a,l,c,d,M){this._reactName=a,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=M,this.currentTarget=null;for(var j in e)e.hasOwnProperty(j)&&(a=e[j],this[j]=a?a(d):d[j]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Hs:e2,this.isPropagationStopped=e2,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Hs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Hs)},persist:function(){},isPersistent:Hs}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bs=Jt(Gn),vr=ae({},Gn,{view:0,detail:0}),mS=Jt(vr),bu,Mu,pr,_s=ae({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pr&&(pr&&e.type==="mousemove"?(bu=e.screenX-pr.screenX,Mu=e.screenY-pr.screenY):Mu=bu=0,pr=e),bu)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),t2=Jt(_s),vS=ae({},_s,{dataTransfer:0}),pS=Jt(vS),gS=ae({},vr,{relatedTarget:0}),xu=Jt(gS),yS=ae({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),bS=Jt(yS),MS=ae({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xS=Jt(MS),SS=ae({},Gn,{data:0}),a2=Jt(SS),wS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ES={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ES[e])?!!t[e]:!1}function Su(){return zS}var jS=ae({},vr,{key:function(e){if(e.key){var t=wS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(e){return e.type==="keypress"?Ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TS=Jt(jS),kS=ae({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n2=Jt(kS),AS=ae({},Gn,{submitter:0}),NS=Jt(AS),RS=ae({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),DS=Jt(RS),OS=ae({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),LS=Jt(OS),HS=ae({},_s,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),BS=Jt(HS),_S=ae({},Gn,{newState:0,oldState:0,source:0}),FS=Jt(_S),US=[9,13,27,32],wu=Sn&&"CompositionEvent"in window,gr=null;Sn&&"documentMode"in document&&(gr=document.documentMode);var IS=Sn&&"TextEvent"in window&&!gr,l2=Sn&&(!wu||gr&&8<gr&&11>=gr),i2=" ",r2=!1;function s2(e,t){switch(e){case"keyup":return US.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function o2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function VS(e,t){switch(e){case"compositionend":return o2(t);case"keypress":return t.which!==32?null:(r2=!0,i2);case"textInput":return e=t.data,e===i2&&r2?null:e;default:return null}}function qS(e,t){if(mi)return e==="compositionend"||!wu&&s2(e,t)?(e=Jf(),Os=yu=$n=null,mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return l2&&t.locale!=="ko"?null:t.data;default:return null}}var $S={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function c2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$S[e.type]:t==="textarea"}function u2(e,t,a,l){fi?hi?hi.push(l):hi=[l]:fi=l,t=Uo(t,"onChange"),0<t.length&&(a=new Bs("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var yr=null,br=null;function GS(e){Wm(e,0)}function Fs(e){var t=fr(e);if(Gf(t))return e}function d2(e,t){if(e==="change")return t}var f2=!1;if(Sn){var Cu;if(Sn){var Eu="oninput"in document;if(!Eu){var h2=document.createElement("div");h2.setAttribute("oninput","return;"),Eu=typeof h2.oninput=="function"}Cu=Eu}else Cu=!1;f2=Cu&&(!document.documentMode||9<document.documentMode)}function m2(){yr&&(yr.detachEvent("onpropertychange",v2),br=yr=null)}function v2(e){if(e.propertyName==="value"&&Fs(br)){var t=[];u2(t,br,e,vu(e)),Qf(GS,t)}}function PS(e,t,a){e==="focusin"?(m2(),yr=t,br=a,yr.attachEvent("onpropertychange",v2)):e==="focusout"&&m2()}function KS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fs(br)}function YS(e,t){if(e==="click")return Fs(t)}function XS(e,t){if(e==="input"||e==="change")return Fs(t)}function ZS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ma=typeof Object.is=="function"?Object.is:ZS;function Mr(e,t){if(Ma(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var c=a[l];if(!Dt.call(t,c)||!Ma(e[c],t[c]))return!1}return!0}function zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function p2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function g2(e,t){var a=p2(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=p2(a)}}function y2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b2(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=zu(e.document)}return t}function ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var WS=Sn&&"documentMode"in document&&11>=document.documentMode,vi=null,Tu=null,xr=null,ku=!1;function M2(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ku||vi==null||vi!==zu(l)||(l=vi,"selectionStart"in l&&ju(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xr&&Mr(xr,l)||(xr=l,l=Uo(Tu,"onSelect"),0<l.length&&(t=new Bs("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=vi)))}function jl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var pi={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},Au={},x2={};Sn&&(x2=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Tl(e){if(Au[e])return Au[e];if(!pi[e])return e;var t=pi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in x2)return Au[e]=t[a];return e}var S2=Tl("animationend"),w2=Tl("animationiteration"),C2=Tl("animationstart"),QS=Tl("transitionrun"),JS=Tl("transitionstart"),e6=Tl("transitioncancel"),E2=Tl("transitionend"),z2=new Map,Nu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nu.push("scrollEnd");function Fa(e,t){z2.set(e,t),zl(t,[e])}var t6=0;function wn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=qa.identifierPrefix;var a=t6++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function j2(e){if(e==null||typeof e=="string")return e;var t=null,a=Hi;if(a!==null)for(var l=0;l<a.length;l++){var c=e[a[l]];if(c!=null){if(c==="none")return"none";t=t==null?c:t+(" "+c)}}return t??e.default}function Cn(e,t){return e=j2(e),t=j2(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Us=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ka=[],gi=0,Ru=0;function Is(){for(var e=gi,t=Ru=gi=0;t<e;){var a=ka[t];ka[t++]=null;var l=ka[t];ka[t++]=null;var c=ka[t];ka[t++]=null;var d=ka[t];if(ka[t++]=null,l!==null&&c!==null){var M=l.pending;M===null?c.next=c:(c.next=M.next,M.next=c),l.pending=c}d!==0&&T2(a,c,d)}}function Vs(e,t,a,l){ka[gi++]=e,ka[gi++]=t,ka[gi++]=a,ka[gi++]=l,Ru|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Du(e,t,a,l){return Vs(e,t,a,l),qs(e)}function kl(e,t){return Vs(e,null,null,t),qs(e)}function T2(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var c=!1,d=e.return;d!==null;)d.childLanes|=a,l=d.alternate,l!==null&&(l.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-Nt(a),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=a|536870912),d):null}function qs(e){if(50<qr)throw qr=0,Do=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var yi={};function a6(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ia(e,t,a,l){return new a6(e,t,a,l)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var a=e.alternate;return a===null?(a=ia(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function k2(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $s(e,t,a,l,c,d){var M=0;if(l=e,typeof l=="function")Ou(l)&&(M=1);else if(typeof l=="string")M=Aw(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case I:return e=ia(31,a,t,c),e.elementType=I,e.lanes=d,e;case be:return Al(a.children,c,d,t);case Me:M=8,c|=24;break;case Be:return e=ia(12,a,t,c|2),e.elementType=Be,e.lanes=d,e;case H:return e=ia(13,a,t,c),e.elementType=H,e.lanes=d,e;case le:return e=ia(19,a,t,c),e.elementType=le,e.lanes=d,e;case P:case k:return e=c|32,e=ia(30,a,t,e),e.elementType=k,e.lanes=d,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case F:M=10;break e;case ye:M=9;break e;case A:M=11;break e;case ve:M=14;break e;case Z:M=16,l=null;break e}M=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=ia(M,a,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function Al(e,t,a,l){return e=ia(7,e,l,t),e.lanes=a,e}function Lu(e,t,a){return e=ia(6,e,null,t),e.lanes=a,e}function A2(e){var t=ia(18,null,null,0);return t.stateNode=e,t}function Hu(e,t,a){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var N2=new WeakMap;function Aa(e,t){if(typeof e=="object"&&e!==null){var a=N2.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Qt(t)},N2.set(e,t),t)}return{value:e,source:t,stack:Qt(t)}}var bi=[],Mi=0,Gs=null,Sr=0,Na=[],Ra=0,Pn=null,an=1,nn="";function zn(e,t){bi[Mi++]=Sr,bi[Mi++]=Gs,Gs=e,Sr=t}function R2(e,t,a){Na[Ra++]=an,Na[Ra++]=nn,Na[Ra++]=Pn,Pn=e;var l=an;e=nn;var c=32-Nt(l)-1;l&=~(1<<c),a+=1;var d=32-Nt(t)+c;if(30<d){var M=c-c%5;d=(l&(1<<M)-1).toString(32),l>>=M,c-=M,an=1<<32-Nt(t)+c|a<<c|l,nn=d+e}else an=1<<d|a<<c|l,nn=e}function Ps(e){e.return!==null&&(zn(e,1),R2(e,1,0))}function Bu(e){for(;e===Gs;)Gs=bi[--Mi],bi[Mi]=null,Sr=bi[--Mi],bi[Mi]=null;for(;e===Pn;)Pn=Na[--Ra],Na[Ra]=null,nn=Na[--Ra],Na[Ra]=null,an=Na[--Ra],Na[Ra]=null}function D2(e,t){Na[Ra++]=an,Na[Ra++]=nn,Na[Ra++]=Pn,an=t.id,nn=t.overflow,Pn=e}var Ht=null,mt=null,Ye=!1,Kn=null,Da=!1,_u=Error(r(519));function Yn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wr(Aa(t,e)),_u}function O2(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[It]=e,t[la]=l,a){case"dialog":We("cancel",t),We("close",t);break;case"iframe":case"object":case"embed":We("load",t);break;case"video":case"audio":for(a=0;a<Gr.length;a++)We(Gr[a],t);break;case"source":We("error",t);break;case"img":case"image":case"link":We("error",t),We("load",t);break;case"details":We("toggle",t);break;case"input":We("invalid",t),Pf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":We("invalid",t);break;case"textarea":We("invalid",t),Yf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||tv(t.textContent,a)?(l.popover!=null&&(We("beforetoggle",t),We("toggle",t)),l.onScroll!=null&&We("scroll",t),l.onScrollEnd!=null&&We("scrollend",t),l.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Yn(e,!0)}function Ks(e){for(Ht=e.return;Ht;)switch(Ht.tag){case 5:case 31:case 13:Da=!1;return;case 27:case 3:Da=!0;return;default:Ht=Ht.return}}function xi(e){if(e!==Ht)return!1;if(!Ye)return Ks(e),Ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||md(e.type,e.memoizedProps)),a=!a),a&&mt&&Yn(e),Ks(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));mt=Mv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));mt=Mv(e)}else t===27?(t=mt,ul(e.type)?(e=wd,wd=null,mt=e):mt=t):mt=Ht?La(e.stateNode.nextSibling):null;return!0}function Nl(){mt=Ht=null,Ye=!1}function Fu(){var e=Kn;return e!==null&&(oa===null?oa=e:oa.push.apply(oa,e),Kn=null),e}function wr(e){Kn===null?Kn=[e]:Kn.push(e)}var Uu=he(null),Rl=null,jn=null;function Xn(e,t,a){O(Uu,t._currentValue),t._currentValue=a}function Tn(e){e._currentValue=Uu.current,Ee(Uu)}function Ys(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Iu(e,t,a,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var M=c.child;d=d.firstContext;e:for(;d!==null;){var j=d;d=c;for(var R=0;R<t.length;R++)if(j.context===t[R]){d.lanes|=a,j=d.alternate,j!==null&&(j.lanes|=a),Ys(d.return,a,e),l||(M=null);break e}d=j.next}}else if(c.tag===18){if(M=c.return,M===null)throw Error(r(341));M.lanes|=a,d=M.alternate,d!==null&&(d.lanes|=a),Ys(M,a,e),M=null}else c.tag===13&&c.memoizedState!==null&&c.memoizedState.dehydrated===null?(c.lanes|=a,M=c.alternate,M!==null&&(M.lanes|=a),Ys(c.return,a,e),M=c.child,M=M!==null?M.sibling:null):M=c.child;if(M!==null)M.return=c;else for(M=c;M!==null;){if(M===e){M=null;break}if(c=M.sibling,c!==null){c.return=M.return,M=c;break}M=M.return}c=M}}function Dl(e,t,a,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var M=c.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var j=c.type;Ma(c.pendingProps.value,M.value)||(e!==null?e.push(j):e=[j])}}else if(c===G.current){if(M=c.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}c=c.return}return e!==null&&Iu(t,e,a,l),t.flags|=262144,e!==null}function Xs(e){for(e=e.firstContext;e!==null;){if(!Ma(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Rl=e,jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Vt(e){return L2(Rl,e)}function Zs(e,t){return Rl===null&&Ol(e),L2(e,t)}function L2(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},jn===null){if(e===null)throw Error(r(308));jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jn=jn.next=t;return a}var n6=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},l6=n.unstable_scheduleCallback,i6=n.unstable_NormalPriority,zt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new n6,data:new Map,refCount:0}}function Cr(e){e.refCount--,e.refCount===0&&l6(i6,function(){e.controller.abort()})}function H2(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];a.indexOf(l)===-1&&a.push(l)}}}var Er=null;function r6(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var zr=null,qu=0,Ll=0,Si=null;function s6(e,t){if(zr===null){var a=zr=[];qu=0,Ll=id(),Si={status:"pending",value:void 0,then:function(l){a.push(l)}}}return qu++,t.then(B2,B2),t}function B2(){if(--qu===0&&(Er=null,zr!==null)){Si!==null&&(Si.status="fulfilled");var e=zr;zr=null,Ll=0,Si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function o6(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),l}var _2=$.S;$.S=function(e,t){if(Am=Ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&s6(e,t),Er!==null)for(var a=Ui;a!==null;)H2(a,Er),a=a.next;if(a=e.types,a!==null){for(var l=Ui;l!==null;)H2(l,a),l=l.next;if(Ll!==0){l=Er,l===null&&(l=Er=[]);for(var c=0;c<a.length;c++){var d=a[c];l.indexOf(d)===-1&&l.push(d)}}}_2!==null&&_2(e,t)};var Hl=he(null);function $u(){var e=Hl.current;return e!==null?e:ft.pooledCache}function Ws(e,t){t===null?O(Hl,Hl.current):O(Hl,t.pool)}function F2(){var e=$u();return e===null?null:{parent:zt._currentValue,pool:e}}var wi=Error(r(460)),Gu=Error(r(474)),Qs=Error(r(542)),Js={then:function(){}};function U2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function I2(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(tn,tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,q2(e),e===void 0&&!("reason"in t)?Error(r(600)):e;default:if(typeof t.status=="string")t.then(tn,tn);else{if(e=ft,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,q2(e),e}throw _l=t,wi}}function Bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(_l=a,wi):a}}var _l=null;function V2(){if(_l===null)throw Error(r(459));var e=_l;return _l=null,e}function q2(e){if(e===wi||e===Qs)throw Error(r(483))}var Ci=null,jr=0;function eo(e){var t=jr;return jr+=1,Ci===null&&(Ci=[]),I2(Ci,e,t)}function Zn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function to(e,t){throw t.$$typeof===de?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $2(e){function t(V,_){if(e){var Y=V.deletions;Y===null?(V.deletions=[_],V.flags|=16):Y.push(_)}}function a(V,_){if(!e)return null;for(;_!==null;)t(V,_),_=_.sibling;return null}function l(V){for(var _=new Map;V!==null;)V.key===null?_.set(V.index,V):_.set(V.key,V),V=V.sibling;return _}function c(V,_){return V=En(V,_),V.index=0,V.sibling=null,V}function d(V,_,Y){return V.index=Y,e?(Y=V.alternate,Y!==null?(Y=Y.index,Y<_?(V.flags|=2,_):Y):(V.flags|=134217730,_)):(V.flags|=1048576,_)}function M(V){return e&&V.alternate===null&&(V.flags|=134217730),V}function j(V,_,Y,se){return _===null||_.tag!==6?(_=Lu(Y,V.mode,se),_.return=V,_):(_=c(_,Y),_.return=V,_)}function R(V,_,Y,se){var Ae=Y.type;return Ae===be?(V=ee(V,_,Y.props.children,se,Y.key),Zn(V,Y),V):_!==null&&(_.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===Z&&Bl(Ae)===_.type)?(_=c(_,Y.props),Zn(_,Y),_.return=V,_):(_=$s(Y.type,Y.key,Y.props,null,V.mode,se),Zn(_,Y),_.return=V,_)}function q(V,_,Y,se){return _===null||_.tag!==4||_.stateNode.containerInfo!==Y.containerInfo||_.stateNode.implementation!==Y.implementation?(_=Hu(Y,V.mode,se),_.return=V,_):(_=c(_,Y.children||[]),_.return=V,_)}function ee(V,_,Y,se,Ae){return _===null||_.tag!==7?(_=Al(Y,V.mode,se,Ae),_.return=V,_):(_=c(_,Y),_.return=V,_)}function ce(V,_,Y){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Lu(""+_,V.mode,Y),_.return=V,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ge:return Y=$s(_.type,_.key,_.props,null,V.mode,Y),Zn(Y,_),Y.return=V,Y;case je:return _=Hu(_,V.mode,Y),_.return=V,_;case Z:return _=Bl(_),ce(V,_,Y)}if(He(_)||ie(_))return _=Al(_,V.mode,Y,null),_.return=V,_;if(typeof _.then=="function")return ce(V,eo(_),Y);if(_.$$typeof===F)return ce(V,Zs(V,_),Y);to(V,_)}return null}function U(V,_,Y,se){var Ae=_!==null?_.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Ae!==null?null:j(V,_,""+Y,se);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case ge:return Y.key===Ae?R(V,_,Y,se):null;case je:return Y.key===Ae?q(V,_,Y,se):null;case Z:return Y=Bl(Y),U(V,_,Y,se)}if(He(Y)||ie(Y))return Ae!==null?null:ee(V,_,Y,se,null);if(typeof Y.then=="function")return U(V,_,eo(Y),se);if(Y.$$typeof===F)return U(V,_,Zs(V,Y),se);to(V,Y)}return null}function Q(V,_,Y,se,Ae){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return V=V.get(Y)||null,j(_,V,""+se,Ae);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case ge:return V=V.get(se.key===null?Y:se.key)||null,R(_,V,se,Ae);case je:return V=V.get(se.key===null?Y:se.key)||null,q(_,V,se,Ae);case Z:return se=Bl(se),Q(V,_,Y,se,Ae)}if(He(se)||ie(se))return V=V.get(Y)||null,ee(_,V,se,Ae,null);if(typeof se.then=="function")return Q(V,_,Y,eo(se),Ae);if(se.$$typeof===F)return Q(V,_,Y,Zs(_,se),Ae);to(_,se)}return null}function Se(V,_,Y,se){for(var Ae=null,Je=null,Oe=_,Fe=_=0,kt=null;Oe!==null&&Fe<Y.length;Fe++){Oe.index>Fe?(kt=Oe,Oe=null):kt=Oe.sibling;var at=U(V,Oe,Y[Fe],se);if(at===null){Oe===null&&(Oe=kt);break}e&&Oe&&at.alternate===null&&t(V,Oe),_=d(at,_,Fe),Je===null?Ae=at:Je.sibling=at,Je=at,Oe=kt}if(Fe===Y.length)return a(V,Oe),Ye&&zn(V,Fe),Ae;if(Oe===null){for(;Fe<Y.length;Fe++)Oe=ce(V,Y[Fe],se),Oe!==null&&(_=d(Oe,_,Fe),Je===null?Ae=Oe:Je.sibling=Oe,Je=Oe);return Ye&&zn(V,Fe),Ae}for(Oe=l(Oe);Fe<Y.length;Fe++)kt=Q(Oe,V,Fe,Y[Fe],se),kt!==null&&(e&&(at=kt.alternate,at!==null&&Oe.delete(at.key===null?Fe:at.key)),_=d(kt,_,Fe),Je===null?Ae=kt:Je.sibling=kt,Je=kt);return e&&Oe.forEach(function(vl){return t(V,vl)}),Ye&&zn(V,Fe),Ae}function Ne(V,_,Y,se){if(Y==null)throw Error(r(151));for(var Ae=null,Je=null,Oe=_,Fe=_=0,kt=null,at=Y.next();Oe!==null&&!at.done;Fe++,at=Y.next()){Oe.index>Fe?(kt=Oe,Oe=null):kt=Oe.sibling;var vl=U(V,Oe,at.value,se);if(vl===null){Oe===null&&(Oe=kt);break}e&&Oe&&vl.alternate===null&&t(V,Oe),_=d(vl,_,Fe),Je===null?Ae=vl:Je.sibling=vl,Je=vl,Oe=kt}if(at.done)return a(V,Oe),Ye&&zn(V,Fe),Ae;if(Oe===null){for(;!at.done;Fe++,at=Y.next())at=ce(V,at.value,se),at!==null&&(_=d(at,_,Fe),Je===null?Ae=at:Je.sibling=at,Je=at);return Ye&&zn(V,Fe),Ae}for(Oe=l(Oe);!at.done;Fe++,at=Y.next())at=Q(Oe,V,Fe,at.value,se),at!==null&&(e&&(kt=at.alternate,kt!==null&&Oe.delete(kt.key===null?Fe:kt.key)),_=d(at,_,Fe),Je===null?Ae=at:Je.sibling=at,Je=at);return e&&Oe.forEach(function(Vw){return t(V,Vw)}),Ye&&zn(V,Fe),Ae}function Ge(V,_,Y,se){if(typeof Y=="object"&&Y!==null&&Y.type===be&&Y.key===null&&Y.props.ref===void 0&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case ge:e:{for(var Ae=Y.key;_!==null;){if(_.key===Ae){if(Ae=Y.type,Ae===be){if(_.tag===7){a(V,_.sibling),se=c(_,Y.props.children),Zn(se,Y),se.return=V,V=se;break e}}else if(_.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===Z&&Bl(Ae)===_.type){a(V,_.sibling),se=c(_,Y.props),Zn(se,Y),se.return=V,V=se;break e}a(V,_);break}else t(V,_);_=_.sibling}Y.type===be?(se=Al(Y.props.children,V.mode,se,Y.key),Zn(se,Y),se.return=V,V=se):(se=$s(Y.type,Y.key,Y.props,null,V.mode,se),Zn(se,Y),se.return=V,V=se)}return M(V);case je:e:{for(Ae=Y.key;_!==null;){if(_.key===Ae)if(_.tag===4&&_.stateNode.containerInfo===Y.containerInfo&&_.stateNode.implementation===Y.implementation){a(V,_.sibling),se=c(_,Y.children||[]),se.return=V,V=se;break e}else{a(V,_);break}else t(V,_);_=_.sibling}se=Hu(Y,V.mode,se),se.return=V,V=se}return M(V);case Z:return Y=Bl(Y),Ge(V,_,Y,se)}if(He(Y))return Se(V,_,Y,se);if(ie(Y)){if(Ae=ie(Y),typeof Ae!="function")throw Error(r(150));return Y=Ae.call(Y),Ne(V,_,Y,se)}if(typeof Y.then=="function")return Ge(V,_,eo(Y),se);if(Y.$$typeof===F)return Ge(V,_,Zs(V,Y),se);to(V,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,_!==null&&_.tag===6?(a(V,_.sibling),se=c(_,Y),se.return=V,V=se):(a(V,_),se=Lu(Y,V.mode,se),se.return=V,V=se),M(V)):a(V,_)}return function(V,_,Y,se){try{jr=0;var Ae=Ge(V,_,Y,se);return Ci=null,Ae}catch(Oe){if(Oe===wi||Oe===Qs)throw Oe;var Je=ia(29,Oe,null,V.mode);return Je.lanes=se,Je.return=V,Je}finally{}}}var Fl=$2(!0),G2=$2(!1),Wn=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ku(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(it&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=qs(e),T2(e,null,a),t}return Vs(e,l,t,a),qs(e)}function Tr(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Rf(e,a)}}function Yu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var c=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var M={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=M:d=d.next=M,a=a.next}while(a!==null);d===null?c=d=t:d=d.next=t}else c=d=t;a={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Xu=!1;function kr(){if(Xu){var e=Si;if(e!==null)throw e}}function Ar(e,t,a,l){Xu=!1;var c=e.updateQueue;Wn=!1;var d=c.firstBaseUpdate,M=c.lastBaseUpdate,j=c.shared.pending;if(j!==null){c.shared.pending=null;var R=j,q=R.next;R.next=null,M===null?d=q:M.next=q,M=R;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,j=ee.lastBaseUpdate,j!==M&&(j===null?ee.firstBaseUpdate=q:j.next=q,ee.lastBaseUpdate=R))}if(d!==null){var ce=c.baseState;M=0,ee=q=R=null,j=d;do{var U=j.lane&-536870913,Q=U!==j.lane;if(Q?(Qe&U)===U:(l&U)===U){U!==0&&U===Ll&&(Xu=!0),ee!==null&&(ee=ee.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Se=e,Ne=j;U=t;var Ge=a;switch(Ne.tag){case 1:if(Se=Ne.payload,typeof Se=="function"){ce=Se.call(Ge,ce,U);break e}ce=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Ne.payload,U=typeof Se=="function"?Se.call(Ge,ce,U):Se,U==null)break e;ce=ae({},ce,U);break e;case 2:Wn=!0}}U=j.callback,U!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=c.callbacks,Q===null?c.callbacks=[U]:Q.push(U))}else Q={lane:U,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ee===null?(q=ee=Q,R=ce):ee=ee.next=Q,M|=U;if(j=j.next,j===null){if(j=c.shared.pending,j===null)break;Q=j,j=Q.next,Q.next=null,c.lastBaseUpdate=Q,c.shared.pending=null}}while(!0);ee===null&&(R=ce),c.baseState=R,c.firstBaseUpdate=q,c.lastBaseUpdate=ee,d===null&&(c.shared.lanes=0),rl|=M,e.lanes=M,e.memoizedState=ce}}function P2(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function K2(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)P2(a[e],t)}var el=he(null),ao=he(0);function Y2(e,t){e=Dn,O(ao,e),O(el,t),Dn=e|t.baseLanes}function Zu(){O(ao,Dn),O(el,el.current)}function Wu(){Dn=ao.current,Ee(el),Ee(ao)}var qt=he(null),Zt=null;function tl(e){var t=e.alternate;O($t,$t.current&1),O(qt,e),Zt===null&&(t===null||el.current!==null||t.memoizedState!==null)&&(Zt=e)}function Qu(e){O($t,$t.current),O(qt,e),Zt===null&&(Zt=e)}function X2(e){e.tag===22?(O($t,$t.current),O(qt,e),Zt===null&&(Zt=e)):al()}function al(){O($t,$t.current),O(qt,qt.current)}function xa(e){Ee(qt),Zt===e&&(Zt=null),Ee($t)}var $t=he(0);function Nr(e,t){O(qt,qt.current),O($t,t)}function Ju(e){Ee($t),Ee(qt),Zt===e&&(Zt=null)}function no(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xd(a)||Sd(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kn=0,$e=null,dt=null,jt=null,lo=!1,Ei=!1,Ul=!1,io=0,Rr=0,zi=null,c6=0;function Mt(){throw Error(r(321))}function e1(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ma(e[a],t[a]))return!1;return!0}function t1(e,t,a,l,c,d){return kn=d,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Rh:Dh,Ul=!1,d=a(l,c),Ul=!1,Ei&&(d=W2(t,a,l,c)),Z2(e),d}function Z2(e){$.H=ho;var t=dt!==null&&dt.next!==null;if(kn=0,jt=dt=$e=null,lo=!1,Rr=0,zi=null,t)throw Error(r(300));e===null||Tt||(e=e.dependencies,e!==null&&Xs(e)&&(Tt=!0))}function W2(e,t,a,l){$e=e;var c=0;do{if(Ei&&(zi=null),Rr=0,Ei=!1,25<=c)throw Error(r(301));if(c+=1,jt=dt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}$.H=g6,d=t(a,l)}while(Ei);return d}function u6(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?Dr(t):t,e=e.useState()[0],(dt!==null?dt.memoizedState:null)!==e&&($e.flags|=1024),t}function a1(){var e=io!==0;return io=0,e}function n1(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function l1(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}kn=0,jt=dt=$e=null,Ei=!1,Rr=io=0,zi=null}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?$e.memoizedState=jt=e:jt=jt.next=e,jt}function Ct(){if(dt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var t=jt===null?$e.memoizedState:jt.next;if(t!==null)jt=t,dt=e;else{if(e===null)throw $e.alternate===null?Error(r(467)):Error(r(310));dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},jt===null?$e.memoizedState=jt=e:jt=jt.next=e}return jt}function ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dr(e){var t=Rr;return Rr+=1,zi===null&&(zi=[]),e=I2(zi,e,t),t=$e,(jt===null?t.memoizedState:jt.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Rh:Dh),e}function so(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dr(e);if(e.$$typeof===B)return;if(e.$$typeof===F)return Vt(e)}throw Error(r(438,String(e)))}function i1(e){var t=null,a=$e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=$e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ro(),$e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ue;return t.index++,a}function An(e,t){return typeof t=="function"?t(e):t}function oo(e){var t=Ct();return r1(t,dt,e)}function r1(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var M=c.next;c.next=d.next,d.next=M}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var j=M=null,R=null,q=t,ee=!1;do{var ce=q.lane&-536870913;if(ce!==q.lane?(Qe&ce)===ce:(kn&ce)===ce){var U=q.revertLane;if(U===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ce===Ll&&(ee=!0);else if((kn&U)===U){q=q.next,U===Ll&&(ee=!0);continue}else ce={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(j=R=ce,M=d):R=R.next=ce,$e.lanes|=U,rl|=U;ce=q.action,Ul&&a(d,ce),d=q.hasEagerState?q.eagerState:a(d,ce)}else U={lane:ce,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(j=R=U,M=d):R=R.next=U,$e.lanes|=ce,rl|=ce;q=q.next}while(q!==null&&q!==t);if(R===null?M=d:R.next=j,!Ma(d,e.memoizedState)&&(Tt=!0,ee&&(a=Si,a!==null)))throw a;e.memoizedState=d,e.baseState=M,e.baseQueue=R,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function s1(e){var t=Ct(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,c=a.pending,d=t.memoizedState;if(c!==null){a.pending=null;var M=c=c.next;do d=e(d,M.action),M=M.next;while(M!==c);Ma(d,t.memoizedState)||(Tt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,l]}function Q2(e,t,a){var l=$e,c=Ct(),d=Ye;if(d){if(a===void 0)throw Error(r(407));a=a()}else a=t();var M=!Ma((dt||c).memoizedState,a);if(M&&(c.memoizedState=a,Tt=!0),c=c.queue,u1(th.bind(null,l,c,e),[e]),e=c.getSnapshot!==t||M||jt!==null&&(jt.memoizedState.tag&1)!==0,ji(e?9:8,{destroy:void 0},eh.bind(null,l,c,a,t),null),e){if(l.flags|=2048,ft===null)throw Error(r(349));d||(kn&127)!==0||J2(l,t,a)}return a}function J2(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=$e.updateQueue,t===null?(t=ro(),$e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function eh(e,t,a,l){t.value=a,t.getSnapshot=l,ah(t)&&nh(e)}function th(e,t,a){return a(function(){ah(t)&&nh(e)})}function ah(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ma(e,a)}catch{return!0}}function nh(e){var t=kl(e,2);t!==null&&ca(t,e,2)}function o1(e){var t=ea();if(typeof e=="function"){var a=e;if(e=a(),Ul){na(!0);try{a()}finally{na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function lh(e,t,a,l){return e.baseState=a,r1(e,dt,typeof l=="function"?l:An)}function d6(e,t,a,l,c){if(fo(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){d.listeners.push(M)}};$.T!==null?a(!0):d.isTransition=!1,l(d),a=t.pending,a===null?(d.next=t.pending=d,ih(t,d)):(d.next=a.next,t.pending=a.next=d)}}function ih(e,t){var a=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=$.T,M={};M.types=d!==null?d.types:null,$.T=M;try{var j=a(c,l),R=$.S;R!==null&&R(M,j),rh(e,t,j)}catch(q){c1(e,t,q)}finally{d!==null&&M.types!==null&&(d.types=M.types),$.T=d}}else try{d=a(c,l),rh(e,t,d)}catch(q){c1(e,t,q)}}function rh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){sh(e,t,l)},function(l){return c1(e,t,l)}):sh(e,t,a)}function sh(e,t,a){t.status="fulfilled",t.value=a,oh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ih(e,a)))}function c1(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,oh(t),t=t.next;while(t!==l)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ch(e,t){return t}function uh(e,t){if(Ye){var a=ft.formState;if(a!==null){e:{var l=$e;if(Ye){if(mt){t:{for(var c=mt,d=Da;c.nodeType!==8;){if(!d){c=null;break t}if(c=La(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){mt=La(c.nextSibling),l=c.data==="F!";break e}}Yn(l)}l=!1}l&&(t=a[0])}}return a=ea(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:t},a.queue=l,a=kh.bind(null,$e,l),l.dispatch=a,l=o1(!1),d=v1.bind(null,$e,!1,l.queue),l=ea(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,a=d6.bind(null,$e,c,d,a),c.dispatch=a,l.memoizedState=e,[t,a,!1]}function dh(e){var t=Ct();return fh(t,dt,e)}function fh(e,t,a){if(t=r1(e,t,ch)[0],e=oo(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Dr(t)}catch(M){throw M===wi?Qs:M}else l=t;t=Ct();var c=t.queue,d=c.dispatch;return a!==t.memoizedState&&($e.flags|=2048,ji(9,{destroy:void 0},f6.bind(null,c,a),null)),[l,d,e]}function f6(e,t){e.action=t}function hh(e){var t=Ct(),a=dt;if(a!==null)return fh(t,a,e);Ct(),t=t.memoizedState,a=Ct();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ji(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=$e.updateQueue,t===null&&(t=ro(),$e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function mh(){return Ct().memoizedState}function co(e,t,a,l){var c=ea();$e.flags|=e,c.memoizedState=ji(1|t,{destroy:void 0},a,l===void 0?null:l)}function uo(e,t,a,l){var c=Ct();l=l===void 0?null:l;var d=c.memoizedState.inst;dt!==null&&l!==null&&e1(l,dt.memoizedState.deps)?c.memoizedState=ji(t,d,a,l):($e.flags|=e,c.memoizedState=ji(1|t,d,a,l))}function vh(e,t){co(8390656,8,e,t)}function u1(e,t){uo(2048,8,e,t)}function h6(e){$e.flags|=4;var t=$e.updateQueue;if(t===null)t=ro(),$e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ph(e){var t=Ct().memoizedState;return h6({ref:t,nextImpl:e}),function(){if((it&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return uo(4,2,e,t)}function yh(e,t){return uo(4,4,e,t)}function bh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Mh(e,t,a){a=a!=null?a.concat([e]):null,uo(4,4,bh.bind(null,t,e),a)}function d1(){}function xh(e,t){var a=Ct();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&e1(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Sh(e,t){var a=Ct();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&e1(t,l[1]))return l[0];if(l=e(),Ul){na(!0);try{e()}finally{na(!1)}}return a.memoizedState=[l,t],l}function f1(e,t,a){return a===void 0||(kn&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Rm(),$e.lanes|=e,rl|=e,a)}function wh(e,t,a,l){return Ma(a,t)?a:el.current!==null?(e=f1(e,a,l),Ma(e,t)||(Tt=!0),e):(kn&106)===0||(kn&1073741824)!==0&&(Qe&261930)===0?(Tt=!0,e.memoizedState=a):(e=Rm(),$e.lanes|=e,rl|=e,t)}function Ch(e,t,a,l,c){var d=te.p;te.p=d!==0&&8>d?d:8;var M=$.T,j={};j.types=M!==null?M.types:null,$.T=j,v1(e,!1,t,a);try{var R=c(),q=$.S;if(q!==null&&q(j,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ee=o6(R,l);Or(e,t,ee,Ea(e))}else Or(e,t,l,Ea(e))}catch(ce){Or(e,t,{then:function(){},status:"rejected",reason:ce},Ea())}finally{te.p=d,M!==null&&j.types!==null&&(M.types=j.types),$.T=M}}function m6(){}function h1(e,t,a,l){if(e.tag!==5)throw Error(r(476));var c=Eh(e).queue;Ch(e,c,t,Te,a===null?m6:function(){return zh(e),a(l)})}function Eh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Te,baseState:Te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=Eh(e);t.next===null&&(t=e.alternate.memoizedState),Or(e,t.next.queue,{},Ea())}function m1(){return Vt(Pi)}function jh(){return Ct().memoizedState}function Th(){return Ct().memoizedState}function v6(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ea();e=Qn(a);var l=Jn(t,e,a);l!==null&&(ca(l,t,a),Tr(l,t,a)),t={cache:Vu()},e.payload=t;return}t=t.return}}function p6(e,t,a){var l=Ea();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fo(e)?Ah(t,a):(a=Du(e,t,a,l),a!==null&&(ca(a,e,l),Nh(a,t,l)))}function kh(e,t,a){var l=Ea();Or(e,t,a,l)}function Or(e,t,a,l){var c={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fo(e))Ah(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var M=t.lastRenderedState,j=d(M,a);if(c.hasEagerState=!0,c.eagerState=j,Ma(j,M))return Vs(e,t,c,0),ft===null&&Is(),!1}catch{}finally{}if(a=Du(e,t,c,l),a!==null)return ca(a,e,l),Nh(a,t,l),!0}return!1}function v1(e,t,a,l){if(l={lane:2,revertLane:id(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fo(e)){if(t)throw Error(r(479))}else t=Du(e,a,l,2),t!==null&&ca(t,e,2)}function fo(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Ah(e,t){Ei=lo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Nh(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Rf(e,a)}}var ho={readContext:Vt,use:so,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt,useEffectEvent:Mt},Rh={readContext:Vt,use:so,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:vh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,co(4194308,4,bh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return co(4194308,4,e,t)},useInsertionEffect:function(e,t){co(4,2,e,t)},useMemo:function(e,t){var a=ea();t=t===void 0?null:t;var l=e();if(Ul){na(!0);try{e()}finally{na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ea();if(a!==void 0){var c=a(t);if(Ul){na(!0);try{a(t)}finally{na(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=p6.bind(null,$e,e),[l.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:function(e){e=o1(e);var t=e.queue,a=kh.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:d1,useDeferredValue:function(e,t){var a=ea();return f1(a,e,t)},useTransition:function(){var e=o1(!1);return e=Ch.bind(null,$e,e.queue,!0,!1),ea().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=$e,c=ea();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),ft===null)throw Error(r(349));(Qe&127)!==0||J2(l,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,vh(th.bind(null,l,d,e),[e]),l.flags|=2048,ji(9,{destroy:void 0},eh.bind(null,l,d,a,t),null),a},useId:function(){var e=ea(),t=ft.identifierPrefix;if(Ye){var a=nn,l=an;a=(l&~(1<<32-Nt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=io++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=c6++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:m1,useFormState:uh,useActionState:uh,useOptimistic:function(e){var t=ea();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=v1.bind(null,$e,!0,a),a.dispatch=t,[e,t]},useMemoCache:i1,useCacheRefresh:function(){return ea().memoizedState=v6.bind(null,$e)},useEffectEvent:function(e){var t=ea(),a={impl:e};return t.memoizedState=a,function(){if((it&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Dh={readContext:Vt,use:so,useCallback:xh,useContext:Vt,useEffect:u1,useImperativeHandle:Mh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:oo,useRef:mh,useState:function(){return oo(An)},useDebugValue:d1,useDeferredValue:function(e,t){var a=Ct();return wh(a,dt.memoizedState,e,t)},useTransition:function(){var e=oo(An)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Dr(e),t]},useSyncExternalStore:Q2,useId:jh,useHostTransitionStatus:m1,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var a=Ct();return lh(a,dt,e,t)},useMemoCache:i1,useCacheRefresh:Th,useEffectEvent:ph},g6={readContext:Vt,use:so,useCallback:xh,useContext:Vt,useEffect:u1,useImperativeHandle:Mh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:s1,useRef:mh,useState:function(){return s1(An)},useDebugValue:d1,useDeferredValue:function(e,t){var a=Ct();return dt===null?f1(a,e,t):wh(a,dt.memoizedState,e,t)},useTransition:function(){var e=s1(An)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Dr(e),t]},useSyncExternalStore:Q2,useId:jh,useHostTransitionStatus:m1,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var a=Ct();return dt!==null?lh(a,dt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:i1,useCacheRefresh:Th,useEffectEvent:ph};function p1(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:ae({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var g1={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Ea(),c=Qn(l);c.payload=t,a!=null&&(c.callback=a),t=Jn(e,c,l),t!==null&&(ca(t,e,l),Tr(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Ea(),c=Qn(l);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Jn(e,c,l),t!==null&&(ca(t,e,l),Tr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ea(),l=Qn(a);l.tag=2,t!=null&&(l.callback=t),t=Jn(e,l,a),t!==null&&(ca(t,e,a),Tr(t,e,a))}};function Oh(e,t,a,l,c,d,M){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,M):t.prototype&&t.prototype.isPureReactComponent?!Mr(a,l)||!Mr(c,d):!0}function Lh(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&g1.enqueueReplaceState(t,t.state,null)}function Il(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=ae({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function Hh(e){Us(e)}function Bh(e){console.error(e)}function _h(e){Us(e)}function mo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Fh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function y1(e,t,a){return a=Qn(a),a.tag=3,a.payload={element:null},a.callback=function(){mo(e,t)},a}function Uh(e){return e=Qn(e),e.tag=3,e}function Ih(e,t,a,l){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){Fh(t,a,l)}}var M=a.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(e.callback=function(){Fh(t,a,l),typeof c!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var j=l.stack;this.componentDidCatch(l.value,{componentStack:j!==null?j:""})})}function y6(e,t,a,l,c){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Dl(t,a,c,!0),a=qt.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Zt===null?Lo():a.alternate===null&&xt===0&&(xt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,l===Js?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),ad(e,l,c)),!1;case 22:return a.flags|=65536,l===Js?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),ad(e,l,c)),!1}throw Error(r(435,a.tag))}return ad(e,l,c),Lo(),!1}if(Ye)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==_u&&(e=Error(r(422),{cause:l}),wr(Aa(e,a)))):(l!==_u&&(t=Error(r(423),{cause:l}),wr(Aa(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Aa(l,a),c=y1(e.stateNode,l,c),Yu(e,c),xt!==4&&(xt=2)),!1;var d=Error(r(520),{cause:l});if(d=Aa(d,a),Vr===null?Vr=[d]:Vr.push(d),xt!==4&&(xt=2),t===null)return!0;l=Aa(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=y1(a.stateNode,l,e),Yu(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(sl===null||!sl.has(d))))return a.flags|=65536,c&=-c,a.lanes|=c,c=Uh(c),Ih(c,e,a,l),Yu(a,c),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var b1=Error(r(461)),Tt=!1;function Rt(e,t,a,l){t.child=e===null?G2(t,null,a,l):Fl(t,e.child,a,l)}function Vh(e,t,a,l,c){a=a.render;var d=t.ref;if("ref"in l){var M={};for(var j in l)j!=="ref"&&(M[j]=l[j])}else M=l;return Ol(t),l=t1(e,t,a,M,d,c),j=a1(),e!==null&&!Tt?(n1(e,t,c),Nn(e,t,c)):(Ye&&j&&Ps(t),t.flags|=1,Rt(e,t,l,c),t.child)}function qh(e,t,a,l,c){if(e===null){var d=a.type;return typeof d=="function"&&!Ou(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,$h(e,t,d,l,c)):(e=$s(a.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!j1(e,c)){var M=d.memoizedProps;if(a=a.compare,a=a!==null?a:Mr,a(M,l)&&e.ref===t.ref)return Nn(e,t,c)}return t.flags|=1,e=En(d,l),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,a,l,c){if(e!==null){var d=e.memoizedProps;if(Mr(d,l)&&e.ref===t.ref)if(Tt=!1,t.pendingProps=l=d,j1(e,c))(e.flags&131072)!==0&&(Tt=!0);else return t.lanes=e.lanes,Nn(e,t,c)}return M1(e,t,a,l,c)}function Gh(e,t,a,l){var c=l.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|a:a,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~d}else l=0,t.child=null;return Ph(e,t,d,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ws(t,d!==null?d.cachePool:null),d!==null?Y2(t,d):Zu(),X2(t);else return l=t.lanes=536870912,Ph(e,t,d!==null?d.baseLanes|a:a,a,l)}else d!==null?(Ws(t,d.cachePool),Y2(t,d),al(),t.memoizedState=null):(e!==null&&Ws(t,null),Zu(),al());return Rt(e,t,c,a),t.child}function Lr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ph(e,t,a,l,c){var d=$u();return d=d===null?null:{parent:zt._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&Ws(t,null),Zu(),X2(t),e!==null&&Dl(e,t,l,!0),t.childLanes=c,null}function vo(e,t){return t=po({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kh(e,t,a){return Fl(t,e.child,null,a),e=vo(t,t.pendingProps),e.flags|=2,xa(t),t.memoizedState=null,e}function b6(e,t,a){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(l.mode==="hidden")return e=vo(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lr(null,e);if(Qu(t),(e=mt)?(e=bv(e,Da),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:an,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},a=A2(e),a.return=t,t.child=a,Ht=t,mt=null)):e=null,e===null)throw Yn(t);return t.lanes=536870912,null}return vo(t,l)}var d=e.memoizedState;if(d!==null){var M=d.dehydrated;if(Qu(t),c)if(t.flags&256)t.flags&=-257,t=Kh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Tt||Dl(e,t,a,!1),c=(a&e.childLanes)!==0,Tt||c){if(el.current===null){if(l=ft,l!==null&&(M=Df(l,a),M!==0&&M!==d.retryLane))throw d.retryLane=M,kl(e,M),ca(l,e,M),b1;Lo()}t=Kh(e,t,a)}else e=d.treeContext,mt=La(M.nextSibling),Ht=t,Ye=!0,Kn=null,Da=!1,e!==null&&D2(t,e),t=vo(t,l),t.flags|=134221824;return t}return e=En(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ti(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function M1(e,t,a,l,c){return Ol(t),a=t1(e,t,a,l,void 0,c),l=a1(),e!==null&&!Tt?(n1(e,t,c),Nn(e,t,c)):(Ye&&l&&Ps(t),t.flags|=1,Rt(e,t,a,c),t.child)}function Yh(e,t,a,l,c,d){return Ol(t),t.updateQueue=null,a=W2(t,l,a,c),Z2(e),l=a1(),e!==null&&!Tt?(n1(e,t,d),Nn(e,t,d)):(Ye&&l&&Ps(t),t.flags|=1,Rt(e,t,a,d),t.child)}function Xh(e,t,a,l,c){if(Ol(t),t.stateNode===null){var d=yi,M=a.contextType;typeof M=="object"&&M!==null&&(d=Vt(M)),d=new a(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=g1,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},Pu(t),M=a.contextType,d.context=typeof M=="object"&&M!==null?Vt(M):yi,d.state=t.memoizedState,M=a.getDerivedStateFromProps,typeof M=="function"&&(p1(t,a,M,l),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(M=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),M!==d.state&&g1.enqueueReplaceState(d,d.state,null),Ar(t,l,d,c),kr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var j=t.memoizedProps,R=Il(a,j);d.props=R;var q=d.context,ee=a.contextType;M=yi,typeof ee=="object"&&ee!==null&&(M=Vt(ee));var ce=a.getDerivedStateFromProps;ee=typeof ce=="function"||typeof d.getSnapshotBeforeUpdate=="function",j=t.pendingProps!==j,ee||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(j||q!==M)&&Lh(t,d,l,M),Wn=!1;var U=t.memoizedState;d.state=U,Ar(t,l,d,c),kr(),q=t.memoizedState,j||U!==q||Wn?(typeof ce=="function"&&(p1(t,a,ce,l),q=t.memoizedState),(R=Wn||Oh(t,a,R,l,U,q,M))?(ee||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=q),d.props=l,d.state=q,d.context=M,l=R):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,Ku(e,t),M=t.memoizedProps,ee=Il(a,M),d.props=ee,ce=t.pendingProps,U=d.context,q=a.contextType,R=yi,typeof q=="object"&&q!==null&&(R=Vt(q)),j=a.getDerivedStateFromProps,(q=typeof j=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(M!==ce||U!==R)&&Lh(t,d,l,R),Wn=!1,U=t.memoizedState,d.state=U,Ar(t,l,d,c),kr();var Q=t.memoizedState;M!==ce||U!==Q||Wn||e!==null&&e.dependencies!==null&&Xs(e.dependencies)?(typeof j=="function"&&(p1(t,a,j,l),Q=t.memoizedState),(ee=Wn||Oh(t,a,ee,l,U,Q,R)||e!==null&&e.dependencies!==null&&Xs(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,Q,R),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,Q,R)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||M===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=Q),d.props=l,d.state=Q,d.context=R,l=ee):(typeof d.componentDidUpdate!="function"||M===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||M===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Ti(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=Fl(t,e.child,null,c),t.child=Fl(t,null,a,c)):Rt(e,t,a,c),t.memoizedState=d.state,e=t.child):e=Nn(e,t,c),e}function Zh(e,t,a,l){return Nl(),t.flags|=256,Rt(e,t,a,l),t.child}var x1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function S1(e){return{baseLanes:e,cachePool:F2()}}function w1(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ca),e}function Wh(e,t,a){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,M;if((M=d)||(M=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),M&&(c=!0,t.flags&=-129),M=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(c?tl(t):al(),(e=mt)?(e=bv(e,Da),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:an,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},a=A2(e),a.return=t,t.child=a,Ht=t,mt=null)):e=null,e===null)throw Yn(t);return Sd(e)?t.lanes=32:t.lanes=536870912,null}return d=l.children,l=l.fallback,c?(al(),c=t.mode,d=po({mode:"hidden",children:d},c),l=Al(l,c,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=S1(a),l.childLanes=w1(e,M,a),t.memoizedState=x1,Lr(null,l)):(tl(t),C1(t,d))}var j=e.memoizedState;if(j!==null){var R=j.dehydrated;if(R!==null)return M6(e,t,d,M,l,R,j,a)}return c?(al(),c=l.fallback,d=t.mode,j=e.child,R=j.sibling,l=En(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&1206910976,R!==null?c=En(R,c):(c=Al(c,d,a,null),c.flags|=2),c.return=t,l.return=t,l.sibling=c,t.child=l,Lr(null,l),l=t.child,c=e.child.memoizedState,c===null?c=S1(a):(d=c.cachePool,d!==null?(j=zt._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=F2(),c={baseLanes:c.baseLanes|a,cachePool:d}),l.memoizedState=c,l.childLanes=w1(e,M,a),t.memoizedState=x1,Lr(e.child,l)):(tl(t),a=e.child,e=a.sibling,a=En(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(M=t.deletions,M===null?(t.deletions=[e],t.flags|=16):M.push(e)),t.child=a,t.memoizedState=null,a)}function C1(e,t){return t=po({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function po(e,t){return e=ia(22,e,null,t),e.lanes=0,e}function go(e,t,a){return Fl(t,e.child,null,a),e=C1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M6(e,t,a,l,c,d,M,j){if(a)return t.flags&256?(tl(t),t.flags&=-257,go(e,t,j)):t.memoizedState!==null?(al(),t.child=e.child,t.flags|=128,null):(al(),d=c.fallback,M=t.mode,c=po({mode:"visible",children:c.children},M),d=Al(d,M,j,null),d.flags|=2,c.return=t,d.return=t,c.sibling=d,t.child=c,Fl(t,e.child,null,j),c=t.child,c.memoizedState=S1(j),c.childLanes=w1(e,l,j),t.memoizedState=x1,Lr(null,c));if(tl(t),Sd(d)){if(l=d.nextSibling&&d.nextSibling.dataset,l)var R=l.dgst;return l=R,l!==""&&(c=Error(r(419)),c.stack="",c.digest=l,wr({value:c,source:null,stack:null})),go(e,t,j)}if(Tt||Dl(e,t,j,!1),l=(j&e.childLanes)!==0,Tt||l){if(el.current!==null)return go(e,t,j);if(l=ft,l!==null&&(c=Df(l,j),c!==0&&c!==M.retryLane))throw M.retryLane=c,kl(e,c),ca(l,e,c),b1;return xd(d)||Lo(),go(e,t,j)}return xd(d)?(t.flags|=192,t.child=e.child,null):(e=M.treeContext,mt=La(d.nextSibling),Ht=t,Ye=!0,Kn=null,Da=!1,e!==null&&D2(t,e),t=C1(t,c.children),t.flags|=134221824,t)}function Qh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ys(e.return,t,a)}function Jh(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&no(a)===null&&(t=e),e=e.sibling}return t}function yo(e,t,a,l,c,d){var M=e.memoizedState;M===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:c,treeForkCount:d}:(M.isBackwards=t,M.rendering=null,M.renderingStartTime=0,M.last=l,M.tail=a,M.tailMode=c,M.treeForkCount=d)}function E1(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function z1(e,t,a){var l=t.pendingProps,c=l.revealOrder,d=l.tail;l=l.children;var M=$t.current;if(t.flags&128)return Nr(t,M),null;var j=(M&2)!==0;if(j?(M=M&1|2,t.flags|=128):M&=1,Nr(t,M),c==="backwards"&&e!==null?(E1(e),Rt(e,t,l,a),E1(e)):Rt(e,t,l,a),l=Ye?Sr:0,!j&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qh(e,a,t);else if(e.tag===19)Qh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"backwards":a=Jh(t.child),a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null,E1(t)),yo(t,!0,c,null,d,l);break;case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&no(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}yo(t,!0,a,null,d,l);break;case"together":yo(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:a=Jh(t.child),a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),yo(t,!1,c,a,d,l)}return t.child}function em(e,t,a){var l=t.pendingProps;return Xn(t,t.type,l.value),Rt(e,t,l.children,a),t.child}function Nn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),rl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Dl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=En(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=En(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function j1(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xs(e)))}function x6(e,t,a){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Xn(t,zt,e.memoizedState.cache),Nl();break;case 27:case 5:ke(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qu(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return tl(t),t.flags|=128,null;l=Dl(e,t,a,!1);var c=t.child.childLanes;return l||(a&c)!==0?Wh(e,t,a):(tl(t),e=Nn(e,t,a),e!==null?e.sibling:null)}tl(t);break;case 19:if(t.flags&128)return z1(e,t,a);if(c=(e.flags&128)!==0,l=(a&t.childLanes)!==0,l||(Dl(e,t,a,!1),l=(a&t.childLanes)!==0),c){if(l)return z1(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Nr(t,$t.current),l)break;return null;case 22:return t.lanes=0,Gh(e,t,a,t.pendingProps);case 24:Xn(t,zt,e.memoizedState.cache)}return Nn(e,t,a)}function tm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Tt=!0;else{if(!j1(e,a)&&(t.flags&128)===0)return Tt=!1,x6(e,t,a);Tt=(e.flags&131072)!==0}else Tt=!1,Ye&&(t.flags&1048576)!==0&&R2(t,Sr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Bl(t.elementType),t.type=e,typeof e=="function")Ou(e)?(l=Il(e,l),t.tag=1,t=Xh(null,t,e,l,a)):(t.tag=0,t=M1(null,t,e,l,a));else{if(e!=null){var c=e.$$typeof;if(c===A){t.tag=11,t=Vh(null,t,e,l,a);break e}else if(c===ve){t.tag=14,t=qh(null,t,e,l,a);break e}else if(c===F){t.tag=10,t.type=e,t=em(null,t,a);break e}}throw t=Ce(e)||e,Error(r(306,t,""))}}return t;case 0:return M1(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,c=Il(l,t.pendingProps),Xh(e,t,l,c,a);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,Ku(e,t),Ar(t,l,null,a);var M=t.memoizedState;if(l=M.cache,Xn(t,zt,l),l!==d.cache&&Iu(t,[zt],a,!0),kr(),l=M.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:M.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Zh(e,t,l,a);break e}else if(l!==c){c=Aa(Error(r(424)),t),wr(c),t=Zh(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(mt=La(e.firstChild),Ht=t,Ye=!0,Kn=null,Da=!0,a=G2(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling}else{if(Nl(),l===c){t=Nn(e,t,a);break e}Rt(e,t,l,a)}t=t.child}return t;case 26:return Ti(e,t),e===null?(a=zv(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ye||(t.stateNode=iv(t.type,t.pendingProps,N.current,t)):t.memoizedState=zv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ke(t),e===null&&Ye&&(l=t.stateNode=Sv(t.type,t.pendingProps,N.current),Ht=t,Da=!0,c=mt,ul(t.type)?(wd=c,mt=La(l.firstChild)):mt=c),Rt(e,t,t.pendingProps.children,a),Ti(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&((c=l=mt)&&(l=vw(l,t.type,t.pendingProps,Da),l!==null?(t.stateNode=l,Ht=t,mt=La(l.firstChild),Da=!1,c=!0):c=!1),c||Yn(t)),ke(t),c=t.type,d=t.pendingProps,M=e!==null?e.memoizedProps:null,l=d.children,md(c,d)?l=null:M!==null&&md(c,M)&&(t.flags|=32),t.memoizedState!==null&&(c=t1(e,t,u6,null,null,a),Pi._currentValue=c),Ti(e,t),Rt(e,t,l,a),t.child;case 6:return e===null&&Ye&&((e=a=mt)&&(a=pw(a,t.pendingProps,Da),a!==null?(t.stateNode=a,Ht=t,mt=null,e=!0):e=!1),e||Yn(t)),null;case 13:return Wh(e,t,a);case 4:return me(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fl(t,null,l,a):Rt(e,t,l,a),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,a);case 7:return l=t.pendingProps,Ti(e,t),Rt(e,t,l,a),t.child;case 8:return Rt(e,t,t.pendingProps.children,a),t.child;case 12:return Rt(e,t,t.pendingProps.children,a),t.child;case 10:return em(e,t,a);case 9:return c=t.type._context,l=t.pendingProps.children,Ol(t),c=Vt(c),l=l(c),t.flags|=1,Rt(e,t,l,a),t.child;case 14:return qh(e,t,t.type,t.pendingProps,a);case 15:return $h(e,t,t.type,t.pendingProps,a);case 19:return z1(e,t,a);case 31:return b6(e,t,a);case 22:return Gh(e,t,a,t.pendingProps);case 24:return Ol(t),l=Vt(zt),e===null?(c=$u(),c===null&&(c=ft,d=Vu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=a),c=d),t.memoizedState={parent:l,cache:c},Pu(t),Xn(t,zt,c)):((e.lanes&a)!==0&&(Ku(e,t),Ar(t,null,null,a),kr()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Xn(t,zt,l)):(l=d.cache,Xn(t,zt,l),l!==c.cache&&Iu(t,[zt],a,!0))),Rt(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:Ye&&Ps(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:Ti(e,t),Rt(e,t,l.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Rn(e){e.flags|=4}function T1(e,t,a,l,c){var d;if((d=(e.mode&32)!==0)&&(d=a===null?Av(t,l):Av(t,l)&&(l.src!==a.src||l.srcSet!==a.srcSet)),d){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Hm())e.flags|=8192;else throw _l=Js,Gu}else e.flags&=-16777217}function am(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nv(t))if(Hm())e.flags|=8192;else throw _l=Js,Gu}function bo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qn():536870912,e.lanes|=t,Di|=t)}function Hr(e,t){if(!Ye)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,l|=c.subtreeFlags&1206910976,l|=c.flags&1206910976,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function S6(e,t,a){var l=t.pendingProps;switch(Bu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return vt(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(zt),pe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(xi(t)?Rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fu())),vt(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(Rn(t),d!==null?(vt(t),am(t,d)):(vt(t),T1(t,c,null,l,a))):d?d!==e.memoizedState?(Rn(t),vt(t),am(t,d)):(vt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Rn(t),vt(t),T1(t,c,e,l,a)),null;case 27:if(Re(t),a=N.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return vt(t),t.subtreeFlags&=-33554433,null}e=oe.current,xi(t)?O2(t):(e=Sv(c,l,a),t.stateNode=e,Rn(t))}return vt(t),t.subtreeFlags&=-33554433,null;case 5:if(Re(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return vt(t),t.subtreeFlags&=-33554433,null}if(d=oe.current,xi(t))O2(t);else{var M=Kr(N.current);switch(d){case 1:d=M.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=M.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=M.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=M.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=M.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?M.createElement("select",{is:l.is}):M.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?M.createElement(c,{is:l.is}):M.createElement(c)}}d[It]=t,d[la]=l;e:for(M=t.child;M!==null;){if(M.tag===5||M.tag===6)d.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===t)break e;for(;M.sibling===null;){if(M.return===null||M.return===t)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}t.stateNode=d;e:switch(Pt(d,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Rn(t)}}return vt(t),t.subtreeFlags&=-33554433,T1(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=N.current,xi(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,c=Ht,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[It]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||tv(e.nodeValue,a)),e||Yn(t,!0)}else e=Kr(e).createTextNode(l),e[It]=t,t.stateNode=e}return vt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=xi(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[It]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;vt(t),e=!1}else a=Fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xa(t),t):(xa(t),null);if((t.flags&128)!==0)throw Error(r(558))}return vt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=xi(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[It]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;vt(t),c=!1}else c=Fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(xa(t),t):(xa(t),null)}return xa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),bo(t,t.updateQueue),vt(t),null);case 4:return pe(),e===null&&cd(t.stateNode.containerInfo),t.flags|=67108864,vt(t),null;case 10:return Tn(t.type),vt(t),null;case 19:if(Ju(t),l=t.memoizedState,l===null)return vt(t),null;if(c=(t.flags&128)!==0,d=l.rendering,d===null)if(c)Hr(l,!1);else{if(xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=no(e),d!==null){for(t.flags|=128,Hr(l,!1),e=d.updateQueue,t.updateQueue=e,bo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)k2(a,e),a=a.sibling;return Nr(t,$t.current&1|2),Ye&&zn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ut()>No&&(t.flags|=128,c=!0,Hr(l,!1),t.lanes=4194304)}else{if(!c)if(e=no(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,bo(t,e),Hr(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!d.alternate&&!Ye)return vt(t),null}else 2*Ut()-l.renderingStartTime>No&&a!==536870912&&(t.flags|=128,c=!0,Hr(l,!1),t.lanes=4194304);l.isBackwards?(d.sibling=t.child,t.child=d):(e=l.last,e!==null?e.sibling=d:t.child=d,l.last=d)}if(l.tail!==null){e=l.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ut(),e.sibling=null,d=$t.current,d=c?d&1|2:d&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!a||Ye?Nr(t,d):(a=d,O(qt,t),O($t,a),Zt===null&&(Zt=t)),Ye&&zn(t,l.treeForkCount),e}return vt(t),null;case 22:case 23:return xa(t),Wu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),a=t.updateQueue,a!==null&&bo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Ee(Hl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Tn(zt),vt(t),null;case 25:return null;case 30:return t.flags|=33554432,vt(t),null}throw Error(r(156,t.tag))}function w6(e,t){switch(Bu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(zt),pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Re(t),null;case 31:if(t.memoizedState!==null){if(xa(t),t.alternate===null)throw Error(r(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ju(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return pe(),null;case 10:return Tn(t.type),null;case 22:case 23:return xa(t),Wu(),e!==null&&Ee(Hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(zt),null;case 25:return null;default:return null}}function nm(e,t){switch(Bu(t),t.tag){case 3:Tn(zt),pe();break;case 26:case 27:case 5:Re(t);break;case 4:pe();break;case 31:t.memoizedState!==null&&xa(t);break;case 13:xa(t);break;case 19:Ju(t);break;case 10:Tn(t.type);break;case 22:case 23:xa(t),Wu(),e!==null&&Ee(Hl);break;case 24:Tn(zt)}}function Br(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&e)===e){l=void 0;var d=a.create,M=a.inst;l=d(),M.destroy=l}a=a.next}while(a!==c)}}catch(j){ct(t,t.return,j)}}function nl(e,t,a){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var M=l.inst,j=M.destroy;if(j!==void 0){M.destroy=void 0,c=t;var R=a,q=j;try{q()}catch(ee){ct(c,R,ee)}}}l=l.next}while(l!==d)}}catch(ee){ct(t,t.return,ee)}}function lm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{K2(t,a)}catch(l){ct(e,e.return,l)}}}function im(e,t,a){a.props=Il(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ct(e,t,l)}}function ln(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var c=e.stateNode,d=wn(e.memoizedProps,c);(c.ref===null||c.ref.name!==d)&&(c.ref=fv(d)),l=c.ref;break;case 7:if(e.stateNode===null){var M=new za(e);x(e.child,!1,hw,M,void 0,void 0),e.stateNode=M}l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(j){ct(e,t,j)}}function Gt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(c){ct(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){ct(e,t,c)}else a.current=null}function Mo(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)yv(e.stateNode,t[a])}function rm(e){for(var t=e.return;t!==null&&(A1(t)&&yv(e.stateNode,t.stateNode),!k1(t));)t=t.return}function _r(e){for(var t=e.return;t!==null&&(A1(t)&&mw(e.stateNode,t.stateNode),!k1(t));)t=t.return}function k1(e){return e.tag===5||e.tag===3||e.tag===27}function A1(e){return e&&e.tag===7&&e.stateNode!==null}function N1(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(c){ct(e,e.return,c)}}function R1(e,t,a){try{var l=e.stateNode;X6(l,e.type,a,t),l[la]=t}catch(c){ct(e,e.return,c)}}function sm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function D1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ul(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function O1(e,t,a,l){var c=e.tag;if(c===5||c===6)c=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(c,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(c),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=tn)),Mo(e,l),lt=!0;else if(c!==4&&(c===27&&(Mo(e,l),l=null,ul(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(O1(e,t,a,l),e=e.sibling;e!==null;)O1(e,t,a,l),e=e.sibling}function xo(e,t,a,l){var c=e.tag;if(c===5||c===6)c=e.stateNode,t?a.insertBefore(c,t):a.appendChild(c),Mo(e,l),lt=!0;else if(c!==4&&(c===27&&(Mo(e,l),l=null,ul(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(xo(e,t,a,l),e=e.sibling;e!==null;)xo(e,t,a,l),e=e.sibling}function om(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Pt(t,l,a),t[It]=e,t[la]=a}catch(d){ct(e,e.return,d)}}var So=!1,Sa=null;function cm(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(So=!0)}var rn=null;function um(){var e=rn;return rn=null,e}var ra=0;function ki(e,t,a,l,c){return ra=0,dm(e.child,t,a,l,c)}function dm(e,t,a,l,c){for(var d=!1;e!==null;){if(e.tag===5){var M=e.stateNode;if(l!==null){var j=gd(M);l.push(j),j.view&&(d=!0)}else d||gd(M).view&&(d=!0);So=!0,uv(M,ra===0?t:t+"_"+ra,a),ra++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&c||dm(e.child,t,a,l,c)&&(d=!0));e=e.sibling}return d}function sn(e,t){for(;e!==null;)e.tag===5?dv(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||sn(e.child,t)),e=e.sibling}function wo(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(wo(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(r(544));var a=t.name;t=Cn(t.default,t.share),t!=="none"&&(ki(e,a,t,null,!1)||sn(e.child,!1))}e=e.sibling}}function L1(e,t){if(e.tag===30){var a=e.stateNode,l=e.memoizedProps,c=wn(l,a),d=Cn(l.default,a.paired?l.share:l.enter);d!=="none"?ki(e,c,d,null,!1)?(wo(e),a.paired||t||Bi(e,l.onEnter)):sn(e.child,!1):wo(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)L1(e,t),e=e.sibling;else wo(e)}function H1(e){if(Sa!==null&&Sa.size!==0){var t=Sa;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,l=a.name;if(l!=null&&l!=="auto"){var c=t.get(l);if(c!==void 0){var d=Cn(a.default,a.share);if(d!=="none"&&(ki(e,l,d,null,!1)?(d=e.stateNode,c.paired=d,d.paired=c,Bi(e,a.onShare)):sn(e.child,!1)),t.delete(l),t.size===0)break}}}H1(e)}e=e.sibling}}}function B1(e){if(e.tag===30){var t=e.memoizedProps,a=wn(t,e.stateNode),l=Sa!==null?Sa.get(a):void 0,c=Cn(t.default,l!==void 0?t.share:t.exit);c!=="none"&&(ki(e,a,c,null,!1)?l!==void 0?(c=e.stateNode,l.paired=c,c.paired=l,Sa.delete(a),Bi(e,t.onShare)):Bi(e,t.onExit):sn(e.child,!1)),Sa!==null&&H1(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)B1(e),e=e.sibling;else Sa!==null&&H1(e)}function fm(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=wn(t,e.stateNode);t=Cn(t.default,t.update),e.flags&=-5,t!=="none"&&ki(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&fm(e);e=e.sibling}}function _1(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,sn(e.child,!1))}_1(e)}e=e.sibling}}function Co(e){if(e.tag===30)e.stateNode.paired=null,sn(e.child,!1),_1(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Co(e),e=e.sibling;else _1(e)}function hm(e){for(e=e.child;e!==null;)e.tag===30?sn(e.child,!1):(e.subtreeFlags&33554432)!==0&&hm(e),e=e.sibling}function F1(e,t,a,l,c,d,M){for(var j=!1;t!==null;){if(t.tag===5){var R=t.stateNode;if(d!==null&&ra<d.length){var q=d[ra],ee=gd(R);(q.view||ee.view)&&(j=!0);var ce;if(ce=(e.flags&4)===0)if(ee.clip)ce=!0;else{ce=q.rect;var U=ee.rect;ce=ce.y!==U.y||ce.x!==U.x||ce.height!==U.height||ce.width!==U.width}ce&&(e.flags|=4),ee.abs?ee=!q.abs:(q=q.rect,ee=ee.rect,ee=q.height!==ee.height||q.width!==ee.width),ee&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&uv(R,ra===0?a:a+"_"+ra,c),j&&(e.flags&4)!==0||(rn===null&&(rn=[]),rn.push(R,ra===0?l:l+"_"+ra,t.memoizedProps)),ra++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&M?e.flags|=t.flags&32:F1(e,t.child,a,l,c,d,M)&&(j=!0));t=t.sibling}return j}function mm(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,l=e.stateNode,c=wn(a,l),d=Cn(a.default,a.update),M;M=e.memoizedState,e.memoizedState=null,l=e;var j=e.child;ra=0,c=F1(l,j,c,c,d,M,!1),(e.flags&4)!==0&&c&&Bi(e,a.onUpdate)}else(e.subtreeFlags&33554432)!==0&&mm(e);e=e.sibling}}var Bt=!1,rt=!1,on=!1,U1=!1,vm=typeof WeakSet=="function"?WeakSet:Set,_t=null,cn=!1,Fr=!1,Eo=!1,I1=!1;function C6(e,t,a){if(e=e.containerInfo,fd=Ki,e=b2(e),ju(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,M=c.focusNode;c=c.focusOffset;try{l.nodeType,M.nodeType}catch{l=null;break e}var j=0,R=-1,q=-1,ee=0,ce=0,U=e,Q=null;t:for(;;){for(var Se;U!==l||d!==0&&U.nodeType!==3||(R=j+d),U!==M||c!==0&&U.nodeType!==3||(q=j+c),U.nodeType===3&&(j+=U.nodeValue.length),(Se=U.firstChild)!==null;)Q=U,U=Se;for(;;){if(U===e)break t;if(Q===l&&++ee===d&&(R=j),Q===M&&++ce===c&&(q=j),(Se=U.nextSibling)!==null)break;U=Q,Q=U.parentNode}U=Se}l=R===-1||q===-1?null:{start:R,end:q}}else l=null}l=l||{start:0,end:0}}else l=null;for(hd={focusedElem:e,selectionRange:l},Ki=!1,a=(a&335544064)===a,_t=t,t=a?9270:1024;_t!==null;){if(e=_t,a&&(l=e.deletions,l!==null))for(d=0;d<l.length;d++)a&&B1(l[d]);if(e.alternate===null&&(e.flags&2)!==0)a&&cm(e),zo(a);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&a&&B1(l),zo(a);continue}else if(l!==null&&l.memoizedState!==null){a&&cm(e),zo(a);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,_t=l):(a&&fm(e),zo(a))}}Sa=null}function zo(e){for(;_t!==null;){var t=_t,a=e,l=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((c&1024)!==0&&l!==null){a=void 0,c=l.memoizedProps,l=l.memoizedState;var d=t.stateNode;try{var M=Il(t.type,c);a=d.getSnapshotBeforeUpdate(M,l),d.__reactInternalSnapshotBeforeUpdate=a}catch(j){ct(t,t.return,j)}}break;case 3:if((c&1024)!==0){if(l=t.stateNode.containerInfo,a=l.nodeType,a===9)Md(l);else if(a===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Md(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&l!==null&&(a=wn(l.memoizedProps,l.stateNode),c=t.memoizedProps,c=Cn(c.default,c.update),c!=="none"&&ki(l,a,c,l.memoizedState=[],!0));break;default:if((c&1024)!==0)throw Error(r(163))}if(l=t.sibling,l!==null){l.return=t.return,_t=l;break}_t=t.return}}function pm(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:un(e,a),l&4&&Br(5,a);break;case 1:if(un(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(M){ct(a,a.return,M)}else{var c=Il(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(M){ct(a,a.return,M)}}l&64&&lm(a),l&512&&ln(a,a.return);break;case 3:if(un(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{K2(e,t)}catch(M){ct(a,a.return,M)}}break;case 27:t===null&&l&4&&om(a);case 26:case 5:un(e,a),t===null&&l&4&&N1(a),l&512&&ln(a,a.return);break;case 12:un(e,a);break;case 31:un(e,a),l&4&&Mm(e,a);break;case 13:un(e,a),l&4&&xm(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=H6.bind(null,a),gw(e,a))));break;case 22:if(l=a.memoizedState!==null||Bt,!l){var d=t!==null&&t.memoizedState!==null||rt;t=Bt,c=rt,Bt=l,(rt=d)&&!c?(l=2,(a.subtreeFlags&8772)!==0&&(l|=1),Va(e,a,l)):un(e,a),Bt=t,rt=c}break;case 30:un(e,a),l&512&&ln(a,a.return);break;case 7:l&512&&ln(a,a.return);default:un(e,a)}}function V1(e,t){for(e=e.child;e!==null;)gm(e,t),e=e.sibling}function gm(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var l=a.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var c=e.stateNode,d=e.memoizedProps.style,M=d!=null&&d.hasOwnProperty("display")?d.display:null;c.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(R){ct(e,e.return,R)}q1(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,lt=!0}catch(R){ct(e,e.return,R)}break;case 18:try{var j=e.stateNode;t?cv(j,!0):cv(e.stateNode,!1)}catch(R){ct(e,e.return,R)}break;case 22:case 23:e.memoizedState===null&&V1(e,t);break;default:V1(e,t)}}function q1(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,l=t;switch(a.tag){case 4:gm(a,l);break e;case 22:a.memoizedState===null&&q1(a,l);break e;default:q1(a,l)}}e=e.sibling}}function ym(e){var t=e.alternate;t!==null&&(e.alternate=null,ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&As(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,sa=!1;function Ua(e,t,a){for(a=a.child;a!==null;)bm(e,t,a),a=a.sibling}function bm(e,t,a){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Ot,a)}catch{}switch(a.tag){case 26:rt||Gt(a,t),Ua(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!rt&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:rt||Gt(a,t),_r(a);var l=gt,c=sa;ul(a.type)&&(gt=a.stateNode,sa=!1),Ua(e,t,a),wv(a.stateNode,a.type,a.memoizedProps),gt=l,sa=c;break;case 5:rt||Gt(a,t),_r(a);case 6:if(a.tag===6&&_r(a),l=gt,c=sa,gt=null,Ua(e,t,a),gt=l,sa=c,gt!==null)if(sa)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(a.stateNode),lt=!0}catch(d){ct(a,t,d)}else try{gt.removeChild(a.stateNode),lt=!0}catch(d){ct(a,t,d)}break;case 18:gt!==null&&(sa?(e=gt,ov(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Yi(e)):ov(gt,a.stateNode));break;case 4:l=gt,c=sa,gt=a.stateNode.containerInfo,sa=!0,Ua(e,t,a),gt=l,sa=c;break;case 0:case 11:case 14:case 15:nl(2,a,t),rt||nl(4,a,t),Ua(e,t,a);break;case 1:rt||(Gt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&im(a,t,l)),Ua(e,t,a);break;case 21:Ua(e,t,a);break;case 22:rt=(l=rt)||a.memoizedState!==null,Ua(e,t,a),rt=l;break;case 30:Gt(a,t),Ua(e,t,a);break;case 7:rt||Gt(a,t),Ua(e,t,a);break;default:Ua(e,t,a)}}function Mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yi(e)}catch(a){ct(t,t.return,a)}}}function xm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yi(e)}catch(a){ct(t,t.return,a)}}function E6(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vm),t;default:throw Error(r(435,e.tag))}}function jo(e,t){var a=E6(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var c=B6.bind(null,e,l);l.then(c,c)}})}function ta(e,t,a){var l=t.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c],M=e,j=t,R=j;e:for(;R!==null;){switch(R.tag){case 27:if(ul(R.type)){gt=R.stateNode,sa=!1;break e}break;case 5:gt=R.stateNode,sa=!1;break e;case 3:case 4:gt=R.stateNode.containerInfo,sa=!0;break e}R=R.return}if(gt===null)throw Error(r(160));bm(M,j,d),gt=null,sa=!1,M=d.alternate,M!==null&&(M.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sm(t,e,a),t=t.sibling}var Ia=null;function Sm(e,t,a){var l=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(c&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var d=0;d<l.length;d++){var M=l[d];M.ref.impl=M.nextImpl}ta(t,e,a),aa(e),c&4&&(nl(3,e,e.return),Br(3,e),nl(5,e,e.return));break;case 1:ta(t,e,a),aa(e),c&512&&(rt||l===null||Gt(l,l.return)),c&64&&Bt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(d=Ia,ta(t,e,a),aa(e),c&512&&(rt||l===null||Gt(l,l.return)),c&4)if(c=l!==null?l.memoizedState:null,a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null)if(Bt)e.stateNode=iv(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,c=d.ownerDocument||d;t:switch(t){case"title":l=c.getElementsByTagName("title")[0],(!l||l[dr]||l[It]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=c.createElement(t),c.head.insertBefore(l,c.querySelector("head > title"))),Pt(l,t,a),l[It]=e,Lt(l),t=l;break e;case"link":if(d=kv("link","href",c).get(t+(a.href||""))){for(M=0;M<d.length;M++)if(l=d[M],l.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&l.getAttribute("rel")===(a.rel==null?null:a.rel)&&l.getAttribute("title")===(a.title==null?null:a.title)&&l.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(M,1);break t}}l=c.createElement(t),Pt(l,t,a),c.head.appendChild(l);break;case"meta":if(d=kv("meta","content",c).get(t+(a.content||""))){for(M=0;M<d.length;M++)if(l=d[M],l.getAttribute("content")===(a.content==null?null:""+a.content)&&l.getAttribute("name")===(a.name==null?null:a.name)&&l.getAttribute("property")===(a.property==null?null:a.property)&&l.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&l.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(M,1);break t}}l=c.createElement(t),Pt(l,t,a),c.head.appendChild(l);break;default:throw Error(r(468,t))}l[It]=e,Lt(l),t=l}e.stateNode=t}else Bt||jd(d,e.type,e.stateNode);else e.stateNode=Tv(d,a,e.memoizedProps);else c!==a?(c===null?(t=l.stateNode,t===null||rt||t.parentNode.removeChild(t)):c.count--,a===null?Bt||jd(d,e.type,e.stateNode):Tv(d,a,e.memoizedProps)):a===null&&e.stateNode!==null&&R1(e,e.memoizedProps,l.memoizedProps);break;case 27:ta(t,e,a),aa(e),c&512&&(rt||l===null||Gt(l,l.return)),l!==null&&c&4&&R1(e,e.memoizedProps,l.memoizedProps);break;case 5:if(d=on,on=!1,ta(t,e,a),on=d,aa(e),c&512&&(rt||l===null||Gt(l,l.return)),e.flags&32){t=e.stateNode;try{di(t,""),lt=!0}catch(ee){ct(e,e.return,ee)}}c&4&&e.stateNode!=null&&(t=e.memoizedProps,R1(e,t,l!==null?l.memoizedProps:t)),c&1024&&(U1=!0);break;case 6:if(ta(t,e,a),aa(e),c&4){if(e.stateNode===null)throw Error(r(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,lt=!0}catch(ee){ct(e,e.return,ee)}}break;case 3:if(lt=!1,Vo=null,d=Ia,Ia=Yr(t.containerInfo),ta(t,e,a),Ia=d,aa(e),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Yi(t.containerInfo)}catch(ee){ct(e,e.return,ee)}U1&&(U1=!1,wm(e)),lt=!1;break;case 4:c=on,on=Bt,l=qf(),d=Ia,Ia=Yr(e.stateNode.containerInfo),ta(t,e,a),aa(e),Ia=d,lt&&Fr&&(Eo=!0),lt=l,on=c;break;case 12:ta(t,e,a),aa(e);break;case 31:ta(t,e,a),aa(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,jo(e,t)));break;case 13:ta(t,e,a),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ao=Ut()),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,jo(e,t)));break;case 22:d=e.memoizedState!==null,M=l!==null&&l.memoizedState!==null;var j=Bt,R=rt,q=on;Bt=j||d,on=q||d,rt=R||M,ta(t,e,a),rt=R,on=q,Bt=j,aa(e),c&8192&&(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,!d||l===null||M||Bt||rt||(t=M||rt,a=Bt,l=rt,Bt=d||Bt,rt=t,ll(e,2),Bt=a,rt=l),!d&&on||V1(e,d)),c&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,jo(e,a))));break;case 19:ta(t,e,a),aa(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,jo(e,t)));break;case 30:c&512&&(rt||l===null||Gt(l,l.return)),c=qf(),d=Fr,M=(a&335544064)===a,j=e.memoizedProps,Fr=M&&Cn(j.default,j.update)!=="none",ta(t,e,a),aa(e),M&&l!==null&<&&(e.flags|=4),Fr=d,lt=c;break;case 21:break;case 7:c&512&&(rt||l===null||Gt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:ta(t,e,a),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(sm(l)){a=l;break}l=l.return}l=null;for(var c=e.return;c!==null;){if(A1(c)){var d=c.stateNode;l===null?l=[d]:l.push(d)}if(k1(c))break;c=c.return}var M=l;if(a==null)throw Error(r(160));switch(a.tag){case 27:var j=a.stateNode,R=D1(e);xo(e,R,j,M);break;case 5:var q=a.stateNode;a.flags&32&&(di(q,""),a.flags&=-33);var ee=D1(e);xo(e,ee,q,M);break;case 3:case 4:var ce=a.stateNode.containerInfo,U=D1(e);O1(e,U,ce,M);break;default:throw Error(r(161))}}catch(Q){ct(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wm(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ki=!0,t.reset(),Ki=!1),e=e.sibling}}function Ai(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Cm(t,e),t=t.sibling;else mm(t)}function Cm(e,t){var a=e.alternate;if(a===null)L1(e,!1);else switch(e.tag){case 3:if(I1=cn=!1,um(),Ai(t,e),!cn&&!Eo){if(e=rn,e!==null)for(var l=0;l<e.length;l+=3){a=e[l];var c=e[l+1];dv(a,e[l+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+c+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),I1=!0}rn=null;break;case 5:Ai(t,e);break;case 4:l=cn,cn=!1,Ai(t,e),cn&&(Eo=!0),cn=l;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?L1(e,!1):Ai(t,e));break;case 30:l=cn,c=um(),cn=!1,Ai(t,e),cn&&(e.flags|=4);var d=e.memoizedProps,M=e.stateNode;t=wn(d,M),M=wn(a.memoizedProps,M);var j=Cn(d.default,d.update);j==="none"?t=!1:(d=a.memoizedState,a.memoizedState=null,a=e.child,ra=0,t=F1(e,a,t,M,j,d,!0),ra!==(d===null?0:d.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Bi(e,e.memoizedProps.onUpdate),rn=c):c!==null&&(c.push.apply(c,rn),rn=c),cn=(e.flags&32)!==0?!0:l;break;default:Ai(t,e)}}function un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pm(e,t.alternate,t),t=t.sibling}function ll(e,t){for(e=e.child;e!==null;){var a=e,l=t;switch(a.tag){case 0:case 11:case 14:case 15:nl(4,a,a.return),ll(a,l);break;case 1:Gt(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&im(a,a.return,c),ll(a,l);break;case 27:(l&2)!==0&&wv(a.stateNode,a.type,a.memoizedProps);case 5:Gt(a,a.return),a.tag!==5&&a.tag!==27||_r(a),ll(a,l);break;case 6:_r(a);break;case 26:Gt(a,a.return),c=a.stateNode,a.memoizedState!==null||c===null||rt||c.parentNode.removeChild(c),ll(a,l);break;case 22:a.memoizedState===null&&ll(a,l);break;case 30:Gt(a,a.return),ll(a,l);break;case 7:Gt(a,a.return);default:ll(a,l)}e=e.sibling}}function Va(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,M=d.flags,j=(a&1)!==0;switch(d.tag){case 0:case 11:case 15:Va(c,d,a),Br(4,d);break;case 1:if(Va(c,d,a),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(ee){ct(l,l.return,ee)}if(l=d,c=l.updateQueue,c!==null){var R=l.stateNode;try{var q=c.shared.hiddenCallbacks;if(q!==null)for(c.shared.hiddenCallbacks=null,c=0;c<q.length;c++)P2(q[c],R)}catch(ee){ct(l,l.return,ee)}}j&&M&64&&lm(d),ln(d,d.return);break;case 27:(a&2)!==0&&om(d);case 5:d.tag!==5&&d.tag!==27||rm(d),Va(c,d,a),j&&l===null&&M&4&&N1(d),ln(d,d.return);break;case 6:rm(d);break;case 26:R=d.stateNode,d.memoizedState!==null||R===null||Bt||jd(Yr(R.ownerDocument),d.type,R),Va(c,d,a),j&&l===null&&M&4&&N1(d),ln(d,d.return);break;case 12:Va(c,d,a);break;case 31:Va(c,d,a),j&&M&4&&Mm(c,d);break;case 13:Va(c,d,a),j&&M&4&&xm(c,d);break;case 22:d.memoizedState===null&&Va(c,d,a),ln(d,d.return);break;case 30:Va(c,d,a),ln(d,d.return);break;case 7:ln(d,d.return);default:Va(c,d,a)}t=t.sibling}}function $1(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cr(a))}function G1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cr(e))}function Oa(e,t,a,l){var c=(a&335544064)===a;if(t.subtreeFlags&(c?10262:10256))for(t=t.child;t!==null;)Em(e,t,a,l),t=t.sibling;else c&&hm(t)}function Em(e,t,a,l){var c=(a&335544064)===a;c&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Co(t);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Oa(e,t,a,l),d&2048&&Br(9,t);break;case 1:Oa(e,t,a,l);break;case 3:Oa(e,t,a,l),c&&I1&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),d&2048&&(d=null,t.alternate!==null&&(d=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==d&&(t.refCount++,d!=null&&Cr(d)));break;case 12:if(d&2048){Oa(e,t,a,l),d=t.stateNode;try{var M=t.memoizedProps,j=M.id,R=M.onPostCommit;typeof R=="function"&&R(j,t.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(q){ct(t,t.return,q)}}else Oa(e,t,a,l);break;case 31:Oa(e,t,a,l);break;case 13:Oa(e,t,a,l);break;case 23:break;case 22:M=t.stateNode,j=t.alternate,t.memoizedState!==null?(c&&j!==null&&j.memoizedState===null&&Co(j),M._visibility&2?Oa(e,t,a,l):Ur(e,t)):(c&&j!==null&&j.memoizedState!==null&&Co(t),M._visibility&2?Oa(e,t,a,l):(M._visibility|=2,Ni(e,t,a,l,(t.subtreeFlags&10256)!==0||!1))),d&2048&&$1(j,t);break;case 24:Oa(e,t,a,l),d&2048&&G1(t.alternate,t);break;case 30:c&&(d=t.alternate,d!==null&&(sn(d.child,!0),sn(t.child,!0))),Oa(e,t,a,l);break;default:Oa(e,t,a,l)}}function Ni(e,t,a,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,M=t,j=a,R=l,q=M.flags;switch(M.tag){case 0:case 11:case 15:Ni(d,M,j,R,c),Br(8,M);break;case 23:break;case 22:var ee=M.stateNode;M.memoizedState!==null?ee._visibility&2?Ni(d,M,j,R,c):Ur(d,M):(ee._visibility|=2,Ni(d,M,j,R,c)),c&&q&2048&&$1(M.alternate,M);break;case 24:Ni(d,M,j,R,c),c&&q&2048&&G1(M.alternate,M);break;default:Ni(d,M,j,R,c)}t=t.sibling}}function Ur(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,c=l.flags;switch(l.tag){case 22:Ur(a,l),c&2048&&$1(l.alternate,l);break;case 24:Ur(a,l),c&2048&&G1(l.alternate,l);break;default:Ur(a,l)}t=t.sibling}}var Vl=8192;function ql(e,t,a){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)zm(e,t,a),e=e.sibling}function zm(e,t,a){switch(e.tag){case 26:ql(e,t,a),e.flags&Vl&&(e.memoizedState!==null?Nw(a,Ia,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Dv(a,e)));break;case 5:ql(e,t,a),e.flags&Vl&&(e=e.stateNode,(t&335544128)===t&&Dv(a,e));break;case 3:case 4:var l=Ia;Ia=Yr(e.stateNode.containerInfo),ql(e,t,a),Ia=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Vl,Vl=16777216,ql(e,t,a),Vl=l):ql(e,t,a));break;case 30:if((e.flags&Vl)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var c=e.stateNode;c.paired=null,Sa===null&&(Sa=new Map),Sa.set(l,c)}ql(e,t,a);break;default:ql(e,t,a)}}function jm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];_t=l,km(l,e)}jm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tm(e),e=e.sibling}function Tm(e){switch(e.tag){case 0:case 11:case 15:Ir(e),e.flags&2048&&nl(9,e,e.return);break;case 3:Ir(e);break;case 12:Ir(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,To(e)):Ir(e);break;default:Ir(e)}}function To(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];_t=l,km(l,e)}jm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(8,t,t.return),To(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,To(t));break;default:To(t)}e=e.sibling}}function km(e,t){for(;_t!==null;){var a=_t;switch(a.tag){case 0:case 11:case 15:nl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cr(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,_t=l;else e:for(a=e;_t!==null;){l=_t;var c=l.sibling,d=l.return;if(ym(l),l===a){_t=null;break e}if(c!==null){c.return=d,_t=c;break e}_t=d}}}var z6={getCacheForType:function(e){var t=Vt(zt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Vt(zt).controller.signal}},j6=typeof WeakMap=="function"?WeakMap:Map,it=0,ft=null,Ze=null,Qe=0,ot=0,wa=null,il=!1,Ri=!1,P1=!1,Dn=0,xt=0,rl=0,$l=0,ko=0,Ca=0,Di=0,Vr=null,oa=null,K1=!1,Ao=0,Am=0,No=1/0,Ro=null,sl=null,bt=0,qa=null,Gl=null,dn=0,Y1=0,X1=null,Nm=null,Oi=null,Li=null,Hi=null,qr=0,Do=null;function Ea(){return(it&2)!==0&&Qe!==0?Qe&-Qe:$.T!==null?id():Of()}function Rm(){if(Ca===0)if((Qe&536870912)===0||Ye){var e=Qa;Qa<<=1,(Qa&3932160)===0&&(Qa=262144),Ca=e}else Ca=536870912;return e=qt.current,e!==null&&(e.flags|=32),Ca}function Bi(e,t){if(t!=null){var a=e.stateNode,l=a.ref;l===null&&(l=a.ref=fv(wn(e.memoizedProps,a))),Li===null&&(Li=[]),Li.push(t.bind(null,l))}}function ca(e,t,a){(e===ft&&(ot===2||ot===9)||e.cancelPendingCommit!==null)&&(_i(e,0),ol(e,Qe,Ca,!1)),_a(e,a),((it&2)===0||e!==ft)&&(e===ft&&((it&2)===0&&($l|=a),xt===4&&ol(e,Qe,Ca,!1)),fn(e))}function Dm(e,t,a){if((it&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ba(e,t),c=l?A6(e,t):W1(e,t,!0),d=l;do{if(c===0){Ri&&!l&&ol(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!T6(a)){c=W1(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var M=0;else M=e.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){t=M;e:{var j=e;c=Vr;var R=j.current.memoizedState.isDehydrated;if(R&&(_i(j,M).flags|=256),M=W1(j,M,!1),M!==2&&M!==6){if(P1&&!R){j.errorRecoveryDisabledLanes|=d,$l|=d,c=4;break e}d=oa,oa=c,d!==null&&(oa===null?oa=d:oa.push.apply(oa,d))}c=M}if(d=!1,c!==2)continue}}if(c===1){_i(e,0),ol(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ol(l,t,Ca,!il);break e;case 2:oa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Ao+300-Ut(),10<c)){if(ol(l,t,Ca,!il),en(l,0,!0)!==0)break e;dn=t,l.timeoutHandle=pd(Om.bind(null,l,a,oa,Ro,K1,t,Ca,$l,Di,il,d,"Throttled",-0,0),c);break e}Om(l,a,oa,Ro,K1,t,Ca,$l,Di,il,d,null,-0,0)}}break}while(!0);fn(e)}function Om(e,t,a,l,c,d,M,j,R,q,ee,ce,U,Q){e.timeoutHandle=-1;var Se=t.subtreeFlags,Ne=(d&335544064)===d;if(ce=null,(Ne||Se&8192||(Se&16785408)===16785408)&&(ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Sa=null,zm(t,d,ce),Ne&&(Se=ce,Ne=e.containerInfo,Ne=(Ne.nodeType===9?Ne:Ne.ownerDocument).__reactViewTransition,Ne!=null&&(Se.count++,Se.waitingForViewTransition=!0,Se=Wr.bind(Se),Ne.finished.then(Se,Se))),Se=(d&62914560)===d?Ao-Ut():(d&4194048)===d?Am-Ut():0,Se=Rw(ce,Se),Se!==null)){dn=d,e.cancelPendingCommit=Se(Vm.bind(null,e,t,d,a,l,c,M,j,R,q,ee,ce,null,U,Q)),ol(e,d,M,!q);return}Vm(e,t,d,a,l,c,M,j,R,q,ee,ce)}function T6(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var c=a[l],d=c.getSnapshot;c=c.value;try{if(!Ma(d(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ol(e,t,a,l){t=Vn(e,t),t&=~ko,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-Nt(c),M=1<<d;l[d]=-1,c&=~M}a!==0&&Nf(e,a,t)}function Oo(){return(it&6)===0?($r(0),!1):!0}function Z1(){if(Ze!==null){if(ot===0)var e=Ze.return;else e=Ze,jn=Rl=null,l1(e),Ci=null,jr=0,e=Ze;for(;e!==null;)nm(e.alternate,e),e=e.return;Ze=null}}function _i(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,Q6(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,Z1(),ft=e,Ze=a=En(e.current,null),Qe=t,ot=0,wa=null,il=!1,Ri=Ba(e,t),P1=!1,Di=Ca=ko=$l=rl=xt=0,oa=Vr=null,K1=!1,Dn=Vn(e,t),Is(),a}function Lm(e,t){$e=null,$.H=ho,t===wi||t===Qs?(t=V2(),ot=3):t===Gu?(t=V2(),ot=4):ot=t===b1?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wa=t,Ze===null&&(xt=1,mo(e,Aa(t,e.current)))}function Hm(){var e=qt.current;return e===null?!0:(Qe&4194048)===Qe?Zt===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===Zt:!1}function Bm(){var e=$.H;return $.H=ho,e===null?ho:e}function _m(){var e=$.A;return $.A=z6,e}function Lo(){xt=4,il||(Qe&4194048)!==Qe&&qt.current!==null||(Ri=!0),(rl&134217727)===0&&($l&134217727)===0||ft===null||ol(ft,Qe,Ca,!1)}function W1(e,t,a){var l=it;it|=2;var c=Bm(),d=_m();(ft!==e||Qe!==t)&&(Ro=null,_i(e,t)),t=!1;var M=xt;e:do try{if(ot!==0&&Ze!==null){var j=Ze,R=wa;switch(ot){case 8:Z1(),M=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var q=ot;if(ot=0,wa=null,Fi(e,j,R,q),a&&Ri){M=0;break e}break;default:q=ot,ot=0,wa=null,Fi(e,j,R,q)}}k6(),M=xt;break}catch(ee){Lm(e,ee)}while(!0);return t&&e.shellSuspendCounter++,jn=Rl=null,it=l,$.H=c,$.A=d,Ze===null&&(ft=null,Qe=0,Is()),M}function k6(){for(;Ze!==null;)Fm(Ze)}function A6(e,t){var a=it;it|=2;var l=Bm(),c=_m();ft!==e||Qe!==t?(Ro=null,No=Ut()+500,_i(e,t)):Ri=Ba(e,t);e:do try{if(ot!==0&&Ze!==null){t=Ze;var d=wa;t:switch(ot){case 1:ot=0,wa=null,Fi(e,t,d,1);break;case 2:case 9:if(U2(d)){ot=0,wa=null,Um(t);break}t=function(){ot!==2&&ot!==9||ft!==e||(ot=7),fn(e)},d.then(t,t);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:U2(d)?(ot=0,wa=null,Um(t)):(ot=0,wa=null,Fi(e,t,d,7));break;case 5:var M=null;switch(Ze.tag){case 26:M=Ze.memoizedState;case 5:case 27:var j=Ze;if(M?Nv(M):j.stateNode.complete){ot=0,wa=null;var R=j.sibling;if(R!==null)Ze=R;else{var q=j.return;q!==null?(Ze=q,Ho(q)):Ze=null}break t}}ot=0,wa=null,Fi(e,t,d,5);break;case 6:ot=0,wa=null,Fi(e,t,d,6);break;case 8:Z1(),xt=6;break e;default:throw Error(r(462))}}N6();break}catch(ee){Lm(e,ee)}while(!0);return jn=Rl=null,$.H=l,$.A=c,it=a,Ze!==null?0:(ft=null,Qe=0,Is(),xt)}function N6(){for(;Ze!==null&&!ur();)Fm(Ze)}function Fm(e){var t=tm(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?Ho(e):Ze=t}function Um(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yh(a,t,t.pendingProps,t.type,void 0,Qe);break;case 11:t=Yh(a,t,t.pendingProps,t.type.render,t.ref,Qe);break;case 5:l1(t);var l=t;l===Ht&&(Ye?(Ks(l),l.tag===5&&l.stateNode!=null&&(mt=l.stateNode)):(Ks(l),Ye=!0));default:nm(a,t),t=Ze=k2(t,Dn),t=tm(a,t,Dn)}e.memoizedProps=e.pendingProps,t===null?Ho(e):Ze=t}function Fi(e,t,a,l){jn=Rl=null,l1(t),Ci=null,jr=0;var c=t.return;try{if(y6(e,c,t,a,Qe)){xt=1,mo(e,Aa(a,e.current)),Ze=null;return}}catch(d){if(c!==null)throw Ze=c,d;xt=1,mo(e,Aa(a,e.current)),Ze=null;return}t.flags&32768?(Ye||l===1?e=!0:Ri||(Qe&536870912)!==0?e=!1:(il=e=!0,(l===2||l===9||l===3||l===6)&&(l=qt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Im(t,e)):Ho(t)}function Ho(e){var t=e;do{if((t.flags&32768)!==0){Im(t,il);return}e=t.return;var a=S6(t.alternate,t,Dn);if(a!==null){Ze=a;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);xt===0&&(xt=5)}function Im(e,t){do{var a=w6(e.alternate,e);if(a!==null){a.flags&=32767,Ze=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=a}while(e!==null);xt=6,Ze=null}function Vm(e,t,a,l,c,d,M,j,R,q,ee,ce){e.cancelPendingCommit=null;do Bo();while(bt!==0);if((it&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));e===ft&&(Ze=ft=null,Qe=0),Gl=t,qa=e,dn=a,X1=c,Nm=l,R6(e,t,a,M,j,R,ce)}}function R6(e,t,a,l,c,d,M){var j=t.lanes|t.childLanes;if(Y1=j,j|=Ru,su(e,a,j,l,c,d),Li=null,(a&335544064)===a?(Hi=r6(e),l=10262):(Hi=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,_6(Ml,function(){return td(),null})):(e.callbackNode=null,e.callbackPriority=0),So=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=$.T,$.T=null,c=te.p,te.p=2,d=it,it|=4;try{C6(e,t,a)}finally{it=d,te.p=c,$.T=l}}bt=1,So?Oi=lw(M,e.containerInfo,Hi,Q1,J1,O6,ed,td,D6):(Q1(),J1(),ed())}function D6(e){if(bt!==0){var t=qa.onRecoverableError;t(e,{componentStack:null})}}function O6(){bt===3&&(bt=0,Cm(Gl,qa),bt=4)}function Q1(){if(bt===1){bt=0;var e=qa,t=Gl,a=dn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=$.T,$.T=null;var c=te.p;te.p=2;var d=it;it|=4;try{Fr=Eo=!1,Sm(t,e,a),a=hd;var M=b2(e.containerInfo),j=a.focusedElem,R=a.selectionRange;if(M!==j&&j&&j.ownerDocument&&y2(j.ownerDocument.documentElement,j)){if(R!==null&&ju(j)){var q=R.start,ee=R.end;if(ee===void 0&&(ee=q),"selectionStart"in j)j.selectionStart=q,j.selectionEnd=Math.min(ee,j.value.length);else{var ce=j.ownerDocument||document,U=ce&&ce.defaultView||window;if(U.getSelection){var Q=U.getSelection(),Se=j.textContent.length,Ne=Math.min(R.start,Se),Ge=R.end===void 0?Ne:Math.min(R.end,Se);!Q.extend&&Ne>Ge&&(M=Ge,Ge=Ne,Ne=M);var V=g2(j,Ne),_=g2(j,Ge);if(V&&_&&(Q.rangeCount!==1||Q.anchorNode!==V.node||Q.anchorOffset!==V.offset||Q.focusNode!==_.node||Q.focusOffset!==_.offset)){var Y=ce.createRange();Y.setStart(V.node,V.offset),Q.removeAllRanges(),Ne>Ge?(Q.addRange(Y),Q.extend(_.node,_.offset)):(Y.setEnd(_.node,_.offset),Q.addRange(Y))}}}}for(ce=[],Q=j;Q=Q.parentNode;)Q.nodeType===1&&ce.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<ce.length;j++){var se=ce[j];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Ki=!!fd,hd=fd=null}finally{it=d,te.p=c,$.T=l}}e.current=t,bt=2}}function J1(){if(bt===2){bt=0;var e=qa,t=Gl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=$.T,$.T=null;var l=te.p;te.p=2;var c=it;it|=4;try{pm(e,t.alternate,t)}finally{it=c,te.p=l,$.T=a}}bt=3}}function ed(){if(bt===4||bt===3){bt=0;var e=Oi;Oi=null,iu();var t=qa,a=Gl,l=dn,c=Nm,d=(l&335544064)===l?10262:10256;if((a.subtreeFlags&d)!==0||(a.flags&d)!==0?bt=5:(bt=0,Gl=qa=null,qm(t,t.pendingLanes)),d=t.pendingLanes,d===0&&(sl=null),cu(l),a=a.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Ot,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=$.T,d=te.p,te.p=2,$.T=null;try{for(var M=t.onRecoverableError,j=0;j<c.length;j++){var R=c[j];M(R.value,{componentStack:R.stack})}}finally{$.T=a,te.p=d}}if(c=Li,M=Hi,Hi=null,c!==null&&(Li=null,M===null&&(M=[]),e!==null))for(R=0;R<c.length;R++)a=(0,c[R])(M),a!==void 0&&e.finished.finally(a);(dn&3)!==0&&Bo(),fn(t),d=t.pendingLanes,(l&261930)!==0&&(d&42)!==0?t===Do?qr++:(qr=0,Do=t):(qr=0,Do=null),$r(0)}}function qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cr(t)))}function Bo(){return Oi!==null&&(Oi.skipTransition(),Oi=null),Q1(),J1(),ed(),td()}function td(){if(bt!==5)return!1;var e=qa,t=Y1;Y1=0;var a=cu(dn),l=$.T,c=te.p;try{te.p=32>a?32:a,$.T=null,a=X1,X1=null;var d=qa,M=dn;if(bt=0,Gl=qa=null,dn=0,(it&6)!==0)throw Error(r(331));var j=it;if(it|=4,Tm(d.current),Em(d,d.current,M,a),it=j,$r(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Ot,d)}catch{}return!0}finally{te.p=c,$.T=l,qm(e,t)}}function $m(e,t,a){t=Aa(a,t),t=y1(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(_a(e,2),fn(e))}function ct(e,t,a){if(e.tag===3)$m(e,e,a);else for(;t!==null;){if(t.tag===3){$m(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(sl===null||!sl.has(l))){e=Aa(a,e),a=Uh(2),l=Jn(t,a,2),l!==null&&(Ih(a,l,t,e),_a(l,2),fn(l));break}}t=t.return}}function ad(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new j6;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(a)||(P1=!0,c.add(a),e=L6.bind(null,e,t,a),t.then(e,e))}function L6(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ft===e&&(Qe&a)===a&&((xt===4||xt===3&&(Qe&62914560)===Qe&&300>Ut()-Ao)&&(it&2)===0?_i(e,0):ko|=a,Di===Qe&&(Di=0)),fn(e)}function Gm(e,t){t===0&&(t=qn()),e=kl(e,t),e!==null&&(_a(e,t),fn(e))}function H6(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gm(e,a)}function B6(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Gm(e,a)}function _6(e,t){return yn(e,t)}var Ui=null,Ii=null,nd=!1,_o=!1,ld=!1,cl=0;function fn(e){e!==Ii&&e.next===null&&(Ii===null?Ui=Ii=e:Ii=Ii.next=e),_o=!0,nd||(nd=!0,U6())}function $r(e,t){if(!ld&&_o){ld=!0;do for(var a=!1,l=Ui;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var M=l.suspendedLanes,j=l.pingedLanes;d=(1<<31-Nt(42|e)+1)-1,d&=c&~(M&~j),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Xm(l,d))}else d=Qe,d=en(l,l===ft?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Ba(l,d)||(a=!0,Xm(l,d));l=l.next}while(a);ld=!1}}function F6(){Pm()}function Pm(){_o=nd=!1;var e=0;cl!==0&&W6()&&(e=cl);for(var t=Ut(),a=null,l=Ui;l!==null;){var c=l.next,d=Km(l,t);d===0?(l.next=null,a===null?Ui=c:a.next=c,c===null&&(Ii=a)):(a=l,(e!==0||(d&3)!==0)&&(_o=!0)),l=c}bt!==0&&bt!==5||$r(e),cl!==0&&(cl=0)}function Km(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var M=31-Nt(d),j=1<<M,R=c[M];R===-1?((j&a)===0||(j&l)!==0)&&(c[M]=Cl(j,t)):R<=t&&(e.expiredLanes|=j),d&=~j}if(t=ft,a=Qe,a=en(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ot===2||ot===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Za(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ba(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Za(l),cu(a)){case 2:case 8:a=ii;break;case 32:a=Ml;break;case 268435456:a=ne;break;default:a=Ml}return l=Ym.bind(null,e),a=yn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Za(l),e.callbackPriority=2,e.callbackNode=null,2}function Ym(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Bo()&&e.callbackNode!==a)return null;var l=Qe;return l=en(e,e===ft?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Dm(e,l,t),Km(e,Ut()),e.callbackNode!=null&&e.callbackNode===a?Ym.bind(null,e):null)}function Xm(e,t){if(Bo())return null;Dm(e,t,!0)}function U6(){J6(function(){(it&6)!==0?yn(li,F6):Pm()})}function id(){if(cl===0){var e=Ll;e===0&&(e=Wa,Wa<<=1,(Wa&261888)===0&&(Wa=256)),cl=e}return cl}function Zm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ds(e)}function I6(e,t,a,l,c){if(t==="submit"&&a&&a.stateNode===c){var d=Zm((c[la]||null).action),M=l.submitter;M&&(t=(t=M[la]||null)?Zm(t.formAction):M.getAttribute("formAction"),t!==null&&(d=t,M=null));var j=new Bs("action","action",null,l,c);e.push({event:j,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cl!==0){var R=new FormData(c,M);h1(a,{pending:!0,data:R,method:c.method,action:d},null,R)}}else typeof d=="function"&&(j.preventDefault(),R=new FormData(c,M),h1(a,{pending:!0,data:R,method:c.method,action:d},d,R))},currentTarget:c}]})}}for(var rd=0;rd<Nu.length;rd++){var sd=Nu[rd],V6=sd.toLowerCase(),q6=sd[0].toUpperCase()+sd.slice(1);Fa(V6,"on"+q6)}Fa(S2,"onAnimationEnd"),Fa(w2,"onAnimationIteration"),Fa(C2,"onAnimationStart"),Fa("dblclick","onDoubleClick"),Fa("focusin","onFocus"),Fa("focusout","onBlur"),Fa(QS,"onTransitionRun"),Fa(JS,"onTransitionStart"),Fa(e6,"onTransitionCancel"),Fa(E2,"onTransitionEnd"),ci("onMouseEnter",["mouseout","mouseover"]),ci("onMouseLeave",["mouseout","mouseover"]),ci("onPointerEnter",["pointerout","pointerover"]),ci("onPointerLeave",["pointerout","pointerover"]),zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gr));function Wm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var M=l.length-1;0<=M;M--){var j=l[M],R=j.instance,q=j.currentTarget;if(j=j.listener,R!==d&&c.isPropagationStopped())break e;d=j,c.currentTarget=q;try{d(c)}catch(ee){Us(ee)}c.currentTarget=null,d=R}else for(M=0;M<l.length;M++){if(j=l[M],R=j.instance,q=j.currentTarget,j=j.listener,R!==d&&c.isPropagationStopped())break e;d=j,c.currentTarget=q;try{d(c)}catch(ee){Us(ee)}c.currentTarget=null,d=R}}}}function We(e,t){var a=t[Hf];a===void 0&&(a=t[Hf]=new Set);var l=e+"__bubble";a.has(l)||(Qm(t,e,2,!1),a.add(l))}function od(e,t,a){var l=0;t&&(l|=4),Qm(a,e,l,t)}var Fo="_reactListening"+Math.random().toString(36).slice(2);function cd(e){if(!e[Fo]){e[Fo]=!0,Ff.forEach(function(a){a!=="selectionchange"&&($6.has(a)||od(a,!1,e),od(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fo]||(t[Fo]=!0,od("selectionchange",!1,t))}}function Qm(e,t,a,l){switch(Iv(t)){case 2:var c=Hw;break;case 8:c=Bw;break;default:c=kd}a=c.bind(null,t,a,e),c=void 0,!gu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function ud(e,t,a,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var M=l.tag;if(M===3||M===4){var j=l.stateNode.containerInfo;if(j===c)break;if(M===4)for(M=l.return;M!==null;){var R=M.tag;if((R===3||R===4)&&M.stateNode.containerInfo===c)return;M=M.return}for(;j!==null;){if(M=El(j),M===null)return;if(R=M.tag,R===5||R===6||R===26||R===27){l=d=M;continue e}j=j.parentNode}}l=l.return}Qf(function(){var q=d,ee=vu(a),ce=[];e:{var U=z2.get(e);if(U!==void 0){var Q=Bs,Se=e;switch(e){case"keypress":if(Ls(a)===0)break e;case"keydown":case"keyup":Q=TS;break;case"focusin":Se="focus",Q=xu;break;case"focusout":Se="blur",Q=xu;break;case"beforeblur":case"afterblur":Q=xu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=t2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=pS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=DS;break;case S2:case w2:case C2:Q=bS;break;case E2:Q=LS;break;case"scroll":case"scrollend":Q=mS;break;case"wheel":Q=BS;break;case"copy":case"cut":case"paste":Q=xS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=n2;break;case"submit":Q=NS;break;case"toggle":case"beforetoggle":Q=FS}var Ne=(t&4)!==0,Ge=!Ne&&(e==="scroll"||e==="scrollend"),V=Ne?U!==null?U+"Capture":null:U;Ne=[];for(var _=q,Y;_!==null;){var se=_;if(Y=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Y===null||V===null||(se=hr(_,V),se!=null&&Ne.push(Pr(_,se,Y))),Ge)break;_=_.return}0<Ne.length&&(U=new Q(U,Se,null,a,ee),ce.push({event:U,listeners:Ne}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",Q&&a!==mu&&(Se=a.relatedTarget||a.fromElement)&&(El(Se)||Se[ri]))break e;(U||Q)&&(Se=ee.window===ee?ee:(Q=ee.ownerDocument)?Q.defaultView||Q.parentWindow:window,U?(Q=a.relatedTarget||a.toElement,U=q,Q=Q?El(Q):null,Q!==null&&(Ge=f(Q),Ne=Q.tag,Q!==Ge||Ne!==5&&Ne!==27&&Ne!==6)&&(Q=null)):(U=null,Q=q),U!==Q&&(Ne=t2,se="onMouseLeave",V="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=n2,se="onPointerLeave",V="onPointerEnter",_="pointer"),Ge=U==null?Se:fr(U),Y=Q==null?Se:fr(Q),Se=new Ne(se,_+"leave",U,a,ee),Se.target=Ge,Se.relatedTarget=Y,se=null,El(ee)===q&&(Ne=new Ne(V,_+"enter",Q,a,ee),Ne.target=Y,Ne.relatedTarget=Ge,se=Ne),Ge=se,Ne=U&&Q?re(U,Q,G6):null,U!==null&&Jm(ce,Se,U,Ne,!1),Q!==null&&Ge!==null&&Jm(ce,Ge,Q,Ne,!0)))}e:{if(U=q?fr(q):window,Q=U.nodeName&&U.nodeName.toLowerCase(),Q==="select"||Q==="input"&&U.type==="file")var Ae=d2;else if(c2(U))if(f2)Ae=XS;else{Ae=KS;var Je=PS}else Q=U.nodeName,!Q||Q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?q&&hu(q.elementType)&&(Ae=d2):Ae=YS;if(Ae&&(Ae=Ae(e,q))){u2(ce,Ae,a,ee);break e}Je&&Je(e,U,q)}switch(Je=q?fr(q):window,e){case"focusin":(c2(Je)||Je.contentEditable==="true")&&(vi=Je,Tu=q,xr=null);break;case"focusout":xr=Tu=vi=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,M2(ce,a,ee);break;case"selectionchange":if(WS)break;case"keydown":case"keyup":M2(ce,a,ee)}var Oe;if(wu)e:{switch(e){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else mi?s2(e,a)&&(Fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Fe="onCompositionStart");Fe&&(l2&&a.locale!=="ko"&&(mi||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&mi&&(Oe=Jf()):($n=ee,yu="value"in $n?$n.value:$n.textContent,mi=!0)),Je=Uo(q,Fe),0<Je.length&&(Fe=new a2(Fe,e,null,a,ee),ce.push({event:Fe,listeners:Je}),Oe?Fe.data=Oe:(Oe=o2(a),Oe!==null&&(Fe.data=Oe)))),(Oe=IS?VS(e,a):qS(e,a))&&(Fe=Uo(q,"onBeforeInput"),0<Fe.length&&(Je=new a2("onBeforeInput","beforeinput",null,a,ee),ce.push({event:Je,listeners:Fe}),Je.data=Oe)),I6(ce,e,q,a,ee)}Wm(ce,t)})}function Pr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Uo(e,t){for(var a=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=hr(e,a),c!=null&&l.unshift(Pr(e,c,d)),c=hr(e,t),c!=null&&l.push(Pr(e,c,d))),e.tag===3)return l;e=e.return}return[]}function G6(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jm(e,t,a,l,c){for(var d=t._reactName,M=[];a!==null&&a!==l;){var j=a,R=j.alternate,q=j.stateNode;if(j=j.tag,R!==null&&R===l)break;j!==5&&j!==26&&j!==27||q===null||(R=q,c?(q=hr(a,d),q!=null&&M.unshift(Pr(a,q,R))):c||(q=hr(a,d),q!=null&&M.push(Pr(a,q,R)))),a=a.return}M.length!==0&&e.push({event:t,listeners:M})}var P6=/\r\n?/g,K6=/\u0000|\uFFFD/g;function ev(e){return(typeof e=="string"?e:""+e).replace(P6,`
|
|
49
|
+
`).replace(K6,"")}function tv(e,t){return t=ev(t),ev(e)===t}function ut(e,t,a,l,c,d){switch(a){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||di(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&di(e,""+l);else return;break;case"className":Rs(e,"class",l);break;case"tabIndex":Rs(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Rs(e,a,l);break;case"style":Zf(e,l,d);return;case"data":if(t!=="object"){Rs(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ds(l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&ut(e,t,"name",c.name,c,null),ut(e,t,"formEncType",c.formEncType,c,null),ut(e,t,"formMethod",c.formMethod,c,null),ut(e,t,"formTarget",c.formTarget,c,null)):(ut(e,t,"encType",c.encType,c,null),ut(e,t,"method",c.method,c,null),ut(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ds(l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=tn);return;case"onScroll":l!=null&&We("scroll",e);return;case"onScrollEnd":l!=null&&We("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(c.children!=null)throw Error(r(60));(d!=null?d.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ds(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":We("beforetoggle",e),We("toggle",e),Ns(e,"popover",l);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ns(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=fS.get(a)||a,Ns(e,a,l);else return}lt=!0}function dd(e,t,a,l,c,d){switch(a){case"style":Zf(e,l,d);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(c.children!=null)throw Error(r(60));(d!=null?d.__html:void 0)!==a&&(e.innerHTML=a)}}break;case"children":if(typeof l=="string")di(e,l);else if(typeof l=="number"||typeof l=="bigint")di(e,""+l);else return;break;case"onScroll":l!=null&&We("scroll",e);return;case"onScrollEnd":l!=null&&We("scrollend",e);return;case"onClick":l!=null&&(e.onclick=tn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Uf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),d=a.slice(2,c?a.length-7:void 0),t=e[la]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(d,t,c),typeof l=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(d,l,c);break e}lt=!0,a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ns(e,a,l)}return}lt=!0}function Pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",e),We("load",e);var l=!1,c=!1,d;for(d in a)if(a.hasOwnProperty(d)){var M=a[d];if(M!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ut(e,t,d,M,a,null)}}c&&ut(e,t,"srcSet",a.srcSet,a,null),l&&ut(e,t,"src",a.src,a,null);return;case"input":We("invalid",e);var j=d=M=c=null,R=null,q=null;for(l in a)if(a.hasOwnProperty(l)){var ee=a[l];if(ee!=null)switch(l){case"name":c=ee;break;case"type":M=ee;break;case"checked":R=ee;break;case"defaultChecked":q=ee;break;case"value":d=ee;break;case"defaultValue":j=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,t));break;default:ut(e,t,l,ee,a,null)}}Pf(e,d,j,R,q,M,c,!1);return;case"select":We("invalid",e),l=M=d=null;for(c in a)if(a.hasOwnProperty(c)&&(j=a[c],j!=null))switch(c){case"value":d=j;break;case"defaultValue":M=j;break;case"multiple":l=j;default:ut(e,t,c,j,a,null)}t=d,a=M,e.multiple=!!l,t!=null?ui(e,!!l,t,!1):a!=null&&ui(e,!!l,a,!0);return;case"textarea":We("invalid",e),d=c=l=null;for(M in a)if(a.hasOwnProperty(M)&&(j=a[M],j!=null))switch(M){case"value":l=j;break;case"defaultValue":c=j;break;case"children":d=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:ut(e,t,M,j,a,null)}Yf(e,l,c,d);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(l=a[R],l!=null))switch(R){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ut(e,t,R,l,a,null)}return;case"dialog":We("beforetoggle",e),We("toggle",e),We("cancel",e),We("close",e);break;case"iframe":case"object":We("load",e);break;case"video":case"audio":for(l=0;l<Gr.length;l++)We(Gr[l],e);break;case"image":We("error",e),We("load",e);break;case"details":We("toggle",e);break;case"embed":case"source":case"link":We("error",e),We("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in a)if(a.hasOwnProperty(q)&&(l=a[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ut(e,t,q,l,a,null)}return;default:if(hu(t)){for(ee in a)a.hasOwnProperty(ee)&&(l=a[ee],l!==void 0&&dd(e,t,ee,l,a,void 0));return}}for(j in a)a.hasOwnProperty(j)&&(l=a[j],l!=null&&ut(e,t,j,l,a,null))}var Y6={};function X6(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,M=null,j=null,R=null,q=null,ee=null;for(Q in a){var ce=a[Q];if(a.hasOwnProperty(Q)&&ce!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":R=ce;default:l.hasOwnProperty(Q)||ut(e,t,Q,null,l,ce)}}for(var U in l){var Q=l[U];if(ce=a[U],l.hasOwnProperty(U)&&(Q!=null||ce!=null))switch(U){case"type":Q!==ce&&(lt=!0),d=Q;break;case"name":Q!==ce&&(lt=!0),c=Q;break;case"checked":Q!==ce&&(lt=!0),q=Q;break;case"defaultChecked":Q!==ce&&(lt=!0),ee=Q;break;case"value":Q!==ce&&(lt=!0),M=Q;break;case"defaultValue":Q!==ce&&(lt=!0),j=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,t));break;default:Q!==ce&&ut(e,t,U,Q,l,ce)}}du(e,M,j,R,q,ee,d,c);return;case"select":Q=M=j=U=null;for(d in a)if(R=a[d],a.hasOwnProperty(d)&&R!=null)switch(d){case"value":break;case"multiple":Q=R;default:l.hasOwnProperty(d)||ut(e,t,d,null,l,R)}for(c in l)if(d=l[c],R=a[c],l.hasOwnProperty(c)&&(d!=null||R!=null))switch(c){case"value":d!==R&&(lt=!0),U=d;break;case"defaultValue":d!==R&&(lt=!0),j=d;break;case"multiple":d!==R&&(lt=!0),M=d;default:d!==R&&ut(e,t,c,d,l,R)}t=j,a=M,l=Q,U!=null?ui(e,!!a,U,!1):!!l!=!!a&&(t!=null?ui(e,!!a,t,!0):ui(e,!!a,a?[]:"",!1));return;case"textarea":Q=U=null;for(j in a)if(c=a[j],a.hasOwnProperty(j)&&c!=null&&!l.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:ut(e,t,j,null,l,c)}for(M in l)if(c=l[M],d=a[M],l.hasOwnProperty(M)&&(c!=null||d!=null))switch(M){case"value":c!==d&&(lt=!0),U=c;break;case"defaultValue":c!==d&&(lt=!0),Q=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==d&&ut(e,t,M,c,l,d)}Kf(e,U,Q);return;case"option":for(var Se in a)if(U=a[Se],a.hasOwnProperty(Se)&&U!=null&&!l.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:ut(e,t,Se,null,l,U)}for(R in l)if(U=l[R],Q=a[R],l.hasOwnProperty(R)&&U!==Q&&(U!=null||Q!=null))switch(R){case"selected":U!==Q&&(lt=!0),e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:ut(e,t,R,U,l,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in a)U=a[Ne],a.hasOwnProperty(Ne)&&U!=null&&!l.hasOwnProperty(Ne)&&ut(e,t,Ne,null,l,U);for(q in l)if(U=l[q],Q=a[q],l.hasOwnProperty(q)&&U!==Q&&(U!=null||Q!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:ut(e,t,q,U,l,Q)}return;default:if(hu(t)){for(var Ge in a)U=a[Ge],a.hasOwnProperty(Ge)&&U!==void 0&&!l.hasOwnProperty(Ge)&&dd(e,t,Ge,void 0,l,U);for(ee in l)U=l[ee],Q=a[ee],!l.hasOwnProperty(ee)||U===Q||U===void 0&&Q===void 0||dd(e,t,ee,U,l,Q);return}}for(var V in a)U=a[V],a.hasOwnProperty(V)&&U!=null&&!l.hasOwnProperty(V)&&ut(e,t,V,null,l,U);for(ce in l)U=l[ce],Q=a[ce],!l.hasOwnProperty(ce)||U===Q||U==null&&Q==null||ut(e,t,ce,U,l,Q)}function av(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z6(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var c=a[l],d=c.transferSize,M=c.initiatorType,j=c.duration;if(d&&j&&av(M)){for(M=0,j=c.responseEnd,l+=1;l<a.length;l++){var R=a[l],q=R.startTime;if(q>j)break;var ee=R.transferSize,ce=R.initiatorType;ee&&av(ce)&&(R=R.responseEnd,M+=ee*(R<j?1:(j-q)/(R-q)))}if(--l,t+=8*(d+M)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var fd=null,hd=null;function Kr(e){return e.nodeType===9?e:e.ownerDocument}function nv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function iv(e,t,a,l){return a=Kr(a).createElement(e),a[It]=l,a[la]=t,Pt(a,e,t),Lt(a),a}function md(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vd=null;function W6(){var e=window.event;return e&&e.type==="popstate"?e===vd?!1:(vd=e,!0):(vd=null,!1)}var pd=typeof setTimeout=="function"?setTimeout:void 0,Q6=typeof clearTimeout=="function"?clearTimeout:void 0,rv=typeof Promise=="function"?Promise:void 0,sv=typeof requestAnimationFrame=="function"?requestAnimationFrame:pd,J6=typeof queueMicrotask=="function"?queueMicrotask:typeof rv<"u"?function(e){return rv.resolve(null).then(e).catch(ew)}:pd;function ew(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function ov(e,t){var a=t,l=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(c),Yi(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Cd(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Cd(a);for(var d=a.firstChild;d;){var M=d.nextSibling,j=d.nodeName;d[dr]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=M}}else a==="body"&&Cd(e.ownerDocument.body);a=c}while(a);Yi(t)}function cv(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function uv(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var c=l=0;c<t.length;c++){var d=t[c];0<d.width&&0<d.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function dv(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function tw(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function gd(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return tw(t,a,e)}function aw(e){return e.documentElement.clientHeight}function nw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function lw(e,t,a,l,c,d,M,j,R){var q=t.nodeType===9?t:t.ownerDocument;try{var ee=q.startViewTransition({update:function(){var U=q.defaultView,Q=U.navigation&&U.navigation.transition,Se=q.fonts.status;l();var Ne=[];if(Se==="loaded"&&(aw(q),q.fonts.status==="loading"&&Ne.push(q.fonts.ready)),Se=Ne.length,e!==null)for(var Ge=e.suspenseyImages,V=0,_=0;_<Ge.length;_++){var Y=Ge[_];if(!Y.complete){var se=Y.getBoundingClientRect();if(0<se.bottom&&0<se.right&&se.top<U.innerHeight&&se.left<U.innerWidth){if(V+=Rv(Y),V>qo){Ne.length=Se;break}Y=new Promise(nw.bind(Y)),Ne.push(Y)}}}if(0<Ne.length)return U=Promise.race([Promise.all(Ne),new Promise(function(Ae){return setTimeout(Ae,500)})]).then(c,c),(Q?Promise.allSettled([Q.finished,U]):U).then(d,d);if(c(),Q)return Q.finished.then(d,d);d()},types:a});q.__reactViewTransition=ee;var ce=[];return ee.ready.then(function(){for(var U=q.documentElement.getAnimations({subtree:!0}),Q=0;Q<U.length;Q++){var Se=U[Q],Ne=Se.effect,Ge=Ne.pseudoElement;if(Ge!=null&&Ge.startsWith("::view-transition")){ce.push(Se),Se=Ne.getKeyframes();for(var V=Ge=void 0,_=!0,Y=0;Y<Se.length;Y++){var se=Se[Y],Ae=se.width;if(Ge===void 0)Ge=Ae;else if(Ge!==Ae){_=!1;break}if(Ae=se.height,V===void 0)V=Ae;else if(V!==Ae){_=!1;break}delete se.width,delete se.height,se.transform==="none"&&delete se.transform}_&&Ge!==void 0&&V!==void 0&&(Ne.setKeyframes(Se),_=getComputedStyle(Ne.target,Ne.pseudoElement),_.width!==Ge||_.height!==V)&&(_=Se[0],_.width=Ge,_.height=V,_=Se[Se.length-1],_.width=Ge,_.height=V,Ne.setKeyframes(Se))}}M()},function(U){q.__reactViewTransition===ee&&(q.__reactViewTransition=null);try{if(typeof U=="object"&&U!==null)switch(U.name){case"InvalidStateError":(U.message==="View transition was skipped because document visibility state is hidden."||U.message==="Skipping view transition because document visibility state has become hidden."||U.message==="Skipping view transition because viewport size changed."||U.message==="Transition was aborted because of invalid state")&&(U=null)}U!==null&&R(U)}finally{l(),c(),M()}}),ee.finished.finally(function(){for(var U=0;U<ce.length;U++)ce[U].cancel();q.__reactViewTransition===ee&&(q.__reactViewTransition=null),j()}),ee}catch{return l(),c(),M(),null}}function Pl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Pl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:ae({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Pl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),l=[],c=0;c<a.length;c++){var d=a[c].effect;d!==null&&d.target===e&&d.pseudoElement===t&&l.push(a[c])}return l},Pl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function fv(e){return{name:e,group:new Pl("group",e),imagePair:new Pl("image-pair",e),old:new Pl("old",e),new:new Pl("new",e)}}function za(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}za.prototype.addEventListener=function(e,t,a){var l=null,c=null;if(!(a!=null&&typeof a!="boolean"&&(l=a.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var d=this._eventListeners;if(mv(d,e,t,a)===-1){var M=this,j=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(j=function(R){M.removeEventListener(e,t,a),typeof t=="function"?t.call(this,R):t.handleEvent(R)}),l!==null&&(c=M.removeEventListener.bind(M,e,t,a),l.addEventListener("abort",c,{once:!0}),c=l.removeEventListener.bind(l,"abort",c)),l=Vi(a),d.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:j,cleanup:c}),x(this._fragmentFiber.child,!1,iw,e,j,l)}this._eventListeners=d}};function iw(e,t,a,l){return T(e).addEventListener(t,a,l),!1}za.prototype.removeEventListener=function(e,t,a){var l=this._eventListeners;if(l!==null&&(t=mv(l,e,t,a),t!==-1)){var c=l[t];a=c.attachedListener;var d=c.cleanup;c=Vi(c.optionsOrUseCapture),x(this._fragmentFiber.child,!1,rw,e,a,c),l.splice(t,1),d!==null&&d()}};function rw(e,t,a,l){return T(e).removeEventListener(t,a,l),!1}function Vi(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function hv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function mv(e,t,a,l){if(e.length===0)return-1;l=hv(l);for(var c=0;c<e.length;c++){var d=e[c];if(d.type===t&&d.listener===a&&hv(d.optionsOrUseCapture)===l)return c}return-1}za.prototype.dispatchEvent=function(e){var t=b(this._fragmentFiber);if(t===null)return!0;t=T(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var c=0;c<a.length;c++){var d=a[c];l.addEventListener(d.type,d.attachedListener,Vi(d.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),a)for(c=0;c<a.length;c++)d=a[c],l.removeEventListener(d.type,d.attachedListener,Vi(d.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},za.prototype.focus=function(e){x(this._fragmentFiber.child,!0,vv,e,void 0,void 0)};function vv(e,t){return e.tag===6?!1:(e=T(e),yw(e,t))}za.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,yd,t,void 0,void 0);for(var a=t.length-1;0<=a&&!vv(t[a],e);a--);};function yd(e,t){return t.push(e),!1}za.prototype.blur=function(){var e=b(this._fragmentFiber);e!==null&&(e=T(e),e=Kr(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,sw,e,void 0,void 0))};function sw(e,t){return e.tag===6?!1:(e=T(e),e===t||e.contains(t)?(t.blur(),!0):!1)}za.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,ow,e,void 0,void 0)};function ow(e,t){return e.tag===6||(e=T(e),t.observe(e)),!1}za.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,cw,e,void 0,void 0);for(var a=t=0;a<$a.length;a++){var l=$a[a];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):$a[t++]=l}$a.length=t}};function cw(e,t){return e.tag===6||(e=T(e),t.unobserve(e)),!1}var $a=[],bd=!1;function uw(e,t,a){$a.push({fragmentInstance:e,observer:t,instance:a}),bd||(bd=!0,bw(function(){bd=!1;var l=$a;$a=[];for(var c=0;c<l.length;c++){var d=l[c];d.observer.unobserve(d.instance)}}))}za.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,dw,e,void 0,void 0),e};function dw(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=T(e),t.push.apply(t,e.getClientRects());return!1}za.prototype.getRootNode=function(e){var t=b(this._fragmentFiber);return t===null?this:T(t).getRootNode(e)},za.prototype.compareDocumentPosition=function(e){var t=b(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];x(this._fragmentFiber.child,!1,yd,a,void 0,void 0);var l=T(t);if(a.length===0){if(a=l,C(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var c=l=a.compareDocumentPosition(e);return a===e?c=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=E(t)[1],a===null?c=Node.DOCUMENT_POSITION_PRECEDING:(e=T(a).compareDocumentPosition(e),c=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),c|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=T(a[0]),c=T(a[a.length-1]);var d=C(this._fragmentFiber)?t.parentElement:l;if(d==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=d.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,d=d.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY;var M=t.compareDocumentPosition(e),j=c.compareDocumentPosition(e),R=M&Node.DOCUMENT_POSITION_CONTAINED_BY||j&Node.DOCUMENT_POSITION_CONTAINED_BY;return j=l&&d&&M&Node.DOCUMENT_POSITION_FOLLOWING&&j&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||d&&c===e||R||j?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!d&&c===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:M,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||fw(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function fw(e,t,a,l,c){var d=El(c);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!d)e:{for(;d!==null;){if(d.tag===7&&(d===t||d.alternate===t)){a=!0;break e}d=d.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(d===null)return d=c.ownerDocument,c===d||c===d.documentElement||c===d.body;e:{for(d=t,t=b(t);d!==null;){if(!(d.tag!==5&&d.tag!==3&&d.tag!==27||d!==t&&d.alternate!==t)){d=!0;break e}d=d.return}d=!1}return d}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!d)&&!(t=d===a)&&(t=re(a,d,X),t===null?t=!1:(x(t,!0,L,d,a),d=S,S=null,t=d!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!d)&&!(t=d===l)&&(t=re(l,d,X),t===null?t=!1:(x(t,!0,K,d,l),d=S,z=S=null,t=d!==null)),t):!1}function pv(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}za.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(r(566));var t=[];x(this._fragmentFiber.child,!1,yd,t,void 0,void 0);var a=e!==!1;if(t.length===0){var l=E(this._fragmentFiber);if(l=a?l[1]||l[0]||b(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=T(l),pv(e,a);return}if(l=T(l),l.nodeType!==9){if(l.nodeType===11){a="host"in l?l.host:null,a!==null&&a.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=a?t.length-1:0;l!==(a?-1:t.length);){var c=t[l];c.tag===6?(c=T(c),pv(c,a)):T(c).scrollIntoView(e),l+=a?-1:1}};function hw(e,t){return e=T(e),gv(e,t),!1}function gv(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function yv(e,t){var a=t._eventListeners;if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];e.addEventListener(c.type,c.attachedListener,Vi(c.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(d){for(var M=0,j=0;j<$a.length;j++){var R=$a[j];(R.fragmentInstance!==t||R.observer!==d||R.instance!==e)&&($a[M++]=R)}$a.length=M,d.observe(e)}),gv(e,t))}function mw(e,t){var a=t._eventListeners;if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];e.removeEventListener(c.type,c.attachedListener,Vi(c.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(d){typeof d.rootMargin=="string"?uw(t,d,e):d.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Md(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Md(a),As(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function vw(e,t,a,l){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[dr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=La(e.nextSibling),e===null)break}return null}function pw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=La(e.nextSibling),e===null))return null;return e}function bv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=La(e.nextSibling),e===null))return null;return e}function xd(e){return e.data==="$?"||e.data==="$~"}function Sd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function La(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wd=null;function Mv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return La(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function xv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function yw(e,t){function a(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return l}function bw(e){sv(function(){sv(function(t){return e(t)})})}function Sv(e,t,a){switch(t=Kr(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function wv(e,t,a){for(var l in a){var c=a[l];a.hasOwnProperty(l)&&c!=null&&ut(e,t,l,null,Y6,c)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===tn&&(e.onclick=null),As(e)}function Cd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);As(e)}var Ha=new Map,Cv=new Set;function Yr(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var On=te.d;te.d={f:Mw,r:xw,D:Sw,C:ww,L:Cw,m:Ew,X:jw,S:zw,M:Tw};function Mw(){var e=On.f(),t=Oo();return e||t}function xw(e){var t=si(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):On.r(e)}var qi=typeof document>"u"?null:document;function Ev(e,t,a){var l=qi;if(l&&typeof t=="string"&&t){var c=Ta(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),Cv.has(c)||(Cv.add(c),e={rel:e,crossOrigin:a,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),Pt(t,"link",e),Lt(t),l.head.appendChild(t)))}}function Sw(e){On.D(e),Ev("dns-prefetch",e,null)}function ww(e,t){On.C(e,t),Ev("preconnect",e,t)}function Cw(e,t,a){On.L(e,t,a);var l=qi;if(l&&e&&t){var c='link[rel="preload"][as="'+Ta(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Ta(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Ta(a.imageSizes)+'"]')):c+='[href="'+Ta(e)+'"]';var d=c;switch(t){case"style":d=$i(e);break;case"script":d=Gi(e)}if(!(Ha.has(d)||(e=ae({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ha.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Xr(d))||t==="script"&&l.querySelector(Zr(d))))){var M=l.createElement("link");Pt(M,"link",e),t==="style"&&(M[ks]=!0,M.onload=M.onerror=function(){_f(M)}),Lt(M),l.head.appendChild(M)}}}function Ew(e,t){On.m(e,t);var a=qi;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ta(l)+'"][href="'+Ta(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Gi(e)}if(!Ha.has(d)&&(e=ae({rel:"modulepreload",href:e},t),Ha.set(d,e),a.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zr(d)))return}l=a.createElement("link"),Pt(l,"link",e),Lt(l),a.head.appendChild(l)}}}function zw(e,t,a){On.S(e,t,a);var l=qi;if(l&&e){var c=oi(l).hoistableStyles,d=$i(e);t=t||"default";var M=c.get(d);if(!M){var j={loading:0,preload:null};if(M=l.querySelector(Xr(d)))j.loading=5;else{e=ae({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ha.get(d))&&Ed(e,a);var R=M=l.createElement("link");Lt(R),Pt(R,"link",e),R._p=new Promise(function(q,ee){R.onload=q,R.onerror=ee}),R.addEventListener("load",function(){j.loading|=1}),R.addEventListener("error",function(){j.loading|=2}),j.loading|=4,Io(M,t,l)}M={type:"stylesheet",instance:M,count:1,state:j},c.set(d,M)}}}function jw(e,t){On.X(e,t);var a=qi;if(a&&e){var l=oi(a).hoistableScripts,c=Gi(e),d=l.get(c);d||(d=a.querySelector(Zr(c)),d||(e=ae({src:e,async:!0},t),(t=Ha.get(c))&&zd(e,t),d=a.createElement("script"),Lt(d),Pt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Tw(e,t){On.M(e,t);var a=qi;if(a&&e){var l=oi(a).hoistableScripts,c=Gi(e),d=l.get(c);d||(d=a.querySelector(Zr(c)),d||(e=ae({src:e,async:!0,type:"module"},t),(t=Ha.get(c))&&zd(e,t),d=a.createElement("script"),Lt(d),Pt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function zv(e,t,a,l){var c=(c=N.current)?Yr(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=$i(a.href),t=oi(c).hoistableStyles,l=t.get(a),l||(l={type:"style",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=$i(a.href);var d=oi(c).hoistableStyles,M=d.get(e);if(M||(c=c.ownerDocument||c,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,M),(d=c.querySelector(Xr(e)))?d._p||(M.instance=d,M.state.loading=5):(d=Ha.get(e),d||(d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ha.set(e,d)),kw(c,e,d,M.state))),t&&l===null)throw Error(r(528,""));return M}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Gi(a),t=oi(c).hoistableScripts,l=t.get(a),l||(l={type:"script",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function $i(e){return'href="'+Ta(e)+'"'}function Xr(e){return'link[rel="stylesheet"]['+e+"]"}function jv(e){return ae({},e,{"data-precedence":e.precedence,precedence:null})}function kw(e,t,a,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[ks]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[ks]=!0,t.onload=t.onerror=_f.bind(null,t),Pt(t,"link",a),Lt(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function Gi(e){return'[src="'+Ta(e)+'"]'}function Zr(e){return"script[async]"+e}function Tv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ta(a.href)+'"]');if(l)return t.instance=l,Lt(l),l;var c=ae({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Lt(l),Pt(l,"style",c),Io(l,a.precedence,e),t.instance=l;case"stylesheet":c=$i(a.href);var d=e.querySelector(Xr(c));if(d)return t.state.loading|=4,t.instance=d,Lt(d),d;l=jv(a),(c=Ha.get(c))&&Ed(l,c),d=(e.ownerDocument||e).createElement("link"),Lt(d);var M=d;return M._p=new Promise(function(j,R){M.onload=j,M.onerror=R}),Pt(d,"link",l),t.state.loading|=4,Io(d,a.precedence,e),t.instance=d;case"script":return d=Gi(a.src),(c=e.querySelector(Zr(d)))?(t.instance=c,Lt(c),c):(l=a,(c=Ha.get(d))&&(l=ae({},a),zd(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),Lt(c),Pt(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Io(l,a.precedence,e));return t.instance}function Io(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,M=0;M<l.length;M++){var j=l[M];if(j.dataset.precedence===t)d=j;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ed(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vo=null;function kv(e,t,a){if(Vo===null){var l=new Map,c=Vo=new Map;c.set(a,l)}else c=Vo,l=c.get(a),l||(l=new Map,c.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var d=a[c];if(!(d[dr]||d[It]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var M=d.getAttribute(t)||"";M=e+M;var j=l.get(M);j?j.push(d):l.set(M,[d])}}return l}function jd(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Aw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Av(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Nv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rv(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Dv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Rv(t),e.suspenseyImages.push(t)),e=Dw.bind(e),t.decode().then(e,e))}function Nw(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=$i(l.href),d=t.querySelector(Xr(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,Lt(d);return}d=t.ownerDocument||t,l=jv(l),(c=Ha.get(c))&&Ed(l,c),d=d.createElement("link"),Lt(d);var M=d;M._p=new Promise(function(j,R){M.onload=j,M.onerror=R}),Pt(d,"link",l),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Wr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var qo=0;function Rw(e,t){return e.stylesheets&&e.count===0&&Go(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Go(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&qo===0&&(qo=62500*Z6());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Go(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>qo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function Ov(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Go(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Wr(){this.count--,Ov(this)}function Dw(){this.imgCount--,Ov(this)}var $o=null;function Go(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$o=new Map,t.forEach(Ow,e),$o=null,Wr.call(e))}function Ow(e,t){if(!(t.state.loading&4)){var a=$o.get(e);if(a)var l=a.get(null);else{a=new Map,$o.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var M=c[d];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(a.set(M.dataset.precedence,M),l=M)}l&&a.set(null,l)}c=t.instance,M=c.getAttribute("data-precedence"),d=a.get(M)||l,d===l&&a.set(null,c),a.set(M,c),this.count++,l=Wr.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Pi={$$typeof:F,Provider:null,Consumer:null,_currentValue:Te,_currentValue2:Te,_threadCount:0};function Lw(e,t,a,l,c,d,M,j,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bn(0),this.hiddenUpdates=bn(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.transitionTypes=null,this.incompleteTransitions=new Map}function Lv(e,t,a,l,c,d,M,j,R,q,ee,ce){return e=new Lw(e,t,a,M,R,q,ee,ce,j),t=1,d===!0&&(t|=24),d=ia(3,null,null,t),e.current=d,d.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:a,cache:t},Pu(d),e}function Hv(e){return e?(e=yi,e):yi}function Bv(e,t,a,l,c,d){c=Hv(c),l.context===null?l.context=c:l.pendingContext=c,l=Qn(t),l.payload={element:a},d=d===void 0?null:d,d!==null&&(l.callback=d),a=Jn(e,l,t),a!==null&&(ca(a,e,t),Tr(a,e,t))}function _v(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Td(e,t){_v(e,t),(e=e.alternate)&&_v(e,t)}function Fv(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&ca(t,e,67108864),Td(e,67108864)}}function Uv(e){if(e.tag===13||e.tag===31){var t=Ea();t=ou(t);var a=kl(e,t);a!==null&&ca(a,e,t),Td(e,t)}}var Ki=!0;function Hw(e,t,a,l){var c=$.T;$.T=null;var d=te.p;try{te.p=2,kd(e,t,a,l)}finally{te.p=d,$.T=c}}function Bw(e,t,a,l){var c=$.T;$.T=null;var d=te.p;try{te.p=8,kd(e,t,a,l)}finally{te.p=d,$.T=c}}function kd(e,t,a,l){if(Ki){var c=Ad(l);if(c===null)ud(e,t,l,Po,a),Vv(e,l);else if(Fw(c,e,t,a,l))l.stopPropagation();else if(Vv(e,l),t&4&&-1<_w.indexOf(e)){for(;c!==null;){var d=si(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var M=ya(d.pendingLanes);if(M!==0){var j=d;for(j.pendingLanes|=2,j.entangledLanes|=2;M;){var R=1<<31-Nt(M);j.entanglements[1]|=R,M&=~R}fn(d),(it&6)===0&&(No=Ut()+500,$r(0))}}break;case 31:case 13:j=kl(d,2),j!==null&&ca(j,d,2),Oo(),Td(d,2)}if(d=Ad(l),d===null&&ud(e,t,l,Po,a),d===c)break;c=d}c!==null&&l.stopPropagation()}else ud(e,t,l,null,a)}}function Ad(e){return e=vu(e),Nd(e)}var Po=null;function Nd(e){if(Po=null,e=El(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Po=e,null}function Iv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ru()){case li:return 2;case ii:return 8;case Ml:case Ts:return 32;case ne:return 268435456;default:return 32}default:return 32}}var Rd=!1,dl=null,fl=null,hl=null,Qr=new Map,Jr=new Map,ml=[],_w="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vv(e,t){switch(e){case"focusin":case"focusout":dl=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":hl=null;break;case"pointerover":case"pointerout":Qr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jr.delete(t.pointerId)}}function es(e,t,a,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=si(t),t!==null&&Fv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Fw(e,t,a,l,c){switch(t){case"focusin":return dl=es(dl,e,t,a,l,c),!0;case"dragenter":return fl=es(fl,e,t,a,l,c),!0;case"mouseover":return hl=es(hl,e,t,a,l,c),!0;case"pointerover":var d=c.pointerId;return Qr.set(d,es(Qr.get(d)||null,e,t,a,l,c)),!0;case"gotpointercapture":return d=c.pointerId,Jr.set(d,es(Jr.get(d)||null,e,t,a,l,c)),!0}return!1}function qv(e){var t=El(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Lf(e.priority,function(){Uv(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Lf(e.priority,function(){Uv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ad(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);mu=l,a.target.dispatchEvent(l),mu=null}else return t=si(a),t!==null&&Fv(t),e.blockedOn=a,!1;t.shift()}return!0}function $v(e,t,a){Ko(e)&&a.delete(t)}function Uw(){Rd=!1,dl!==null&&Ko(dl)&&(dl=null),fl!==null&&Ko(fl)&&(fl=null),hl!==null&&Ko(hl)&&(hl=null),Qr.forEach($v),Jr.forEach($v)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,Rd||(Rd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Uw)))}var Xo=null;function Gv(e){Xo!==e&&(Xo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Xo===e&&(Xo=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(Nd(l||a)===null)continue;break}var d=si(a);d!==null&&(e.splice(t,3),t-=3,h1(d,{pending:!0,data:c,method:a.method,action:l},l,c))}}))}function Yi(e){function t(R){return Yo(R,e)}dl!==null&&Yo(dl,e),fl!==null&&Yo(fl,e),hl!==null&&Yo(hl,e),Qr.forEach(t),Jr.forEach(t);for(var a=0;a<ml.length;a++){var l=ml[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ml.length&&(a=ml[0],a.blockedOn===null);)qv(a),a.blockedOn===null&&ml.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var c=a[l],d=a[l+1],M=c[la]||null;if(typeof d=="function")M||Gv(a);else if(M){var j=null;if(d&&d.hasAttribute("formAction")){if(c=d,M=d[la]||null)j=M.formAction;else if(Nd(c)!==null)continue}else j=M.action;typeof j=="function"?a[l+1]=j:(a.splice(l,3),l-=3),Gv(a)}}}function Pv(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(M){return c=M})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Dd(e){this._internalRoot=e}Zo.prototype.render=Dd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Ea();Bv(a,l,e,t,null,null)},Zo.prototype.unmount=Dd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bv(e.current,2,null,e,null,null),Oo(),t[ri]=null}};function Zo(e){this._internalRoot=e}Zo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Of();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ml.length&&t!==0&&t<ml[a].priority;a++);ml.splice(a,0,e),a===0&&qv(e)}};var Kv=i.version;if(Kv!=="19.3.0")throw Error(r(527,Kv,"19.3.0"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Iw={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wo.isDisabled&&Wo.supportsFiber)try{Ot=Wo.inject(Iw),At=Wo}catch{}}return as.createRoot=function(e,t){if(!u(e))throw Error(r(299));var a=!1,l="",c=Hh,d=Bh,M=_h;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(M=t.onRecoverableError)),t=Lv(e,1,!1,null,null,a,l,null,c,d,M,Pv),e[ri]=t.current,cd(e),new Dd(t)},as.hydrateRoot=function(e,t,a){if(!u(e))throw Error(r(299));var l=!1,c="",d=Hh,M=Bh,j=_h,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(M=a.onCaughtError),a.onRecoverableError!==void 0&&(j=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Lv(e,1,!0,t,a??null,l,c,R,d,M,j,Pv),t.context=Hv(null),a=t.current,l=Ea(),l=ou(l),c=Qn(l),c.callback=null,Jn(a,c,l),a=l,t.current.lanes=a,_a(t,a),fn(t),e[ri]=t.current,cd(e),new Zo(t)},as.version="19.3.0",as}var sp;function oC(){if(sp)return Hd.exports;sp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Hd.exports=sC(),Hd.exports}var cC=oC(),g=W0();const uC=Kg(g),Xg=Qw({__proto__:null,default:uC},[g]);function Zg(n,i){return`kit:${n}:${i}`}function dC(n){return new TextEncoder().encode(n).length}function ds(n,i,o){try{const r=window.localStorage.getItem(Zg(n,i));return r==null?void 0:o(JSON.parse(r))}catch{return}}function Ji(n,i,o,r=Number.POSITIVE_INFINITY){let u;try{u=JSON.stringify(o)}catch{return"unavailable"}if(dC(u)>r)return"tooLarge";try{return window.localStorage.setItem(Zg(n,i),u),"stored"}catch{return"unavailable"}}var fC={colorPickerSquare:"Saturation and brightness",colorPickerHue:"Hue",colorPickerHex:"Hex color",colorWheel:"color wheel",colorWheelLightness:"{label} lightness",colorWheelOffset:"{label}: {x}, {y}",curveEditor:"Curve",curveEditorPoint:"Point {index}: {x}, {y}",expandPanelGroup:"Expand panel group",collapsePanelGroup:"Collapse panel group",floatingPanelClose:"Close {title}",floatingPanelResize:"Resize",keyframeLane:"Keyframes",keyframeAt:"Keyframe at {time}",levelMeter:"Audio levels",previewDialogOk:"OK",previewDialogCancel:"Cancel",previewDialogReset:"Reset",previewDialogPreview:"Preview",previewDialogPending:"Updating the preview…",previewDialogOff:"Preview is off: {error}",transportControls:"Transport controls",closePanel:"Close Panel",maximizeFrame:"Maximize Frame",restoreWorkspace:"Restore Workspace",panelMenu:"Panel menu",moreTabs:"More tabs",resizePanels:"Resize panels",passwordShow:"Show password",passwordHide:"Hide password",close:"Close",confirm:"Confirm",cancel:"Cancel",sheet:"Side panel",noData:"No data",loading:"Loading",breadcrumb:"Breadcrumb",pagination:"Pages",paginationRange:"{first}–{last} of {total}",previousPage:"Previous page",nextPage:"Next page",pageNumber:"Page {page}",pageSize:"Rows per page",perPage:"{size} / page",formRequired:"{label} is required",formEmail:"{label} must be an email address",formUrl:"{label} must be a web address",formPattern:"{label} is not in the expected format",formMinLength:"{label} needs at least {min} characters",formMaxLength:"{label} takes at most {max} characters",formMinValue:"{label} must be at least {min}",formMaxValue:"{label} must be at most {max}",noMatches:"No matches",clear:"Clear",allChosen:"All",selectAllRows:"Select all rows on this page",selectRow:"Select row",rowActions:"Actions",selectionActions:"Selection actions",selectedCount:"{count} selected",clearSelection:"Clear selection"},hC={colorPickerSquare:"饱和度和明度",colorPickerHue:"色相",colorPickerHex:"十六进制颜色",colorWheel:"色轮",colorWheelLightness:"{label}亮度",colorWheelOffset:"{label}:{x},{y}",curveEditor:"曲线",curveEditorPoint:"点 {index}:{x},{y}",expandPanelGroup:"展开面板组",collapsePanelGroup:"折叠面板组",floatingPanelClose:"关闭{title}",floatingPanelResize:"调整大小",keyframeLane:"关键帧",keyframeAt:"{time} 处的关键帧",levelMeter:"音频电平",previewDialogOk:"确定",previewDialogCancel:"取消",previewDialogReset:"重置",previewDialogPreview:"预览",previewDialogPending:"正在更新预览…",previewDialogOff:"预览已关闭:{error}",transportControls:"播放控件",closePanel:"关闭面板",maximizeFrame:"最大化框架",restoreWorkspace:"恢复工作区",panelMenu:"面板菜单",moreTabs:"更多选项卡",resizePanels:"调整面板大小",passwordShow:"显示密码",passwordHide:"隐藏密码",close:"关闭",confirm:"确定",cancel:"取消",sheet:"侧边面板",noData:"暂无数据",loading:"加载中",breadcrumb:"面包屑导航",pagination:"分页",paginationRange:"第 {first}–{last} 条,共 {total} 条",previousPage:"上一页",nextPage:"下一页",pageNumber:"第 {page} 页",pageSize:"每页行数",perPage:"{size} 条/页",formRequired:"请填写{label}",formEmail:"{label}必须是邮箱地址",formUrl:"{label}必须是网址",formPattern:"{label}格式不正确",formMinLength:"{label}至少需要 {min} 个字符",formMaxLength:"{label}最多 {max} 个字符",formMinValue:"{label}不能小于 {min}",formMaxValue:"{label}不能大于 {max}",noMatches:"没有匹配项",clear:"清除",allChosen:"全部",selectAllRows:"选择本页所有行",selectRow:"选择行",rowActions:"操作",selectionActions:"所选项的操作",selectedCount:"已选 {count} 项",clearSelection:"取消选择"},mC={"en-US":fC,"zh-CN":hC};function vC(n,i){const o=[i,i.split("-")[0],"en-US"].map(r=>{var u;return n[r]??((u=Object.entries(n).find(([f])=>f.split("-")[0]===r))==null?void 0:u[1])}).filter(r=>!!r);return(r,u)=>{var h;const f=((h=o.find(v=>r in v))==null?void 0:h[r])??r;return u?f.replace(/\{(\w+)\}/g,(v,p)=>p in u?String(u[p]):v):f}}var pC=vC(mC,"en-US"),Wg=g.createContext(null);function Qg(){return g.useContext(Wg)??pC}function gC({strings:n,children:i}){return s.jsx(Wg.Provider,{value:n,children:i})}var yC={hidden:!1,disabled:!1},bC={state:()=>yC,renderExtras:()=>null,drawn:()=>{}},Jg=g.createContext(null);function ey(){return g.useContext(Jg)??bC}function MC({elements:n,children:i}){return s.jsx(Jg.Provider,{value:n,children:i})}var xC='button[data-kit-ui-id^="command:"], button[data-kit-ui-id^="tool:"], button[data-kit-ui-id^="host:"]',SC='button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), a[href], [tabindex]:not([tabindex="-1"])';function Q0({open:n,anchor:i,onClose:o,label:r,className:u="",testId:f,children:h}){const v=g.useRef(null),[p,y]=g.useState(null),m=g.useRef(o);m.current=o,g.useLayoutEffect(()=>{if(!n){y(null);return}const b=()=>{var S,z;const E=(S=i.current)==null?void 0:S.getBoundingClientRect();if(!E)return;const w=((z=v.current)==null?void 0:z.offsetWidth)??0,T=E.bottom+4;y({left:Math.max(4,Math.min(E.left,window.innerWidth-w-4)),top:T,maxHeight:Math.max(0,window.innerHeight-T-8)})};b(),window.addEventListener("resize",b);const C=typeof ResizeObserver=="function"&&v.current?new ResizeObserver(b):null;return C&&v.current&&C.observe(v.current),()=>{window.removeEventListener("resize",b),C==null||C.disconnect()}},[i,n]),g.useLayoutEffect(()=>{var E;if(!n)return;const b=(E=i.current)==null?void 0:E.querySelector("button"),C=v.current;return()=>{const w=document.activeElement;b!=null&&b.isConnected&&(!w||w===document.body||!w.isConnected||C!=null&&C.contains(w))&&b.focus({preventScroll:!0})}},[i,n]);const x=p!==null;return g.useLayoutEffect(()=>{const b=v.current;!n||!x||!b||b.contains(document.activeElement)||(b.querySelector(SC)??b).focus({preventScroll:!0})},[n,x]),g.useEffect(()=>{if(!n)return;const b=E=>{var w;(w=i.current)!=null&&w.contains(E.target)||m.current()},C=E=>{E.key==="Escape"&&!E.defaultPrevented&&m.current()};return window.addEventListener("pointerdown",b,!0),window.addEventListener("keydown",C),()=>{window.removeEventListener("pointerdown",b,!0),window.removeEventListener("keydown",C)}},[i,n]),n?s.jsx("div",{ref:v,className:`kui-popover kui-drop-panel ${u}`,role:"dialog","aria-label":r,tabIndex:-1,"data-testid":f,style:p?{left:p.left,top:p.top,maxHeight:p.maxHeight}:{visibility:"hidden"},onClick:b=>{b.target.closest(xC)&&o()},children:h}):null}var op=.25,cp=24,ty=1.5;function wC({size:n=cp,strokeWidth:i=ty,absoluteStrokeWidth:o=!1}={}){return o?i*cp/n:i}var CC=Object.defineProperty,EC=(n,i)=>{for(var o in i)CC(n,o,{get:i[o],enumerable:!0})},zC={};EC(zC,{AArrowDown:()=>ay,AArrowUp:()=>ny,ALargeSmall:()=>jC,Accessibility:()=>TC,Activity:()=>ly,AlarmClock:()=>kC,AlignCenterHorizontal:()=>iy,AlignCenterVertical:()=>AC,AlignEndHorizontal:()=>NC,AlignEndVertical:()=>RC,AlignHorizontalJustifyCenter:()=>DC,AlignStartHorizontal:()=>OC,AlignStartVertical:()=>LC,AlignVerticalJustifyCenter:()=>ry,AlignVerticalJustifyEnd:()=>sy,AlignVerticalJustifyStart:()=>oy,AnimationAppear:()=>HC,AnimationFade:()=>BC,AnimationFadeOut:()=>_C,AnimationFloatIn:()=>FC,AnimationFlyIn:()=>UC,AnimationFlyOut:()=>IC,AnimationGrowShrink:()=>VC,AnimationPath:()=>qC,AnimationPulse:()=>$C,AnimationSpin:()=>GC,AnimationSplit:()=>PC,AnimationWipe:()=>KC,AnimationZoom:()=>YC,Aperture:()=>XC,AppWindow:()=>ZC,AppWindowMac:()=>WC,Arc:()=>QC,ArrayPath:()=>JC,ArrayPolar:()=>e8,ArrayRectangular:()=>t8,ArrowDown:()=>cy,ArrowDownAZ:()=>a8,ArrowDownToLine:()=>uy,ArrowDownWideNarrow:()=>dy,ArrowLeft:()=>fy,ArrowLeftFromLine:()=>n8,ArrowLeftRight:()=>l8,ArrowLeftToLine:()=>hy,ArrowRight:()=>my,ArrowRightFromLine:()=>i8,ArrowRightLeft:()=>vy,ArrowRightToLine:()=>py,ArrowUp:()=>gy,ArrowUpDown:()=>yy,ArrowUpRight:()=>r8,AtSign:()=>s8,AudioLines:()=>o8,AudioWaveform:()=>c8,Ban:()=>u8,Bandage:()=>d8,Baseline:()=>by,Bell:()=>My,BetweenHorizontalEnd:()=>f8,BetweenHorizontalStart:()=>h8,BetweenVerticalEnd:()=>m8,BetweenVerticalStart:()=>v8,Blend:()=>xy,Blocks:()=>p8,Bold:()=>Sy,BookBookmark:()=>g8,BookOpen:()=>wy,BookOpenText:()=>y8,Bookmark:()=>Cy,Bot:()=>b8,Box:()=>Ey,Boxes:()=>M8,Braces:()=>x8,BreakLine:()=>S8,Briefcase:()=>w8,BriefcaseBusiness:()=>C8,BringToFront:()=>zy,Brush:()=>jy,BrushCleaning:()=>E8,Cable:()=>Ty,Calendar:()=>ky,CalendarClock:()=>z8,CalendarDays:()=>j8,CalendarRange:()=>T8,Camera:()=>Ay,Captions:()=>k8,CaseLower:()=>A8,CaseSensitive:()=>N8,CaseUpper:()=>R8,CenterLine:()=>D8,CenterMark:()=>O8,Chamfer:()=>L8,ChartArea:()=>Ny,ChartColumn:()=>Ry,ChartColumnStacked:()=>Dy,ChartGantt:()=>H8,ChartLine:()=>Oy,ChartNoAxesColumn:()=>B8,ChartNoAxesCombined:()=>_8,ChartPie:()=>Ly,ChartScatter:()=>Hy,ChartSpline:()=>F8,Check:()=>By,ChevronDown:()=>_y,ChevronFirst:()=>U8,ChevronLast:()=>I8,ChevronLeft:()=>Fy,ChevronRight:()=>Uy,ChevronUp:()=>Iy,ChevronsDownUp:()=>Vy,ChevronsLeft:()=>V8,ChevronsRight:()=>q8,ChevronsRightLeft:()=>$8,ChevronsUpDown:()=>qy,Circle:()=>$y,CircleAlert:()=>G8,CircleCenterRadius:()=>P8,CircleCheck:()=>K8,CircleDashed:()=>Y8,CircleDot:()=>X8,CircleQuestionMark:()=>Gy,CircleUserRound:()=>Z8,CircleX:()=>W8,Clapperboard:()=>Py,ClipExtract:()=>Ky,ClipInsert:()=>Q8,ClipLift:()=>Yy,ClipOverwrite:()=>J8,Clipboard:()=>Xy,ClipboardCheck:()=>e7,ClipboardList:()=>t7,ClipboardPaste:()=>Zy,Clock:()=>Wy,Clock3:()=>a7,Cloud:()=>n7,CloudDownload:()=>l7,CloudOff:()=>i7,CloudUpload:()=>r7,Cloudy:()=>s7,Code:()=>Qy,CodeXml:()=>o7,Columns2:()=>Jy,Columns3:()=>c7,Combine:()=>u7,Command:()=>d7,CommandGeneric:()=>e5,Compass:()=>f7,Component:()=>t5,ConstraintCoincident:()=>h7,ConstraintCollinear:()=>m7,ConstraintConcentric:()=>v7,ConstraintEqual:()=>p7,ConstraintFix:()=>g7,ConstraintHorizontal:()=>y7,ConstraintParallel:()=>b7,ConstraintPerpendicular:()=>M7,ConstraintSymmetric:()=>x7,ConstraintTangent:()=>S7,ConstraintVertical:()=>w7,ConstructionLine:()=>C7,Contact:()=>E7,Contrast:()=>a5,Cookie:()=>z7,Copy:()=>n5,CopyCheck:()=>j7,CopyPlus:()=>l5,CornerDownRight:()=>i5,CornerUpRight:()=>T7,Cpu:()=>k7,CreditCard:()=>A7,Crop:()=>r5,Crosshair:()=>s5,DashDashed:()=>N7,DashDotted:()=>R7,DashSolid:()=>D7,Database:()=>o5,DecimalsArrowLeft:()=>c5,DecimalsArrowRight:()=>u5,Delete:()=>O7,Diameter:()=>d5,Diamond:()=>f5,DimensionAligned:()=>L7,DimensionAngular:()=>H7,DimensionArcLength:()=>B7,DimensionBaseline:()=>_7,DimensionContinue:()=>F7,DimensionDiameter:()=>U7,DimensionLinear:()=>I7,DimensionOrdinate:()=>V7,DimensionRadius:()=>q7,Disc:()=>h5,DollarSign:()=>m5,Donut:()=>$7,Download:()=>v5,Droplet:()=>G7,Droplets:()=>P7,Earth:()=>K7,Ellipse:()=>Y7,Ellipsis:()=>p5,EllipsisVertical:()=>X7,Eraser:()=>g5,Expand:()=>Z7,Explode:()=>W7,Extend:()=>Q7,ExternalLink:()=>J7,Eye:()=>y5,EyeOff:()=>b5,FaceSlightlySmiling:()=>eE,FastForward:()=>M5,Feather:()=>tE,File:()=>x5,FileArchive:()=>aE,FileCheckCorner:()=>nE,FileClock:()=>lE,FileCode:()=>S5,FileCodeCorner:()=>iE,FileDiff:()=>rE,FileDigit:()=>sE,FileExclamationPoint:()=>oE,FileImage:()=>cE,FileInput:()=>w5,FileOutput:()=>C5,FilePenLine:()=>uE,FilePlus:()=>E5,FilePlusCorner:()=>dE,FileSpreadsheet:()=>z5,FileSymlink:()=>fE,FileText:()=>hE,FileTypeCorner:()=>mE,FileUp:()=>vE,FileVideoCamera:()=>pE,Files:()=>gE,Fillet:()=>yE,Film:()=>j5,Flag:()=>T5,Flame:()=>bE,FlaskConical:()=>ME,FlipHorizontal:()=>k5,Flower:()=>xE,Focus:()=>A5,FoldHorizontal:()=>SE,Folder:()=>N5,FolderCheck:()=>wE,FolderInput:()=>CE,FolderLock:()=>EE,FolderOpen:()=>R5,FolderPlus:()=>zE,FolderUp:()=>jE,Frame:()=>D5,Fullscreen:()=>TE,Funnel:()=>O5,GalleryHorizontalEnd:()=>kE,Gauge:()=>L5,Gem:()=>AE,Gift:()=>NE,GitBranch:()=>RE,GitBranchPlus:()=>DE,GitCompare:()=>OE,Glasses:()=>LE,Globe:()=>H5,GoToIn:()=>HE,GoToOut:()=>BE,GraduationCap:()=>_E,Grid2x2:()=>B5,Grid3x2:()=>FE,Grid3x3:()=>_5,GripHorizontal:()=>UE,GripVertical:()=>IE,Group:()=>F5,Hand:()=>U5,HardDrive:()=>VE,Hash:()=>I5,Hatch:()=>qE,Heading:()=>V5,Heart:()=>$E,Helix:()=>GE,Hexagon:()=>PE,Highlighter:()=>q5,Hourglass:()=>KE,Image:()=>$5,ImageDown:()=>G5,ImagePlus:()=>YE,ImageUp:()=>XE,Images:()=>ZE,Inbox:()=>WE,Info:()=>P5,Italic:()=>K5,KeyRound:()=>QE,Keyboard:()=>JE,Keyframe:()=>ez,KeyframeNext:()=>tz,KeyframeOn:()=>az,KeyframePrevious:()=>nz,Lamp:()=>lz,Languages:()=>Y5,Laptop:()=>iz,Lasso:()=>X5,LassoSelect:()=>rz,Layers:()=>Z5,Layers2:()=>sz,LayersPlus:()=>oz,LayoutDashboard:()=>cz,LayoutGrid:()=>W5,LayoutPanelLeft:()=>uz,LayoutTemplate:()=>Q5,Leader:()=>dz,Lengthen:()=>fz,Library:()=>hz,LifeBuoy:()=>J5,Ligature:()=>mz,Lightbulb:()=>eb,LineSegment:()=>vz,Linetype:()=>pz,Lineweight:()=>gz,Link:()=>tb,Link2:()=>yz,List:()=>ab,ListChecks:()=>nb,ListFilter:()=>bz,ListIndentDecrease:()=>lb,ListIndentIncrease:()=>ib,ListOrdered:()=>rb,ListPlus:()=>Mz,ListRestart:()=>xz,ListTodo:()=>Sz,ListTree:()=>sb,ListVideo:()=>wz,LoaderCircle:()=>ob,Lock:()=>cb,LockKeyhole:()=>Cz,LockOpen:()=>ub,LogOut:()=>Ez,Lollipop:()=>zz,Magnet:()=>db,Mail:()=>fb,MailWarning:()=>jz,MapPin:()=>Tz,MarkIn:()=>kz,MarkOut:()=>Az,Maximize:()=>Nz,Maximize2:()=>Rz,Megaphone:()=>Dz,Menu:()=>hb,Merge:()=>mb,MessageSquare:()=>vb,MessageSquareDashed:()=>Oz,MessageSquarePlus:()=>pb,MessageSquareText:()=>Lz,Minimize2:()=>gb,Minus:()=>yb,Monitor:()=>Hz,MonitorCog:()=>Bz,MonitorPlay:()=>_z,MonitorSmartphone:()=>Fz,Moon:()=>Uz,Mountain:()=>Iz,MountainSnow:()=>Vz,MousePointer:()=>bb,MousePointer2:()=>Mb,MousePointerClick:()=>xb,Move:()=>Sb,Move3d:()=>wb,MoveHorizontal:()=>Cb,MoveRight:()=>Eb,MoveUpRight:()=>zb,MoveVertical:()=>qz,Multiline:()=>$z,Music:()=>jb,Navigation:()=>Gz,Network:()=>Tb,NotebookPen:()=>Pz,NotebookText:()=>Kz,Offset:()=>Yz,Omega:()=>kb,Orbit:()=>Xz,OrthoMode:()=>Zz,Package:()=>Ab,PaintBucket:()=>Nb,Paintbrush:()=>Rb,Palette:()=>Db,PanelBottom:()=>Ob,PanelLeft:()=>Wz,PanelLeftClose:()=>Qz,PanelLeftOpen:()=>Jz,PanelRight:()=>ej,PanelTop:()=>Lb,PanelsTopLeft:()=>tj,Paperclip:()=>aj,Parallelogram:()=>nj,Pause:()=>Hb,Pen:()=>Bb,PenLine:()=>_b,PenTool:()=>Fb,Pencil:()=>Ub,PencilLine:()=>Ib,Pentagon:()=>lj,Percent:()=>Vb,Pilcrow:()=>qb,Pill:()=>ij,Pin:()=>rj,PinOff:()=>sj,Pipette:()=>$b,Play:()=>Gb,Plus:()=>Pb,Pointer:()=>oj,PolarTracking:()=>cj,Polyline:()=>uj,Power:()=>dj,Presentation:()=>fj,Printer:()=>Kb,Puzzle:()=>hj,QrCode:()=>Yb,Quote:()=>mj,Radar:()=>Xb,Radius:()=>Zb,Rainbow:()=>Wb,Ratio:()=>vj,Ray:()=>pj,Receipt:()=>gj,RectangleHorizontal:()=>Qb,RectangleVertical:()=>yj,Redo2:()=>Jb,RefreshCcw:()=>bj,RefreshCw:()=>e4,Region:()=>Mj,RemoveFormatting:()=>xj,Repeat:()=>t4,Replace:()=>a4,RevisionCloud:()=>Sj,Rocket:()=>wj,Rotate3d:()=>Cj,RotateCcw:()=>n4,RotateCcwClock:()=>Ej,RotateCw:()=>l4,Rows2:()=>zj,Rows3:()=>i4,Ruler:()=>r4,RulerDimensionLine:()=>s4,Save:()=>o4,Scale:()=>jj,Scaling:()=>c4,Scan:()=>Tj,ScanEye:()=>kj,ScanFace:()=>Aj,ScanSearch:()=>Nj,ScanText:()=>Rj,Scissors:()=>u4,ScrollText:()=>Dj,Search:()=>d4,SearchCheck:()=>Oj,Send:()=>f4,SendToBack:()=>h4,SeparatorHorizontal:()=>Lj,Settings:()=>m4,Settings2:()=>Hj,Shapes:()=>v4,Share2:()=>p4,Shell:()=>g4,ShieldAlert:()=>Bj,ShieldBan:()=>_j,ShieldCheck:()=>y4,Shrink:()=>Fj,Sigma:()=>b4,Signature:()=>M4,SkipBack:()=>Uj,SkipForward:()=>Ij,Slash:()=>Vj,Slice:()=>qj,SlidersHorizontal:()=>x4,SlidersVertical:()=>$j,Snowflake:()=>S4,Sparkle:()=>Gj,Sparkles:()=>w4,SpellCheck:()=>C4,Spline:()=>E4,SplinePointer:()=>Pj,Split:()=>z4,Square:()=>j4,SquareCheck:()=>Kj,SquareCheckBig:()=>T4,SquareDashed:()=>k4,SquareDashedMousePointer:()=>Yj,SquareDot:()=>Xj,SquareFunction:()=>A4,SquareKanban:()=>Zj,SquareMinus:()=>N4,SquareMousePointer:()=>Wj,SquarePlus:()=>R4,SquareSplitHorizontal:()=>Qj,SquareSplitVertical:()=>D4,SquareSquare:()=>Jj,SquareStack:()=>e9,SquareTerminal:()=>t9,SquareX:()=>a9,SquaresExclude:()=>n9,SquaresIntersect:()=>l9,SquaresSubtract:()=>i9,SquaresUnite:()=>r9,Squircle:()=>s9,Stamp:()=>o9,Star:()=>O4,StepBack:()=>c9,StepForward:()=>L4,Sticker:()=>H4,StickyNote:()=>B4,Stretch:()=>u9,StretchHorizontal:()=>d9,Strikethrough:()=>_4,Subscript:()=>F4,Sun:()=>f9,SunDim:()=>h9,SunMedium:()=>m9,SunMoon:()=>v9,SunSnow:()=>p9,Sunrise:()=>g9,Superscript:()=>U4,SwatchBook:()=>I4,Table:()=>V4,Table2:()=>q4,TableCellsMerge:()=>$4,TableCellsSplit:()=>G4,TableProperties:()=>P4,Tag:()=>K4,Tags:()=>y9,Target:()=>b9,Terminal:()=>M9,TextAlignCenter:()=>Y4,TextAlignEnd:()=>X4,TextAlignJustify:()=>Z4,TextAlignStart:()=>W4,TextCursor:()=>Q4,TextCursorInput:()=>J4,TextJustifyCenter:()=>x9,TextJustifyEnd:()=>S9,TextJustifyStart:()=>w9,TextWrap:()=>eM,Thermometer:()=>C9,ThumbsUp:()=>E9,Ticket:()=>z9,Timer:()=>j9,ToggleLeft:()=>tM,Tornado:()=>T9,TransitionCover:()=>k9,TransitionCurtains:()=>A9,TransitionCut:()=>N9,TransitionDrape:()=>R9,TransitionFade:()=>D9,TransitionFallOver:()=>O9,TransitionFlash:()=>L9,TransitionMorph:()=>H9,TransitionNone:()=>B9,TransitionPrestige:()=>_9,TransitionPush:()=>F9,TransitionRandomBars:()=>U9,TransitionReveal:()=>I9,TransitionShape:()=>V9,TransitionSplit:()=>q9,TransitionUncover:()=>$9,TransitionWind:()=>G9,TransitionWipe:()=>P9,Trash:()=>aM,TrendingUp:()=>nM,Triangle:()=>lM,TriangleAlert:()=>K9,TrianglesCenterlineDashedHorizontal:()=>Y9,Type:()=>iM,TypeOutline:()=>X9,Underline:()=>rM,Undo2:()=>sM,UnfoldHorizontal:()=>Z9,UnfoldVertical:()=>W9,Ungroup:()=>oM,Unlink:()=>cM,Upload:()=>uM,User:()=>Q9,UserMinus:()=>J9,UserPlus:()=>eT,UserRound:()=>tT,Users:()=>aT,Variable:()=>nT,VectorPolygon:()=>dM,VectorSquare:()=>fM,Video:()=>hM,Volume2:()=>mM,WalletCards:()=>lT,WandSparkles:()=>vM,WavesHorizontal:()=>pM,Waypoints:()=>gM,Webhook:()=>iT,WholeWord:()=>yM,Wind:()=>rT,Workflow:()=>sT,Wrench:()=>oT,X:()=>bM,Zap:()=>MM,ZapOff:()=>cT,ZoomIn:()=>xM,ZoomOut:()=>uT});var ay={name:"a-arrow-down",family:"ui",paths:["m14 12 4 4 4-4","M18 16V7","m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16","M3.304 13h6.392"],fills:[],accents:[]},ny={name:"a-arrow-up",family:"ui",paths:["m14 11 4-4 4 4","M18 16V7","m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16","M3.304 13h6.392"],fills:[],accents:[]},jC={name:"a-large-small",family:"ui",paths:["m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16","M15.697 14h5.606","m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16","M3.304 13h6.392"],fills:[],accents:[]},TC={name:"accessibility",family:"ui",paths:["M15 4a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","m18 19 1-7-6 1","m5 8 3-3 5.5 3-2.36 3.5","M4.24 14.5a5 5 0 0 0 6.88 6","M13.76 17.5a5 5 0 0 0-6.88-6"],fills:[],accents:[]},ly={name:"activity",family:"ui",paths:["M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"],fills:[],accents:[]},kC={name:"alarm-clock",family:"ui",paths:["M4 13a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M12 9v4l2 2","M5 3 2 6","m22 6-3-3","M6.38 18.7 4 21","M17.64 18.67 20 21"],fills:[],accents:[]},iy={name:"align-center-horizontal",family:"ui",paths:["M2 12h20","M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4","M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4","M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1","M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1"],fills:[],accents:[]},AC={name:"align-center-vertical",family:"ui",paths:["M12 2v20","M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4","M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4","M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1","M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"],fills:[],accents:[]},NC={name:"align-end-horizontal",family:"ui",paths:["M6 2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M16 9h2a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z","M22 22H2"],fills:[],accents:[]},RC={name:"align-end-vertical",family:"ui",paths:["M4 4h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M11 14h5a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M22 22V2"],fills:[],accents:[]},DC={name:"align-horizontal-justify-center",family:"ui",paths:["M4 5h2a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M18 7h2a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M12 2v20"],fills:[],accents:[]},OC={name:"align-start-horizontal",family:"ui",paths:["M6 6h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M16 6h2a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z","M22 2H2"],fills:[],accents:[]},LC={name:"align-start-vertical",family:"ui",paths:["M8 14h5a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M8 4h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M2 2v20"],fills:[],accents:[]},ry={name:"align-vertical-justify-center",family:"ui",paths:["M7 16h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M9 2h6a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M2 12h20"],fills:[],accents:[]},sy={name:"align-vertical-justify-end",family:"ui",paths:["M7 12h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M9 2h6a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M2 22h20"],fills:[],accents:[]},oy={name:"align-vertical-justify-start",family:"ui",paths:["M7 16h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M9 6h6a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M2 2h20"],fills:[],accents:[]},HC={name:"animation-appear",family:"tool",paths:["M9.5 7.5h5a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z","M4 4l1.5 1.5","M20 4l-1.5 1.5","M4 20l1.5-1.5","M20 20l-1.5-1.5"],fills:[],accents:["M9.5 7.5h5a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z"]},BC={name:"animation-fade",family:"tool",paths:["M7 5h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M12 5v14","M6.5 11l3-3","M6.5 15.5l4.5-4.5"],fills:[],accents:["M12 5h5a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-5z"]},_C={name:"animation-fade-out",family:"tool",paths:["M7 5h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M12 5v14","M17.5 11l-3-3","M17.5 15.5l-4.5-4.5"],fills:[],accents:["M12 5H7a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h5z"]},FC={name:"animation-float-in",family:"tool",paths:["M9.5 3.5h5a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z","M7 16.5h10","M9.5 20h5"],fills:[],accents:["M9.5 3.5h5a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-5a2 2 0 0 1 2 -2z"]},UC={name:"animation-fly-in",family:"tool",paths:["M13 3.5h5.5a2 2 0 0 1 2 2v5.5a2 2 0 0 1 -2 2h-5.5a2 2 0 0 1 -2 -2v-5.5a2 2 0 0 1 2 -2z","M3.5 20.5l4.5-4.5","M3.5 15.5l2.5-2.5","M8.5 20.5l2.5-2.5"],fills:[],accents:["M13 3.5h5.5a2 2 0 0 1 2 2v5.5a2 2 0 0 1 -2 2h-5.5a2 2 0 0 1 -2 -2v-5.5a2 2 0 0 1 2 -2z"]},IC={name:"animation-fly-out",family:"tool",paths:["M13 11h5.5a2 2 0 0 1 2 2v5.5a2 2 0 0 1 -2 2h-5.5a2 2 0 0 1 -2 -2v-5.5a2 2 0 0 1 2 -2z","M3.5 3.5l4.5 4.5","M3.5 8.5l2.5 2.5","M8.5 3.5l2.5 2.5"],fills:[],accents:["M13 11h5.5a2 2 0 0 1 2 2v5.5a2 2 0 0 1 -2 2h-5.5a2 2 0 0 1 -2 -2v-5.5a2 2 0 0 1 2 -2z"]},VC={name:"animation-grow-shrink",family:"tool",paths:["M5.5 13h4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1 -1.5 1.5h-4a1.5 1.5 0 0 1 -1.5 -1.5v-4a1.5 1.5 0 0 1 1.5 -1.5z","M13 11l6-6","M14.5 5H19v4.5","M21 13v5a2 2 0 0 1 -2 2h-5"],fills:[],accents:["M5.5 13h4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1 -1.5 1.5h-4a1.5 1.5 0 0 1 -1.5 -1.5v-4a1.5 1.5 0 0 1 1.5 -1.5z"]},qC={name:"animation-path",family:"tool",paths:["M15 3.5h3.5a2 2 0 0 1 2 2v3.5a2 2 0 0 1 -2 2h-3.5a2 2 0 0 1 -2 -2v-3.5a2 2 0 0 1 2 -2z","M4.5 19.5h.01","M6 16.5h.01","M8 14h.01","M10.5 12.5h.01"],fills:["M3.25 19.5a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:["M15 3.5h3.5a2 2 0 0 1 2 2v3.5a2 2 0 0 1 -2 2h-3.5a2 2 0 0 1 -2 -2v-3.5a2 2 0 0 1 2 -2z"]},$C={name:"animation-pulse",family:"tool",paths:["M10 8h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z","M7 4h10a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z"],fills:[],accents:["M10 8h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z"]},GC={name:"animation-spin",family:"tool",paths:["M10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z","M20 12a8 8 0 1 1 -8-8 8.7 8.7 0 0 1 6 2.5L20 8","M20 4v4h-4"],fills:[],accents:["M10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z"]},PC={name:"animation-split",family:"tool",paths:["M6 6.5h2a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2z","M16 6.5h2a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2z","M12 3v2","M12 19v2"],fills:[],accents:["M6 6.5h2a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2z","M16 6.5h2a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-7a2 2 0 0 1 2 -2z"]},KC={name:"animation-wipe",family:"tool",paths:["M6 5h12a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M12 5v14","m14.5 10 2 2-2 2"],fills:[],accents:["M12 5H6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h6z"]},YC={name:"animation-zoom",family:"tool",paths:["M10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z","M4 8V6a2 2 0 0 1 2-2h2","M16 4h2a2 2 0 0 1 2 2v2","M20 16v2a2 2 0 0 1 -2 2h-2","M8 20H6a2 2 0 0 1 -2-2v-2"],fills:[],accents:["M10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5v-3a1.5 1.5 0 0 1 1.5 -1.5z"]},XC={name:"aperture",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","m14.31 8 5.74 9.94","M9.69 8h11.48","m7.38 12 5.74-9.94","M9.69 16 3.95 6.06","M14.31 16H2.83","m16.62 12-5.74 9.94"],fills:[],accents:[]},ZC={name:"app-window",family:"ui",paths:["M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M10 4v4","M2 8h20","M6 4v4"],fills:[],accents:[]},WC={name:"app-window-mac",family:"ui",paths:["M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M6 8h.01","M10 8h.01","M14 8h.01"],fills:[],accents:[]},QC={name:"arc",family:"tool",paths:["M4 17a9 9 0 0 1 16 0"],fills:["M2.75 17a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M10.75 9a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M18.75 17a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:[]},JC={name:"array-path",family:"tool",paths:["M3 19c4 0 6-14 18-14","M3.75 15h2a0.75 0.75 0 0 1 0.75 0.75v2a0.75 0.75 0 0 1 -0.75 0.75h-2a0.75 0.75 0 0 1 -0.75 -0.75v-2a0.75 0.75 0 0 1 0.75 -0.75z","M10.25 8.5h2a0.75 0.75 0 0 1 0.75 0.75v2a0.75 0.75 0 0 1 -0.75 0.75h-2a0.75 0.75 0 0 1 -0.75 -0.75v-2a0.75 0.75 0 0 1 0.75 -0.75z","M17.25 4h2a0.75 0.75 0 0 1 0.75 0.75v2a0.75 0.75 0 0 1 -0.75 0.75h-2a0.75 0.75 0 0 1 -0.75 -0.75v-2a0.75 0.75 0 0 1 0.75 -0.75z"],fills:[],accents:["M3.75 15h2a0.75 0.75 0 0 1 0.75 0.75v2a0.75 0.75 0 0 1 -0.75 0.75h-2a0.75 0.75 0 0 1 -0.75 -0.75v-2a0.75 0.75 0 0 1 0.75 -0.75z"]},e8={name:"array-polar",family:"tool",paths:["M17.75 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M14 5.5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M6.5 5.5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M2.75 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M6.5 18.5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M14 18.5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],fills:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:["M17.75 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"]},t8={name:"array-rectangular",family:"tool",paths:["M5 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M11 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M17 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M5 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M11 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M17 10h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M5 16h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M11 16h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M17 16h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z"],fills:[],accents:["M5 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z"]},cy={name:"arrow-down",family:"ui",paths:["M12 4.5v15","M6.5 14l5.5 5.5 5.5-5.5"],fills:[],accents:[]},a8={name:"arrow-down-a-z",family:"ui",paths:["m3 16 4 4 4-4","M7 20V4","M20 8h-5","M15 10V6.5a2.5 2.5 0 0 1 5 0V10","M15 14h5l-5 6h5"],fills:[],accents:[]},uy={name:"arrow-down-to-line",family:"ui",paths:["M12 17V3","m6 11 6 6 6-6","M19 21H5"],fills:[],accents:[]},dy={name:"arrow-down-wide-narrow",family:"ui",paths:["m3 16 4 4 4-4","M7 20V4","M11 4h10","M11 8h7","M11 12h4"],fills:[],accents:[]},fy={name:"arrow-left",family:"ui",paths:["m12 19-7-7 7-7","M19 12H5"],fills:[],accents:[]},n8={name:"arrow-left-from-line",family:"ui",paths:["m9 6-6 6 6 6","M3 12h14","M21 19V5"],fills:[],accents:[]},l8={name:"arrow-left-right",family:"ui",paths:["M4.5 8.5h15","M16 5l3.5 3.5L16 12","M19.5 15.5h-15","M8 12l-3.5 3.5L8 19"],fills:[],accents:[]},hy={name:"arrow-left-to-line",family:"ui",paths:["M3 19V5","m13 6-6 6 6 6","M7 12h14"],fills:[],accents:[]},my={name:"arrow-right",family:"ui",paths:["M5 12h14","m12 5 7 7-7 7"],fills:[],accents:[]},i8={name:"arrow-right-from-line",family:"ui",paths:["M3 5v14","M21 12H7","m15 18 6-6-6-6"],fills:[],accents:[]},vy={name:"arrow-right-left",family:"ui",paths:["m16 3 4 4-4 4","M20 7H4","m8 21-4-4 4-4","M4 17h16"],fills:[],accents:[]},py={name:"arrow-right-to-line",family:"ui",paths:["M17 12H3","m11 18 6-6-6-6","M21 5v14"],fills:[],accents:[]},gy={name:"arrow-up",family:"ui",paths:["M12 19.5V4.5","M6.5 10L12 4.5 17.5 10"],fills:[],accents:[]},yy={name:"arrow-up-down",family:"ui",paths:["m21 16-4 4-4-4","M17 20V4","m3 8 4-4 4 4","M7 4v16"],fills:[],accents:[]},r8={name:"arrow-up-right",family:"ui",paths:["M7 7h10v10","M7 17 17 7"],fills:[],accents:[]},s8={name:"at-sign",family:"ui",paths:["M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"],fills:[],accents:[]},o8={name:"audio-lines",family:"ui",paths:["M2 10v3","M6 6v11","M10 3v18","M14 8v7","M18 5v13","M22 10v3"],fills:[],accents:[]},c8={name:"audio-waveform",family:"ui",paths:["M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2"],fills:[],accents:[]},u8={name:"ban",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M4.929 4.929 19.07 19.071"],fills:[],accents:[]},d8={name:"bandage",family:"ui",paths:["M10 10.01h.01","M10 14.01h.01","M14 10.01h.01","M14 14.01h.01","M18 6v12","M6 6v12","M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"],fills:[],accents:["M6 6h12v12H6z"]},by={name:"baseline",family:"ui",paths:["M4 20h16","m6 16 6-12 6 12","M8 12h8"],fills:[],accents:["M12 4l4 8H8z"]},My={name:"bell",family:"ui",paths:["M10.268 21a2 2 0 0 0 3.464 0","M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"],fills:[],accents:[]},f8={name:"between-horizontal-end",family:"ui",paths:["M4 3h11a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-11a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","m22 15-3-3 3-3","M4 14h11a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-11a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},h8={name:"between-horizontal-start",family:"ui",paths:["M9 3h11a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-11a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","m2 9 3 3-3 3","M9 14h11a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-11a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},m8={name:"between-vertical-end",family:"ui",paths:["M4 3h5a1 1 0 0 1 1 1v11a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-11a1 1 0 0 1 1 -1z","m9 22 3-3 3 3","M15 3h5a1 1 0 0 1 1 1v11a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-11a1 1 0 0 1 1 -1z"],fills:[],accents:[]},v8={name:"between-vertical-start",family:"ui",paths:["M4 8h5a1 1 0 0 1 1 1v11a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-11a1 1 0 0 1 1 -1z","m15 2-3 3-3-3","M15 8h5a1 1 0 0 1 1 1v11a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-11a1 1 0 0 1 1 -1z"],fills:[],accents:[]},xy={name:"blend",family:"ui",paths:["M8 9a7 7 0 1 0 14 0a7 7 0 1 0 -14 0z","M2 15a7 7 0 1 0 14 0a7 7 0 1 0 -14 0z"],fills:[],accents:["M8.06 8.06A7 7 0 0 0 15.94 15.94A7 7 0 0 0 8.06 8.06z"]},p8={name:"blocks",family:"ui",paths:["M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2","M15 2h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Sy={name:"bold",family:"ui",paths:["M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"],fills:[],accents:[]},g8={name:"book-bookmark",family:"ui",paths:["M10 2v7.751a.25.25 0 00.407.195l2.28-1.834a.5.5 0 01.627 0l2.28 1.834A.25.25 0 0016 9.751V2","M4 19.5v-15A2.5 2.5 0 016.5 2H19a1 1 0 011 1v18a1 1 0 01-1 1H6.5a1 1 0 010-5H20"],fills:[],accents:[]},wy={name:"book-open",family:"ui",paths:["M12 5v16","M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"],fills:[],accents:[]},y8={name:"book-open-text",family:"ui",paths:["M12 5v16","M16 13h2","M16 9h2","M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z","M6 13h2","M6 9h2"],fills:[],accents:[]},Cy={name:"bookmark",family:"ui",paths:["M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"],fills:[],accents:[]},b8={name:"bot",family:"ui",paths:["M12 8V4H8","M6 8h12a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M2 14h2","M20 14h2","M15 13v2","M9 13v2"],fills:[],accents:[]},Ey={name:"box",family:"ui",paths:["M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z","m3.3 7 8.7 5 8.7-5","M12 22V12"],fills:[],accents:[]},M8={name:"boxes",family:"ui",paths:["M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z","m7 16.5-4.74-2.85","m7 16.5 5-3","M7 16.5v5.17","M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z","m17 16.5-5-3","m17 16.5 4.74-2.85","M17 16.5v5.17","M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z","M12 8 7.26 5.15","m12 8 4.74-2.85","M12 13.5V8"],fills:[],accents:[]},x8={name:"braces",family:"ui",paths:["M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1","M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"],fills:[],accents:[]},S8={name:"break-line",family:"tool",paths:["M4 18l5-5","M15 11l5-5","M10.5 8.5l1 1","M12.5 14.5l1 1"],fills:["M8 13a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M14 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},w8={name:"briefcase",family:"ui",paths:["M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16","M4 6h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z"],fills:[],accents:[]},C8={name:"briefcase-business",family:"ui",paths:["M12 12h.01","M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2","M22 13a18.15 18.15 0 0 1-20 0","M4 6h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z"],fills:[],accents:[]},zy={name:"bring-to-front",family:"ui",paths:["M10 8h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z","M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2","M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2"],fills:[],accents:[]},jy={name:"brush",family:"ui",paths:["m11 10 3 3","M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z","M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031"],fills:[],accents:["M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z"]},E8={name:"brush-cleaning",family:"ui",paths:["m16 22-1-4","M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1","M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z","m8 22 1-4"],fills:[],accents:["M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z"]},Ty={name:"cable",family:"ui",paths:["M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z","M17 21v-2","M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10","M21 21v-2","M3 5V3","M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z","M7 5V3"],fills:[],accents:[]},ky={name:"calendar",family:"ui",paths:["M8 2v3","M16 2v3","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18"],fills:[],accents:[]},z8={name:"calendar-clock",family:"ui",paths:["M16 14v2.2l1.6 1","M16 2v3","M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338","M3 9h5.859","M8 2v3","M10 16a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z"],fills:[],accents:[]},j8={name:"calendar-days",family:"ui",paths:["M8 2v3","M16 2v3","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18","M8 13h.01","M12 13h.01","M16 13h.01","M8 17h.01","M12 17h.01","M16 17h.01"],fills:[],accents:[]},T8={name:"calendar-range",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M16 2v3","M3 9h18","M8 2v3","M17 13h-6","M13 17H7","M7 13h.01","M17 17h.01"],fills:[],accents:[]},Ay={name:"camera",family:"ui",paths:["M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z","M9 13a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},k8={name:"captions",family:"ui",paths:["M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M7 15h4M15 15h2M7 11h2M13 11h4"],fills:[],accents:[]},A8={name:"case-lower",family:"ui",paths:["M10 9v7","M14 6v10","M14 12.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z","M3 12.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z"],fills:[],accents:[]},N8={name:"case-sensitive",family:"ui",paths:["m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16","M22 9v7","M3.304 13h6.392","M15 12.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z"],fills:[],accents:[]},R8={name:"case-upper",family:"ui",paths:["M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5","m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16","M3.304 13h6.392"],fills:[],accents:[]},D8={name:"center-line",family:"tool",paths:["M4 4v16","M20 4v16","M7 12h3","M12 12h.01","M14 12h3"],fills:[],accents:[]},O8={name:"center-mark",family:"tool",paths:["M6 12a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z","M12 3v4","M12 17v4","M3 12h4","M17 12h4"],fills:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},L8={name:"chamfer",family:"tool",paths:["M5 20v-9l6-6h9"],fills:["M4 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M10 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},Ny={name:"chart-area",family:"ui",paths:["M3 3v16a2 2 0 0 0 2 2h16","M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"],fills:[],accents:[]},Ry={name:"chart-column",family:"ui",paths:["M3 3v16a2 2 0 0 0 2 2h16","M18 17V9","M13 17V5","M8 17v-3"],fills:[],accents:[]},Dy={name:"chart-column-stacked",family:"ui",paths:["M11 13H7","M19 9h-4","M3 3v16a2 2 0 0 0 2 2h16","M16 5h2a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-10a1 1 0 0 1 1 -1z","M8 8h2a1 1 0 0 1 1 1v7a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1z"],fills:[],accents:[]},H8={name:"chart-gantt",family:"ui",paths:["M10 6h8","M12 16h6","M3 3v16a2 2 0 0 0 2 2h16","M8 11h7"],fills:[],accents:[]},Oy={name:"chart-line",family:"ui",paths:["M3 3v16a2 2 0 0 0 2 2h16","m19 9-5 5-4-4-3 3"],fills:[],accents:[]},B8={name:"chart-no-axes-column",family:"ui",paths:["M5 21v-6","M12 21V3","M19 21V9"],fills:[],accents:[]},_8={name:"chart-no-axes-combined",family:"ui",paths:["M12 16v5","M16 14.639V21","M20 10.656V21","m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15","M4 18.463V21","M8 14.656V21"],fills:[],accents:[]},Ly={name:"chart-pie",family:"ui",paths:["M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z","M21.21 15.89A10 10 0 1 1 8 2.83"],fills:[],accents:[]},Hy={name:"chart-scatter",family:"ui",paths:["M3 3v16a2 2 0 0 0 2 2h16"],fills:["M7 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z","M18 5.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z","M11 11.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z","M7 16.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z","M17 14.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z"],accents:[]},F8={name:"chart-spline",family:"ui",paths:["M3 3v16a2 2 0 0 0 2 2h16","M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7"],fills:[],accents:[]},By={name:"check",family:"ui",paths:["M4.5 12.5l5 5 10-11"],fills:[],accents:[]},_y={name:"chevron-down",family:"ui",paths:["M6 9l6 6 6-6"],fills:[],accents:[]},U8={name:"chevron-first",family:"ui",paths:["m17 18-6-6 6-6","M7 6v12"],fills:[],accents:[]},I8={name:"chevron-last",family:"ui",paths:["m7 18 6-6-6-6","M17 6v12"],fills:[],accents:[]},Fy={name:"chevron-left",family:"ui",paths:["m15 18-6-6 6-6"],fills:[],accents:[]},Uy={name:"chevron-right",family:"ui",paths:["m9 18 6-6-6-6"],fills:[],accents:[]},Iy={name:"chevron-up",family:"ui",paths:["m18 15-6-6-6 6"],fills:[],accents:[]},Vy={name:"chevrons-down-up",family:"ui",paths:["m7 20 5-5 5 5","m7 4 5 5 5-5"],fills:[],accents:[]},V8={name:"chevrons-left",family:"ui",paths:["m11 17-5-5 5-5","m18 17-5-5 5-5"],fills:[],accents:[]},q8={name:"chevrons-right",family:"ui",paths:["m6 17 5-5-5-5","m13 17 5-5-5-5"],fills:[],accents:[]},$8={name:"chevrons-right-left",family:"ui",paths:["m20 17-5-5 5-5","m4 17 5-5-5-5"],fills:[],accents:[]},qy={name:"chevrons-up-down",family:"ui",paths:["m7 15 5 5 5-5","m7 9 5-5 5 5"],fills:[],accents:[]},$y={name:"circle",family:"ui",paths:["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0z"],fills:[],accents:["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0z"]},G8={name:"circle-alert",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 8L12 12","M12 16L12.01 16"],fills:[],accents:[]},P8={name:"circle-center-radius",family:"tool",paths:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M12 12h8"],fills:["M10.75 12a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"]},K8={name:"circle-check",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","m16 9-5.5 5.5L8 12"],fills:[],accents:[]},Y8={name:"circle-dashed",family:"ui",paths:["M10.1 2.182a10 10 0 0 1 3.8 0","M13.9 21.818a10 10 0 0 1-3.8 0","M17.609 3.721a10 10 0 0 1 2.69 2.7","M2.182 13.9a10 10 0 0 1 0-3.8","M20.279 17.609a10 10 0 0 1-2.7 2.69","M21.818 10.1a10 10 0 0 1 0 3.8","M3.721 6.391a10 10 0 0 1 2.7-2.69","M6.391 20.279a10 10 0 0 1-2.69-2.7"],fills:[],accents:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"]},X8={name:"circle-dot",family:"ui",paths:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"],fills:[],accents:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"]},Gy={name:"circle-question-mark",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3","M12 17h.01"],fills:[],accents:[]},Z8={name:"circle-user-round",family:"ui",paths:["M17.925 20.056a6 6 0 0 0-11.851.001","M8 11a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"],fills:[],accents:[]},W8={name:"circle-x",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","m15 9-6 6","m9 9 6 6"],fills:[],accents:[]},Py={name:"clapperboard",family:"ui",paths:["m12.296 3.464 3.02 3.956","M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z","M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z","m6.18 5.276 3.1 3.899"],fills:[],accents:[]},Ky={name:"clip-extract",family:"tool",paths:["M12 12V3","m8.5 6.5 3.5-3.5 3.5 3.5","M3 17.5h6m6 0h6","m6.5 14.5 3 3-3 3m11-6-3 3 3 3"],fills:[],accents:[]},Q8={name:"clip-insert",family:"tool",paths:["M12 3v9","m8.5 8.5 3.5 3.5 3.5-3.5","M3 15h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M16 15h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Yy={name:"clip-lift",family:"tool",paths:["M12 13V3","m8.5 6.5 3.5-3.5 3.5 3.5","M3 15h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M16 15h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"],fills:[],accents:[]},J8={name:"clip-overwrite",family:"tool",paths:["M12 3v8","m8.5 7.5 3.5 3.5 3.5-3.5","M4 14h16a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Xy={name:"clipboard",family:"ui",paths:["M9 2h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"],fills:[],accents:[]},e7={name:"clipboard-check",family:"ui",paths:["M9 2h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2","m9 14 2 2 4-4"],fills:[],accents:[]},t7={name:"clipboard-list",family:"ui",paths:["M9 2h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z","M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2","M12 11h4","M12 16h4","M8 11h.01","M8 16h.01"],fills:[],accents:[]},Zy={name:"clipboard-paste",family:"ui",paths:["M8 4H6.5a2 2 0 0 0 -2 2v13a2 2 0 0 0 2 2H10","M16 4h1.5a2 2 0 0 1 2 2v4","M9 2.5h6a1 1 0 0 1 1 1v1.5a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-1.5a1 1 0 0 1 1 -1z","M14 13h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Wy={name:"clock",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 6v6l4 2"],fills:[],accents:[]},a7={name:"clock-3",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 6v6h4"],fills:[],accents:[]},n7={name:"cloud",family:"ui",paths:["M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"],fills:[],accents:["M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"]},l7={name:"cloud-download",family:"ui",paths:["M12 13v8l-4-4","m12 21 4-4","M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284"],fills:[],accents:[]},i7={name:"cloud-off",family:"ui",paths:["M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057","M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78","m2 2 20 20"],fills:[],accents:[]},r7={name:"cloud-upload",family:"ui",paths:["M12 13v8","M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242","m8 17 4-4 4 4"],fills:[],accents:[]},s7={name:"cloudy",family:"ui",paths:["M17.5 12a1 1 0 1 1 0 9H9.006a7 7 0 1 1 6.702-9z","M21.832 9A3 3 0 0 0 19 7h-2.207a5.5 5.5 0 0 0-10.72.61"],fills:[],accents:[]},Qy={name:"code",family:"ui",paths:["m16 18 6-6-6-6","m8 6-6 6 6 6"],fills:[],accents:[]},o7={name:"code-xml",family:"ui",paths:["m18 16 4-4-4-4","m6 8-4 4 4 4","m14.5 4-5 16"],fills:[],accents:[]},Jy={name:"columns-2",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M12 3v18"],fills:[],accents:["M5 3h7v18H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"]},c7={name:"columns-3",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 3v18","M15 3v18"],fills:[],accents:[]},u7={name:"combine",family:"ui",paths:["M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1","M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1","m7 15 3 3","m7 21 3-3H5a2 2 0 0 1-2-2v-2","M15 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M4 3h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},d7={name:"command",family:"ui",paths:["M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"],fills:[],accents:[]},e5={name:"command-generic",family:"ui",paths:["M7 5h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2-2v-10a2 2 0 0 1 2-2z"],fills:["M10.5 12a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z"],accents:[]},f7={name:"compass",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"],fills:[],accents:[]},t5={name:"component",family:"ui",paths:["M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z","M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z","M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z","M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"],fills:[],accents:[]},h7={name:"constraint-coincident",family:"tool",paths:["M4 19l8-7","M20 19l-8-7"],fills:["M10.25 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],accents:[]},m7={name:"constraint-collinear",family:"tool",paths:["M3 20l6-6","M13 10l7-7"],fills:["M10.25 12a0.75 0.75 0 1 0 1.5 0a0.75 0.75 0 1 0 -1.5 0z"],accents:[]},v7={name:"constraint-concentric",family:"tool",paths:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z"],fills:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},p7={name:"constraint-equal",family:"tool",paths:["M5 9h14","M5 15h14"],fills:[],accents:[]},g7={name:"constraint-fix",family:"tool",paths:["M12 6v7","M6 13h12","M8 13l-2 3","M12 13l-2 3","M16 13l-2 3"],fills:["M10.25 5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],accents:[]},y7={name:"constraint-horizontal",family:"tool",paths:["M5 12h14"],fills:["M3.25 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M17.25 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],accents:[]},b7={name:"constraint-parallel",family:"tool",paths:["M5 20 13 4","M11 20 19 4"],fills:[],accents:[]},M7={name:"constraint-perpendicular",family:"tool",paths:["M5 19h14","M12 19V5","M12 15h3v4"],fills:[],accents:[]},x7={name:"constraint-symmetric",family:"tool",paths:["M12 3v2","M12 8v2","M12 14v2","M12 19v2","M8 12H5","M16 12h3"],fills:["M3.25 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M17.25 12a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],accents:[]},S7={name:"constraint-tangent",family:"tool",paths:["M6 14a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z","M3 8h18"],fills:[],accents:["M6 14a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z"]},w7={name:"constraint-vertical",family:"tool",paths:["M12 5v14"],fills:["M10.25 5a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z","M10.25 19a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 1 0 -3.5 0z"],accents:[]},C7={name:"construction-line",family:"tool",paths:["M3 21 21 3","M3 17v4h4","M21 7V3h-4"],fills:["M10.5 12a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z"],accents:[]},E7={name:"contact",family:"ui",paths:["M16 2v2","M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2","M8 2v2","M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},a5={name:"contrast",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 18a6 6 0 0 0 0-12v12z"],fills:[],accents:[]},z7={name:"cookie",family:"ui",paths:["M11 17h.01","M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2","M12 12h.01","M16 16h.01","M16 3h.01","M21 4h.01","M21 8h.01","M7 14h.01","M9 8h.01"],fills:[],accents:[]},n5={name:"copy",family:"ui",paths:["M15 8V5a2 2 0 0 0 -2 -2H5a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h3","M10 8h9a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-9a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2z"],fills:[],accents:["M10 8h9a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-9a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2z"]},j7={name:"copy-check",family:"ui",paths:["m12 15 2 2 4-4","M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"],fills:[],accents:[]},l5={name:"copy-plus",family:"ui",paths:["M15 12L15 18","M12 15L18 15","M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"],fills:[],accents:["M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2z"]},i5={name:"corner-down-right",family:"ui",paths:["m15 10 5 5-5 5","M4 4v7a4 4 0 0 0 4 4h12"],fills:[],accents:[]},T7={name:"corner-up-right",family:"ui",paths:["m15 14 5-5-5-5","M4 20v-7a4 4 0 0 1 4-4h12"],fills:[],accents:[]},k7={name:"cpu",family:"ui",paths:["M12 20v2","M12 2v2","M17 20v2","M17 2v2","M2 12h2","M2 17h2","M2 7h2","M20 12h2","M20 17h2","M20 7h2","M7 20v2","M7 2v2","M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M9 8h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},A7={name:"credit-card",family:"ui",paths:["M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M2 10L22 10","M6 14h2"],fills:[],accents:[]},r5={name:"crop",family:"ui",paths:["M6 2v14a2 2 0 0 0 2 2h14","M18 22V8a2 2 0 0 0-2-2H2"],fills:[],accents:["M6 6h12v12H6z"]},s5={name:"crosshair",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M22 12L18 12","M6 12L2 12","M12 6L12 2","M12 22L12 18"],fills:[],accents:[]},N7={name:"dash-dashed",family:"tool",paths:["M3 12h5M10 12h5M17 12h4"],fills:[],accents:[]},R7={name:"dash-dotted",family:"tool",paths:["M4 12h.01M8 12h.01M12 12h.01M16 12h.01M20 12h.01"],fills:[],accents:[]},D7={name:"dash-solid",family:"tool",paths:["M3 12h18"],fills:[],accents:[]},o5={name:"database",family:"ui",paths:["M3 5a9 3 0 1 0 18 0a9 3 0 1 0 -18 0z","M3 5V19A9 3 0 0 0 21 19V5","M3 12A9 3 0 0 0 21 12"],fills:[],accents:[]},c5={name:"decimals-arrow-left",family:"ui",paths:["m13 21-3-3 3-3","M20 18H10","M3 11h.01","M8.5 3h0a2.5 2.5 0 0 1 2.5 2.5v3a2.5 2.5 0 0 1 -2.5 2.5h0a2.5 2.5 0 0 1 -2.5 -2.5v-3a2.5 2.5 0 0 1 2.5 -2.5z"],fills:[],accents:[]},u5={name:"decimals-arrow-right",family:"ui",paths:["M10 18h10","m17 21 3-3-3-3","M3 11h.01","M17.5 3h0a2.5 2.5 0 0 1 2.5 2.5v3a2.5 2.5 0 0 1 -2.5 2.5h0a2.5 2.5 0 0 1 -2.5 -2.5v-3a2.5 2.5 0 0 1 2.5 -2.5z","M8.5 3h0a2.5 2.5 0 0 1 2.5 2.5v3a2.5 2.5 0 0 1 -2.5 2.5h0a2.5 2.5 0 0 1 -2.5 -2.5v-3a2.5 2.5 0 0 1 2.5 -2.5z"],fills:[],accents:[]},O7={name:"delete",family:"ui",paths:["M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z","m12 9 6 6","m18 9-6 6"],fills:[],accents:[]},d5={name:"diameter",family:"ui",paths:["M17 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M6.48 3.66a10 10 0 0 1 13.86 13.86","m6.41 6.41 11.18 11.18","M3.66 6.48a10 10 0 0 0 13.86 13.86"],fills:[],accents:[]},f5={name:"diamond",family:"ui",paths:["M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z"],fills:[],accents:["M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z"]},L7={name:"dimension-aligned",family:"tool",paths:["M5.5 15 15 5.5","M5.5 11.5V15H9","M15 9V5.5h-3.5","M3.5 13 8.5 18","M13 3.5l5 5"],fills:[],accents:["M9.5 20 20 9.5l1.5 1.5L11 21.5z"]},H7={name:"dimension-angular",family:"tool",paths:["M4 20h16","M4 20 15 6","M13 20a9 9 0 0 0 -3.4-7"],fills:[],accents:[]},B7={name:"dimension-arc-length",family:"tool",paths:["M5 19a9 9 0 0 1 14 0","M3 13a12 12 0 0 1 18 0","M3 13v3","M21 13v3"],fills:[],accents:[]},_7={name:"dimension-baseline",family:"tool",paths:["M4 4v16","M4 8h6","M4 12.5h10.5","M4 17h16","M10 6.5v3","M14.5 11v3","M20 15.5v3"],fills:[],accents:[]},F7={name:"dimension-continue",family:"tool",paths:["M3 12h18","M3 9v6","M9 9v6","M15 9v6","M21 9v6"],fills:[],accents:[]},U7={name:"dimension-diameter",family:"tool",paths:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M6.5 17.5l11-11","M14.5 6.5h3v3","M9.5 17.5h-3v-3"],fills:[],accents:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"]},I7={name:"dimension-linear",family:"tool",paths:["M5 4v9","M19 4v9","M5 8.5h14","m7.5 6.5-2.5 2 2.5 2","m16.5 6.5 2.5 2-2.5 2","M5 18h14"],fills:[],accents:["M5 16h14v4H5z"]},V7={name:"dimension-ordinate",family:"tool",paths:["M4 4v16h16","M10 10v6","M16 6v10"],fills:["M8.75 10a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M14.75 6a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:[]},q7={name:"dimension-radius",family:"tool",paths:["M3.5 13a7.5 7.5 0 1 0 15 0a7.5 7.5 0 1 0 -15 0z","M11 13l5.3-5.3","M14 7.5h2.5V10"],fills:["M10 13a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:["M3.5 13a7.5 7.5 0 1 0 15 0a7.5 7.5 0 1 0 -15 0z"]},h5={name:"disc",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},m5={name:"dollar-sign",family:"ui",paths:["M12 2L12 22","M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"],fills:[],accents:[]},$7={name:"donut",family:"tool",paths:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z"],fills:[],accents:["M4 12a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"]},v5={name:"download",family:"ui",paths:["M12 4v11","M7.5 10.5l4.5 4.5 4.5-4.5","M4 15.5V18a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2.5"],fills:[],accents:[]},G7={name:"droplet",family:"ui",paths:["M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"],fills:[],accents:["M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"]},P7={name:"droplets",family:"ui",paths:["M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z","M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97"],fills:[],accents:[]},K7={name:"earth",family:"ui",paths:["M21.54 15H17a2 2 0 0 0-2 2v4.54","M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17","M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05","M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"],fills:[],accents:[]},Y7={name:"ellipse",family:"tool",paths:["M3 12a9 5.5 0 1 0 18 0a9 5.5 0 1 0 -18 0z","M12 12h9"],fills:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:["M3 12a9 5.5 0 1 0 18 0a9 5.5 0 1 0 -18 0z"]},p5={name:"ellipsis",family:"ui",paths:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],fills:[],accents:[]},X7={name:"ellipsis-vertical",family:"ui",paths:["M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],fills:[],accents:[]},g5={name:"eraser",family:"ui",paths:["M14 4.5l6 6-9 9H7l-4-4z","M8 10.5l6 6","M13 19.5h7"],fills:[],accents:["M3 15.5l5-5 6 6-3 3H7z"]},Z7={name:"expand",family:"ui",paths:["m15 15 6 6","m15 9 6-6","M21 16v5h-5","M21 8V3h-5","M3 16v5h5","m3 21 6-6","M3 8V3h5","M9 9 3 3"],fills:[],accents:[]},W7={name:"explode",family:"tool",paths:["M4 9V5a1 1 0 0 1 1-1h4","M15 4h4a1 1 0 0 1 1 1v4","M20 15v4a1 1 0 0 1 -1 1h-4","M9 20H5a1 1 0 0 1 -1-1v-4","M12 9v-1","M12 16v-1","M9 12h-1","M16 12h-1"],fills:[],accents:[]},Q7={name:"extend",family:"tool",paths:["M20 4v16","M4 12h9","M15.5 12h.01","M17.5 12h.01"],fills:[],accents:[]},J7={name:"external-link",family:"ui",paths:["M15 3h6v6","M10 14 21 3","M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"],fills:[],accents:[]},y5={name:"eye",family:"ui",paths:["M2.5 12C5 7.5 8.5 5.5 12 5.5s7 2 9.5 6.5c-2.5 4.5-6 6.5-9.5 6.5S5 16.5 2.5 12z","M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},b5={name:"eye-off",family:"ui",paths:["M2.5 12C5 7.5 8.5 5.5 12 5.5s7 2 9.5 6.5c-2.5 4.5-6 6.5-9.5 6.5S5 16.5 2.5 12z","M4 4l16 16"],fills:[],accents:[]},eE={name:"face-slightly-smiling",family:"ui",paths:["M15 10V9","M16.472 15a6 6 0 01-8.943 0","M9 10V9","M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z"],fills:[],accents:[]},M5={name:"fast-forward",family:"ui",paths:["M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z","M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z"],fills:[],accents:[]},tE={name:"feather",family:"ui",paths:["M14.086 18.412A2 2 0 0112.67 19H5v-7.672a2 2 0 01.586-1.414L11.75 3.75a6 6 0 118.49 8.49z","M16 8 2 22","M17.488 15H9"],fills:[],accents:[]},x5={name:"file",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5"],fills:[],accents:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"]},aE={name:"file-archive",family:"ui",paths:["M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5","M14 2v5a1 1 0 0 0 1 1h5","M8 12v-1","M8 18v-2","M8 7V6","M6 20a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},nE={name:"file-check-corner",family:"ui",paths:["M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6","M14 2v5a1 1 0 0 0 1 1h5","m14 20 2 2 4-4"],fills:[],accents:[]},lE={name:"file-clock",family:"ui",paths:["M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85","M14 2v5a1 1 0 0 0 1 1h5","M8 14v2.2l1.6 1","M2 16a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z"],fills:[],accents:[]},S5={name:"file-code",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M10 12.5 8 15l2 2.5","m14 12.5 2 2.5-2 2.5"],fills:[],accents:[]},iE={name:"file-code-corner",family:"ui",paths:["M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35","M14 2v5a1 1 0 0 0 1 1h5","m5 16-3 3 3 3","m9 22 3-3-3-3"],fills:[],accents:[]},rE={name:"file-diff",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M9 10h6","M12 13V7","M9 17h6"],fills:[],accents:[]},sE={name:"file-digit",family:"ui",paths:["M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2","M14 2v5a1 1 0 0 0 1 1h5","M10 16h2v6","M10 22h4","M4 16h0a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h0a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z"],fills:[],accents:[]},oE={name:"file-exclamation-point",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M12 9v4","M12 17h.01"],fills:[],accents:[]},cE={name:"file-image",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M8 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"],fills:[],accents:[]},w5={name:"file-input",family:"ui",paths:["M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1","M14 2v5a1 1 0 0 0 1 1h5","M2 15h10","m9 18 3-3-3-3"],fills:[],accents:[]},C5={name:"file-output",family:"ui",paths:["M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127","M14 2v5a1 1 0 0 0 1 1h5","m5 11-3 3","m5 17-3-3h10"],fills:[],accents:[]},uE={name:"file-pen-line",family:"ui",paths:["M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z","M14.487 7.858A1 1 0 0 1 14 7V2","M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516","M8 18h1"],fills:[],accents:[]},E5={name:"file-plus",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M9 15h6","M12 18v-6"],fills:[],accents:[]},dE={name:"file-plus-corner",family:"ui",paths:["M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35","M14 2v5a1 1 0 0 0 1 1h5","M14 19h6","M17 16v6"],fills:[],accents:[]},z5={name:"file-spreadsheet",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M8 13h2","M14 13h2","M8 17h2","M14 17h2"],fills:[],accents:[]},fE={name:"file-symlink",family:"ui",paths:["M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7","M14 2v5a1 1 0 0 0 1 1h5","m10 18 3-3-3-3"],fills:[],accents:[]},hE={name:"file-text",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M10 9H8","M16 13H8","M16 17H8"],fills:[],accents:[]},mE={name:"file-type-corner",family:"ui",paths:["M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6","M14 2v5a1 1 0 0 0 1 1h5","M3 16v-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5V16","M6 22h2","M7 14v8"],fills:[],accents:[]},vE={name:"file-up",family:"ui",paths:["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z","M14 2v5a1 1 0 0 0 1 1h5","M12 12v6","m15 15-3-3-3 3"],fills:[],accents:[]},pE={name:"file-video-camera",family:"ui",paths:["M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2","M14 2v5a1 1 0 0 0 1 1h5","m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157","M4 16h5a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z"],fills:[],accents:[]},gE={name:"files",family:"ui",paths:["M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8","M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z","M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1"],fills:[],accents:[]},yE={name:"fillet",family:"tool",paths:["M5 20v-9a6 6 0 0 1 6-6h9"],fills:["M4 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M10 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},j5={name:"film",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M7 3v18","M3 7.5h4","M3 12h18","M3 16.5h4","M17 3v18","M17 7.5h4","M17 16.5h4"],fills:[],accents:[]},T5={name:"flag",family:"ui",paths:["M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"],fills:[],accents:[]},bE={name:"flame",family:"ui",paths:["M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4"],fills:[],accents:["M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4z"]},ME={name:"flask-conical",family:"ui",paths:["M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2","M6.453 15h11.094","M8.5 2h7"],fills:[],accents:[]},k5={name:"flip-horizontal",family:"ui",paths:["M12 3v2","M12 8v2","M12 13v2","M12 18v2","M9 6.5 3 17.5h6z","M15 6.5l6 11h-6z"],fills:[],accents:[]},xE={name:"flower",family:"ui",paths:["M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5","M12 7.5V9","M7.5 12H9","M16.5 12H15","M12 16.5V15","m8 8 1.88 1.88","M14.12 9.88 16 8","m8 16 1.88-1.88","M14.12 14.12 16 16"],fills:[],accents:[]},A5={name:"focus",family:"ui",paths:["M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2"],fills:[],accents:[]},SE={name:"fold-horizontal",family:"ui",paths:["M2 12h6","M22 12h-6","M12 2v2","M12 8v2","M12 14v2","M12 20v2","m19 9-3 3 3 3","m5 15 3-3-3-3"],fills:[],accents:[]},N5={name:"folder",family:"ui",paths:["M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"],fills:[],accents:[]},wE={name:"folder-check",family:"ui",paths:["M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z","m9 13 2 2 4-4"],fills:[],accents:[]},CE={name:"folder-input",family:"ui",paths:["M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1","M2 13h10","m9 16 3-3-3-3"],fills:[],accents:[]},EE={name:"folder-lock",family:"ui",paths:["M15 17h6a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5","M20 17v-2a2 2 0 1 0-4 0v2"],fills:[],accents:[]},R5={name:"folder-open",family:"ui",paths:["m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"],fills:[],accents:[]},zE={name:"folder-plus",family:"ui",paths:["M12 10v6","M9 13h6","M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"],fills:[],accents:[]},jE={name:"folder-up",family:"ui",paths:["M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z","M12 10v6","m9 13 3-3 3 3"],fills:[],accents:[]},D5={name:"frame",family:"ui",paths:["M22 6L2 6","M22 18L2 18","M6 2L6 22","M18 2L18 22"],fills:[],accents:["M6 6h12v12H6z"]},TE={name:"fullscreen",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2","M8 8h8a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-8a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},O5={name:"funnel",family:"ui",paths:["M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"],fills:[],accents:[]},kE={name:"gallery-horizontal-end",family:"ui",paths:["M2 7v10","M6 5v14","M12 3h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},L5={name:"gauge",family:"ui",paths:["m12 14 4-4","M3.34 19a10 10 0 1 1 17.32 0"],fills:[],accents:[]},AE={name:"gem",family:"ui",paths:["M10.5 3 8 9l4 13 4-13-2.5-6","M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z","M2 9h20"],fills:[],accents:[]},NE={name:"gift",family:"ui",paths:["M12 7v14","M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8","M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5","M4 7h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1z"],fills:[],accents:[]},RE={name:"git-branch",family:"ui",paths:["M15 6a9 9 0 0 0-9 9V3","M15 6a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},DE={name:"git-branch-plus",family:"ui",paths:["M6 3v12","M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","M15 6a9 9 0 0 0-9 9","M18 15v6","M21 18h-6"],fills:[],accents:[]},OE={name:"git-compare",family:"ui",paths:["M15 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M3 6a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M13 6h3a2 2 0 0 1 2 2v7","M11 18H8a2 2 0 0 1-2-2V9"],fills:[],accents:[]},LE={name:"glasses",family:"ui",paths:["M2 15a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M14 15a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2","M2.5 13 5 7c.7-1.3 1.4-2 3-2","M21.5 13 19 7c-.7-1.3-1.5-2-3-2"],fills:[],accents:[]},H5={name:"globe",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20","M2 12h20"],fills:[],accents:[]},HE={name:"go-to-in",family:"tool",paths:["M8 4H6v16h2","M20 12h-9","m14 8-4 4 4 4"],fills:[],accents:[]},BE={name:"go-to-out",family:"tool",paths:["M16 4h2v16h-2","M4 12h9","m10 8 4 4-4 4"],fills:[],accents:[]},_E={name:"graduation-cap",family:"ui",paths:["M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z","M22 10v6","M6 12.5V16a6 3 0 0 0 12 0v-3.5"],fills:[],accents:[]},B5={name:"grid-2x2",family:"ui",paths:["M12 3v18","M3 12h18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},FE={name:"grid-3x2",family:"ui",paths:["M15 3v18","M3 12h18","M9 3v18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},_5={name:"grid-3x3",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18","M3 15h18","M9 3v18","M15 3v18"],fills:[],accents:[]},UE={name:"grip-horizontal",family:"ui",paths:["M11 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M18 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M4 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M11 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M18 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M4 15a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],fills:[],accents:[]},IE={name:"grip-vertical",family:"ui",paths:["M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],fills:[],accents:[]},F5={name:"group",family:"ui",paths:["M3 7V5a2 2 0 0 1 2 -2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1 -2 2h-2","M7 21H5a2 2 0 0 1 -2 -2v-2","M7 6h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M14 13h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"],fills:[],accents:[]},U5={name:"hand",family:"ui",paths:["M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2","M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2","M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8","M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"],fills:[],accents:[]},VE={name:"hard-drive",family:"ui",paths:["M10 16h.01","M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z","M21.946 12.013H2.054","M6 16h.01"],fills:[],accents:[]},I5={name:"hash",family:"ui",paths:["M4.5 9h15","M4.5 15h15","M10 4L8 20","M16 4L14 20"],fills:[],accents:[]},qE={name:"hatch",family:"tool",paths:["M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z","M4.5 10.5 10.5 4.5","M4.5 16 16 4.5","M8 19.5 19.5 8","M13.5 19.5l6-6"],fills:[],accents:["M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z"]},V5={name:"heading",family:"ui",paths:["M6 12h12","M6 20V4","M18 20V4"],fills:[],accents:[]},$E={name:"heart",family:"ui",paths:["M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"],fills:[],accents:["M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5z"]},GE={name:"helix",family:"tool",paths:["M6 4c6 0 12 1.5 12 3.5S6 10 6 12s12 2.5 12 4.5S12 20 6 20"],fills:[],accents:[]},PE={name:"hexagon",family:"ui",paths:["M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"],fills:[],accents:["M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"]},q5={name:"highlighter",family:"ui",paths:["M14.5 4.5l5 5-7 7-5-5z","M7.5 11.5l-3 3V17h4l3-3","M3.5 20.5h8"],fills:[],accents:["M7.5 11.5l-3 3V17h4l3-3z"]},KE={name:"hourglass",family:"ui",paths:["M5 22h14","M5 2h14","M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22","M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"],fills:[],accents:[]},$5={name:"image",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M7.5 9a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z","M3.5 18l5-5 3.5 3.5 4.5-4.5 4.5 4.5"],fills:[],accents:[]},G5={name:"image-down",family:"ui",paths:["M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21","m14 19 3 3v-5.5","m17 22 3-3","M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},YE={name:"image-plus",family:"ui",paths:["M16 5h6","M19 2v6","M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5","m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21","M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},XE={name:"image-up",family:"ui",paths:["M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21","m14 19.5 3-3 3 3","M17 22v-5.5","M7 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},ZE={name:"images",family:"ui",paths:["m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16","M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2","M10 2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z"],fills:["M12 7a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],accents:[]},WE={name:"inbox",family:"ui",paths:["M22 12L16 12L14 15L10 15L8 12L2 12","M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"],fills:[],accents:[]},P5={name:"info",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M12 16v-4","M12 8h.01"],fills:[],accents:[]},K5={name:"italic",family:"ui",paths:["M19 4L10 4","M14 20L5 20","M15 4L9 20"],fills:[],accents:[]},QE={name:"key-round",family:"ui",paths:["M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"],fills:["M16 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z"],accents:[]},JE={name:"keyboard",family:"ui",paths:["M10 8h.01","M12 12h.01","M14 8h.01","M16 12h.01","M18 8h.01","M6 8h.01","M7 16h10","M8 12h.01","M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z"],fills:[],accents:[]},ez={name:"keyframe",family:"tool",paths:["M12 4l8 8-8 8-8-8z"],fills:[],accents:[]},tz={name:"keyframe-next",family:"tool",paths:[],fills:["M8 6v12l9-6z"],accents:[]},az={name:"keyframe-on",family:"tool",paths:[],fills:["M12 4l8 8-8 8-8-8z"],accents:[]},nz={name:"keyframe-previous",family:"tool",paths:[],fills:["M16 6v12l-9-6z"],accents:[]},lz={name:"lamp",family:"ui",paths:["M12 12v6","M4.077 10.615A1 1 0 0 0 5 12h14a1 1 0 0 0 .923-1.385l-3.077-7.384A2 2 0 0 0 15 2H9a2 2 0 0 0-1.846 1.23Z","M8 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z"],fills:[],accents:[]},Y5={name:"languages",family:"ui",paths:["m5 8 6 6","m4 14 6-6 2-3","M2 5h12","M7 2h1","m22 22-5-10-5 10","M14 18h6"],fills:[],accents:[]},iz={name:"laptop",family:"ui",paths:["M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z","M20.054 15.987H3.946"],fills:[],accents:[]},X5={name:"lasso",family:"ui",paths:["M3.704 14.467a10 8 0 1 1 3.115 2.375","M7 22a5 5 0 0 1-2-3.994","M3 16a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:["M2 10a10 8 0 1 0 20 0a10 8 0 1 0 -20 0z"]},rz={name:"lasso-select",family:"ui",paths:["M7 22a5 5 0 0 1-2-4","M7 16.93c.96.43 1.96.74 2.99.91","M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2","M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z","M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z"],fills:[],accents:["M2 10c0-4.42 4.48-8 10-8s10 3.58 10 8-4.48 8-10 8S2 14.42 2 10z"]},Z5={name:"layers",family:"ui",paths:["M12 3.5l8.5 4.5-8.5 4.5-8.5-4.5z","M3.5 12l8.5 4.5 8.5-4.5","M3.5 16l8.5 4.5 8.5-4.5"],fills:[],accents:[]},sz={name:"layers-2",family:"ui",paths:["M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74z","m20 14.285 1.5.845a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74l1.5-.845"],fills:[],accents:[]},oz={name:"layers-plus",family:"ui",paths:["M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l8.58-3.9a1 1 0 0 0 0-1.831z","M16 17h6","M19 14v6","M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 .825.178","M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l2.116-.962"],fills:[],accents:[]},cz={name:"layout-dashboard",family:"ui",paths:["M4 3h5a1 1 0 0 1 1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1z","M15 3h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M15 12h5a1 1 0 0 1 1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1z","M4 16h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"],fills:[],accents:[]},W5={name:"layout-grid",family:"ui",paths:["M4 3h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M15 3h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M15 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M4 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},uz={name:"layout-panel-left",family:"ui",paths:["M4 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-16a1 1 0 0 1 1 -1z","M15 3h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M15 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Q5={name:"layout-template",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9.5h18","M10.5 9.5V21"],fills:[],accents:[]},dz={name:"leader",family:"tool",paths:["M4 20 11 12h9","M4 16v4h4","M12 8.5h8","M12 5h5"],fills:[],accents:[]},fz={name:"lengthen",family:"tool",paths:["M8 12h8","m5 9-3 3 3 3","m19 9 3 3-3 3"],fills:[],accents:[]},hz={name:"library",family:"ui",paths:["m16 6 4 14","M12 6v14","M8 8v12","M4 4v16"],fills:[],accents:[]},J5={name:"life-buoy",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","m4.93 4.93 4.24 4.24","m14.83 9.17 4.24-4.24","m14.83 14.83 4.24 4.24","m9.17 14.83-4.24 4.24","M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z"],fills:[],accents:[]},mz={name:"ligature",family:"ui",paths:["M14 12h2v8","M14 20h4","M6 12h4","M6 20h4","M8 20V8a4 4 0 0 1 7.464-2"],fills:[],accents:[]},eb={name:"lightbulb",family:"ui",paths:["M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5","M9 18h6","M10 22h4"],fills:[],accents:[]},vz={name:"line-segment",family:"tool",paths:["M5 19 19 5"],fills:["M3.5 19a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z","M17.5 5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z"],accents:[]},pz={name:"linetype",family:"tool",paths:["M4 6h16","M4 12h4","M10 12h4","M16 12h4","M4 18h.01","M8 18h.01","M12 18h.01","M16 18h.01","M20 18h.01"],fills:[],accents:[]},gz={name:"lineweight",family:"tool",paths:["M4 6h16"],fills:["M4 10.5h16v1.5H4z","M4 15.5h16v3H4z"],accents:[]},tb={name:"link",family:"ui",paths:["M10 7.5H7.5a4.5 4.5 0 0 0 0 9H10","M14 7.5h2.5a4.5 4.5 0 0 1 0 9H14","M8.5 12h7"],fills:[],accents:[]},yz={name:"link-2",family:"ui",paths:["M9 17H7A5 5 0 0 1 7 7h2","M15 7h2a5 5 0 1 1 0 10h-2","M8 12L16 12"],fills:[],accents:[]},ab={name:"list",family:"ui",paths:["M3 5h.01","M3 12h.01","M3 19h.01","M8 5h13","M8 12h13","M8 19h13"],fills:[],accents:[]},nb={name:"list-checks",family:"ui",paths:["M13 5h8","M13 12h8","M13 19h8","m3 17 2 2 4-4","m3 7 2 2 4-4"],fills:[],accents:[]},bz={name:"list-filter",family:"ui",paths:["M2 5h20","M6 12h12","M9 19h6"],fills:[],accents:[]},lb={name:"list-indent-decrease",family:"ui",paths:["M21 5H11","M21 12H11","M21 19H11","m7 8-4 4 4 4"],fills:[],accents:[]},ib={name:"list-indent-increase",family:"ui",paths:["M21 5H11","M21 12H11","M21 19H11","m3 8 4 4-4 4"],fills:[],accents:[]},rb={name:"list-ordered",family:"ui",paths:["M11 5h10","M11 12h10","M11 19h10","M4 4h1v5","M4 9h2","M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"],fills:[],accents:[]},Mz={name:"list-plus",family:"ui",paths:["M16 5H3","M11 12H3","M16 19H3","M18 9v6","M21 12h-6"],fills:[],accents:[]},xz={name:"list-restart",family:"ui",paths:["M21 5H3","M7 12H3","M7 19H3","M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14","M11 10v4h4"],fills:[],accents:[]},Sz={name:"list-todo",family:"ui",paths:["M13 5h8","M13 12h8","M13 19h8","m3 17 2 2 4-4","M4 4h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z"],fills:[],accents:[]},sb={name:"list-tree",family:"ui",paths:["M8 5h13","M13 12h8","M13 19h8","M3 10a2 2 0 0 0 2 2h3","M3 5v12a2 2 0 0 0 2 2h3"],fills:[],accents:[]},wz={name:"list-video",family:"ui",paths:["M21 5H3","M10 12H3","M10 19H3","M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z"],fills:[],accents:[]},ob={name:"loader-circle",family:"ui",paths:["M21 12a9 9 0 1 1-6.219-8.56"],fills:[],accents:[]},cb={name:"lock",family:"ui",paths:["M6 11h12a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M8 11V7.5a4 4 0 0 1 8 0V11","M12 15v2"],fills:[],accents:[]},Cz={name:"lock-keyhole",family:"ui",paths:["M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M5 10h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M7 10V7a5 5 0 0 1 10 0v3"],fills:[],accents:[]},ub={name:"lock-open",family:"ui",paths:["M6 11h12a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M8 11V7.5a4 4 0 0 1 8 0","M12 15v2"],fills:[],accents:[]},Ez={name:"log-out",family:"ui",paths:["m16 17 5-5-5-5","M21 12H9","M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"],fills:[],accents:[]},zz={name:"lollipop",family:"ui",paths:["M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","m21 21-4.3-4.3","M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 0 12 0"],fills:[],accents:["M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"]},db={name:"magnet",family:"ui",paths:["m12 15 4 4","M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z","m5 8 4 4"],fills:[],accents:[]},fb={name:"mail",family:"ui",paths:["m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7","M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2z"],fills:[],accents:[]},jz={name:"mail-warning",family:"ui",paths:["M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5","m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7","M20 14v4","M20 22v.01"],fills:[],accents:[]},Tz={name:"map-pin",family:"ui",paths:["M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0","M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},kz={name:"mark-in",family:"tool",paths:["M14 4h-3a1 1 0 0 0-1 1v5.5L8 12l2 1.5V19a1 1 0 0 0 1 1h3"],fills:[],accents:[]},Az={name:"mark-out",family:"tool",paths:["M10 4h3a1 1 0 0 1 1 1v5.5l2 1.5-2 1.5V19a1 1 0 0 1-1 1h-3"],fills:[],accents:[]},Nz={name:"maximize",family:"ui",paths:["M8 3H5a2 2 0 0 0-2 2v3","M21 8V5a2 2 0 0 0-2-2h-3","M3 16v3a2 2 0 0 0 2 2h3","M16 21h3a2 2 0 0 0 2-2v-3"],fills:[],accents:[]},Rz={name:"maximize-2",family:"ui",paths:["M15 3h6v6","m21 3-7 7","m3 21 7-7","M9 21H3v-6"],fills:[],accents:[]},Dz={name:"megaphone",family:"ui",paths:["M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z","M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14","M8 6v8"],fills:[],accents:[]},hb={name:"menu",family:"ui",paths:["M4 5h16","M4 12h16","M4 19h16"],fills:[],accents:[]},mb={name:"merge",family:"ui",paths:["m8 6 4-4 4 4","M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22","m20 22-5-5"],fills:[],accents:[]},vb={name:"message-square",family:"ui",paths:["M6 4h13a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2H9.5L4 21V6a2 2 0 0 1 2 -2z"],fills:[],accents:[]},Oz={name:"message-square-dashed",family:"ui",paths:["M14 3h2","M16 19h-2","M2 12v-2","M2 16v5.286a.71.71 0 0 0 1.212.502l1.149-1.149","M20 19a2 2 0 0 0 2-2v-1","M22 10v2","M22 6V5a2 2 0 0 0-2-2","M4 3a2 2 0 0 0-2 2v1","M8 19h2","M8 3h2"],fills:[],accents:[]},pb={name:"message-square-plus",family:"ui",paths:["M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z","M12 8v6","M9 11h6"],fills:[],accents:[]},Lz={name:"message-square-text",family:"ui",paths:["M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z","M7 11h10","M7 15h6","M7 7h8"],fills:[],accents:[]},gb={name:"minimize-2",family:"ui",paths:["m14 10 7-7","M20 10h-6V4","m3 21 7-7","M4 14h6v6"],fills:[],accents:[]},yb={name:"minus",family:"ui",paths:["M4.5 12h15"],fills:[],accents:[]},Hz={name:"monitor",family:"ui",paths:["M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z","M8 21L16 21","M12 17L12 21"],fills:[],accents:[]},Bz={name:"monitor-cog",family:"ui",paths:["M12 17v4","m14.305 7.53.923-.382","m15.228 4.852-.923-.383","m16.852 3.228-.383-.924","m16.852 8.772-.383.923","m19.148 3.228.383-.924","m19.53 9.696-.382-.924","m20.772 4.852.924-.383","m20.772 7.148.924.383","M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7","M8 21h8","M15 6a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},_z={name:"monitor-play",family:"ui",paths:["M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z","M12 17v4","M8 21h8","M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2z"],fills:[],accents:[]},Fz={name:"monitor-smartphone",family:"ui",paths:["M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8","M10 19v-3.96 3.15","M7 19h5","M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z"],fills:[],accents:[]},Uz={name:"moon",family:"ui",paths:["M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"],fills:[],accents:[]},Iz={name:"mountain",family:"ui",paths:["m8 3 4 8 5-5 5 15H2L8 3z"],fills:[],accents:[]},Vz={name:"mountain-snow",family:"ui",paths:["m8 3 4 8 5-5 5 15H2L8 3z","M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19"],fills:[],accents:[]},bb={name:"mouse-pointer",family:"ui",paths:["M12.586 12.586 19 19","M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z"],fills:[],accents:["M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z"]},Mb={name:"mouse-pointer-2",family:"ui",paths:["M4.5 4.5l15 6-6.5 2.5-2.5 6.5z"],fills:[],accents:["M4.5 4.5l15 6-6.5 2.5-2.5 6.5z"]},xb={name:"mouse-pointer-click",family:"ui",paths:["M14 4.1 12 6","m5.1 8-2.9-.8","m6 12-1.9 2","M7.2 2.2 8 5.1","M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"],fills:[],accents:[]},Sb={name:"move",family:"ui",paths:["M12 2v20","m15 19-3 3-3-3","m19 9 3 3-3 3","M2 12h20","m5 9-3 3 3 3","m9 5 3-3 3 3"],fills:[],accents:[]},wb={name:"move-3d",family:"ui",paths:["M5 3v16h16","m5 19 6-6","m2 6 3-3 3 3","m18 16 3 3-3 3"],fills:[],accents:[]},Cb={name:"move-horizontal",family:"ui",paths:["m18 8 4 4-4 4","M2 12h20","m6 8-4 4 4 4"],fills:[],accents:[]},Eb={name:"move-right",family:"ui",paths:["M18 8L22 12L18 16","M2 12H22"],fills:[],accents:[]},zb={name:"move-up-right",family:"ui",paths:["M13 5H19V11","M19 5L5 19"],fills:[],accents:[]},qz={name:"move-vertical",family:"ui",paths:["M12 2v20","m8 18 4 4 4-4","m8 6 4-4 4 4"],fills:[],accents:[]},$z={name:"multiline",family:"tool",paths:["M3 15l6-6h6l6 6","M3 20l6-6h6l6 6"],fills:[],accents:[]},jb={name:"music",family:"ui",paths:["M9 18V5l12-2v13","M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M15 16a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:["M3 18a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M15 16a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"]},Gz={name:"navigation",family:"ui",paths:["M3 11L22 2L13 21L11 13L3 11z"],fills:[],accents:[]},Tb={name:"network",family:"ui",paths:["M17 16h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z","M3 16h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z","M10 2h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1z","M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3","M12 12V8"],fills:[],accents:["M10 2h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"]},Pz={name:"notebook-pen",family:"ui",paths:["M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4","M2 6h4","M2 10h4","M2 14h4","M2 18h4","M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"],fills:[],accents:[]},Kz={name:"notebook-text",family:"ui",paths:["M2 6h4","M2 10h4","M2 14h4","M2 18h4","M6 2h12a2 2 0 0 1 2 2v16a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2z","M9.5 8h5","M9.5 12H16","M9.5 16H14"],fills:[],accents:[]},Yz={name:"offset",family:"tool",paths:["M4 17c4-8 12-8 16 0","M4 11c4-8 12-8 16 0","M12 9v2.5","m10.5 10 1.5 1.5 1.5-1.5"],fills:[],accents:[]},kb={name:"omega",family:"ui",paths:["M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21"],fills:[],accents:[]},Xz={name:"orbit",family:"ui",paths:["M20.341 6.484A10 10 0 0 1 10.266 21.85","M3.659 17.516A10 10 0 0 1 13.74 2.152","M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M17 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},Zz={name:"ortho-mode",family:"tool",paths:["M5 4v15h15","M5 15h4v4"],fills:[],accents:[]},Ab={name:"package",family:"ui",paths:["M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z","M12 22V12","M3.29 7L12 12L20.71 7","m7.5 4.27 9 5.15"],fills:[],accents:["M3.29 7L12 12v10L4 17.73A2 2 0 0 1 3 16V8a2 2 0 0 1 .29-1z"]},Nb={name:"paint-bucket",family:"ui",paths:["M11 4.5l7.5 7.5-6.5 6.5-7.5-7.5z","M10.5 5L8 2.5","M5 11h13.5","M20.5 15.5c-.5 1-1.5 2-1.5 3a1.5 1.5 0 0 0 3 0c0-1-1-2-1.5-3z"],fills:[],accents:["M5 11h13.5l-6.5 7.5z","M20.5 15.5c-.5 1-1.5 2-1.5 3a1.5 1.5 0 0 0 3 0c0-1-1-2-1.5-3z"]},Rb={name:"paintbrush",family:"ui",paths:["M20.5 3.5l-7.5 7.5","M11.5 9.5l3 3","M11 12.5c-3 0-4.5 2-4.5 4.5 0 1.5-1 2.5-2.5 3 1 .5 2 .5 3.5 .5 3 0 5-1.5 5-4.5 0-1-.5-2.5-1.5-3.5z"],fills:[],accents:["M11 12.5c-3 0-4.5 2-4.5 4.5 0 1.5-1 2.5-2.5 3 1 .5 2 .5 3.5 .5 3 0 5-1.5 5-4.5 0-1-.5-2.5-1.5-3.5z"]},Db={name:"palette",family:"ui",paths:["M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-.5-1.5-.5-2.5a1.5 1.5 0 0 1 1.5-1.5h2a4 4 0 0 0 4-4c0-4.5-4-8-9-8z"],fills:["M6.25 11a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M8.25 7a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M13.25 7a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:["M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-.5-1.5-.5-2.5a1.5 1.5 0 0 1 1.5-1.5h2a4 4 0 0 0 4-4c0-4.5-4-8-9-8z"]},Ob={name:"panel-bottom",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 15h18"],fills:[],accents:[]},Wz={name:"panel-left",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 3v18"],fills:[],accents:[]},Qz={name:"panel-left-close",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 3v18","m16 15-3-3 3-3"],fills:[],accents:[]},Jz={name:"panel-left-open",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 3v18","m14 9 3 3-3 3"],fills:[],accents:[]},ej={name:"panel-right",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M15 3v18"],fills:[],accents:[]},Lb={name:"panel-top",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18"],fills:[],accents:[]},tj={name:"panels-top-left",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18","M9 21V9"],fills:[],accents:[]},aj={name:"paperclip",family:"ui",paths:["m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"],fills:[],accents:[]},nj={name:"parallelogram",family:"tool",paths:["M7 5h14l-4 14H3z"],fills:[],accents:[]},Hb={name:"pause",family:"ui",paths:["M15 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-16a1 1 0 0 1 1 -1z","M6 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-16a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Bb={name:"pen",family:"ui",paths:["M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"],fills:[],accents:[]},_b={name:"pen-line",family:"ui",paths:["M13 21h8","M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"],fills:[],accents:[]},Fb={name:"pen-tool",family:"ui",paths:["m18 13-.654-4.736a4 4 0 00-2.756-3.266l-9.163-2.9a2 2 0 00-2.017.493l-.82.819a2 2 0 00-.492 2.017l2.9 9.163a4 4 0 003.266 2.756L13 18","M18.648 12.352a1.205 1.205 0 011.704 0l1.296 1.296a1.205 1.205 0 010 1.704l-6.296 6.296a1.205 1.205 0 01-1.704 0l-1.296-1.296a1.205 1.205 0 010-1.704z","m3 3 6.586 6.586","M9 11a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:["M18 13l-.654-4.736a4 4 0 0 0-2.756-3.266l-9.163-2.9a2 2 0 0 0-2.017.493l-.82.819a2 2 0 0 0-.492 2.017l2.9 9.163a4 4 0 0 0 3.266 2.756L13 18z"]},Ub={name:"pencil",family:"ui",paths:["M15.5 4.5l4 4L9 19l-5 1 1-5z","M13 7l4 4"],fills:[],accents:["M15.5 4.5l4 4L9 19l-5 1 1-5z"]},Ib={name:"pencil-line",family:"ui",paths:["M13 21h8","m15 5 4 4","M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"],fills:[],accents:[]},lj={name:"pentagon",family:"ui",paths:["M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z"],fills:[],accents:["M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z"]},Vb={name:"percent",family:"ui",paths:["M19 5L5 19","M4 6.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z","M15 17.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z"],fills:[],accents:[]},qb={name:"pilcrow",family:"ui",paths:["M13 4v16","M17 4v16","M19 4H9.5a4.5 4.5 0 0 0 0 9H13"],fills:[],accents:[]},ij={name:"pill",family:"ui",paths:["m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z","m8.5 8.5 7 7"],fills:[],accents:["M10.5 20.5l10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"]},rj={name:"pin",family:"ui",paths:["M12 17v5","M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"],fills:[],accents:[]},sj={name:"pin-off",family:"ui",paths:["M12 17v5","M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89","m2 2 20 20","M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"],fills:[],accents:[]},$b={name:"pipette",family:"ui",paths:["m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12","m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z","m2 22 .414-.414"],fills:[],accents:["M12 9l-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12z"]},Gb={name:"play",family:"ui",paths:["M7 4.5v15l12-7.5z"],fills:[],accents:[]},Pb={name:"plus",family:"ui",paths:["M12 4.5v15","M4.5 12h15"],fills:[],accents:[]},oj={name:"pointer",family:"ui",paths:["M22 14a8 8 0 0 1-8 8","M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2","M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1","M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10","M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"],fills:[],accents:[]},cj={name:"polar-tracking",family:"tool",paths:["M4 20h16","M4 20 17 7.5","M4 20 11 4","M12 20a8 8 0 0 0 -1.5-4.6"],fills:["M2.75 20a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:[]},uj={name:"polyline",family:"tool",paths:["M4 18l5-9 5 6 6-10"],fills:["M2.75 18a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M7.75 9a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M12.75 15a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z","M18.75 5a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0 -2.5 0z"],accents:[]},dj={name:"power",family:"ui",paths:["M12 2v10","M18.4 6.6a9 9 0 1 1-12.77.04"],fills:[],accents:[]},fj={name:"presentation",family:"ui",paths:["M2 3h20","M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3","m7 21 5-5 5 5"],fills:[],accents:[]},Kb={name:"printer",family:"ui",paths:["M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2","M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6","M7 14h10a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},hj={name:"puzzle",family:"ui",paths:["M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"],fills:[],accents:[]},Yb={name:"qr-code",family:"ui",paths:["M4 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M17 3h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M4 16h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z","M21 16h-3a2 2 0 0 0-2 2v3","M21 21v.01","M12 7v3a2 2 0 0 1-2 2H7","M3 12h.01","M12 3h.01","M12 16v.01","M16 12h1","M21 12v.01","M12 21v-1"],fills:[],accents:[]},mj={name:"quote",family:"ui",paths:["M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z","M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"],fills:[],accents:[]},Xb={name:"radar",family:"ui",paths:["M19.07 4.93A10 10 0 0 0 6.99 3.34","M4 6h.01","M2.29 9.62A10 10 0 1 0 21.31 8.35","M16.24 7.76A6 6 0 1 0 8.23 16.67","M12 18h.01","M17.99 11.66A6 6 0 0 1 15.77 16.67","M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","m13.41 10.59 5.66-5.66"],fills:[],accents:[]},Zb={name:"radius",family:"ui",paths:["M20.34 17.52a10 10 0 1 0-2.82 2.82","M17 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","m13.41 13.41 4.18 4.18","M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},Wb={name:"rainbow",family:"ui",paths:["M22 17a10 10 0 0 0-20 0","M6 17a6 6 0 0 1 12 0","M10 17a2 2 0 0 1 4 0"],fills:[],accents:[]},vj={name:"ratio",family:"ui",paths:["M8 2h8a2 2 0 0 1 2 2v16a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2z","M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"],fills:[],accents:[]},pj={name:"ray",family:"tool",paths:["M5 19 19 5","M14 5h5v5"],fills:["M3.5 19a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z"],accents:[]},gj={name:"receipt",family:"ui",paths:["M12 17V7","M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8","M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z"],fills:[],accents:[]},Qb={name:"rectangle-horizontal",family:"ui",paths:["M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"],fills:[],accents:["M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"]},yj={name:"rectangle-vertical",family:"ui",paths:["M8 2h8a2 2 0 0 1 2 2v16a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2z"],fills:[],accents:[]},Jb={name:"redo-2",family:"ui",paths:["m15 14 5-5-5-5","M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"],fills:[],accents:[]},bj={name:"refresh-ccw",family:"ui",paths:["M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16","M16 16h5v5"],fills:[],accents:[]},e4={name:"refresh-cw",family:"ui",paths:["M4.5 12A7.5 7.5 0 0 1 18 7.5","M18 3v4.5h-4.5","M19.5 12A7.5 7.5 0 0 1 6 16.5","M6 21v-4.5h4.5"],fills:[],accents:[]},Mj={name:"region",family:"tool",paths:["M5 8.5 12 4.5l7 4v7l-7 4-7-4z"],fills:[],accents:["M5 8.5 12 4.5l7 4v7l-7 4-7-4z"]},xj={name:"remove-formatting",family:"ui",paths:["M4 7V4h16v3","M5 20h6","M13 4 8 20","m15 15 5 5","m20 15-5 5"],fills:[],accents:[]},t4={name:"repeat",family:"ui",paths:["m17 2 4 4-4 4","M3 11v-1a4 4 0 0 1 4-4h14","m7 22-4-4 4-4","M21 13v1a4 4 0 0 1-4 4H3"],fills:[],accents:[]},a4={name:"replace",family:"ui",paths:["M14 4a1 1 0 0 1 1-1","M15 10a1 1 0 0 1-1-1","M21 4a1 1 0 0 0-1-1","M21 9a1 1 0 0 1-1 1","m3 7 3 3 3-3","M6 10V5a2 2 0 0 1 2-2h2","M4 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z"],fills:[],accents:[]},Sj={name:"revision-cloud",family:"tool",paths:["M6 8.5a2 2 0 0 1 3.5-1.5 2 2 0 0 1 3.5 0 2 2 0 0 1 3.5 0 2 2 0 0 1 2.5 3 2 2 0 0 1 0 4 2 2 0 0 1 -2.5 3 2 2 0 0 1 -3.5 0 2 2 0 0 1 -3.5 0 2 2 0 0 1 -3.5-1.5 2 2 0 0 1 -1-3.5 2 2 0 0 1 1-3.5z"],fills:[],accents:["M6 8.5a2 2 0 0 1 3.5-1.5 2 2 0 0 1 3.5 0 2 2 0 0 1 3.5 0 2 2 0 0 1 2.5 3 2 2 0 0 1 0 4 2 2 0 0 1 -2.5 3 2 2 0 0 1 -3.5 0 2 2 0 0 1 -3.5 0 2 2 0 0 1 -3.5-1.5 2 2 0 0 1 -1-3.5 2 2 0 0 1 1-3.5z"]},wj={name:"rocket",family:"ui",paths:["M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5","M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09","M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z","M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"],fills:[],accents:[]},Cj={name:"rotate-3d",family:"ui",paths:["m15.194 13.707 3.814 1.86-1.86 3.814","M16.47214 7.52786 A 5 10 0 1 0 13 21.79796","M21.79796 11 A 10 5 0 1 0 19 15.57071"],fills:[],accents:[]},n4={name:"rotate-ccw",family:"ui",paths:["M4.5 12A7.5 7.5 0 1 0 6 7.5","M6 3v4.5h4.5"],fills:[],accents:[]},Ej={name:"rotate-ccw-clock",family:"ui",paths:["M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M12 7v5l4 2"],fills:[],accents:[]},l4={name:"rotate-cw",family:"ui",paths:["M19.5 12A7.5 7.5 0 1 1 18 7.5","M18 3v4.5h-4.5"],fills:[],accents:[]},zj={name:"rows-2",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 12h18"],fills:[],accents:[]},i4={name:"rows-3",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M21 9H3","M21 15H3"],fills:[],accents:[]},r4={name:"ruler",family:"ui",paths:["M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z","m14.5 12.5 2-2","m11.5 9.5 2-2","m8.5 6.5 2-2","m17.5 15.5 2-2"],fills:[],accents:[]},s4={name:"ruler-dimension-line",family:"ui",paths:["M10 15v-3","M14 15v-3","M18 15v-3","M2 8V4","M22 6H2","M22 8V4","M6 15v-3","M4 12h16a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z"],fills:[],accents:[]},o4={name:"save",family:"ui",paths:["M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z","M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7","M7 3v4a1 1 0 0 0 1 1h7"],fills:[],accents:[]},jj={name:"scale",family:"ui",paths:["M12 3v18","m19 8 3 8a5 5 0 0 1-6 0zV7","M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1","m5 8 3 8a5 5 0 0 1-6 0zV7","M7 21h10"],fills:[],accents:[]},c4={name:"scaling",family:"ui",paths:["M11 3.5H5.5a2 2 0 0 0 -2 2v13a2 2 0 0 0 2 2h13a2 2 0 0 0 2 -2V13","M7.5 12.5h4v4h-4z","M13.5 10.5l6-6","M15 4.5h4.5V9"],fills:[],accents:["M7.5 12.5h4v4h-4z"]},Tj={name:"scan",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2"],fills:[],accents:[]},kj={name:"scan-eye",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2","M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z","M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0"],fills:[],accents:[]},Aj={name:"scan-face",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2","M8 14s1.5 2 4 2 4-2 4-2","M9 9h.01","M15 9h.01"],fills:[],accents:[]},Nj={name:"scan-search",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2","M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","m16 16-1.9-1.9"],fills:[],accents:[]},Rj={name:"scan-text",family:"ui",paths:["M3 7V5a2 2 0 0 1 2-2h2","M17 3h2a2 2 0 0 1 2 2v2","M21 17v2a2 2 0 0 1-2 2h-2","M7 21H5a2 2 0 0 1-2-2v-2","M7 8h8","M7 12h10","M7 16h6"],fills:[],accents:[]},u4={name:"scissors",family:"ui",paths:["M3.5 6.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z","M3.5 17.5a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z","M8 8l12 10","M8 16L20 6"],fills:[],accents:[]},Dj={name:"scroll-text",family:"ui",paths:["M15 12h-5","M15 8h-5","M19 17V5a2 2 0 0 0-2-2H4","M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"],fills:[],accents:[]},d4={name:"search",family:"ui",paths:["M4 10.5a6.5 6.5 0 1 0 13 0a6.5 6.5 0 1 0 -13 0z","M15.5 15.5L20 20"],fills:[],accents:[]},Oj={name:"search-check",family:"ui",paths:["m8 11 2 2 4-4","M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","m21 21-4.3-4.3"],fills:[],accents:[]},f4={name:"send",family:"ui",paths:["M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z","m21.854 2.147-10.94 10.939"],fills:[],accents:[]},h4={name:"send-to-back",family:"ui",paths:["M16 14h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z","M4 2h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z","M7 14v1a2 2 0 0 0 2 2h1","M14 7h1a2 2 0 0 1 2 2v1"],fills:[],accents:[]},Lj={name:"separator-horizontal",family:"ui",paths:["m16 16-4 4-4-4","M3 12h18","m8 8 4-4 4 4"],fills:[],accents:[]},m4={name:"settings",family:"ui",paths:["M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915","M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},Hj={name:"settings-2",family:"ui",paths:["M14 17H5","M19 7h-9","M14 17a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M4 7a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z"],fills:[],accents:[]},v4={name:"shapes",family:"ui",paths:["M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z","M4 14h5a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-5a1 1 0 0 1 1 -1z","M14 17.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z"],fills:[],accents:["M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z"]},p4={name:"share-2",family:"ui",paths:["M15 5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M3 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M15 19a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M8.59 13.51L15.42 17.49","M15.41 6.51L8.59 10.49"],fills:[],accents:[]},g4={name:"shell",family:"ui",paths:["M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44"],fills:[],accents:[]},Bj={name:"shield-alert",family:"ui",paths:["M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z","M12 8v4","M12 16h.01"],fills:[],accents:[]},_j={name:"shield-ban",family:"ui",paths:["M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z","m4.243 5.21 14.39 12.472"],fills:[],accents:[]},y4={name:"shield-check",family:"ui",paths:["M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z","m9 12 2 2 4-4"],fills:[],accents:[]},Fj={name:"shrink",family:"ui",paths:["m15 15 6 6m-6-6v4.8m0-4.8h4.8","M9 19.8V15m0 0H4.2M9 15l-6 6","M15 4.2V9m0 0h4.8M15 9l6-6","M9 4.2V9m0 0H4.2M9 9 3 3"],fills:[],accents:[]},b4={name:"sigma",family:"ui",paths:["M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2"],fills:[],accents:[]},M4={name:"signature",family:"ui",paths:["m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284","M3 21h18"],fills:[],accents:[]},Uj={name:"skip-back",family:"ui",paths:["M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z","M3 20V4"],fills:[],accents:[]},Ij={name:"skip-forward",family:"ui",paths:["M21 4v16","M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z"],fills:[],accents:[]},Vj={name:"slash",family:"ui",paths:["M22 2 2 22"],fills:[],accents:[]},qj={name:"slice",family:"ui",paths:["M11 16.586V19a1 1 0 0 1-1 1H2L18.37 3.63a1 1 0 1 1 3 3l-9.663 9.663a1 1 0 0 1-1.414 0L8 14"],fills:[],accents:[]},x4={name:"sliders-horizontal",family:"ui",paths:["M3.5 6H10","M14 6h6.5","M10 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3.5 12h11","M18.5 12h2","M14.5 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3.5 18h2","M9.5 18h11","M5.5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},$j={name:"sliders-vertical",family:"ui",paths:["M10 8h4","M12 21v-9","M12 8V3","M17 16h4","M19 12V3","M19 21v-5","M3 14h4","M5 10V3","M5 21v-7"],fills:[],accents:[]},S4={name:"snowflake",family:"ui",paths:["m10 20-1.25-2.5L6 18","M10 4 8.75 6.5 6 6","m14 20 1.25-2.5L18 18","m14 4 1.25 2.5L18 6","m17 21-3-6h-4","m17 3-3 6 1.5 3","M2 12h6.5L10 9","m20 10-1.5 2 1.5 2","M22 12h-6.5L14 15","m4 10 1.5 2L4 14","m7 21 3-6-1.5-3","m7 3 3 6h4"],fills:[],accents:[]},Gj={name:"sparkle",family:"ui",paths:["M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"],fills:[],accents:["M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"]},w4={name:"sparkles",family:"ui",paths:["M10 5.5c.5 4.5 3 7 7.5 7.5-4.5 .5-7 3-7.5 7.5-.5-4.5-3-7-7.5-7.5 4.5-.5 7-3 7.5-7.5z","M18.5 3v4","M16.5 5h4"],fills:[],accents:["M10 5.5c.5 4.5 3 7 7.5 7.5-4.5 .5-7 3-7.5 7.5-.5-4.5-3-7-7.5-7.5 4.5-.5 7-3 7.5-7.5z"]},C4={name:"spell-check",family:"ui",paths:["m20 15-5.5 5.5L12 18","m4 16 6-12 5.115 10.23","M6 12h8"],fills:[],accents:[]},E4={name:"spline",family:"ui",paths:["M3 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M17 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M6.5 17.5C8 11 16 13 17.5 6.5"],fills:[],accents:[]},Pj={name:"spline-pointer",family:"ui",paths:["M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z","M5 17A12 12 0 0 1 17 5","M17 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},z4={name:"split",family:"ui",paths:["M16 3h5v5","M8 3H3v5","M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3","m15 9 6-6"],fills:[],accents:[]},j4={name:"square",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"]},Kj={name:"square-check",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","m16 9-5.5 5.5L8 12"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"]},T4={name:"square-check-big",family:"ui",paths:["M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344","m9 11 3 3L22 4"],fills:[],accents:[]},k4={name:"square-dashed",family:"ui",paths:["M3 5a2 2 0 0 1 2 -2","M19 3a2 2 0 0 1 2 2","M21 19a2 2 0 0 1 -2 2","M5 21a2 2 0 0 1 -2 -2","M8.5 3h2","M13.5 3h2","M8.5 21h2","M13.5 21h2","M3 8.5v2","M3 13.5v2","M21 8.5v2","M21 13.5v2"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"]},Yj={name:"square-dashed-mouse-pointer",family:"ui",paths:["M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z","M5 3a2 2 0 0 0-2 2","M19 3a2 2 0 0 1 2 2","M5 21a2 2 0 0 1-2-2","M9 3h1","M9 21h2","M14 3h1","M3 9v1","M21 9v2","M3 14v1"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v6.5l-8.32-3.24a.5.5 0 0 0-.65.65L15.31 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"]},Xj={name:"square-dot",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0z"],fills:[],accents:[]},A4={name:"square-function",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3","M9 11.2h5.7"],fills:[],accents:[]},Zj={name:"square-kanban",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M8 7v7","M12 7v4","M16 7v9"],fills:[],accents:[]},N4={name:"square-minus",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M8 12h8"],fills:[],accents:[]},Wj={name:"square-mouse-pointer",family:"ui",paths:["M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z","M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v6.5l-8.32-3.24a.5.5 0 0 0-.65.65L15.31 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"]},R4={name:"square-plus",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M8 12h8","M12 8v8"],fills:[],accents:[]},Qj={name:"square-split-horizontal",family:"ui",paths:["M12 2v20","M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3","M8 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3"],fills:[],accents:[]},D4={name:"square-split-vertical",family:"ui",paths:["M2 12h20","M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3","M3 8V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3"],fills:[],accents:[]},Jj={name:"square-square",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M9 8h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1z"],fills:[],accents:[]},e9={name:"square-stack",family:"ui",paths:["M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2","M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2","M16 14h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z"],fills:[],accents:[]},t9={name:"square-terminal",family:"ui",paths:["m7 11 2-2-2-2","M11 13h4","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},a9={name:"square-x",family:"ui",paths:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","m15 9-6 6","m9 9 6 6"],fills:[],accents:["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"]},n9={name:"squares-exclude",family:"ui",paths:["M16 12v2a2 2 0 0 1-2 2H9a1 1 0 0 0-1 1v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2h0","M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 1-1 1h-5a2 2 0 0 0-2 2v2"],fills:[],accents:[]},l9={name:"squares-intersect",family:"ui",paths:["M10 22a2 2 0 0 1-2-2","M14 2a2 2 0 0 1 2 2","M16 22h-2","M2 10V8","M2 4a2 2 0 0 1 2-2","M20 8a2 2 0 0 1 2 2","M22 14v2","M22 20a2 2 0 0 1-2 2","M4 16a2 2 0 0 1-2-2","M8 10a2 2 0 0 1 2-2h5a1 1 0 0 1 1 1v5a2 2 0 0 1-2 2H9a1 1 0 0 1-1-1z","M8 2h2"],fills:[],accents:[]},i9={name:"squares-subtract",family:"ui",paths:["M10 22a2 2 0 0 1-2-2","M16 22h-2","M16 4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-5a2 2 0 0 1 2-2h5a1 1 0 0 0 1-1z","M20 8a2 2 0 0 1 2 2","M22 14v2","M22 20a2 2 0 0 1-2 2"],fills:[],accents:[]},r9={name:"squares-unite",family:"ui",paths:["M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 0 1 1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-3a1 1 0 0 0-1-1z"],fills:[],accents:[]},s9={name:"squircle",family:"ui",paths:["M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9"],fills:[],accents:[]},o9={name:"stamp",family:"ui",paths:["M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13","M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z","M5 22h14"],fills:[],accents:["M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z"]},O4={name:"star",family:"ui",paths:["M12 3L14.5 9.5H21L15.5 13.5L17.5 20L12 16.5L6.5 20L8.5 13.5L3 9.5H9.5z"],fills:[],accents:["M12 3L14.5 9.5H21L15.5 13.5L17.5 20L12 16.5L6.5 20L8.5 13.5L3 9.5H9.5z"]},c9={name:"step-back",family:"ui",paths:["M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z","M21 20V4"],fills:[],accents:[]},L4={name:"step-forward",family:"ui",paths:["M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z","M3 4v16"],fills:[],accents:[]},H4={name:"sticker",family:"ui",paths:["M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z","M15 3v5a1 1 0 0 0 1 1h5","M8 13h.01","M16 13h.01","M10 16s.8 1 2 1c1.3 0 2-1 2-1"],fills:[],accents:[]},B4={name:"sticky-note",family:"ui",paths:["M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z","M15 3v5a1 1 0 0 0 1 1h5"],fills:[],accents:["M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"]},u9={name:"stretch",family:"tool",paths:["M12 6H6a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h6","M12 12h8","m17 9 3 3-3 3"],fills:[],accents:["M12 6H6a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h6z"]},d9={name:"stretch-horizontal",family:"ui",paths:["M4 4h16a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z","M4 14h16a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2v-2a2 2 0 0 1 2 -2z"],fills:[],accents:[]},_4={name:"strikethrough",family:"ui",paths:["M16 4H9a3 3 0 0 0-2.83 4","M14 12a4 4 0 0 1 0 8H6","M4 12L20 12"],fills:[],accents:[]},F4={name:"subscript",family:"ui",paths:["m4 5 8 8","m12 5-8 8","M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07"],fills:[],accents:[]},f9={name:"sun",family:"ui",paths:["M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M12 2v2","M12 20v2","m4.93 4.93 1.41 1.41","m17.66 17.66 1.41 1.41","M2 12h2","M20 12h2","m6.34 17.66-1.41 1.41","m19.07 4.93-1.41 1.41"],fills:[],accents:[]},h9={name:"sun-dim",family:"ui",paths:["M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M12 4h.01","M20 12h.01","M12 20h.01","M4 12h.01","M17.657 6.343h.01","M17.657 17.657h.01","M6.343 17.657h.01","M6.343 6.343h.01"],fills:[],accents:[]},m9={name:"sun-medium",family:"ui",paths:["M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M12 3v1","M12 20v1","M3 12h1","M20 12h1","m18.364 5.636-.707.707","m6.343 17.657-.707.707","m5.636 5.636.707.707","m17.657 17.657.707.707"],fills:[],accents:[]},v9={name:"sun-moon",family:"ui",paths:["M12 2v2","M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715","M16 12a4 4 0 0 0-4-4","m19 5-1.256 1.256","M20 12h2"],fills:[],accents:[]},p9={name:"sun-snow",family:"ui",paths:["M10 21v-1","M10 4V3","M10 9a3 3 0 0 0 0 6","m14 20 1.25-2.5L18 18","m14 4 1.25 2.5L18 6","m17 21-3-6 1.5-3H22","m17 3-3 6 1.5 3","M2 12h1","m20 10-1.5 2 1.5 2","m3.64 18.36.7-.7","m4.34 6.34-.7-.7"],fills:[],accents:[]},g9={name:"sunrise",family:"ui",paths:["M12 2v8","m4.93 10.93 1.41 1.41","M2 18h2","M20 18h2","m19.07 10.93-1.41 1.41","M22 22H2","m8 6 4-4 4 4","M16 18a4 4 0 0 0-8 0"],fills:[],accents:[]},U4={name:"superscript",family:"ui",paths:["m4 19 8-8","m12 19-8-8","M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06"],fills:[],accents:[]},I4={name:"swatch-book",family:"ui",paths:["M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z","M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7","M 7 17h.01","m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8"],fills:[],accents:[]},V4={name:"table",family:"ui",paths:["M12 3v18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M3 9h18","M3 15h18"],fills:[],accents:[]},q4={name:"table-2",family:"ui",paths:["M3 9h18","M9 3v18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},$4={name:"table-cells-merge",family:"ui",paths:["M12 21v-6","M12 9V3","M3 15h18","M3 9h18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},G4={name:"table-cells-split",family:"ui",paths:["M12 15V9","M3 15h18","M3 9h18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},P4={name:"table-properties",family:"ui",paths:["M15 3v18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z","M21 9H3","M21 15H3"],fills:[],accents:[]},K4={name:"tag",family:"ui",paths:["M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"],fills:["M7 7.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z"],accents:[]},y9={name:"tags",family:"ui",paths:["M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z","M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193"],fills:["M10 6.5a0.5 0.5 0 1 0 1 0a0.5 0.5 0 1 0 -1 0z"],accents:[]},b9={name:"target",family:"ui",paths:["M2 12a10 10 0 1 0 20 0a10 10 0 1 0 -20 0z","M6 12a6 6 0 1 0 12 0a6 6 0 1 0 -12 0z","M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:[]},M9={name:"terminal",family:"ui",paths:["M12 19h8","m4 17 6-6-6-6"],fills:[],accents:[]},Y4={name:"text-align-center",family:"ui",paths:["M3.5 6h17","M6.5 10h11","M3.5 14h17","M6.5 18h11"],fills:[],accents:[]},X4={name:"text-align-end",family:"ui",paths:["M3.5 6h17","M9.5 10h11","M3.5 14h17","M9.5 18h11"],fills:[],accents:[]},Z4={name:"text-align-justify",family:"ui",paths:["M3.5 6h17","M3.5 10h17","M3.5 14h17","M3.5 18h17"],fills:[],accents:[]},W4={name:"text-align-start",family:"ui",paths:["M3.5 6h17","M3.5 10h11","M3.5 14h17","M3.5 18h11"],fills:[],accents:[]},Q4={name:"text-cursor",family:"ui",paths:["M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1","M7 22h1a4 4 0 0 0 4-4","M7 2h1a4 4 0 0 1 4 4"],fills:[],accents:[]},J4={name:"text-cursor-input",family:"ui",paths:["M14 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5","M8 17H5a2 2 0 0 1 -2 -2V9a2 2 0 0 1 2 -2h3","M11 4v16","M9 4h4","M9 20h4"],fills:[],accents:[]},x9={name:"text-justify-center",family:"ui",paths:["M3.5 6h17","M3.5 10h17","M3.5 14h17","M7.5 18h9"],fills:[],accents:[]},S9={name:"text-justify-end",family:"ui",paths:["M3.5 6h17","M3.5 10h17","M3.5 14h17","M11.5 18h9"],fills:[],accents:[]},w9={name:"text-justify-start",family:"ui",paths:["M3.5 6h17","M3.5 10h17","M3.5 14h17","M3.5 18h9"],fills:[],accents:[]},eM={name:"text-wrap",family:"ui",paths:["m16 16-3 3 3 3","M3 12h14.5a1 1 0 0 1 0 7H13","M3 19h6","M3 5h18"],fills:[],accents:[]},C9={name:"thermometer",family:"ui",paths:["M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z"],fills:[],accents:[]},E9={name:"thumbs-up",family:"ui",paths:["M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z","M7 10v12"],fills:[],accents:[]},z9={name:"ticket",family:"ui",paths:["M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z","M13 5v2","M13 17v2","M13 11v2"],fills:[],accents:[]},j9={name:"timer",family:"ui",paths:["M10 2L14 2","M12 14L15 11","M4 14a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"],fills:[],accents:[]},tM={name:"toggle-left",family:"ui",paths:["M6 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M9 5h6a7 7 0 0 1 7 7v0a7 7 0 0 1 -7 7h-6a7 7 0 0 1 -7 -7v0a7 7 0 0 1 7 -7z"],fills:[],accents:[]},T9={name:"tornado",family:"ui",paths:["M21 4H3","M18 8H6","M19 12H9","M16 16h-6","M11 20H9"],fills:[],accents:[]},k9={name:"transition-cover",family:"tool",paths:["M9 17H4a2 2 0 0 1 -2-2V9a2 2 0 0 1 2-2h5","M22 5H11a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h11","M18.5 12H13","m14.5 10.5-1.5 1.5 1.5 1.5"],fills:[],accents:["M22 5H11a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h11z"]},A9={name:"transition-curtains",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M6.5 6c.5 5 2 9 5 12","M17.5 6c-.5 5-2 9-5 12"],fills:[],accents:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"]},N9={name:"transition-cut",family:"tool",paths:["M4 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M15 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z"],fills:[],accents:["M15 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z"]},R9={name:"transition-drape",family:"tool",paths:["M3 8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7c-2.5 2.5-5-2-9 0s-6.5 2.5-9 0z"],fills:[],accents:["M3 8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7c-2.5 2.5-5-2-9 0s-6.5 2.5-9 0z"]},D9={name:"transition-fade",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M6.5 11.5 9 9","M6.5 15.5l6.5-6.5","M11 15.5l6.5-6.5"],fills:[],accents:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"]},O9={name:"transition-fall-over",family:"tool",paths:["M3 20.5h18","M5 20.5 7.5 15.5h9l2.5 5","M7.5 4.5h.01","M11.5 5h.01","M15 6.5h.01","M17.5 9.5h.01","M18.5 12.5h.01"],fills:[],accents:["M5 20.5 7.5 15.5h9l2.5 5z"]},L9={name:"transition-flash",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M12 8.5v1","M12 14.5v1","M8.5 12h1","M14.5 12h1","m9.5 9.5.7.7","m13.8 13.8.7.7","m14.5 9.5-.7.7","m10.2 13.8-.7.7"],fills:["M10.5 12a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0z"],accents:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"]},H9={name:"transition-morph",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M7 12a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z","M15 9.5h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"],fills:[],accents:["M7 12a2.5 2.5 0 1 0 5 0a2.5 2.5 0 1 0 -5 0z","M15 9.5h3a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1z"]},B9={name:"transition-none",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M8 15.5l8-7"],fills:[],accents:[]},_9={name:"transition-prestige",family:"tool",paths:["M6.5 6h11l3.5 12h-18z"],fills:[],accents:["M6.5 6h11l3.5 12h-18z"]},F9={name:"transition-push",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M12 6v12","M18 12h-3.5","m16 10.5-1.5 1.5 1.5 1.5"],fills:[],accents:["M12 6h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-7z"]},U9={name:"transition-random-bars",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M6.5 9.5h6","M6.5 12h10","M6.5 14.5h4"],fills:[],accents:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"]},I9={name:"transition-reveal",family:"tool",paths:["M4.5 4h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M16.5 10h3a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2-2v-4","M12 11 7.5 6.5","M7.5 10V6.5H11"],fills:[],accents:["M16.5 10h3a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2-2v-4h9z"]},V9={name:"transition-shape",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z"],fills:[],accents:["M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0z"]},q9={name:"transition-split",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M10 6v12","M14 6v12","m7.5 10.5-1.5 1.5 1.5 1.5","m16.5 10.5 1.5 1.5-1.5 1.5"],fills:[],accents:["M10 6h4v12h-4z"]},$9={name:"transition-uncover",family:"tool",paths:["M2 5h11a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2H2","M15 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5","M11 12H5.5","m7 10.5-1.5 1.5 1.5 1.5"],fills:[],accents:["M15 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-5z"]},G9={name:"transition-wind",family:"tool",paths:["M13 7h6a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z","M3 9h5a1.5 1.5 0 1 0 -1.5-1.5","M3 12h6","M3 15h4a1.5 1.5 0 1 1 -1.5 1.5"],fills:[],accents:["M13 7h6a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2z"]},P9={name:"transition-wipe",family:"tool",paths:["M5 6h14a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z","M12 8.5h.01","M12 12h.01","M12 15.5h.01","M14.5 12H18","m16.5 10.5 1.5 1.5-1.5 1.5"],fills:[],accents:["M12 6H5a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h7z"]},aM={name:"trash",family:"ui",paths:["M4 6.5h16","M9 6.5V5a1.5 1.5 0 0 1 1.5 -1.5h3A1.5 1.5 0 0 1 15 5v1.5","M6 6.5l1 12.5a2 2 0 0 0 2 2h6a2 2 0 0 0 2 -2l1-12.5"],fills:[],accents:[]},nM={name:"trending-up",family:"ui",paths:["M16 7h6v6","m22 7-8.5 8.5-5-5L2 17"],fills:[],accents:[]},lM={name:"triangle",family:"ui",paths:["M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"],fills:[],accents:["M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"]},K9={name:"triangle-alert",family:"ui",paths:["m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3","M12 9v4","M12 17h.01"],fills:[],accents:[]},Y9={name:"triangles-centerline-dashed-horizontal",family:"ui",paths:["M10 12H8","M16 12h-2","M22 12h-2","M4 12H2","M7.298 20.288A1 1 0 008 22h8a1 1 0 00.703-1.712l-3.991-3.99a1 1 0 00-1.424-.001z","M7.298 3.712A1 1 0 018 2h8a1 1 0 01.703 1.712l-3.991 3.99a1 1 0 01-1.424.001z"],fills:[],accents:[]},iM={name:"type",family:"ui",paths:["M5 7.5V5h14v2.5","M12 5v14","M9 19h6"],fills:[],accents:[]},X9={name:"type-outline",family:"ui",paths:["M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z"],fills:[],accents:[]},rM={name:"underline",family:"ui",paths:["M6 4v6a6 6 0 0 0 12 0V4","M4 20L20 20"],fills:[],accents:[]},sM={name:"undo-2",family:"ui",paths:["M9 14 4 9l5-5","M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"],fills:[],accents:[]},Z9={name:"unfold-horizontal",family:"ui",paths:["M16 12h6","M8 12H2","M12 2v2","M12 8v2","M12 14v2","M12 20v2","m19 15 3-3-3-3","m5 9-3 3 3 3"],fills:[],accents:[]},W9={name:"unfold-vertical",family:"ui",paths:["M12 22v-6","M12 8V2","M4 12H2","M10 12H8","M16 12h-2","M22 12h-2","m15 19-3 3-3-3","m15 5-3-3-3 3"],fills:[],accents:[]},oM={name:"ungroup",family:"ui",paths:["M5 3.5h4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1 -1.5 1.5h-4a1.5 1.5 0 0 1 -1.5 -1.5v-4a1.5 1.5 0 0 1 1.5 -1.5z","M15 13.5h4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1 -1.5 1.5h-4a1.5 1.5 0 0 1 -1.5 -1.5v-4a1.5 1.5 0 0 1 1.5 -1.5z"],fills:[],accents:[]},cM={name:"unlink",family:"ui",paths:["m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71","m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71","M8 2L8 5","M2 8L5 8","M16 19L16 22","M19 16L22 16"],fills:[],accents:[]},uM={name:"upload",family:"ui",paths:["M12 3v12","m17 8-5-5-5 5","M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"],fills:[],accents:[]},Q9={name:"user",family:"ui",paths:["M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2","M8 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z"],fills:[],accents:[]},J9={name:"user-minus",family:"ui",paths:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M22 11L16 11"],fills:[],accents:[]},eT={name:"user-plus",family:"ui",paths:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z","M19 8L19 14","M22 11L16 11"],fills:[],accents:[]},tT={name:"user-round",family:"ui",paths:["M7 8a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z","M20 21a8 8 0 0 0-16 0"],fills:[],accents:[]},aT={name:"users",family:"ui",paths:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M16 3.128a4 4 0 0 1 0 7.744","M22 21v-2a4 4 0 0 0-3-3.87","M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0z"],fills:[],accents:[]},nT={name:"variable",family:"ui",paths:["M8 21s-4-3-4-9 4-9 4-9","M16 3s4 3 4 9-4 9-4 9","M15 9L9 15","M9 9L15 15"],fills:[],accents:[]},dM={name:"vector-polygon",family:"ui",paths:["m12.828 4.813 5.344 2.375","m15.769 18.153 3.461-8.306","m5.687 14.074 7.625 4.852","M9.772 5.579 5.228 11.42","M9 4a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M13 20a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M18 8a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M2 13a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:["M11 4l9 4-5 12-11-7z"]},fM={name:"vector-square",family:"ui",paths:["M17.055 4.533a24 24 0 00-10.11 0","M19.467 17.055a24 24 0 000-10.11","M4.533 6.945a24 24 0 000 10.11","M6.945 19.467a24 24 0 0010.11 0","M17 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M17 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M3 5a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:["M5 5h14v14H5z"]},hM={name:"video",family:"ui",paths:["m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5","M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2z"],fills:[],accents:[]},mM={name:"volume-2",family:"ui",paths:["M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z","M16 9a5 5 0 0 1 0 6","M19.364 18.364a9 9 0 0 0 0-12.728"],fills:[],accents:[]},lT={name:"wallet-cards",family:"ui",paths:["M3 11h3.75a2 2 0 0 1 1.6.8l.45.6a4 4 0 0 0 6.4 0l.45-.6a2 2 0 0 1 1.6-.8H21","M3 7h18","M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2z"],fills:[],accents:[]},vM={name:"wand-sparkles",family:"ui",paths:["M3.5 20.5L13.5 10.5","M13.5 8.5L16 6l2 2-2.5 2.5z","M19.5 13.5v3","M18 15h3","M8 3.5v3","M6.5 5h3"],fills:[],accents:["M13.5 8.5L16 6l2 2-2.5 2.5z"]},pM={name:"waves-horizontal",family:"ui",paths:["M2 12q2.5 2 5 0t5 0 5 0 5 0","M2 19q2.5 2 5 0t5 0 5 0 5 0","M2 5q2.5 2 5 0t5 0 5 0 5 0"],fills:[],accents:[]},gM={name:"waypoints",family:"ui",paths:["m10.586 5.414-5.172 5.172","m18.586 13.414-5.172 5.172","M6 12h12","M10 20a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M10 4a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M18 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M2 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"],fills:[],accents:["M10 20a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M10 4a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M18 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z","M2 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0z"]},iT={name:"webhook",family:"ui",paths:["M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2","m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06","m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8"],fills:[],accents:[]},yM={name:"whole-word",family:"ui",paths:["M4 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M10 9v6","M14 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0z","M14 7v8","M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1"],fills:[],accents:[]},rT={name:"wind",family:"ui",paths:["M12.8 19.6A2 2 0 1 0 14 16H2","M17.5 8a2.5 2.5 0 1 1 2 4H2","M9.8 4.4A2 2 0 1 1 11 8H2"],fills:[],accents:[]},sT={name:"workflow",family:"ui",paths:["M5 3h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z","M7 11v4a2 2 0 0 0 2 2h4","M15 13h4a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-4a2 2 0 0 1 -2 -2v-4a2 2 0 0 1 2 -2z"],fills:[],accents:[]},oT={name:"wrench",family:"ui",paths:["M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"],fills:[],accents:[]},bM={name:"x",family:"ui",paths:["M6 6l12 12","M18 6L6 18"],fills:[],accents:[]},MM={name:"zap",family:"ui",paths:["M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"],fills:[],accents:[]},cT={name:"zap-off",family:"ui",paths:["M10.768 5.111 13.44 2.44a1.5 1.5 0 012.474 1.561l-1.633 4.625","m18.889 13.232.672-.672A1.5 1.5 0 0018.5 10h-2.844","m2 2 20 20","m7.94 7.94-3.5 3.499A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l5.5-5.5"],fills:[],accents:[]},xM={name:"zoom-in",family:"ui",paths:["M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M21 21L16.65 16.65","M11 8L11 14","M8 11L14 11"],fills:[],accents:["M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z"]},uT={name:"zoom-out",family:"ui",paths:["M3 11a8 8 0 1 0 16 0a8 8 0 1 0 -16 0z","M21 21L16.65 16.65","M8 11L14 11"],fills:[],accents:[]},dT="var(--kit-icon-accent, var(--kit-primary, currentColor))";function D(n){const i=g.forwardRef(function({size:r=24,color:u="currentColor",strokeWidth:f=ty,absoluteStrokeWidth:h=!1,accent:v,className:p,children:y,...m},x){const b=Number(r);return g.createElement("svg",{ref:x,xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:wC({size:Number.isFinite(b)?b:24,strokeWidth:Number(f),absoluteStrokeWidth:h}),strokeLinecap:"round",strokeLinejoin:"round",className:["tessera-icon",`tessera-icon-${n.name}`,p].filter(Boolean).join(" "),"aria-hidden":m["aria-label"]||m["aria-labelledby"]?void 0:!0,...m},v===!1?null:n.accents.map((C,E)=>g.createElement("path",{key:`accent-${E}`,d:C,className:"tessera-icon-accent",fill:typeof v=="string"?v:dT,stroke:"none",style:{fillOpacity:v===void 0?`var(--tessera-icon-accent-opacity, ${n.family==="tool"?op:0})`:op}})),n.paths.map((C,E)=>g.createElement("path",{key:E,d:C})),n.fills.map((C,E)=>g.createElement("path",{key:`fill-${E}`,d:C,fill:u})),y)});return i.displayName=`${n.name}Icon`,i}var fT=D(ay),hT=D(ny),mT=D(ly),vT=D(iy),pT=D(ry),gT=D(sy),yT=D(oy),up=D(cy),SM=D(uy),bT=D(dy),MT=D(fy),xT=D(hy),dp=D(my),ST=D(vy),wT=D(py),fp=D(gy),wM=D(yy),hp=D(by),CT=D(My),rs=D(xy),CM=D(Sy),ET=D(wy),EM=D(Cy),zM=D(Ey),u0=D(zy),jM=D(jy),zT=D(Ty),jT=D(ky),TT=D(Ay),kT=D(Ny),Wl=D(Ry),AT=D(Dy),mp=D(Oy),vp=D(Ly),NT=D(Hy),xs=D(By),Ka=D(_y),J0=D(Fy),Bc=D(Uy),TM=D(Iy),RT=D(Vy),DT=D(qy),kM=D($y),OT=D(Gy),AM=D(Py),LT=D(Ky),HT=D(Yy),BT=D(Xy),xc=D(Zy),_T=D(Wy),FT=D(Qy),NM=D(Jy),UT=D(e5),IT=D(t5),VT=D(a5),_c=D(n5),qT=D(l5),$T=D(i5),RM=D(r5),Sc=D(s5),pp=D(o5),GT=D(c5),PT=D(u5),KT=D(d5),DM=D(f5),YT=D(h5),gp=D(m5),XT=D(v5),ZT=D(p5),Fc=D(g5),Uc=D(y5),d0=D(b5),WT=D(M5),ef=D(x5),QT=D(S5),JT=D(w5),f0=D(C5),ek=D(E5),yp=D(z5),bp=D(j5),tk=D(T5),ak=D(k5),OM=D(A5),Mp=D(N5),nk=D(R5),h0=D(D5),LM=D(O5),lk=D(L5),ik=D(H5),tf=D(B5),fs=D(_5),af=D(F5),HM=D(U5),nf=D(I5),BM=D(V5),_M=D(q5),rk=D($5),sk=D(G5),ok=D(P5),lf=D(K5),ck=D(Y5),FM=D(X5),wc=D(Z5),uk=D(W5),m0=D(Q5),dk=D(J5),fk=D(eb),Cc=D(tb),UM=D(ab),hk=D(nb),mk=D(lb),vk=D(ib),xp=D(rb),pk=D(sb),gk=D(ob),Ic=D(cb),yk=D(ub),bk=D(db),Mk=D(fb),xk=D(hb),Sk=D(mb),rf=D(vb),Sp=D(pb),wk=D(gb),IM=D(yb),Ck=D(bb),hs=D(Mb),VM=D(xb),qM=D(Sb),Ek=D(wb),zk=D(Cb),jk=D(Eb),Tk=D(zb),kk=D(jb),Ak=D(Tb),Ec=D(kb),Nk=D(Ab),ms=D(Nb),$M=D(Rb),nr=D(Db),Rk=D(Ob),GM=D(Lb),Dk=D(Hb),PM=D(Bb),vs=D(_b),KM=D(Fb),lr=D(Ub),Ok=D(Ib),Lk=D(Vb),Hk=D(qb),Bk=D($b),YM=D(Gb),sf=D(Pb),of=D(Kb),_k=D(Yb),Fk=D(Xb),Uk=D(Zb),Ik=D(Wb),XM=D(Qb),ZM=D(Jb),WM=D(e4),Vk=D(t4),QM=D(a4),JM=D(n4),Vc=D(l4),zc=D(i4),cr=D(r4),qk=D(s4),e3=D(o4),t3=D(c4),qc=D(u4),jc=D(d4),$k=D(f4),Gk=D(h4),cf=D(m4),Ql=D(v4),Pk=D(p4),Kk=D(g4),v0=D(y4),a3=D(b4),Yk=D(M4),Id=D(x4),n3=D(S4),$c=D(w4),Xk=D(C4),uf=D(E4),Zk=D(z4),Ss=D(j4),Wk=D(T4),wp=D(k4),ps=D(A4),Qk=D(N4),Jk=D(R4),eA=D(D4),l3=D(O4),Cp=D(L4),tA=D(H4),aA=D(B4),i3=D(_4),nA=D(F4),lA=D(U4),r3=D(I4),Gc=D(V4),ss=D(q4),iA=D($4),rA=D(G4),Pc=D(P4),s3=D(K4),sA=D(Y4),oA=D(X4),cA=D(Z4),Ep=D(W4),uA=D(Q4),dA=D(J4),fA=D(eM),hA=D(tM),Tc=D(aM),mA=D(nM),vA=D(lM),ir=D(iM),df=D(rM),ff=D(sM),hf=D(oM),pA=D(cM),gA=D(uM),yA=D(dM),bA=D(fM),o3=D(hM),MA=D(mM),mf=D(vM),xA=D(pM),c3=D(gM),SA=D(yM),Jl=D(bM),wA=D(MM),u3=D(xM),yt=1.5,De=g.forwardRef(function({variant:i,size:o,iconOnly:r,loading:u,className:f,children:h,...v},p){return s.jsxs("button",{ref:p,type:"button",className:vf("kui-button",f),"data-variant":i,"data-size":o,"data-icon-only":r||void 0,"aria-busy":u||void 0,...v,children:[u?s.jsx(d3,{size:16}):null,h]})});function d3({size:n=16,label:i,className:o}){return s.jsx(gk,{className:vf("kui-spinner",o),size:n,strokeWidth:yt,role:i?"status":void 0,"aria-label":i,"aria-hidden":i?void 0:!0})}function ua({icon:n,label:i,pressed:o,className:r,...u}){return s.jsx("button",{type:"button",className:vf("kui-icon-button",r),"aria-label":i,title:i,"aria-pressed":o,...u,children:s.jsx(n,{size:16,strokeWidth:yt,"aria-hidden":"true"})})}function vf(...n){return n.filter(Boolean).join(" ")}function CA(n,i,o){const r=n>1,u=n+i<o-1;return r&&u?"both":r?"start":u?"end":"none"}function EA(n,i){const[o,r]=g.useState("none");return g.useLayoutEffect(()=>{const u=n.current;if(!u)return;const f=()=>r(CA(u.scrollLeft,u.clientWidth,u.scrollWidth));f(),u.addEventListener("scroll",f,{passive:!0});let h=null;const v=()=>{if(h){h.disconnect(),h.observe(u);for(const y of u.querySelectorAll(":scope > *, .kui-ribbon-group"))h.observe(y)}};typeof ResizeObserver<"u"&&(h=new ResizeObserver(f)),v();const p=typeof MutationObserver<"u"?new MutationObserver(()=>(v(),f())):null;return p==null||p.observe(u,{childList:!0,subtree:!0}),()=>{u.removeEventListener("scroll",f),h==null||h.disconnect(),p==null||p.disconnect()}},[n,i]),o}function Kc({className:n,panelClassName:i,role:o,resetKey:r,labels:u,testId:f,panelRef:h,children:v}){const p=g.useRef(null),y=h??p,m=EA(y,r),x=b=>{const C=y.current;if(!C)return;const E=b*Math.max(80,C.clientWidth*.75);typeof C.scrollBy=="function"?C.scrollBy({left:E,behavior:"smooth"}):C.scrollLeft+=E};return s.jsxs("div",{className:`kui-overflow-strip ${n}`,"data-overflow":m,children:[s.jsx("div",{ref:y,className:`kui-overflow-strip-panel ${i}`,role:o,children:v}),m==="start"||m==="both"?s.jsx("button",{type:"button",className:"kui-ribbon-scroll","data-side":"start","aria-label":u.start,title:u.start,onClick:()=>x(-1),"data-testid":`${f}-start`,children:s.jsx(J0,{size:14,strokeWidth:yt,"aria-hidden":"true"})}):null,m==="end"||m==="both"?s.jsx("button",{type:"button",className:"kui-ribbon-scroll","data-side":"end","aria-label":u.end,title:u.end,onClick:()=>x(1),"data-testid":`${f}-end`,children:s.jsx(Bc,{size:14,strokeWidth:yt,"aria-hidden":"true"})}):null]})}var ja=g.createContext("full"),f3=g.createContext(n=>`More: ${n}`),ws=Object.freeze({size:"full",icons:new Set,collapsed:new Set}),ei=g.createContext(ws);function p0(n){return n.id??n.label}function h3({id:n,label:i,disabled:o,children:r}){const u=ey();return s.jsx(ja.Provider,{value:"full",children:s.jsx(ei.Provider,{value:ws,children:s.jsxs("div",{className:"kui-ribbon-group",children:[s.jsx("div",{className:"kui-ribbon-group-body",children:s.jsxs("fieldset",{className:"kui-element",disabled:o,role:"presentation",children:[r,n?u.renderExtras(n,"ribbon"):null]})}),s.jsx("div",{className:"kui-ribbon-group-label",children:i})]})})})}function m3(n){const i=[];for(const o of g.Children.toArray(n)){if(!g.isValidElement(o))continue;if(o.props.primary){i.push(o);continue}const{type:r}=o;if(r!==g.Fragment&&typeof r!="string"&&r!==Ft&&r!==Xl)continue;const u=m3(o.props.children);u.length&&i.push(r===g.Fragment?s.jsx(g.Fragment,{children:u},o.key):g.cloneElement(o,void 0,u))}return i}function zA({id:n,label:i,icon:o,disabled:r,children:u}){const f=g.useContext(f3),h=g.useRef(null),v=g.useRef(null),[p,y]=g.useState(!0),[m,x]=g.useState(!1),[b,C]=g.useState(null),E=m3(u);g.useLayoutEffect(()=>{var L;if(m)return;const z=E.length>0&&((L=h.current)==null?void 0:L.querySelector("[data-primary], button, input, select, textarea"))!=null;z!==p&&y(z)});const w=n??i,T=()=>{var z;m||C(((z=h.current)==null?void 0:z.getBoundingClientRect().width)??null),x(L=>!L)},S=f(i);return s.jsxs("div",{className:"kui-line-group",role:"group","aria-label":i,"data-kit-ui-id":n,children:[m&&p?s.jsx("div",{className:"kui-line-inline","aria-hidden":"true",style:{width:b??void 0,boxSizing:"border-box",flex:"none"}}):s.jsx("div",{ref:h,className:"kui-line-inline",hidden:!p,children:s.jsx("fieldset",{className:"kui-element",disabled:r,role:"presentation",children:s.jsx(ja.Provider,{value:"primary",children:E})})}),s.jsxs("span",{ref:v,style:{display:"inline-flex"},children:[p?s.jsx("button",{type:"button",className:"kui-line-more","aria-label":S,title:S,"aria-haspopup":"dialog","aria-expanded":m,onClick:T,"data-testid":`kui-line-more-${w}`,children:s.jsx(Ka,{size:12,strokeWidth:yt,"aria-hidden":"true"})}):s.jsxs("button",{type:"button",className:"kui-ribbon-button kui-line-collapsed","data-size":"small",title:i,"aria-haspopup":"dialog","aria-expanded":m,onClick:T,"data-testid":`kui-line-group-${w}`,children:[o?s.jsx(o,{size:16,strokeWidth:yt,"aria-hidden":"true"}):null,s.jsx("span",{children:i}),s.jsx(Ka,{size:12,strokeWidth:yt,"aria-hidden":"true"})]}),s.jsx(Q0,{open:m,anchor:v,onClose:()=>x(!1),label:i,className:"kui-line-popover",testId:`kui-line-popover-${w}`,children:s.jsx(h3,{id:n,label:i,disabled:r,children:u})})]})]})}function jA({id:n,label:i,icon:o,disabled:r,children:u}){const f=g.useRef(null),[h,v]=g.useState(!1),p=p0({id:n,label:i});return s.jsx("div",{className:"kui-ribbon-group kui-ribbon-group-collapsed",role:"group","aria-label":i,"data-kit-ui-id":n,"data-ribbon-group":p,children:s.jsxs("span",{ref:f,style:{display:"inline-flex"},children:[s.jsxs("button",{type:"button",className:"kui-ribbon-button","data-size":"large",title:i,"aria-haspopup":"dialog","aria-expanded":h,onClick:()=>v(y=>!y),"data-testid":`kui-ribbon-collapsed-${p}`,children:[s.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[o?s.jsx(o,{size:28,strokeWidth:yt,"aria-hidden":"true"}):null,s.jsx(Ka,{size:12,strokeWidth:yt,"aria-hidden":"true"})]}),s.jsx("span",{children:i})]}),s.jsx(Q0,{open:h,anchor:f,onClose:()=>v(!1),label:i,className:"kui-line-popover",testId:`kui-ribbon-collapsed-panel-${p}`,children:s.jsx(h3,{id:n,label:i,disabled:r,children:u})})]})})}function nt({id:n,label:i,icon:o,children:r}){const u=ey(),f=g.useContext(ja),h=g.useContext(ei);n&&u.drawn(n);const v=n?u.state(n):null;if(v!=null&&v.hidden)return null;if(f==="line")return s.jsx(zA,{id:n,label:i,icon:o,disabled:(v==null?void 0:v.disabled)??!1,children:r});const p=p0({id:n,label:i});return h.collapsed.has(p)?s.jsx(jA,{id:n,label:i,icon:o,disabled:(v==null?void 0:v.disabled)??!1,children:r}):h.icons.has(p)&&h.size!=="icon"?s.jsx(ei.Provider,{value:{...h,size:"icon"},children:s.jsx(nt,{id:n,label:i,icon:o,children:r})}):s.jsxs("div",{className:"kui-ribbon-group",role:"group","aria-label":i,"data-kit-ui-id":n,"data-ribbon-group":p0({id:n,label:i}),children:[s.jsx("div",{className:"kui-ribbon-group-body",children:s.jsxs("fieldset",{className:"kui-element",disabled:(v==null?void 0:v.disabled)??!1,role:"presentation",children:[r,n?u.renderExtras(n,"ribbon"):null]})}),s.jsx("div",{className:"kui-ribbon-group-label",children:i})]})}function Ft({children:n}){const i=g.useContext(ja)==="primary";return s.jsx("div",{className:i?"kui-line-contents":"kui-ribbon-stack",children:n})}function Xl({children:n}){const i=g.useContext(ja)==="primary";return s.jsx("div",{className:i?"kui-line-contents":"kui-ribbon-row",children:n})}function er({primary:n,children:i}){return g.useContext(ja)==="primary"&&!n?null:s.jsx("span",{className:"kui-ribbon-item","data-primary":n||void 0,children:i})}function v3(n,i,o,r,u="full"){return n==="full"?u==="icon"&&o?"icon":u!=="full"&&i==="large"?"small":i:n!=="primary"?i:o&&!r?"icon":i==="large"?"small":i}function tt({icon:n,label:i,size:o="small",pressed:r,swatch:u,primary:f,lineLabel:h,...v}){const p=g.useContext(ja),y=g.useContext(ei);if(p==="primary"&&!f)return null;const m=v3(p,o,n!=null,h,y.size),x=m==="large"?28:16;return s.jsxs("button",{type:"button",className:"kui-ribbon-button","data-size":m,"data-primary":f||void 0,"aria-pressed":r,"aria-label":i,title:i,...v,children:[n?s.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",alignItems:"center"},children:[s.jsx(n,{size:x,strokeWidth:yt,"aria-hidden":"true"}),u?s.jsx("span",{style:{width:x,height:3,marginTop:1,borderRadius:1,background:u}}):null]}):null,m==="icon"?null:s.jsx("span",{children:i})]})}var pf=g.createContext(null);function p3(n,i,o){const r=g.useRef({inside:i,close:o});r.current={inside:i,close:o},g.useEffect(()=>{if(!n)return;const u=h=>{r.current.inside.some(v=>{var p;return(p=v.current)==null?void 0:p.contains(h.target)})||r.current.close()},f=h=>{h.key==="Escape"&&r.current.close()};return window.addEventListener("pointerdown",u,!0),window.addEventListener("keydown",f),()=>{window.removeEventListener("pointerdown",u,!0),window.removeEventListener("keydown",f)}},[n])}var g3=n=>[...n.querySelectorAll('[role^="menuitem"]:not(:disabled)')].filter(i=>{var o;return((o=i.parentElement)==null?void 0:o.closest('[role="menu"]'))===n});function gf(n,i){if(n.key==="Escape"&&i){n.preventDefault(),n.stopPropagation(),i();return}const o=g3(n.currentTarget);if(!o.length)return;const r=o.indexOf(document.activeElement),u={ArrowDown:r+1,ArrowUp:r<0?o.length-1:r-1,Home:0,End:o.length-1}[n.key];u!==void 0&&(n.preventDefault(),n.stopPropagation(),o[(u+o.length)%o.length].focus())}function y3(n,i,o,r){const u=g.useRef(r);u.current=r,g.useLayoutEffect(()=>{if(!n)return;const f=u.current();return()=>{var v;const h=document.activeElement;f!=null&&f.isConnected&&(!h||h===document.body||(v=o.current)!=null&&v.contains(h))&&f.focus()}},[o,n]),g.useLayoutEffect(()=>{var f;n&&i&&o.current&&((f=g3(o.current)[0])==null||f.focus())},[o,n,i])}function Un({trigger:n,children:i,align:o="start",placement:r="below"}){const[u,f]=g.useState(!1),h=g.useRef(null),v=g.useRef(null),[p,y]=g.useState(null),m=g.useCallback(()=>f(!1),[]),x=g.useCallback(()=>{var L,K;if(!h.current)return;const b=h.current.getBoundingClientRect(),C=((L=v.current)==null?void 0:L.offsetWidth)??200,E=o==="end"?b.right-C:b.left,w=b.bottom+4,T=((K=v.current)==null?void 0:K.offsetHeight)??0,S=b.top-4-8,z=Math.max(4,Math.min(E,window.innerWidth-C-4));if(r==="auto"&&w+T>window.innerHeight-8&&S>window.innerHeight-w-8){const X=Math.max(0,S);y({left:z,top:b.top-4-Math.min(T,X),maxHeight:X});return}y({left:z,top:w,maxHeight:Math.max(0,window.innerHeight-w-8)})},[o,r]);return g.useLayoutEffect(()=>{if(!u){y(null);return}return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[u,x]),p3(u,[v,h],m),y3(u,p!=null,v,()=>{var b;return((b=h.current)==null?void 0:b.querySelector("button, [tabindex]"))??null}),s.jsxs("span",{ref:h,style:{display:"inline-flex"},children:[n({open:u,toggle:()=>f(b=>!b)}),u?s.jsx("div",{ref:v,className:"kui-popover",role:"menu",style:p?{left:p.left,top:p.top,maxHeight:p.maxHeight}:{visibility:"hidden"},onKeyDown:b=>gf(b,m),onClick:b=>{b.target.closest("button")&&f(!1)},children:s.jsx(pf.Provider,{value:{close:m},children:i})}):null]})}function we({icon:n,label:i,shortcut:o,onSelect:r,disabled:u,checked:f,testId:h,uiId:v}){const p=g.useContext(pf);return s.jsxs("button",{type:"button",role:f===void 0?"menuitem":"menuitemcheckbox","aria-checked":f,className:"kui-menu-item",disabled:u,"data-testid":h,"data-kit-ui-id":v,onClick:()=>{p==null||p.close(),r()},children:[f?s.jsx(xs,{size:15,strokeWidth:yt,"aria-hidden":"true"}):n?s.jsx(n,{size:15,strokeWidth:yt,"aria-hidden":"true"}):s.jsx("span",{style:{width:15}}),s.jsx("span",{children:i}),o?s.jsx("kbd",{children:o}):null]})}function St(){return s.jsx("div",{className:"kui-menu-separator",role:"separator"})}function g0({at:n,onClose:i,label:o,children:r,testId:u}){const f=g.useRef(null),[h,v]=g.useState(null),p=g.useRef(i);p.current=i;const y=g.useCallback(()=>p.current(),[]),m=g.useRef(n);m.current=n;const x=g.useCallback(()=>{var T,S;const b=m.current;if(!b)return;const C=((T=f.current)==null?void 0:T.offsetWidth)??200,E=((S=f.current)==null?void 0:S.offsetHeight)??0,w={x:Math.max(4,Math.min(b.x,window.innerWidth-C-4)),y:Math.max(4,Math.min(b.y,window.innerHeight-E-4))};v(z=>z&&z.x===w.x&&z.y===w.y?z:w)},[]);return g.useLayoutEffect(()=>{if(!n){v(null);return}x();const b=f.current;if(!b||typeof ResizeObserver>"u")return;const C=new ResizeObserver(()=>x());return C.observe(b),()=>C.disconnect()},[n,x]),p3(n!=null,[f],y),y3(n!=null,h!=null,f,()=>document.activeElement instanceof HTMLElement?document.activeElement:null),n?s.jsx("div",{ref:f,className:"kui-popover",role:"menu","aria-label":o,"data-testid":u,style:h?{left:h.x,top:h.y}:{left:n.x,top:n.y,visibility:"hidden"},onContextMenu:b=>b.preventDefault(),onKeyDown:b=>gf(b,y),onClick:b=>{b.target.closest("button")&&y()},children:s.jsx(pf.Provider,{value:{close:y},children:r})}):null}function TA({children:n,onClick:i}){return s.jsx("footer",{className:"kui-status-bar",onClick:i,children:n})}function kA(){return s.jsx("div",{className:"kui-status-spacer"})}function AA({zoom:n,onZoom:i,onFit:o,min:r=.1,max:u=4,labels:f}){const h=p=>Math.log(p/r)/Math.log(u/r),v=p=>r*Math.pow(u/r,p);return s.jsxs("div",{className:"kui-zoom",children:[s.jsx("button",{type:"button",className:"kui-icon-button","aria-label":f.out,title:f.out,onClick:()=>i(n/1.25),children:"−"}),s.jsx("input",{type:"range",min:0,max:1,step:.001,value:h(n),onChange:p=>i(v(Number(p.target.value))),"aria-label":f.fit}),s.jsx("button",{type:"button",className:"kui-icon-button","aria-label":f.in,title:f.in,onClick:()=>i(n*1.25),children:"+"}),s.jsxs("span",{className:"kui-zoom-value","data-testid":"kit-zoom",children:[Math.round(n*100),"%"]}),s.jsx("button",{type:"button",className:"kui-button","data-variant":"ghost",onClick:o,children:f.fit})]})}function Cs({title:n,children:i,actions:o,onClose:r,onEscape:u,modal:f=!0,uiId:h,testId:v,position:p,onMove:y}){const m=g.useRef(null);g.useEffect(()=>{const S=z=>{var L;if(z.key==="Escape"){if(!f){const K=document.activeElement;if(K&&K!==document.body&&!((L=m.current)!=null&&L.contains(K)))return}u?u(z):r()}};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[r,u,f]);const x=g.useRef(null),[b,C]=g.useState(null);g.useEffect(()=>{C(null)},[p==null?void 0:p.x,p==null?void 0:p.y]);const E=b??p??null,w=(S,z)=>({x:Math.round(Math.min(Math.max(0,S),Math.max(0,window.innerWidth-48))),y:Math.round(Math.min(Math.max(0,z),Math.max(0,window.innerHeight-32)))}),T=y?{"data-movable":"true",onPointerDown:S=>{var K,X,re;if(S.button!==0)return;const z=(K=m.current)==null?void 0:K.getBoundingClientRect(),L=E??{x:(z==null?void 0:z.left)??0,y:(z==null?void 0:z.top)??0};x.current={x:S.clientX,y:S.clientY,left:L.x,top:L.y},(re=(X=S.currentTarget).setPointerCapture)==null||re.call(X,S.pointerId),S.preventDefault()},onPointerMove:S=>{const z=x.current;z&&C(w(z.left+S.clientX-z.x,z.top+S.clientY-z.y))},onPointerUp:S=>{const z=x.current;if(x.current=null,!z)return;const L=w(z.left+S.clientX-z.x,z.top+S.clientY-z.y);C(L),y(L)},onPointerCancel:()=>{x.current=null}}:{};return s.jsx("div",{className:f?"kui-dialog-backdrop":"kui-dialog-layer",onPointerDown:f?S=>S.target===S.currentTarget&&r():void 0,children:s.jsxs("div",{ref:m,className:"kui-dialog",role:"dialog","aria-modal":f,"aria-label":n,"data-kit-ui-id":h,"data-testid":v,style:E?{position:"absolute",left:E.x,top:E.y,margin:0}:void 0,children:[s.jsx("h2",{...T,children:n}),s.jsx("div",{className:"kui-dialog-body",children:i}),s.jsx("div",{className:"kui-dialog-actions",children:o})]})})}var y0=new Set,Pa=[],NA=1,os=new Map,b3=()=>{for(const n of y0)n(Pa)};function RA(n){return n==="loading"?Number.POSITIVE_INFINITY:n==="error"?6e3:4e3}function DA(n,i){clearTimeout(os.get(n)),os.delete(n),Number.isFinite(i)&&os.set(n,setTimeout(()=>kc(n),i))}function Ln(n,i,o={}){const{id:r,description:u,action:f,duration:h=RA(n)}=o,v=r===void 0?Pa.find(m=>m.level===n&&m.title===i&&m.description===u&&!m.action):void 0,p=r??(v==null?void 0:v.id)??`toast-${NA++}`,y={id:p,level:n,title:i,description:u,action:f};return Pa=Pa.some(m=>m.id===p)?Pa.map(m=>m.id===p?y:m):[...Pa,y],b3(),DA(p,h),p}function kc(n){const i=n===void 0?Pa.map(o=>o.id):[n];for(const o of i)clearTimeout(os.get(o)),os.delete(o);Pa=n===void 0?[]:Pa.filter(o=>o.id!==n),b3()}var Xt=Object.assign(function(i,o,r){return Ln(i,o,{description:r})},{info:(n,i)=>Ln("info",n,i),success:(n,i)=>Ln("success",n,i),warning:(n,i)=>Ln("warning",n,i),error:(n,i)=>Ln("error",n,i),loading:(n,i)=>Ln("loading",n,i),dismiss:kc,promise(n,i,o={}){const r=Ln("loading",i.loading,{...o,duration:Number.POSITIVE_INFINITY});return n.then(u=>Ln("success",typeof i.success=="function"?i.success(u):i.success,{...o,id:r}),u=>Ln("error",typeof i.error=="function"?i.error(u):i.error,{...o,id:r})),n}});function OA({offset:n=12,closeButton:i=!0}){const o=Qg(),[r,u]=g.useState(Pa);return g.useEffect(()=>(y0.add(u),u(Pa),()=>{y0.delete(u)}),[]),s.jsx("div",{className:"kui-toasts","aria-live":"polite",style:{top:n},children:r.map(f=>s.jsxs("div",{className:"kui-toast","data-level":f.level,role:f.level==="error"?"alert":"status",children:[f.level==="loading"?s.jsx(d3,{size:16,className:"kui-toast-icon"}):null,s.jsxs("div",{className:"kui-toast-text",children:[s.jsx("div",{className:"kui-toast-title",children:f.title}),f.description?s.jsx("div",{className:"kui-toast-description",children:f.description}):null]}),f.action?s.jsx("button",{type:"button",className:"kui-toast-action",onClick:()=>{var h;(h=f.action)==null||h.onClick(),kc(f.id)},children:f.action.label}):null,i?s.jsx("button",{type:"button",className:"kui-toast-close","aria-label":o("close"),onClick:()=>kc(f.id),children:s.jsx(Jl,{size:12,strokeWidth:yt,"aria-hidden":"true"})}):null]},f.id))})}var LA=["#C00000","#FF0000","#FFC000","#FFFF00","#92D050","#00B050","#00B0F0","#0070C0","#002060","#7030A0"],HA=["#FFFFFF","#000000","#E7E6E6","#44546A","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#70AD47","#F2F2F2","#7F7F7F","#D0CECE","#D6DCE4","#D9E2F3","#FBE5D5","#EDEDED","#FFF2CC","#DEEBF6","#E2EFD9","#D8D8D8","#595959","#AEABAB","#ADB9CA","#B4C6E7","#F7CBAC","#DBDBDB","#FEE599","#BDD7EE","#C5E0B3","#BFBFBF","#3F3F3F","#757070","#8496B0","#8EAADB","#F4B183","#C9C9C9","#FFD965","#9DC3E6","#A8D08D"];function pn({colors:n=[...HA,...LA],onPick:i,testId:o}){return s.jsx("div",{className:"kui-color-grid","data-testid":o,children:n.map((r,u)=>s.jsx("button",{type:"button",title:r,"aria-label":r,className:"kui-swatch",style:{background:r},onClick:()=>i(r)},`${u}-${r}`))})}var M3=Yg();const BA=Kg(M3);var mn=function(){return mn=Object.assign||function(i){for(var o,r=1,u=arguments.length;r<u;r++){o=arguments[r];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(i[f]=o[f])}return i},mn.apply(this,arguments)};function x3(n,i){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(n);u<r.length;u++)i.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(n,r[u])&&(o[r[u]]=n[r[u]]);return o}function _A(n,i,o){if(o||arguments.length===2)for(var r=0,u=i.length,f;r<u;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return n.concat(f||Array.prototype.slice.call(i))}var fc="right-scroll-bar-position",hc="width-before-scroll-bar",FA="with-scroll-bars-hidden",UA="--removed-body-scroll-bar-size";function Vd(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function IA(n,i){var o=g.useState(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(r){var u=o.value;u!==r&&(o.value=r,o.callback(r,u))}}}})[0];return o.callback=i,o.facade}var VA=typeof window<"u"?g.useLayoutEffect:g.useEffect,zp=new WeakMap;function qA(n,i){var o=IA(null,function(r){return n.forEach(function(u){return Vd(u,r)})});return VA(function(){var r=zp.get(o);if(r){var u=new Set(r),f=new Set(n),h=o.current;u.forEach(function(v){f.has(v)||Vd(v,null)}),f.forEach(function(v){u.has(v)||Vd(v,h)})}zp.set(o,n)},[n]),o}function $A(n){return n}function GA(n,i){i===void 0&&(i=$A);var o=[],r=!1,u={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(f){var h=i(f,r);return o.push(h),function(){o=o.filter(function(v){return v!==h})}},assignSyncMedium:function(f){for(r=!0;o.length;){var h=o;o=[],h.forEach(f)}o={push:function(v){return f(v)},filter:function(){return o}}},assignMedium:function(f){r=!0;var h=[];if(o.length){var v=o;o=[],v.forEach(f),h=o}var p=function(){var m=h;h=[],m.forEach(f)},y=function(){return Promise.resolve().then(p)};y(),o={push:function(m){h.push(m),y()},filter:function(m){return h=h.filter(m),o}}}};return u}function PA(n){n===void 0&&(n={});var i=GA(null);return i.options=mn({async:!0,ssr:!1},n),i}var S3=function(n){var i=n.sideCar,o=x3(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,mn({},o))};S3.isSideCarExport=!0;function KA(n,i){return n.useMedium(i),S3}var w3=PA(),qd=function(){},Yc=g.forwardRef(function(n,i){var o=g.useRef(null),r=g.useState({onScrollCapture:qd,onWheelCapture:qd,onTouchMoveCapture:qd}),u=r[0],f=r[1],h=n.forwardProps,v=n.children,p=n.className,y=n.removeScrollBar,m=n.enabled,x=n.shards,b=n.sideCar,C=n.noRelative,E=n.noIsolation,w=n.inert,T=n.allowPinchZoom,S=n.as,z=S===void 0?"div":S,L=n.gapMode,K=x3(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),X=b,re=qA([o,i]),ae=mn(mn({},K),u);return g.createElement(g.Fragment,null,m&&g.createElement(X,{sideCar:w3,removeScrollBar:y,shards:x,noRelative:C,noIsolation:E,inert:w,setCallbacks:f,allowPinchZoom:!!T,lockRef:o,gapMode:L}),h?g.cloneElement(g.Children.only(v),mn(mn({},ae),{ref:re})):g.createElement(z,mn({},ae,{className:p,ref:re}),v))});Yc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yc.classNames={fullWidth:hc,zeroRight:fc};var YA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XA(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=YA();return i&&n.setAttribute("nonce",i),n}function ZA(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function WA(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var QA=function(){var n=0,i=null;return{add:function(o){n==0&&(i=XA())&&(ZA(i,o),WA(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},JA=function(){var n=QA();return function(i,o){g.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&o])}},C3=function(){var n=JA(),i=function(o){var r=o.styles,u=o.dynamic;return n(r,u),null};return i},eN={left:0,top:0,right:0,gap:0},$d=function(n){return parseInt(n||"",10)||0},tN=function(n){var i=window.getComputedStyle(document.body),o=i[n==="padding"?"paddingLeft":"marginLeft"],r=i[n==="padding"?"paddingTop":"marginTop"],u=i[n==="padding"?"paddingRight":"marginRight"];return[$d(o),$d(r),$d(u)]},aN=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return eN;var i=tN(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-o+i[2]-i[0])}},nN=C3(),tr="data-scroll-locked",lN=function(n,i,o,r){var u=n.left,f=n.top,h=n.right,v=n.gap;return o===void 0&&(o="margin"),`
|
|
50
|
+
.`.concat(FA,` {
|
|
51
|
+
overflow: hidden `).concat(r,`;
|
|
52
|
+
padding-right: `).concat(v,"px ").concat(r,`;
|
|
53
|
+
}
|
|
54
|
+
body[`).concat(tr,`] {
|
|
55
|
+
overflow: hidden `).concat(r,`;
|
|
56
|
+
overscroll-behavior: contain;
|
|
57
|
+
`).concat([i&&"position: relative ".concat(r,";"),o==="margin"&&`
|
|
58
|
+
padding-left: `.concat(u,`px;
|
|
59
|
+
padding-top: `).concat(f,`px;
|
|
60
|
+
padding-right: `).concat(h,`px;
|
|
61
|
+
margin-left:0;
|
|
62
|
+
margin-top:0;
|
|
63
|
+
margin-right: `).concat(v,"px ").concat(r,`;
|
|
64
|
+
`),o==="padding"&&"padding-right: ".concat(v,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.`).concat(fc,` {
|
|
68
|
+
right: `).concat(v,"px ").concat(r,`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.`).concat(hc,` {
|
|
72
|
+
margin-right: `).concat(v,"px ").concat(r,`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.`).concat(fc," .").concat(fc,` {
|
|
76
|
+
right: 0 `).concat(r,`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.`).concat(hc," .").concat(hc,` {
|
|
80
|
+
margin-right: 0 `).concat(r,`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
body[`).concat(tr,`] {
|
|
84
|
+
`).concat(UA,": ").concat(v,`px;
|
|
85
|
+
}
|
|
86
|
+
`)},jp=function(){var n=parseInt(document.body.getAttribute(tr)||"0",10);return isFinite(n)?n:0},iN=function(){g.useEffect(function(){return document.body.setAttribute(tr,(jp()+1).toString()),function(){var n=jp()-1;n<=0?document.body.removeAttribute(tr):document.body.setAttribute(tr,n.toString())}},[])},rN=function(n){var i=n.noRelative,o=n.noImportant,r=n.gapMode,u=r===void 0?"margin":r;iN();var f=g.useMemo(function(){return aN(u)},[u]);return g.createElement(nN,{styles:lN(f,!i,u,o?"":"!important")})},b0=!1;if(typeof window<"u")try{var Qo=Object.defineProperty({},"passive",{get:function(){return b0=!0,!0}});window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch{b0=!1}var Xi=b0?{passive:!1}:!1,sN=function(n){return n.tagName==="TEXTAREA"},E3=function(n,i){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[i]!=="hidden"&&!(o.overflowY===o.overflowX&&!sN(n)&&o[i]==="visible")},oN=function(n){return E3(n,"overflowY")},cN=function(n){return E3(n,"overflowX")},Tp=function(n,i){var o=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=z3(n,r);if(u){var f=j3(n,r),h=f[1],v=f[2];if(h>v)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},uN=function(n){var i=n.scrollTop,o=n.scrollHeight,r=n.clientHeight;return[i,o,r]},dN=function(n){var i=n.scrollLeft,o=n.scrollWidth,r=n.clientWidth;return[i,o,r]},z3=function(n,i){return n==="v"?oN(i):cN(i)},j3=function(n,i){return n==="v"?uN(i):dN(i)},fN=function(n,i){return n==="h"&&i==="rtl"?-1:1},hN=function(n,i,o,r,u){var f=fN(n,window.getComputedStyle(i).direction),h=f*r,v=o.target,p=i.contains(v),y=!1,m=h>0,x=0,b=0;do{if(!v)break;var C=j3(n,v),E=C[0],w=C[1],T=C[2],S=w-T-f*E;(E||S)&&z3(n,v)&&(x+=S,b+=E);var z=v.parentNode;v=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!p&&v!==document.body||p&&(i.contains(v)||i===v));return(m&&Math.abs(x)<1||!m&&Math.abs(b)<1)&&(y=!0),y},Jo=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},kp=function(n){return[n.deltaX,n.deltaY]},Ap=function(n){return n&&"current"in n?n.current:n},mN=function(n,i){return n[0]===i[0]&&n[1]===i[1]},vN=function(n){return`
|
|
87
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
88
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
89
|
+
`)},pN=0,Zi=[];function gN(n){var i=g.useRef([]),o=g.useRef([0,0]),r=g.useRef(),u=g.useState(pN++)[0],f=g.useState(C3)[0],h=g.useRef(n);g.useEffect(function(){h.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var w=_A([n.lockRef.current],(n.shards||[]).map(Ap),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var v=g.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var S=Jo(w),z=o.current,L="deltaX"in w?w.deltaX:z[0]-S[0],K="deltaY"in w?w.deltaY:z[1]-S[1],X,re=w.target,ae=Math.abs(L)>Math.abs(K)?"h":"v";if("touches"in w&&ae==="h"&&re.type==="range")return!1;var de=window.getSelection(),ge=de&&de.anchorNode,je=ge?ge===re||ge.contains(re):!1;if(je)return!1;var be=Tp(ae,re);if(!be)return!0;if(be?X=ae:(X=ae==="v"?"h":"v",be=Tp(ae,re)),!be)return!1;if(!r.current&&"changedTouches"in w&&(L||K)&&(r.current=X),!X)return!0;var Me=r.current||X;return hN(Me,T,w,Me==="h"?L:K)},[]),p=g.useCallback(function(w){var T=w;if(!(!Zi.length||Zi[Zi.length-1]!==f)){var S="deltaY"in T?kp(T):Jo(T),z=i.current.filter(function(X){return X.name===T.type&&(X.target===T.target||T.target===X.shadowParent)&&mN(X.delta,S)})[0];if(z&&z.should){T.cancelable&&T.preventDefault();return}if(!z){var L=(h.current.shards||[]).map(Ap).filter(Boolean).filter(function(X){return X.contains(T.target)}),K=L.length>0?v(T,L[0]):!h.current.noIsolation;K&&T.cancelable&&T.preventDefault()}}},[]),y=g.useCallback(function(w,T,S,z){var L={name:w,delta:T,target:S,should:z,shadowParent:yN(S)};i.current.push(L),setTimeout(function(){i.current=i.current.filter(function(K){return K!==L})},1)},[]),m=g.useCallback(function(w){o.current=Jo(w),r.current=void 0},[]),x=g.useCallback(function(w){y(w.type,kp(w),w.target,v(w,n.lockRef.current))},[]),b=g.useCallback(function(w){y(w.type,Jo(w),w.target,v(w,n.lockRef.current))},[]);g.useEffect(function(){return Zi.push(f),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",p,Xi),document.addEventListener("touchmove",p,Xi),document.addEventListener("touchstart",m,Xi),function(){Zi=Zi.filter(function(w){return w!==f}),document.removeEventListener("wheel",p,Xi),document.removeEventListener("touchmove",p,Xi),document.removeEventListener("touchstart",m,Xi)}},[]);var C=n.removeScrollBar,E=n.inert;return g.createElement(g.Fragment,null,E?g.createElement(f,{styles:vN(u)}):null,C?g.createElement(rN,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function yN(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const bN=KA(w3,gN);var T3=g.forwardRef(function(n,i){return g.createElement(Yc,mn({},n,{ref:i,sideCar:bN}))});T3.classNames=Yc.classNames;var MN=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Wi=new WeakMap,ec=new WeakMap,tc={},Gd=0,k3=function(n){return n&&(n.host||k3(n.parentNode))},xN=function(n,i){return i.map(function(o){if(n.contains(o))return o;var r=k3(o);return r&&n.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},SN=function(n,i,o,r){var u=xN(i,Array.isArray(n)?n:[n]);tc[o]||(tc[o]=new WeakMap);var f=tc[o],h=[],v=new Set,p=new Set(u),y=function(x){!x||v.has(x)||(v.add(x),y(x.parentNode))};u.forEach(y);var m=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(b){if(v.has(b))m(b);else try{var C=b.getAttribute(r),E=C!==null&&C!=="false",w=(Wi.get(b)||0)+1,T=(f.get(b)||0)+1;Wi.set(b,w),f.set(b,T),h.push(b),w===1&&E&&ec.set(b,!0),T===1&&b.setAttribute(o,"true"),E||b.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",b,S)}})};return m(i),v.clear(),Gd++,function(){h.forEach(function(x){var b=Wi.get(x)-1,C=f.get(x)-1;Wi.set(x,b),f.set(x,C),b||(ec.has(x)||x.removeAttribute(r),ec.delete(x)),C||x.removeAttribute(o)}),Gd--,Gd||(Wi=new WeakMap,Wi=new WeakMap,ec=new WeakMap,tc={})}},wN=function(n,i,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),u=MN(n);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live], script"))),SN(r,u,o,"aria-hidden")):function(){return null}};function Np(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function A3(...n){return i=>{let o=!1;const r=n.map(u=>{const f=Np(u,i);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let u=0;u<r.length;u++){const f=r[u];typeof f=="function"?f():Np(n[u],null)}}}}function In(...n){return g.useCallback(A3(...n),n)}function N3(n){const i=CN(n),o=g.forwardRef((r,u)=>{const{children:f,...h}=r,v=g.Children.toArray(f),p=v.find(zN);if(p){const y=p.props.children,m=v.map(x=>x===p?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:x);return s.jsx(i,{...h,ref:u,children:g.isValidElement(y)?g.cloneElement(y,void 0,m):null})}return s.jsx(i,{...h,ref:u,children:f})});return o.displayName=`${n}.Slot`,o}function CN(n){const i=g.forwardRef((o,r)=>{const{children:u,...f}=o;if(g.isValidElement(u)){const h=TN(u),v=jN(f,u.props);return u.type!==g.Fragment&&(v.ref=r?A3(r,h):h),g.cloneElement(u,v)}return g.Children.count(u)>1?g.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var EN=Symbol("radix.slottable");function zN(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===EN}function jN(n,i){const o={...i};for(const r in i){const u=n[r],f=i[r];/^on[A-Z]/.test(r)?u&&f?o[r]=(...v)=>{const p=f(...v);return u(...v),p}:u&&(o[r]=u):r==="style"?o[r]={...u,...f}:r==="className"&&(o[r]=[u,f].filter(Boolean).join(" "))}return{...n,...o}}function TN(n){var r,u;let i=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var kN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ya=kN.reduce((n,i)=>{const o=N3(`Primitive.${i}`),r=g.forwardRef((u,f)=>{const{asChild:h,...v}=u,p=h?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(p,{...v,ref:f})});return r.displayName=`Primitive.${i}`,{...n,[i]:r}},{});function AN(n,i){n&&M3.flushSync(()=>n.dispatchEvent(i))}function NN(n,i){const o=g.createContext(i),r=f=>{const{children:h,...v}=f,p=g.useMemo(()=>v,Object.values(v));return s.jsx(o.Provider,{value:p,children:h})};r.displayName=n+"Provider";function u(f){const h=g.useContext(o);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[r,u]}function R3(n,i=[]){let o=[];function r(f,h){const v=g.createContext(h),p=o.length;o=[...o,h];const y=x=>{var S;const{scope:b,children:C,...E}=x,w=((S=b==null?void 0:b[n])==null?void 0:S[p])||v,T=g.useMemo(()=>E,Object.values(E));return s.jsx(w.Provider,{value:T,children:C})};y.displayName=f+"Provider";function m(x,b){var w;const C=((w=b==null?void 0:b[n])==null?void 0:w[p])||v,E=g.useContext(C);if(E)return E;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[y,m]}const u=()=>{const f=o.map(h=>g.createContext(h));return function(v){const p=(v==null?void 0:v[n])||f;return g.useMemo(()=>({[`__scope${n}`]:{...v,[n]:p}}),[v,p])}};return u.scopeName=n,[r,RN(u,...i)]}function RN(...n){const i=n[0];if(n.length===1)return i;const o=()=>{const r=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=r.reduce((v,{useScope:p,scopeName:y})=>{const x=p(f)[`__scope${y}`];return{...v,...x}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return o.scopeName=i.scopeName,o}function _n(n,i,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return i==null?void 0:i(u)}}var rr=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},DN=Xg[" useInsertionEffect ".trim().toString()]||rr;function D3({prop:n,defaultProp:i,onChange:o=()=>{},caller:r}){const[u,f,h]=ON({defaultProp:i,onChange:o}),v=n!==void 0,p=v?n:u;{const m=g.useRef(n!==void 0);g.useEffect(()=>{const x=m.current;x!==v&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${v?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=v},[v,r])}const y=g.useCallback(m=>{var x;if(v){const b=LN(m)?m(n):m;b!==n&&((x=h.current)==null||x.call(h,b))}else f(m)},[v,n,f,h]);return[p,y]}function ON({defaultProp:n,onChange:i}){const[o,r]=g.useState(n),u=g.useRef(o),f=g.useRef(i);return DN(()=>{f.current=i},[i]),g.useEffect(()=>{var h;u.current!==o&&((h=f.current)==null||h.call(f,o),u.current=o)},[o,u]),[o,r,f]}function LN(n){return typeof n=="function"}function HN(n,i){return g.useReducer((o,r)=>i[o][r]??o,n)}var Xc=n=>{const{present:i,children:o}=n,r=BN(i),u=typeof o=="function"?o({present:r.isPresent}):g.Children.only(o),f=In(r.ref,_N(u));return typeof o=="function"||r.isPresent?g.cloneElement(u,{ref:f}):null};Xc.displayName="Presence";function BN(n){const[i,o]=g.useState(),r=g.useRef(null),u=g.useRef(n),f=g.useRef("none"),h=n?"mounted":"unmounted",[v,p]=HN(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const y=ac(r.current);f.current=v==="mounted"?y:"none"},[v]),rr(()=>{const y=r.current,m=u.current;if(m!==n){const b=f.current,C=ac(y);n?p("MOUNT"):C==="none"||(y==null?void 0:y.display)==="none"?p("UNMOUNT"):p(m&&b!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,p]),rr(()=>{if(i){let y;const m=i.ownerDocument.defaultView??window,x=C=>{const w=ac(r.current).includes(CSS.escape(C.animationName));if(C.target===i&&w&&(p("ANIMATION_END"),!u.current)){const T=i.style.animationFillMode;i.style.animationFillMode="forwards",y=m.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=T)})}},b=C=>{C.target===i&&(f.current=ac(r.current))};return i.addEventListener("animationstart",b),i.addEventListener("animationcancel",x),i.addEventListener("animationend",x),()=>{m.clearTimeout(y),i.removeEventListener("animationstart",b),i.removeEventListener("animationcancel",x),i.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:g.useCallback(y=>{r.current=y?getComputedStyle(y):null,o(y)},[])}}function ac(n){return(n==null?void 0:n.animationName)||"none"}function _N(n){var r,u;let i=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var FN=Xg[" useId ".trim().toString()]||(()=>{}),UN=0;function Pd(n){const[i,o]=g.useState(FN());return rr(()=>{o(r=>r??String(UN++))},[n]),n||(i?`radix-${i}`:"")}function gs(n){const i=g.useRef(n);return g.useEffect(()=>{i.current=n}),g.useMemo(()=>(...o)=>{var r;return(r=i.current)==null?void 0:r.call(i,...o)},[])}function IN(n,i=globalThis==null?void 0:globalThis.document){const o=gs(n);g.useEffect(()=>{const r=u=>{u.key==="Escape"&&o(u)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[o,i])}var VN="DismissableLayer",M0="dismissableLayer.update",qN="dismissableLayer.pointerDownOutside",$N="dismissableLayer.focusOutside",Rp,O3=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),L3=g.forwardRef((n,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:v,...p}=n,y=g.useContext(O3),[m,x]=g.useState(null),b=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=g.useState({}),E=In(i,ae=>x(ae)),w=Array.from(y.layers),[T]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),S=w.indexOf(T),z=m?w.indexOf(m):-1,L=y.layersWithOutsidePointerEventsDisabled.size>0,K=z>=S,X=KN(ae=>{const de=ae.target,ge=[...y.branches].some(je=>je.contains(de));!K||ge||(u==null||u(ae),h==null||h(ae),ae.defaultPrevented||v==null||v())},b),re=YN(ae=>{const de=ae.target;[...y.branches].some(je=>je.contains(de))||(f==null||f(ae),h==null||h(ae),ae.defaultPrevented||v==null||v())},b);return IN(ae=>{z===y.layers.size-1&&(r==null||r(ae),!ae.defaultPrevented&&v&&(ae.preventDefault(),v()))},b),g.useEffect(()=>{if(m)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(m)),y.layers.add(m),Dp(),()=>{o&&y.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Rp)}},[m,b,o,y]),g.useEffect(()=>()=>{m&&(y.layers.delete(m),y.layersWithOutsidePointerEventsDisabled.delete(m),Dp())},[m,y]),g.useEffect(()=>{const ae=()=>C({});return document.addEventListener(M0,ae),()=>document.removeEventListener(M0,ae)},[]),s.jsx(Ya.div,{...p,ref:E,style:{pointerEvents:L?K?"auto":"none":void 0,...n.style},onFocusCapture:_n(n.onFocusCapture,re.onFocusCapture),onBlurCapture:_n(n.onBlurCapture,re.onBlurCapture),onPointerDownCapture:_n(n.onPointerDownCapture,X.onPointerDownCapture)})});L3.displayName=VN;var GN="DismissableLayerBranch",PN=g.forwardRef((n,i)=>{const o=g.useContext(O3),r=g.useRef(null),u=In(i,r);return g.useEffect(()=>{const f=r.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),s.jsx(Ya.div,{...n,ref:u})});PN.displayName=GN;function KN(n,i=globalThis==null?void 0:globalThis.document){const o=gs(n),r=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{const f=v=>{if(v.target&&!r.current){let p=function(){H3(qN,o,y,{discrete:!0})};const y={originalEvent:v};v.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=p,i.addEventListener("click",u.current,{once:!0})):p()}else i.removeEventListener("click",u.current);r.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",f),i.removeEventListener("click",u.current)}},[i,o]),{onPointerDownCapture:()=>r.current=!0}}function YN(n,i=globalThis==null?void 0:globalThis.document){const o=gs(n),r=g.useRef(!1);return g.useEffect(()=>{const u=f=>{f.target&&!r.current&&H3($N,o,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Dp(){const n=new CustomEvent(M0);document.dispatchEvent(n)}function H3(n,i,o,{discrete:r}){const u=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});i&&u.addEventListener(n,i,{once:!0}),r?AN(u,f):u.dispatchEvent(f)}var Kd="focusScope.autoFocusOnMount",Yd="focusScope.autoFocusOnUnmount",Op={bubbles:!1,cancelable:!0},XN="FocusScope",B3=g.forwardRef((n,i)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...h}=n,[v,p]=g.useState(null),y=gs(u),m=gs(f),x=g.useRef(null),b=In(i,w=>p(w)),C=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let w=function(L){if(C.paused||!v)return;const K=L.target;v.contains(K)?x.current=K:gl(x.current,{select:!0})},T=function(L){if(C.paused||!v)return;const K=L.relatedTarget;K!==null&&(v.contains(K)||gl(x.current,{select:!0}))},S=function(L){if(document.activeElement===document.body)for(const X of L)X.removedNodes.length>0&&gl(v)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const z=new MutationObserver(S);return v&&z.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),z.disconnect()}}},[r,v,C.paused]),g.useEffect(()=>{if(v){Hp.add(C);const w=document.activeElement;if(!v.contains(w)){const S=new CustomEvent(Kd,Op);v.addEventListener(Kd,y),v.dispatchEvent(S),S.defaultPrevented||(ZN(tR(_3(v)),{select:!0}),document.activeElement===w&&gl(v))}return()=>{v.removeEventListener(Kd,y),setTimeout(()=>{const S=new CustomEvent(Yd,Op);v.addEventListener(Yd,m),v.dispatchEvent(S),S.defaultPrevented||gl(w??document.body,{select:!0}),v.removeEventListener(Yd,m),Hp.remove(C)},0)}}},[v,y,m,C]);const E=g.useCallback(w=>{if(!o&&!r||C.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,S=document.activeElement;if(T&&S){const z=w.currentTarget,[L,K]=WN(z);L&&K?!w.shiftKey&&S===K?(w.preventDefault(),o&&gl(L,{select:!0})):w.shiftKey&&S===L&&(w.preventDefault(),o&&gl(K,{select:!0})):S===z&&w.preventDefault()}},[o,r,C.paused]);return s.jsx(Ya.div,{tabIndex:-1,...h,ref:b,onKeyDown:E})});B3.displayName=XN;function ZN(n,{select:i=!1}={}){const o=document.activeElement;for(const r of n)if(gl(r,{select:i}),document.activeElement!==o)return}function WN(n){const i=_3(n),o=Lp(i,n),r=Lp(i.reverse(),n);return[o,r]}function _3(n){const i=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function Lp(n,i){for(const o of n)if(!QN(o,{upTo:i}))return o}function QN(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function JN(n){return n instanceof HTMLInputElement&&"select"in n}function gl(n,{select:i=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&JN(n)&&i&&n.select()}}var Hp=eR();function eR(){let n=[];return{add(i){const o=n[0];i!==o&&(o==null||o.pause()),n=Bp(n,i),n.unshift(i)},remove(i){var o;n=Bp(n,i),(o=n[0])==null||o.resume()}}}function Bp(n,i){const o=[...n],r=o.indexOf(i);return r!==-1&&o.splice(r,1),o}function tR(n){return n.filter(i=>i.tagName!=="A")}var aR="Portal",F3=g.forwardRef((n,i)=>{var v;const{container:o,...r}=n,[u,f]=g.useState(!1);rr(()=>f(!0),[]);const h=o||u&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return h?BA.createPortal(s.jsx(Ya.div,{...r,ref:i}),h):null});F3.displayName=aR;var Xd=0;function nR(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??_p()),document.body.insertAdjacentElement("beforeend",n[1]??_p()),Xd++,()=>{Xd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Xd--}},[])}function _p(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Zc="Dialog",[U3]=R3(Zc),[lR,Xa]=U3(Zc),I3=n=>{const{__scopeDialog:i,children:o,open:r,defaultOpen:u,onOpenChange:f,modal:h=!0}=n,v=g.useRef(null),p=g.useRef(null),[y,m]=D3({prop:r,defaultProp:u??!1,onChange:f,caller:Zc});return s.jsx(lR,{scope:i,triggerRef:v,contentRef:p,contentId:Pd(),titleId:Pd(),descriptionId:Pd(),open:y,onOpenChange:m,onOpenToggle:g.useCallback(()=>m(x=>!x),[m]),modal:h,children:o})};I3.displayName=Zc;var V3="DialogTrigger",iR=g.forwardRef((n,i)=>{const{__scopeDialog:o,...r}=n,u=Xa(V3,o),f=In(i,u.triggerRef);return s.jsx(Ya.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Mf(u.open),...r,ref:f,onClick:_n(n.onClick,u.onOpenToggle)})});iR.displayName=V3;var yf="DialogPortal",[rR,q3]=U3(yf,{forceMount:void 0}),$3=n=>{const{__scopeDialog:i,forceMount:o,children:r,container:u}=n,f=Xa(yf,i);return s.jsx(rR,{scope:i,forceMount:o,children:g.Children.map(r,h=>s.jsx(Xc,{present:o||f.open,children:s.jsx(F3,{asChild:!0,container:u,children:h})}))})};$3.displayName=yf;var Ac="DialogOverlay",G3=g.forwardRef((n,i)=>{const o=q3(Ac,n.__scopeDialog),{forceMount:r=o.forceMount,...u}=n,f=Xa(Ac,n.__scopeDialog);return f.modal?s.jsx(Xc,{present:r||f.open,children:s.jsx(oR,{...u,ref:i})}):null});G3.displayName=Ac;var sR=N3("DialogOverlay.RemoveScroll"),oR=g.forwardRef((n,i)=>{const{__scopeDialog:o,...r}=n,u=Xa(Ac,o);return s.jsx(T3,{as:sR,allowPinchZoom:!0,shards:[u.contentRef],children:s.jsx(Ya.div,{"data-state":Mf(u.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),ti="DialogContent",P3=g.forwardRef((n,i)=>{const o=q3(ti,n.__scopeDialog),{forceMount:r=o.forceMount,...u}=n,f=Xa(ti,n.__scopeDialog);return s.jsx(Xc,{present:r||f.open,children:f.modal?s.jsx(cR,{...u,ref:i}):s.jsx(uR,{...u,ref:i})})});P3.displayName=ti;var cR=g.forwardRef((n,i)=>{const o=Xa(ti,n.__scopeDialog),r=g.useRef(null),u=In(i,o.contentRef,r);return g.useEffect(()=>{const f=r.current;if(f)return wN(f)},[]),s.jsx(K3,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_n(n.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=o.triggerRef.current)==null||h.focus()}),onPointerDownOutside:_n(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,v=h.button===0&&h.ctrlKey===!0;(h.button===2||v)&&f.preventDefault()}),onFocusOutside:_n(n.onFocusOutside,f=>f.preventDefault())})}),uR=g.forwardRef((n,i)=>{const o=Xa(ti,n.__scopeDialog),r=g.useRef(!1),u=g.useRef(!1);return s.jsx(K3,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,v;(h=n.onCloseAutoFocus)==null||h.call(n,f),f.defaultPrevented||(r.current||(v=o.triggerRef.current)==null||v.focus(),f.preventDefault()),r.current=!1,u.current=!1},onInteractOutside:f=>{var p,y;(p=n.onInteractOutside)==null||p.call(n,f),f.defaultPrevented||(r.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const h=f.target;((y=o.triggerRef.current)==null?void 0:y.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),K3=g.forwardRef((n,i)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:f,...h}=n,v=Xa(ti,o),p=g.useRef(null),y=In(i,p);return nR(),s.jsxs(s.Fragment,{children:[s.jsx(B3,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:u,onUnmountAutoFocus:f,children:s.jsx(L3,{role:"dialog",id:v.contentId,"aria-describedby":v.descriptionId,"aria-labelledby":v.titleId,"data-state":Mf(v.open),...h,ref:y,onDismiss:()=>v.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(fR,{titleId:v.titleId}),s.jsx(mR,{contentRef:p,descriptionId:v.descriptionId})]})]})}),bf="DialogTitle",Y3=g.forwardRef((n,i)=>{const{__scopeDialog:o,...r}=n,u=Xa(bf,o);return s.jsx(Ya.h2,{id:u.titleId,...r,ref:i})});Y3.displayName=bf;var X3="DialogDescription",dR=g.forwardRef((n,i)=>{const{__scopeDialog:o,...r}=n,u=Xa(X3,o);return s.jsx(Ya.p,{id:u.descriptionId,...r,ref:i})});dR.displayName=X3;var Z3="DialogClose",W3=g.forwardRef((n,i)=>{const{__scopeDialog:o,...r}=n,u=Xa(Z3,o);return s.jsx(Ya.button,{type:"button",...r,ref:i,onClick:_n(n.onClick,()=>u.onOpenChange(!1))})});W3.displayName=Z3;function Mf(n){return n?"open":"closed"}var Q3="DialogTitleWarning",[IB,J3]=NN(Q3,{contentName:ti,titleName:bf,docsSlug:"dialog"}),fR=({titleId:n})=>{const i=J3(Q3),o=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
|
|
90
|
+
|
|
91
|
+
If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
92
|
+
|
|
93
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},hR="DialogDescriptionWarning",mR=({contentRef:n,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J3(hR).contentName}}.`;return g.useEffect(()=>{var f;const u=(f=n.current)==null?void 0:f.getAttribute("aria-describedby");i&&u&&(document.getElementById(i)||console.warn(r))},[r,n,i]),null},vR=I3,pR=$3,gR=G3,yR=P3,bR=Y3,MR=W3;function xR(n){const i=g.useRef({value:n,previous:n});return g.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}function SR(n){const[i,o]=g.useState(void 0);return rr(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let h,v;if("borderBoxSize"in f){const p=f.borderBoxSize,y=Array.isArray(p)?p[0]:p;h=y.inlineSize,v=y.blockSize}else h=n.offsetWidth,v=n.offsetHeight;o({width:h,height:v})});return r.observe(n,{box:"border-box"}),()=>r.unobserve(n)}else o(void 0)},[n]),i}var Wc="Switch",[wR]=R3(Wc),[CR,ER]=wR(Wc),ex=g.forwardRef((n,i)=>{const{__scopeSwitch:o,name:r,checked:u,defaultChecked:f,required:h,disabled:v,value:p="on",onCheckedChange:y,form:m,...x}=n,[b,C]=g.useState(null),E=In(i,L=>C(L)),w=g.useRef(!1),T=b?m||!!b.closest("form"):!0,[S,z]=D3({prop:u,defaultProp:f??!1,onChange:y,caller:Wc});return s.jsxs(CR,{scope:o,checked:S,disabled:v,children:[s.jsx(Ya.button,{type:"button",role:"switch","aria-checked":S,"aria-required":h,"data-state":lx(S),"data-disabled":v?"":void 0,disabled:v,value:p,...x,ref:E,onClick:_n(n.onClick,L=>{z(K=>!K),T&&(w.current=L.isPropagationStopped(),w.current||L.stopPropagation())})}),T&&s.jsx(nx,{control:b,bubbles:!w.current,name:r,value:p,checked:S,required:h,disabled:v,form:m,style:{transform:"translateX(-100%)"}})]})});ex.displayName=Wc;var tx="SwitchThumb",ax=g.forwardRef((n,i)=>{const{__scopeSwitch:o,...r}=n,u=ER(tx,o);return s.jsx(Ya.span,{"data-state":lx(u.checked),"data-disabled":u.disabled?"":void 0,...r,ref:i})});ax.displayName=tx;var zR="SwitchBubbleInput",nx=g.forwardRef(({__scopeSwitch:n,control:i,checked:o,bubbles:r=!0,...u},f)=>{const h=g.useRef(null),v=In(h,f),p=xR(o),y=SR(i);return g.useEffect(()=>{const m=h.current;if(!m)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==o&&C){const E=new Event("click",{bubbles:r});C.call(m,o),m.dispatchEvent(E)}},[p,o,r]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...u,tabIndex:-1,ref:v,style:{...u.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});nx.displayName=zR;function lx(n){return n?"checked":"unchecked"}var jR=ex,TR=ax;function ni(...n){return n.filter(Boolean).join(" ")}function da(n){return s.jsx(vR,{...n})}function fa({size:n="lg",hideClose:i,dismissible:o=!0,disableAutoFocus:r,fixed:u,className:f,children:h,onOpenAutoFocus:v,onPointerDownOutside:p,...y}){return s.jsxs(pR,{children:[s.jsx(gR,{className:"kui-modal-overlay"}),s.jsxs(yR,{className:ni("kui-modal",f),"data-size":n,"data-fixed":u||void 0,onOpenAutoFocus:m=>{r&&m.preventDefault(),v==null||v(m)},onPointerDownOutside:m=>{o||m.preventDefault(),p==null||p(m)},...y,children:[h,i?null:s.jsx(kR,{})]})]})}function kR({className:n,...i}){const o=Qg();return s.jsx(MR,{className:ni("kui-modal-close",n),"aria-label":o("close"),...i,children:s.jsx(Jl,{size:14,strokeWidth:yt,"aria-hidden":"true"})})}function ha({className:n,...i}){return s.jsx("div",{className:ni("kui-modal-body",n),...i})}function ma({className:n,...i}){return s.jsx("div",{className:ni("kui-modal-header",n),...i})}function va({className:n,...i}){return s.jsx("div",{className:ni("kui-modal-footer",n),...i})}function pa({className:n,...i}){return s.jsx(bR,{className:ni("kui-modal-title",n),...i})}g.createContext(!1);g.forwardRef(function({className:i,...o},r){return s.jsx(jR,{ref:r,className:ni("kui-switch",i),...o,children:s.jsx(TR,{className:"kui-switch-thumb"})})});g.createContext(null);function ar({label:n,checked:i=!1,disabled:o,onChange:r,testId:u,id:f}){return s.jsxs("label",{className:"kui-checkbox","data-disabled":o||void 0,children:[s.jsx("input",{id:f,type:"checkbox",checked:i,disabled:o,onChange:h=>r==null?void 0:r(h.target.checked),"data-testid":u}),n]})}function mc({label:n,quiet:i,value:o,choices:r,disabled:u,onChange:f,testId:h}){return s.jsxs("label",{className:"kui-choice",children:[i?null:s.jsx("span",{children:n}),s.jsx("select",{className:"kui-field",value:o,disabled:u,"aria-label":n,onChange:v=>f(v.target.value),"data-testid":h,children:r.map(([v,p])=>s.jsx("option",{value:v,children:p},v))})]})}var ix=n=>{const i=parseInt(n.slice(1),16);return[i>>16&255,i>>8&255,i&255]},AR=n=>{const i=n/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};function Fp(n){const[i,o,r]=ix(n).map(AR);return .2126*i+.7152*o+.0722*r}function Up(n,i){const[o,r]=[Fp(n),Fp(i)].sort((u,f)=>f-u);return(o+.05)/(r+.05)}function NR(n){return Up(n,"#ffffff")>=Up(n,"#000000")?"#ffffff":"#000000"}function RR(n,i){const o=n[i],[r,u,f]=ix(o);return{"--kit-primary":o,"--kit-primary-text":NR(o),"--kit-primary-soft":`rgba(${r}, ${u}, ${f}, ${i==="dark"?.2:.1})`}}var Ip=/^#[0-9a-fA-F]{6}$/;function DR(n){if(n==null)return null;const i=n;return typeof i.light=="string"&&typeof i.dark=="string"&&Ip.test(i.light)&&Ip.test(i.dark)?{light:i.light,dark:i.dark}:(console.warn("[tessera-ui] ui.brand must be { light, dark } as #rrggbb colors; the host primary is used"),null)}const x0=["menus","line","classic","focus"],OR=["menus","line","classic"],LR=720;function Zd(n){return typeof n=="string"&&x0.includes(n)}function rx(n){return typeof n=="string"&&OR.includes(n)?n:null}function sx(n){return`kui.mode.${n}`}function HR(n){try{return rx(localStorage.getItem(sx(n)))}catch{return null}}function BR(n,i){try{localStorage.setItem(sx(n),i)}catch{}}const S0=Object.freeze({allowed:null,default:null});function ox(n){const i=n.allowed;return i!=null&&i.length?x0.filter(o=>i.includes(o)):x0}function _R({stored:n,rules:i,kit:o,readOnly:r}){const u=ox(i),f=i.default==="focus"?null:i.default,h=[n,f,r?"menus":null,o,"line"];for(const v of h)if(v&&u.includes(v))return v;return u.find(v=>v!=="focus")??"menus"}function FR(n,i,o,r){const u=["classic","line","menus"],f=v=>v==="menus"||i>=Math.max(LR,o[v]??0);let h=n;for(const v of u.slice(u.indexOf(n)))if(r.includes(v)&&(h=v,f(v)))return v;return h}const UR=4*1024*1024,Vp=n=>n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);function IR(n,i){const o=f=>n.request("files/stat",{handle:f}),r=async(f,h,v={})=>{const p=Math.max(1,v.chunkBytes??UR);let y=0;for(;;){const m=Math.min(h.byteLength,y+p),x=m===h.byteLength,b=Vp(h.subarray(y,m)),C=x&&v.expected!==void 0?{handle:f,bytes:b,offset:y,final:x,expected:v.expected}:{handle:f,bytes:b,offset:y,final:x},E=await n.request("files/write",C,{transfer:!0});if(x)return E.version??"";y=m}},u={served:i.includes("files"),canPick:i.includes("files-pick"),canPrint:i.includes("print"),pick:async f=>(await n.request("files/pick",f)).files,create:(f,h={})=>n.request("files/create",{suggestedName:f,...h}),stat:o,read:(f,h={})=>n.request("files/read",{handle:f,...h}),readAll:async f=>{const h=[];let v=0,p="";for(;;){const x=await n.request("files/read",{handle:f,offset:v});if(p=x.version,h.push(new Uint8Array(x.bytes)),v+=x.bytes.byteLength,v>=x.size||x.bytes.byteLength===0)break}const y=new Uint8Array(v);let m=0;for(const x of h)y.set(x,m),m+=x.byteLength;return{bytes:y,version:p}},list:async f=>(await n.request("files/list",{handle:f})).files,write:r,release:async f=>{f.length&&await n.request("files/release",{handles:f})},print:async f=>{const h="handle"in f?{handle:f.handle,title:f.title}:{bytes:Vp(f.bytes),mime:"application/pdf",title:f.title};return(await n.request("files/print",h,{transfer:!0})).printed===!0},writeOutputs:async(f,h,v={})=>{var y;const p=[];for(const m of f){const x=(y=v.targets)==null?void 0:y[m.id],b=x?await o(x):await u.create(m.suggestedName,{...m.mime?{mime:m.mime}:{},...v.folder?{folder:v.folder}:{}}),C=await h(m.id),E=await r(b.handle,C,b.rights.includes("create")||b.version===null?{}:{expected:b.version});p.push({...b,version:E,size:C.byteLength})}return p},onRevoked:f=>n.on("files/revoked",h=>f(Array.isArray(h==null?void 0:h.handles)?h.handles:[]))};return u}const w0=Object.freeze({hide:Object.freeze([]),disable:Object.freeze([]),add:Object.freeze([]),personal:Object.freeze([]),modes:S0}),VR=/^(command|menu|tool|panel|tab|group|action|control):(?=\S)[^*]*\*?$/,qR=/^(menu:\S.*|group:[^/\s]+\/\S.*|action)$/,$R=new Map([["command:edit.undo","action:undo"],["command:edit.redo","action:redo"]]),GR=n=>console.warn(`[kit-editor] ${n}`),Nc=n=>{try{return JSON.stringify(n)??String(n)}catch{return typeof n}};function Wd(n,i,o){return n===void 0?[]:Array.isArray(n)?n.filter(r=>{const u=typeof r=="string"&&VR.test(r);return u||o(`ui.${i}: ${Nc(r)} is not an element id`),u}):(o(`ui.${i} is not a list`),[])}const nc=(n,i)=>n===void 0||typeof n===i;function PR(n,i){const o=n&&typeof n=="object"?n:{},r=o.label&&typeof o.label=="object"&&!Array.isArray(o.label)?o.label:null,u=r?Object.values(r):[];return typeof o.id=="string"&&o.id!==""&&typeof o.place=="string"&&qR.test(o.place)&&r!==null&&u.length>0&&u.every(f=>typeof f=="string"&&f.length>0)&&nc(o.icon,"string")&&nc(o.shortcut,"string")&&nc(o.disabled,"boolean")&&nc(o.pressed,"boolean")?{id:o.id,place:o.place,label:{...o.label},icon:o.icon,shortcut:o.shortcut,disabled:o.disabled,pressed:o.pressed}:(i(`ui.add: ${Nc(n)} is not a valid button`),null)}function KR(n,i){const o=new Set,r=[];for(const u of n){if(o.has(u.id)){i(`ui.add: duplicate button id "${u.id}"`);continue}o.add(u.id),r.push(u)}return r}function YR(n,i){if(n===void 0)return S0;if(n===null||typeof n!="object"||Array.isArray(n))return i("ui.modes is not an object"),S0;const o=n;let r=null;o.allowed!==void 0&&(Array.isArray(o.allowed)?(r=o.allowed.filter(f=>(Zd(f)||i(`ui.modes.allowed: ${Nc(f)} is not a display mode`),Zd(f))),r.length||(r=null)):i("ui.modes.allowed is not a list"));let u=null;return o.default!==void 0&&(Zd(o.default)?u=o.default:i(`ui.modes.default: ${Nc(o.default)} is not a display mode`)),{allowed:r,default:u}}function qp(n,i=GR){if(n==null)return w0;if(typeof n!="object"||Array.isArray(n))return i("ui is not an object"),w0;const o=n;o.add!==void 0&&!Array.isArray(o.add)&&i("ui.add is not a list");const r=Array.isArray(o.add)?o.add.map(h=>PR(h,i)).filter(h=>h!==null):[],u=KR(r,i);let f=[];return o.personal!==void 0&&(o.personal!==null&&typeof o.personal=="object"&&!Array.isArray(o.personal)?f=Wd(o.personal.hide,"personal.hide",i):i("ui.personal is not an object")),{hide:Wd(o.hide,"hide",i),disable:Wd(o.disable,"disable",i),add:u,personal:f,modes:YR(o.modes,i)}}function XR(n,i){return n.endsWith("*")?i.startsWith(n.slice(0,-1)):n===i}function ZR(n,i=[]){const o=[n],r=n.startsWith("menu:"),u=r?n.slice(5).split("/"):i,f=r?u.length-1:u.length;for(let v=1;v<=f;v+=1)o.push(`menu:${u.slice(0,v).join("/")}`);const h=$R.get(n);return h&&o.push(h),o}const cx="action:more";function Yt(n,i,o=[]){const r=ZR(i,o),u=p=>p.some(y=>r.some(m=>XR(y,m))),f=u(n.hide),h=!f&&u(n.disable),v=!f&&i!==cx&&u(n.personal);return{hostHidden:f,hostDisabled:h,personalHidden:v,hidden:f||v,disabled:h,denied:f||h}}function ux(n,i){return n.add.filter(o=>o.place===i)}function WR(n,i){const o=r=>Object.hasOwn(n.label,r)?n.label[r]:void 0;return o(i)??o(i.split("-")[0])??o("en-US")??n.id}function lc(n,i){const o=i==null?`\`${n}\``:`step ${i} (\`${n}\`)`;return new ht(-32e3,`${o} is not allowed in this editor`,i==null?{reason:"not-allowed",command:n}:{reason:"not-allowed",command:n,step:i})}function QR(n,i,o){return i.findIndex(r=>Yt(n,`command:${r.command}`,o(r.command)).denied)}function JR(n,i){return i.flatMap(o=>{const r=Yt(n,`command:${o.id}`,o.menu);return r.hostHidden?[]:[r.hostDisabled?{...o,enabled:!1}:o]})}function dx(n,i,o){let r=n,u=null;const f=new Set,h=v=>{r=u?{...v,personal:u}:v;for(const p of f)p()};return{get:()=>r,subscribe:v=>(f.add(v),()=>void f.delete(v)),replace:h,customizable:i!==null,setPersonal:async v=>{const p=[...new Set(v)];u=p,h({...r,personal:p});try{i&&await i(p)}finally{u===p&&(u=null)}},action:o}}const eD=["--kit-primary","--kit-primary-text","--kit-primary-soft"];function $p(n,i=null,o=document.documentElement){if(o.dataset.brand==="kit")for(const u of eD)o.style.removeProperty(u);for(const[u,f]of Object.entries(n.tokens))u.startsWith("--")&&o.style.setProperty(u,f);const r=i!==null&&n.brand!=="host";if(r)for(const[u,f]of Object.entries(RR(i,n.colorScheme)))o.style.setProperty(u,f);o.dataset.brand=r?"kit":"host",o.style.colorScheme=n.colorScheme,o.dataset.colorScheme=n.colorScheme}const Es=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform);function tD(n){return new Promise(i=>{const o=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`,r=()=>window.parent.postMessage({kitionKitUi:1,ready:Od,id:o},"*"),u=f=>{if(f.source!==window.parent)return;if(Gw(f.data)&&f.data.hello===Od){r();return}if(!Pw(f.data)||f.data.protocol!==Od||!f.ports[0]||f.data.id!=null&&f.data.id!==o)return;window.removeEventListener("message",u);const h=new Kw(f.ports[0],"k");h.handle("ui/initialize",v=>new Promise((p,y)=>{let m=v.document.bytes??null;const x=v.capabilities.includes("replica")&&(n.capabilities??[]).includes("replica"),b={read:async S=>{if(m&&S===v.document.path){const L=m;return m=null,{bytes:L,stamp:v.document.version??null}}const z=await h.request("host/read",{path:S});return{bytes:z.bytes,stamp:z.version}},stamp:async S=>(await h.request("host/stamp",{path:S})).version,write:async(S,z,L)=>{const K=z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength);return(await h.request("host/write",{path:S,bytes:K,mode:"save",...L===void 0?{}:{expected:L}},{transfer:!0})).version||null},lend:()=>v.document.lend??null};x&&(b.replicaRead=async S=>{const z=await h.request("host/replicaRead",{path:S});return z&&z.snapshot instanceof ArrayBuffer&&z.blobs instanceof ArrayBuffer&&typeof z.fileStamp=="string"?z:null},b.replicaWrite=async(S,z)=>{await h.request("host/replicaWrite",{path:S,...z},{transfer:!0})});const C=DR(n.brand);$p(v.theme,C);const E=dx(qp(v.ui),v.capabilities.includes("customize")?async S=>void await h.request("host/customize",{personal:{hide:S}}):null,S=>h.notify("ui/action",S));h.on("ui/configure",S=>E.replace(qp(S==null?void 0:S.ui))),document.documentElement.lang=v.locale;const w=v.shortcuts,T=S=>{w.some(z=>Pg(z,S,Es()))&&(S.preventDefault(),S.stopPropagation(),h.notify("host/shortcut",{key:S.key,code:S.code,meta:S.metaKey,ctrl:S.ctrlKey,shift:S.shiftKey,alt:S.altKey}))};window.addEventListener("keydown",T,!0),h.on("ui/theme",({theme:S})=>$p(S,C)),h.on("ui/locale",({locale:S})=>{document.documentElement.lang=S}),i({peer:h,init:v,files:b,kitFiles:IR(h,v.capabilities),replica:x,readOnly:v.document.readOnly===!0,view:Zv(v.document.view),permissions:Xw(v.document.permissions),watermark:Yw(v.document.watermark),onReveal:S=>h.on("document/reveal",z=>{const L=Zv(z==null?void 0:z.view);L&&S(L)}),ui:E,brand:C,kit:{id:n.id,version:n.version},display:rx(n.display),declaration:n.ui??null,opened:(S=[])=>{const z=[...n.capabilities??["ai"],...n.ui?["ui-config"]:[]];p({kit:{id:n.id,version:n.version},capabilities:[...z,...S.filter(L=>!z.includes(L))]})},failed:S=>y(S),changed:S=>h.notify("document/changed",S),notify:S=>h.notify("host/notify",S),exportFile:async(S,z)=>{const L=z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength);return(await h.request("host/write",{path:S,bytes:L,mode:"export"},{transfer:!0})).path},openAgent:async S=>{await h.request("host/openAgent",S?{prompt:S}:{})},pick:async(S,z)=>(await h.request("host/pick",{purpose:S,accept:z})).path,pickLinks:async S=>(await h.request("links/pick",S)).links,hasService:S=>v.capabilities.includes(`${Xv}${S}`),service:async(S,z)=>{if(!v.capabilities.includes(`${Xv}${S}`))throw new ht(-32e3,`the host does not serve ${S}`,{reason:"not-allowed"});const L=S==="file.saveAs";return await h.request("host/service",{service:S,params:z},L?{transfer:!0}:void 0)},commentAnchors:v.capabilities.includes("comment-anchors"),onComments:S=>h.on("comments/show",z=>{const L=Array.isArray(z==null?void 0:z.threads)?z.threads:[];S(L.flatMap(K=>{const X=Yv(K==null?void 0:K.anchor);return X&&typeof(K==null?void 0:K.id)=="string"?[{id:K.id,anchor:X,resolved:K.resolved===!0,count:Number.isSafeInteger(K.count)?K.count:0}]:[]}))}),activateComment:S=>h.notify("comments/activated",{id:S}),locateComments:S=>h.handle("comments/locate",async z=>{const L=(Array.isArray(z==null?void 0:z.anchors)?z.anchors:[]).map(re=>Yv(re)),K=await S(L.filter(re=>re!==null));let X=0;return{found:L.map(re=>re?K[X++]===!0:!1)}}),close:()=>{window.removeEventListener("keydown",T,!0),h.close()}})}))};window.addEventListener("message",u),r()})}class ls extends Error{constructor(i){super(i.message),this.data=i,this.name="KitModelError"}}const aD=new Set(["edit.undo","undo"]),nD=new Set(["edit.redo","redo"]),vn="read-only",yl=Object.freeze({viewingGroups:Object.freeze(["view","select","selection","go","navigate","help","playback","transport","playhead","caret"]),viewingCommands:Object.freeze(["markers.goNext","markers.goPrev","markers.goToIn","markers.goToOut","source.open","source.setPlayhead","source.inspect","sequence.open","sequence.moveTab","sequence.inspect","sequence.matchFrame","sequence.revealInProject"]),editingCommands:Object.freeze(["edit.undo","edit.redo","undo","redo","u"]),documentSettings:Object.freeze(["view.freezePanes","view.freezeTopRow","view.freezeFirstColumn","view.unfreezePanes","view.gridlines","view.headings","view.showZeros","view.rightToLeft","view.newWindow","view.addGuide","view.clearGuides","view.importGuides","view.moveGuide","view.removeGuide","view.lookAtSelected","view.lookAtAll","view.reset3DView","view.newGuide","view.newGuideLayout","view.newGuidesFromShape","view.deleteGuide","view.clearCanvasGuides","view.clearSelectedArtboardGuides","view.clearSlices","view.lockSlices","select.toWorkPath","select.convertToShape","select.saveSelection","select.float","select.drop","view.guides.make","view.guides.release","view.guides.clear","view.guides.lock","view.saved.new","view.saved.edit","select.save"]),editingGroups:Object.freeze(["file"]),fileOutputs:/^file\.(export|saveCopy|saveACopy|print)/,refusedTools:Object.freeze(["pointer","toolKey","toolText"]),refusedMethods:Object.freeze(["executeAs","undo","redo","importChanges","addBlobs"])});function lD(n){const{id:i}=n,o=i.split(".")[0]??"";return yl.editingCommands.includes(i)||yl.documentSettings.includes(i)?!0:yl.editingGroups.includes(o)?!yl.fileOutputs.test(i):yl.viewingCommands.includes(i)||yl.viewingGroups.includes(o)?!1:n.mutates===!0}function iD(n,i){return!i||!n?new Set:new Set(n.filter(o=>typeof o=="string"&&!yl.editingCommands.includes(o)&&!yl.editingGroups.includes(o.split(".")[0]??"")))}function fx(n,i){return i.size===0?null:aD.has(n)?"undo":nD.has(n)?"redo":null}function Rc(n,i){return lD(n)&&!i.has(n.id)&&fx(n.id,i)===null}function rD(n,i){return i.size>0&&Rc(n,i)}class Dc extends Error{constructor(o,r){super(r??`${o} is not allowed: the document is read-only`);pt(this,"reason",vn);this.name="ReadOnlyError"}}function hx(n){return n instanceof Dc||n instanceof Error&&n.reason===vn}const C0="unsupported";class xf extends Error{constructor(o,r){super(o);pt(this,"reason",Hc);this.errors=r,this.name="KitParamsError"}}class mx extends Error{constructor(i,o){super(o),this.reason=i,this.name="KitEngineRefusal"}}const Qd={width:0,height:0,pinned:{left:0,top:0},revision:0,dirty:!1,canUndo:!1,canRedo:!1,inspected:{}};class ys{constructor(i,o){pt(this,"closed",!1);pt(this,"pending",new Map);pt(this,"nextId",1);pt(this,"failure",null);this.worker=i,this.info=o}static async open(i,o,r,u=null,f=null,h=!1,v=!1){const p=new Worker(new URL(""+new URL(""+new URL("kitEngine.worker-9PIHJagj-Dwbox6hp.js",import.meta.url).href,import.meta.url).href,import.meta.url),{type:"module"}),y=new ys(p,Qd);p.onmessage=m=>y.settle(m.data),p.onerror=m=>y.fail(new Error(m.message||"the kit engine stopped"));try{const m=f==null?void 0:f.stored;return y.info=await y.call({method:"open",manifest:i,name:o,bytes:r,lent:u,replica:f,readOnly:h,canComment:v},m?[r,m.snapshot,m.blobs]:[r]),y}catch(m){throw y.dispose(),m}}static async create(i,o,r,u,f=null,h=!1){const v=new Worker(new URL(""+new URL(""+new URL("kitEngine.worker-9PIHJagj-Dwbox6hp.js",import.meta.url).href,import.meta.url).href,import.meta.url),{type:"module"}),p=new ys(v,Qd);v.onmessage=y=>p.settle(y.data),v.onerror=y=>p.fail(new Error(y.message||"the kit engine stopped"));try{return p.info=await p.call({method:"create",manifest:i,name:o,width:r,height:u,lent:f,readOnly:h}),p}catch(y){throw p.dispose(),y}}get width(){return this.info.width}get height(){return this.info.height}get pinned(){return this.info.pinned}settle(i){const o=this.pending.get(i.id);o&&(this.pending.delete(i.id),i.ok===!0?o.resolve(i.value):i.data?o.reject(new ls(i.data)):i.reason===vn?o.reject(new Dc("",i.error)):i.reason===Hc?o.reject(new xf(i.error,i.errors??[])):i.reason===C0?o.reject(new mx(C0,i.error)):o.reject(new Error(i.error)))}fail(i){this.failure=i;for(const o of this.pending.values())o.reject(i);this.pending.clear()}call(i,o=[]){if(this.failure)return Promise.reject(this.failure);const r=this.nextId++;return new Promise((u,f)=>{this.pending.set(r,{resolve:u,reject:f}),this.worker.postMessage({id:r,request:i},o)})}async execute(i,o={},r,u){const f={method:"execute",command:i,params:o,...r?{origin:r}:{},...u?{agent:{state:u.state.state,set:u.set}}:{}},{result:h,info:v,state:p,closed:y}=await this.call(f);return y&&(this.closed=!0,this.info=Qd),v&&(this.info=v),u&&p!==void 0&&(u.state.state=p),h}async render(i,o,r,u,f){return new Uint8Array(await this.call({method:"render",x:i,y:o,scale:r,width:u,height:f}))}async renderArea(i,o,r,u,f,h){return new Uint8Array(await this.call({method:"renderArea",x0:i,y0:o,x1:r,y1:u,width:f,height:h}))}async commands(){return await this.call({method:"commands"})}async disabledCommands(){return await this.call({method:"disabledCommands"})}async check(){return await this.call({method:"check"})}async lendHandle(i,o){await this.call({method:"lendHandle",handle:i,bytes:o},o?[o]:[])}async takeOutput(i,o){return new Uint8Array(await this.call({method:"takeOutput",id:i,...o===void 0?{}:{max:o}}))}async save(){return(await this.serialize()).bytes}async serialize(){const i=await this.call({method:"save"});return{bytes:new Uint8Array(i.bytes),revision:i.revision}}async saveWithReplica(){const i=await this.call({method:"saveWithReplica"});return{bytes:new Uint8Array(i.bytes),replica:i.replica,revision:i.revision}}async replicaVersion(){return await this.call({method:"replicaVersion"})}async replicaExport(i){return await this.call({method:"replicaExport",since:i})}async replicaImport(i,o){const{damage:r,info:u}=await this.call({method:"replicaImport",changes:i,blobs:o});return this.info=u,r}async replicaDocId(){return await this.call({method:"replicaDocId"})}async replicaMerge(i,o,r,u){const{summary:f,info:h}=await this.call({method:"replicaMerge",changes:i,blobs:o,origin:r,schema:u});return this.info=h,f}async replicaCompare(i,o){return await this.call({method:"replicaCompare",changes:i,schema:o})}async modelVersion(){return await this.call({method:"modelVersion"})}async premiseRead(i,o){return this.call({method:"premiseRead",name:i,params:o})}async inspectAt(i,o){return await this.call({method:"inspectAt",context:i,part:o})}async modelChanges(i,o){return await this.call({method:"modelChanges",since:i,schema:o})}async modelDescribe(i){return await this.call({method:"modelDescribe",schema:i})}async agentReply(i){return await this.call({method:"modelReply",value:i})}async modelBatch(i,o){const{answer:r,info:u}=await this.call({method:"modelBatch",request:i,schema:o});return this.info=u,r}async markSaved(i){this.info=await this.call({method:"markSaved",revision:i})}async refreshInfo(){return this.info=await this.call({method:"info"}),this.info}async invoke(i,...o){return await this.call({method:"invoke",name:i,args:o})}async tool(i,o=[],r=!1){const{value:u,info:f}=await this.call({method:"tool",name:i,args:o,settled:r});return f&&(this.info=f),{value:u,changed:f!=null}}dispose(){this.worker.terminate(),this.fail(new Error("the document was closed"))}}async function sD(n,i,o,r=!1){if(!n.replicaRead)return null;try{const u=await n.replicaRead(i);if(!u)return null;if(r)return{snapshot:u.snapshot,blobs:u.blobs};const f=o??await n.stamp(i);return f&&u.fileStamp===f?{snapshot:u.snapshot,blobs:u.blobs}:null}catch{return null}}async function oD(n,i,o,r,u){const f=await n.write(i,o,u)||await n.stamp(i).catch(()=>null);if(r&&f&&n.replicaWrite)try{await n.replicaWrite(i,{...r,fileStamp:f})}catch(h){console.warn("[kit] could not store the document replica",h)}return f}function cD(n){const i=n!==null&&typeof n=="object"?n.damage:null;if(i===null||typeof i!="object")return null;const{x0:o,y0:r,x1:u,y1:f}=i;return[o,r,u,f].every(h=>typeof h=="number"&&Number.isFinite(h))&&u>o&&f>r?{x0:o,y0:r,x1:u,y1:f}:null}function uD(){let n={tick:0,damage:null};const i=new Set;return{get:()=>n,subscribe(o){return i.add(o),()=>void i.delete(o)},bump(o){n={tick:n.tick+1,damage:o};for(const r of i)r()}}}const E0=new WeakMap;function dD(n,i){const o=E0.get(n);return o?(o.current=i,()=>{o.current===i&&(o.current=null)}):()=>{}}class fD extends Error{constructor(i){super(`${i} changed on disk since it was opened; merge the change or keep yours before saving`),this.name="FileChangedError"}}const Gp={x0:0,y0:0,x1:0,y1:0},hD=2e3;function mD(n){return n instanceof Error?n.message:String(n)}function vD(n,i,o,r,u,f={}){const h=f.readOnly===!0,v=h&&f.canComment===!0,p=f.replicaMergesFile===!0,y=g.useRef(f.followFile);y.current=f.followFile;const m=g.useRef(null),x=g.useRef(u);x.current=u;const b=g.useRef(null),C=g.useRef(!1),[E,w]=g.useState(null),[T,S]=g.useState(null),[z,L]=g.useState(null),[K,X]=g.useState({revision:0,damage:null}),[re,ae]=g.useState(!1),[de,ge]=g.useState(null),[je,be]=g.useState(null),[Me,Be]=g.useState(!1),[ye,F]=g.useState(!1),[A,H]=g.useState(0),le=g.useRef(null);le.current??(le.current=uD());const ve=le.current,Z=g.useCallback((N=null)=>{const G=m.current;G&&(S(G.info),L(x.current(G.info)),ae(G.info.dirty),X(me=>({revision:me.revision+1,damage:N})))},[]),I=g.useCallback(async N=>{var G;C.current=!0;try{const{bytes:me,stamp:pe}=await n.read(o);if(!N())return;const ke=await sD(n,o,pe,p);if(!N())return;const Re=performance.now(),Pe=o.split("/").filter(Boolean).pop()||o,Ve=await ys.open(i,Pe,me,((G=n.lend)==null?void 0:G.call(n,o))??null,n.replicaWrite?{stored:ke,follow:!0}:null,h,v);if(be(Math.round(performance.now()-Re)),!N()){Ve.dispose();return}const Ke=m.current;m.current=Ve,b.current=pe,w(Ve),F(!1),ge(null),Z(),Ke==null||Ke.dispose()}finally{C.current=!1}},[v,n,i,p,o,h,Z]);g.useEffect(()=>{let N=!0;return I(()=>N).catch(G=>{N&&ge(mD(G))}),()=>{N=!1}},[A,I]),g.useEffect(()=>()=>{var N;(N=m.current)==null||N.dispose(),m.current=null},[o]);const P=g.useRef(new Set),ue=g.useCallback(N=>{P.current.add(N);const G=()=>P.current.delete(N);return N.then(G,G),N},[]),k=g.useCallback(async()=>{for(;P.current.size;)await Promise.allSettled([...P.current])},[]),B=g.useCallback(async(N=()=>!0)=>{const G=m.current;if(!(!G||C.current||!b.current))try{const me=await n.stamp(o);if(!N()||!me||me===b.current||C.current||m.current!==G||(await k(),!N()||C.current||m.current!==G))return;if(G.info.dirty){F(!0);return}const pe=y.current;if(pe){C.current=!0;let ke=!1;try{ke=await pe(G,me)===!0}catch(Re){console.warn("[kit] could not follow the changed file; reopening it",Re)}finally{C.current=!1}if(ke){m.current===G&&(b.current=me,await G.refreshInfo().catch(()=>{}),m.current===G&&Z());return}}N()&&await I(N)}catch{}},[n,I,o,Z,k]);g.useEffect(()=>{let N=!0;const G=window.setInterval(()=>void B(()=>N),hD);return()=>{N=!1,window.clearInterval(G)}},[r,B]);const W=g.useRef(null),ie=g.useCallback(N=>W.current?W.current(N):N(),[]),xe=g.useCallback(async(N,G,me,pe)=>{const ke=m.current;if(!ke)return null;const Re=pe.skipUnchangedPaint?{revision:ke.info.revision,inspected:JSON.stringify(ke.info.inspected)}:null,Pe=await ke.execute(N,G,pe.origin,pe.agent);if(m.current===ke){if(ke.closed)return ke.dispose(),m.current=null,w(null),S(null),L(null),ae(!1),F(!1),Pe;const Ve=pe.refresh??"all",Ke=Re!=null&&ke.info.revision===Re.revision&&JSON.stringify(ke.info.inspected)===Re.inspected;Ve==="all"?Z(Ke?Gp:me):Ve==="repaint"&&ve.bump(me)}return Pe},[Z,ve]),Ce=g.useCallback(async(N,G={},me=null,pe={})=>m.current?ue(ie(()=>xe(N,G,me,pe))):null,[ie,xe,ue]),He=g.useCallback(async(N,G=[],me=!1)=>{const pe=m.current;if(!pe)return null;const ke=pe.info.revision,{value:Re,changed:Pe}=await ue(pe.tool(N,G,me));return m.current===pe&&Pe&&Z(pe.info.revision===ke?Gp:cD(Re)),Re},[Z,ue]);E0.has(He)||E0.set(He,W);const $=g.useCallback(async()=>m.current?m.current.commands():[],[]),te=g.useCallback(async()=>ie(async()=>m.current?m.current.disabledCommands():[]),[ie]),Te=g.useCallback(async()=>{const N=m.current;if(N){if(h)throw new Dc("Save");Be(!0),C.current=!0;try{const G=b.current,me=G?await n.stamp(o).catch(()=>null):null;if(G&&me&&me!==G)throw F(!0),new fD(o);const{bytes:pe,replica:ke,revision:Re}=await ie(async()=>n.replicaWrite?N.saveWithReplica():{...await N.serialize(),replica:null});b.current=await oD(n,o,pe,ke,G),m.current===N&&await N.markSaved(Re),F(!1),Z()}finally{C.current=!1,Be(!1)}}},[n,ie,o,h,Z]),_e=g.useMemo(()=>{const N=()=>{if(!m.current)throw new Error("the document is still opening");return m.current};return{version:()=>N().replicaVersion(),exportChanges:G=>N().replicaExport(G),importChanges:async(G,me)=>{const pe=N(),ke=await pe.replicaImport(G,me);return m.current===pe&&Z(),ke},docId:()=>N().replicaDocId()}},[Z]),J=g.useMemo(()=>{const N=()=>{if(!m.current)throw new Error("the document is still opening");return m.current};return{describe:G=>N().modelDescribe(G),version:()=>ie(()=>N().modelVersion()),changes:(G,me)=>ie(()=>N().modelChanges(G,me)),batch:(G,me)=>ie(async()=>{const pe=N();try{return await pe.modelBatch(G,me)}finally{m.current===pe&&Z()}})}},[ie,Z]),he=g.useMemo(()=>{const N=()=>{if(!m.current)throw new Error("the document is still opening");return m.current};return{open:()=>ie(async()=>{var Ve;const G=N();if(h)throw new Dc("a draft");const me=await G.replicaVersion(),{bytes:pe,replica:ke}=await G.saveWithReplica();if(!ke)throw new Error("the kit's engine keeps no replica to draft on");const Re=o.split("/").filter(Boolean).pop()||o,Pe=pe.slice().buffer;return{engine:await ys.open(i,Re,Pe,((Ve=n.lend)==null?void 0:Ve.call(n,o))??null,{stored:ke,follow:!0},!1),base:me}}),merge:(G,me,pe,ke)=>ie(async()=>{const Re=N();try{return await Re.replicaMerge(G,me,pe,ke)}finally{m.current===Re&&Z()}}),compare:(G,me)=>N().replicaCompare(G,me)}},[n,i,ie,o,h,Z]),Ee=g.useCallback(()=>H(N=>N+1),[]),O=g.useCallback(async N=>{N&&(b.current=N,await n.stamp(o).catch(()=>null)===N&&F(!1))},[n,o]),oe=g.useCallback(async()=>{F(!1);const N=await n.stamp(o).catch(()=>null);N&&(b.current=N)},[n,o]),fe=g.useMemo(()=>({get:ve.get,subscribe:ve.subscribe}),[ve]);return{path:o,manifest:i,doc:E,info:T,state:z,change:K,repaints:fe,dirty:re,failure:de,openMs:je,saving:Me,conflict:ye,run:Ce,tool:He,commands:$,disabledCommands:te,save:Te,replica:_e,model:J,draft:he,reopen:Ee,keepMine:oe,checkFile:B,holdFile:O}}async function z0(n,i){var v;const o=Math.min(1,i/Math.max(1,n.width,n.height)),r=Math.max(1,Math.round(n.width*o)),u=Math.max(1,Math.round(n.height*o)),f=await n.render(0,0,o,r,u),h=document.createElement("canvas");return h.width=r,h.height=u,(v=h.getContext("2d"))==null||v.putImageData(new ImageData(new Uint8ClampedArray(f.buffer,f.byteOffset,f.byteLength),r,u),0,0),h.toDataURL("image/png").replace(/^data:image\/png;base64,/,"")}async function pD(n,i){try{return await z0(n,i)}catch{return null}}const Pp="there is no draft of this document: run the agent with `draft: true` first";class gD{constructor(i){pt(this,"current",null);pt(this,"queue",Promise.resolve());pt(this,"closed",!1);this.host=i}info(){const i=this.current;return i?{state:i.state,revision:i.engine.info.revision}:{state:"none",revision:null}}serial(i){const o=this.queue.then(i,i);return this.queue=o.catch(()=>{}),o}tell(){this.host.changed(this.info())}need(){if(!this.current)throw new Error(Pp);return this.current}engine(i){return this.serial(async()=>{if(this.closed)throw new Error("the document was closed");if(!this.current){if(!i)throw new Error(Pp);const{engine:o,base:r}=await this.host.open();if(this.closed)throw o.dispose(),new Error("the document was closed");this.current={engine:o,base:r,state:"open"},this.tell()}return this.current.engine})}edited(){this.current&&(this.current.state="open",this.tell())}ready(){return this.serial(async()=>(this.need().state="ready",this.tell(),this.info()))}reopen(){return this.serial(async()=>(this.need().state="open",this.tell(),this.info()))}changes(i){return i.engine.replicaExport(i.base.slice(0))}compare(i,o){return this.serial(async()=>{const r=this.need(),{changes:u}=await this.changes(r),f=await this.host.compare(u,o),[h,v]=[await this.host.preview(i),await pD(r.engine,i)];return{summary:f,before:h,after:v}})}merge(i,o){return this.serial(async()=>{const r=this.need(),{changes:u,blobs:f}=await this.changes(r),h=await this.host.merge(u,f,i,o);return this.close(),{merged:!0,summary:h}})}discard(){return this.serial(async()=>(this.close(),this.info()))}close(){const i=this.current;i&&(this.current=null,i.engine.dispose(),this.tell())}attach(){this.closed=!1}dispose(){this.closed=!0;const i=this.current;this.current=null,i==null||i.engine.dispose()}}const yD=[[/^tool-selection$/,hs],[/^tool-page$/,ef],[/^tool-gap$/,NM],[/^tool-(collector|placer)/,Nk],[/^tool-(rect-frame|ellipse-frame|polygon-frame)/,h0],[/^tool-note/,aA],[/^tool-color-theme/,nr],[/^tool-gradient-feather/,rs],[/^tool-(direct|group-select|live-select|perspective-select)/,Ck],[/^tool-magic-wand/,mf],[/^tool-lasso/,FM],[/^tool-(pen|anchor)/,KM],[/^tool-curvature/,uf],[/^tool-(type|touch-type)/,ir],[/^tool-line$/,IM],[/^tool-arc/,Ik],[/^tool-spiral/,Kk],[/^tool-(rect-grid|polar-grid|perspective)/,fs],[/^tool-(rect|rounded-rect|polygon|star|flare)/,Ss],[/^tool-ellipse/,kM],[/^tool-(brush|blob-brush)/,jM],[/^tool-(pencil|smooth|shaper|join|path-eraser)/,lr],[/^tool-eraser?$/,Fc],[/^tool-(scissors|knife|mirror-cut|line-cut|rect-cut)/,qc],[/^tool-(rotate|reflect)/,Vc],[/^tool-scale/,t3],[/^tool-shear/,lf],[/^tool-reshape/,yA],[/^tool-free-transform/,bA],[/^tool-puppet/,c3],[/^tool-(width|warp|twirl|pucker|bloat|scallop|crystallize|wrinkle)/,xA],[/^tool-shape-builder/,Ql],[/^tool-bucket/,ms],[/^tool-mesh/,Ek],[/^tool-gradient/,rs],[/^tool-eyedropper/,Bk],[/^tool-measure/,cr],[/^tool-blend/,rs],[/^tool-artboard/,h0],[/^tool-slice/,RM],[/^tool-move$/,qM],[/^tool-copy$/,_c],[/^tool-offset$/,qT],[/^tool-extend$/,zk],[/^tool-fillet$/,$T],[/^tool-hand/,HM],[/^tool-zoom/,u3]],bD=[[/^dim-?linear$/,qk],[/^dim-?aligned$/,cr],[/^dim-?radius$/,Uk],[/^dim-?diameter$/,KT]];function MD(n,i){var o,r;return(i?(o=bD.find(([u])=>u.test(i)))==null?void 0:o[1]:void 0)??((r=yD.find(([u])=>u.test(n)))==null?void 0:r[1])??Ql}const xD=[[/pivot/,Pc],[/sparkline/,mT],[/chart|graph/,Wl],[/table/,Gc],[/picture|image|photo/,rk],[/\bicons?\b|sticker/,tA],[/shape|drawing/,Ql],[/header/,GM],[/footer/,Rk],[/hyperlink|\blink/,Cc],[/bookmark/,EM],[/equation|formula|function/,ps],[/sum|sigma/,a3],[/symbol|special char/,Ec],[/check ?box|checkbox/,Wk],[/comment|note/,rf],[/text|word ?art|caption/,ir],[/signature/,Yk],[/date|time/,jT],[/number|numbering/,nf],[/video|movie|media/,o3],[/audio|sound|music/,kk],[/qr|barcode/,_k],[/block|object|3d|model/,zM],[/layer/,wc],[/layout|template|theme/,m0],[/page|section|break|sheet|slide/,ek],[/rows?\b/,zc],[/columns?\b/,NM],[/filter/,LM],[/sort/,wM],[/ungroup/,hf],[/group/,af],[/find|search/,jc],[/replace/,QM],[/spell|proof/,Xk],[/translat|language/,ck],[/print/,of],[/paste/,xc],[/copy|duplicate/,_c],[/cut\b/,qc],[/delete|remove|clear/,Tc],[/refresh|recalc/,WM],[/protect|lock/,Ic],[/name|label|tag/,s3],[/show|hide|view/,Uc],[/option|setting|propert/,cf],[/\bfile\b|document/,ef]],SD=[[/^(?:bold)$/,CM],[/^(?:italic)$/,lf],[/^(?:underline)$/,df],[/^(?:strike|strikethrough)$/,i3],[/^(?:subscript)$/,nA],[/^(?:superscript)$/,lA],[/^(?:deselect|none)$/,wp],[/^(?:inverse|invert)$/,VT],[/^(?:pan)$/,HM],[/^(?:measure)$/,cr],[/^(?:collapse)$/,RT],[/^(?:expand)$/,DT],[/^(?:bind|attach)$/,Cc],[/^(?:audit|check|verify|validate)$/,v0],[/^(?:recover|repair)$/,dk],[/^(?:purge)$/,Tc],[/^(?:sketch)$/,lr],[/^(?:read)$/,ET],[/^(?:left)$/,MT],[/^(?:right)$/,dp],[/^(?:up)$/,fp],[/^(?:down)$/,up],[/^(?:home|start)$/,xT],[/^(?:end)$/,wT],[/^(?:lift)$/,HT],[/^(?:extract)$/,LT],[/^(?:shuttle)$/,WT],[/^(?:tick|advance)$/,Cp],[/^(?:batch)$/,wc],[/^(?:redact)$/,d0],[/^(?:reselect)$/,hs],[/^(?:click|tap|press)$/,VM],[/^(?:undo)$/,ff],[/^(?:redo)$/,ZM],[/^(?:save)$/,e3],[/^(?:export|publish)$/,f0],[/^(?:import|place)$/,JT],[/^(?:open|browse)$/,nk],[/^(?:close)$/,Jl],[/^(?:print)$/,of],[/^(?:delete|remove|clear|erase)$/,Tc],[/^(?:duplicate|copy|clone)$/,_c],[/^(?:cut)$/,qc],[/^(?:paste)$/,xc],[/^(?:rename)$/,Ok],[/^(?:find|search|locate)$/,jc],[/^(?:replace)$/,QM],[/^(?:align|distribute)$/,vT],[/^(?:rotate)$/,Vc],[/^(?:flip|mirror|reflect)$/,ak],[/^(?:move|nudge|offset|shift)$/,qM],[/^(?:scale|resize|transform|warp|distort)$/,t3],[/^(?:merge|join|combine|flatten)$/,Sk],[/^(?:split|divide|separate)$/,Zk],[/^(?:group)$/,af],[/^(?:ungroup)$/,hf],[/^(?:lock)$/,Ic],[/^(?:unlock)$/,yk],[/^(?:hide)$/,d0],[/^(?:show|reveal|view)$/,Uc],[/^(?:zoom)$/,u3],[/^(?:play|preview)$/,YM],[/^(?:pause)$/,Dk],[/^(?:stop)$/,Ss],[/^(?:record|capture)$/,YT],[/^(?:render|bake|encode)$/,AM],[/^(?:reset|revert|restore|default)$/,JM],[/^(?:apply|commit|confirm|accept)$/,xs],[/^(?:cancel|reject|discard)$/,Jl],[/^(?:toggle|enable|disable|switch)$/,hA],[/^(?:next|forward)$/,Bc],[/^(?:previous|prev|back)$/,J0],[/^(?:step)$/,Cp],[/^(?:go|jump|seek)$/,dp],[/^(?:trim|crop)$/,RM],[/^(?:insert|add|new|create|make)$/,sf],[/^(?:select|pick)$/,hs],[/^(?:list|inspect|info|get|query|state)$/,UM],[/^(?:convert|change)$/,Vk],[/^(?:sort)$/,wM],[/^(?:filter)$/,LM],[/^(?:link)$/,Cc],[/^(?:unlink)$/,pA],[/^(?:increase|grow|raise)$/,fp],[/^(?:decrease|shrink|lower)$/,up],[/^(?:refresh|reload|update|sync)$/,WM],[/^(?:define|edit|modify|configure)$/,lr],[/^(?:arrange|order|bring|send)$/,u0],[/^(?:snap)$/,bk],[/^(?:smooth|simplify)$/,uf],[/^(?:stroke|outline)$/,vs],[/^(?:fill)$/,ms],[/^(?:mask)$/,wp]],Kp=[[/\b(?:heading|title)\b/,BM],[/\b(?:level|outline|tree)\b/,pk],[/\b(?:code)\b/,FT],[/\b(?:direction)\b/,ST],[/\b(?:waypoints?|bends?)\b/,c3],[/\b(?:stats|statistics|performance)\b/,lk],[/\b(?:mixer)\b/,Id],[/\b(?:clipboard)\b/,BT],[/\b(?:cache)\b/,pp],[/\b(?:values?)\b/,nf],[/\b(?:autofill|series)\b/,SM],[/\b(?:flash)\b/,wA],[/\b(?:painter)\b/,$M],[/\b(?:field|form)\b/,dA],[/\b(?:tab order)\b/,xp],[/\b(?:smart ?art|diagram)\b/,Ak],[/\b(?:action button|button)\b/,VM],[/\b(?:pen)\b/,KM],[/\b(?:pencil)\b/,lr],[/\b(?:highlighter)\b/,_M],[/\b(?:word)\b/,SA],[/\b(?:caret|cursor)\b/,uA],[/\b(?:distance|perimeter|area)\b/,cr],[/\b(?:work area)\b/,AM],[/\b(?:brush|paint)\b/,jM],[/\b(?:gradient)\b/,rs],[/\b(?:transparen|opacity|blend)\b/,rs],[/\b(?:colou?rs?|swatch|palette)\b/,nr],[/\b(?:font|character|typograph|text|type)\b/,ir],[/\b(?:para(graph)?)\b/,Hk],[/\b(?:presets?|styles?)\b/,r3],[/\b(?:layers?)\b/,wc],[/\b(?:paths?|anchor|point|bezier|curve)\b/,uf],[/\b(?:camera)\b/,TT],[/\b(?:track)\b/,zc],[/\b(?:clip|footage|sequence|timeline|multicam)\b/,bp],[/\b(?:markers?|bookmark)\b/,EM],[/\b(?:keys?|keyframe)\b/,DM],[/\b(?:channel)\b/,Id],[/\b(?:perspective|3d)\b/,zM],[/\b(?:grid|guide)\b/,fs],[/\b(?:frame|artboard)\b/,h0],[/\b(?:data|database|source)\b/,pp],[/\b(?:queue)\b/,xp],[/\b(?:project)\b/,Mp],[/\b(?:comp(osition)?)\b/,wc],[/\b(?:playhead|time|duration)\b/,_T],[/\b(?:audio|sound|volume)\b/,MA],[/\b(?:video)\b/,o3],[/\b(?:preferences|settings|options)\b/,cf],[/\b(?:shape|rectangle|ellipse|polygon)\b/,Ql],[/\b(?:light|lamp)\b/,fk],[/\b(?:solid)\b/,Ss],[/\b(?:null)\b/,Sc],[/\b(?:adjustment)\b/,Id],[/\b(?:footage|media)\b/,bp],[/\b(?:folder)\b/,Mp],[/\b(?:mosaic)\b/,tf],[/\b(?:gradient mesh|mesh)\b/,fs],[/\b(?:line|arrow)\b/,Tk],[/\b(?:comment|note)\b/,rf],[/\b(?:page)\b/,ef],[/\b(?:cell|row|column)\b/,Gc],[/\b(?:formula|function)\b/,ps],[/\b(?:symbol)\b/,IT],[/\b(?:effect|filter)\b/,mf],[/\b(?:selection)\b/,hs]],bs=UT,Yp=/^(?:insert|add|new|create|make)$/,vx=new Map;function wD(n){for(const[i,o]of Object.entries(n))vx.set(i,o)}function sr(n){var v,p,y,m,x;const i=vx.get(n.id);if(i)return i;const o=b=>b.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[._-]/g," ").toLowerCase(),r=o(n.id.split(".").pop()??"").split(" ")[0],u=((v=(n.title??"").trim().split(/\s+/)[0])==null?void 0:v.toLowerCase())??"",f=`${o(n.id)} ${(n.title??"").toLowerCase()}`;if(Yp.test(r)||Yp.test(u)){const b=`${o(n.id.split(".").pop()??"")} ${(n.title??"").toLowerCase()}`,C=(p=Kp.find(([E])=>E.test(b)))==null?void 0:p[1];if(C)return C}return((y=SD.find(([b])=>b.test(r)||b.test(u)))==null?void 0:y[1])||(((m=Kp.find(([b])=>b.test(f)))==null?void 0:m[1])??((x=xD.find(([b])=>b.test(f)))==null?void 0:x[1])??bs)}function Qc(n){return Object.values(n.schema??{}).some(i=>i.required)}const CD=6,Xp=n=>typeof n=="string"?n:JSON.stringify(n);function ED(n,i){var o;return i!==void 0?Xp(i):n.default!==void 0?Xp(n.default):(o=n.enum)!=null&&o.length?n.required?String(n.enum[0]):"":n.type==="boolean"?"false":""}function zD(n,i){switch(n.type){case"number":case"integer":return i.trim()===""?void 0:Number(i);case"boolean":return i==="true";case"string":return i===""?void 0:i;default:if(i.trim()==="")return;try{return JSON.parse(i)}catch{return i}}}function jD({command:n,onRun:i,onClose:o,labels:r,values:u={},title:f}){const h=n.schema??{},[v,p]=g.useState(()=>Object.fromEntries(Object.entries(h).map(([S,z])=>[S,ED(z,u[S])]))),y=Object.entries(h),m=y.length>CD,x=([S,z])=>!m||z.required||u[S]!==void 0,b=y.filter(x),C=y.filter(S=>!x(S)),E=([S,z])=>{var X;const L=re=>p(ae=>({...ae,[S]:re})),K=`param-${S}`;return[s.jsxs("label",{htmlFor:K,title:z.description,children:[S,z.required?s.jsx("span",{title:r.required,children:" *"}):null]},`${S}-label`),(X=z.enum)!=null&&X.length?s.jsxs("select",{id:K,className:"kui-field",value:v[S],onChange:re=>L(re.target.value),children:[z.required?null:s.jsx("option",{value:""}),z.enum.map(re=>s.jsx("option",{value:String(re),children:String(re)},String(re)))]},S):z.type==="boolean"?s.jsx("input",{id:K,type:"checkbox",checked:v[S]==="true",onChange:re=>L(String(re.target.checked))},S):s.jsx("input",{id:K,className:"kui-field",type:z.type==="number"||z.type==="integer"?"number":"text",value:v[S],placeholder:z.description,onChange:re=>L(re.target.value)},S)]},w=Object.entries(h).some(([S,z])=>z.required&&(v[S]??"").trim()===""),T=()=>{const S={};for(const[z,L]of Object.entries(h)){const K=zD(L,v[z]??"");K!==void 0&&(S[z]=K)}i(S)};return s.jsx(Cs,{title:f??n.title,onClose:o,actions:s.jsxs(s.Fragment,{children:[s.jsx(De,{onClick:o,children:r.cancel}),s.jsx(De,{variant:"primary",disabled:w,onClick:T,"data-testid":"command-dialog-run",children:r.run})]}),children:s.jsxs("form",{onSubmit:S=>{S.preventDefault(),w||T()},children:[s.jsx("div",{className:"kui-param-grid",children:b.map(E)}),C.length?s.jsxs("details",{children:[s.jsx("summary",{children:r.more??"More options"}),s.jsx("div",{className:"kui-param-grid",children:C.map(E)})]}):null,s.jsx("button",{type:"submit",hidden:!0})]})})}function TD(n){const i=document.activeElement;return!i||i===n?!1:i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement||i instanceof HTMLElement&&i.isContentEditable}function kD({active:n,onText:i,onKey:o}){const r=g.useRef(null),u=g.useRef(!1);g.useEffect(()=>{if(!n)return;let h;const v=()=>{var m;h=void 0,document.hasFocus()&&!TD(r.current)&&((m=r.current)==null||m.focus({preventScroll:!0}))};v();const p=()=>{h!==void 0&&cancelAnimationFrame(h),h=requestAnimationFrame(v)},y=m=>{if(document.activeElement!==r.current)return;const x=m.target instanceof Element?m.target.closest("button"):null;x&&!x.disabled&&m.preventDefault()};return window.addEventListener("pointerup",p),window.addEventListener("mousedown",y,!0),()=>{window.removeEventListener("pointerup",p),window.removeEventListener("mousedown",y,!0),h!==void 0&&cancelAnimationFrame(h)}},[n]);const f=()=>{var v;const h=((v=r.current)==null?void 0:v.value)??"";r.current&&(r.current.value=""),h&&i(h)};return s.jsx("textarea",{ref:r,className:"kui-text-sink","aria-hidden":"true",tabIndex:-1,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,onCompositionStart:()=>{u.current=!0},onCompositionEnd:()=>{u.current=!1,f()},onInput:()=>{u.current||f()},onKeyDown:h=>{if(u.current||h.nativeEvent.isComposing||h.key==="Process")return;const v=h.metaKey||h.ctrlKey;h.key.length===1&&!v||o(h)&&h.preventDefault()},"data-testid":"kit-text-sink"})}function px(n,i){const o=[i,i.split("-")[0],"en-US"].map(r=>{var u;return n[r]??((u=Object.entries(n).find(([f])=>f.split("-")[0]===r))==null?void 0:u[1])}).filter(r=>!!r);return(r,u)=>{var h;const f=((h=o.find(v=>r in v))==null?void 0:h[r])??r;return u?f.replace(/\{(\w+)\}/g,(v,p)=>p in u?String(u[p]):v):f}}const AD=new Set(["Cmd+N","Cmd+W","Cmd+O","Cmd+P","Cmd+Q","Cmd+,","Cmd+S","Cmd+Shift+S","Cmd+T","Cmd+."]),ND=AD,Zp={"[":"BracketLeft","]":"BracketRight",",":"Comma",".":"Period","/":"Slash","\\":"Backslash","-":"Minus","=":"Equal",";":"Semicolon","'":"Quote","`":"Backquote"};function gx(){return typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform)}function Wp(n,i,o=gx(),r=!1){const u=n.split("+"),f=u.length>1&&u[u.length-1]===""?"+":u.pop()??"",h=new Set(u.filter(Boolean)),v=h.has("Cmd"),p=o?i.metaKey:i.ctrlKey,y=o?i.ctrlKey:!1;return v!==p||h.has("Ctrl")!==y||h.has("Shift")!==i.shiftKey||h.has("Alt")!==i.altKey?!1:/^[A-Za-z]$/.test(f)?i.code===`Key${f.toUpperCase()}`:/^[0-9]$/.test(f)?i.code===`Digit${f}`:Zp[f]?i.code===Zp[f]:f==="Delete"?i.key==="Delete"||!r&&i.key==="Backspace":i.key===f}function RD(n){return!n||ND.has(n)?!1:n.includes("+")||/^(Delete|Backspace|PageUp|PageDown|F[0-9]{1,2})$/.test(n)}function DD(n,i,o=gx()){const r=n.filter(u=>RD(u.shortcut));return r.find(u=>Wp(u.shortcut,i,o,!0))??r.find(u=>Wp(u.shortcut,i,o))}const Bn={id:"Hand",cursor:"grab",begin:n=>{let i={x:n.clientX,y:n.clientY};return{move:(o,{viewport:r})=>{r.panBy(o.clientX-i.x,o.clientY-i.y),i={x:o.clientX,y:o.clientY}}}}},Jd=8e6,OD=33554432,Qp=8192,LD=[.5,.25,0],Jp=32,HD=.01,BD=64,hn=8;function eg(n,i,o,r){const u=(h,v)=>({pinned:!1,off:i,s0:h,s1:o,d0:v,d1:i+o/r});if(n<=0)return[u(0,i)];const f=Math.min(o,n*r);return[{pinned:!0,off:0,s0:0,s1:f,d0:0,d1:f/r},u(f,n+i)].filter(h=>h.s1>h.s0&&h.d1>h.d0)}function e0(n,i,o,r){const u=[];for(const f of eg(i.top,n.y,r,n.zoom))for(const h of eg(i.left,n.x,o,n.zoom))u.push({pinX:h.pinned,pinY:f.pinned,offX:h.off,offY:f.off,clip:{x0:h.s0,y0:f.s0,x1:h.s1,y1:f.s1},area:{x0:h.d0,y0:f.d0,x1:h.d1,y1:f.d1}});return u}function tg(n,i,o){return new ImageData(new Uint8ClampedArray(n.buffer,n.byteOffset,n.byteLength),i,o)}function ic(n,i,o){return Math.min(o,Math.max(i,n))}function ag(n){return Math.min(BD,Math.max(HD,n))}function _D(n){const i=document.createElement("canvas");i.width=hn*2,i.height=hn*2;const o=i.getContext("2d");return o?(o.fillStyle="#ffffff",o.fillRect(0,0,hn*2,hn*2),o.fillStyle="#e8e8ec",o.fillRect(0,0,hn,hn),o.fillRect(hn,hn,hn,hn),n.createPattern(i,"repeat")):null}class FD{constructor(i,o,r,u,f=!0,h=()=>{}){pt(this,"view",{zoom:1,x:0,y:0});pt(this,"decorate",null);pt(this,"frames",[]);pt(this,"held",null);pt(this,"pattern",null);pt(this,"settle");pt(this,"moves",0);pt(this,"rendering",!1);pt(this,"renderAgain",!1);pt(this,"pendingDamage",null);pt(this,"disposed",!1);pt(this,"generation",0);pt(this,"failed",!1);pt(this,"fitted",null);pt(this,"laidOut",null);pt(this,"panBounds",null);this.canvas=i,this.doc=o,this.backdrop=r,this.onChange=u,this.framed=f,this.onRender=h}invalidate(){this.pendingDamage=null,this.drop(),this.rendering&&(this.renderAgain=!0)}drop(){this.generation+=1}dispose(){var i;(i=this.settle)==null||i.call(this),this.settle=void 0,this.disposed=!0,this.frames=[]}get size(){return{width:this.canvas.clientWidth,height:this.canvas.clientHeight,dpr:window.devicePixelRatio||1}}get pins(){const i=this.doc.pinned;return{left:Math.max(0,(i==null?void 0:i.left)??0),top:Math.max(0,(i==null?void 0:i.top)??0)}}toScreen(i,o){const{left:r,top:u}=this.pins,f=this.shown,{zoom:h}=f;return{x:(i<r?i:i-f.x)*h,y:(o<u?o:o-f.y)*h}}toImage(i,o){const r=this.canvas.getBoundingClientRect(),{left:u,top:f}=this.pins,h=this.shown,v=(i-r.left)/h.zoom,p=(o-r.top)/h.zoom;return{x:v<u?v:h.x+v,y:p<f?p:h.y+p}}fit(){this.fitArea({x0:0,y0:0,x1:this.doc.width,y1:this.doc.height})}fitArea(i){const{width:o,height:r}=this.size,u=i.x1-i.x0,f=i.y1-i.y0;if(!o||!r||u<=0||f<=0)return;const h=ag(Math.min((o-Jp*2)/u,(r-Jp*2)/f));this.setView({zoom:h,x:i.x0+u/2-o/2/h,y:i.y0+f/2-r/2/h},{...i})}resized(){const{width:i,height:o}=this.size,r=this.laidOut;if(!i||!o||(this.laidOut={width:i,height:o},!r||r.width===i&&r.height===o))return;if(this.fitted){this.fitArea(this.fitted);return}const{left:u,top:f}=this.pins;if(u>0||f>0)return;const{zoom:h}=this.view,v=this.panBounds,p=(y,m)=>m!==void 0&&Math.abs(y-m)<1e-6;this.setView({zoom:h,x:p(this.view.x,v==null?void 0:v.x0)?this.view.x:this.view.x+(r.width-i)/2/h,y:p(this.view.y,v==null?void 0:v.y0)?this.view.y:this.view.y+(r.height-o)/2/h})}zoomTo(i,o,r){const u=this.canvas.getBoundingClientRect(),f=o??u.left+u.width/2,h=r??u.top+u.height/2,v=this.toImage(f,h),p=ag(i),{left:y,top:m}=this.pins;this.setView({zoom:p,x:v.x<y?this.view.x:v.x-(f-u.left)/p,y:v.y<m?this.view.y:v.y-(h-u.top)/p})}panTo(i,o){this.setView({...this.view,x:i,y:o})}panBy(i,o){this.setView({...this.view,x:this.view.x-i/this.view.zoom,y:this.view.y-o/this.view.zoom})}setPanBounds(i){const o=this.panBounds;o===i||o&&i&&o.x0===i.x0&&o.y0===i.y0&&o.x1===i.x1&&o.y1===i.y1||(this.panBounds=i?{...i}:null,this.setView(this.view,this.fitted))}setView(i,o=null){this.moves+=1,this.fitted=o;const{left:r,top:u}=this.pins,f=this.shown,h=this.panBounds,{width:v,height:p}=this.size;if(h&&v>0&&p>0){const y=(m,x,b,C)=>C>=b-x?(x+b-C)/2:Math.max(x,Math.min(b-C,m));i={...i,x:y(i.x,h.x0,h.x1,v/i.zoom),y:y(i.y,h.y0,h.y1,p/i.zoom)}}if(this.view={zoom:i.zoom,x:r>0?Math.max(0,i.x):i.x,y:u>0?Math.max(0,i.y):i.y},i=this.view,this.schedule(),i.zoom===f.zoom&&this.frames.length&&!this.covers(i)){this.held=f;return}this.held=null,this.draw(),this.onChange(i,null)}get shown(){return this.held??this.view}release(){!this.held||this.disposed||(this.held=null,this.draw(),this.onChange(this.view,null))}covers(i){const{width:o,height:r}=this.size;return!o||!r?!0:e0(i,this.pins,o,r).every(u=>{const f=Math.max(0,u.area.x0),h=Math.max(0,u.area.y0),v=Math.min(this.doc.width,u.area.x1),p=Math.min(this.doc.height,u.area.y1);if(v<=f||p<=h)return!0;const y=this.frames.find(m=>m.pinX===u.pinX&&m.pinY===u.pinY);return!!y&&y.x<=f+.5&&y.y<=h+.5&&y.x+y.width>=v-.5&&y.y+y.height>=p-.5})}schedule(){if(this.settle!==void 0||this.disposed)return;const i=()=>{this.settle=void 0,this.render()};if(window.requestAnimationFrame){const o=window.requestAnimationFrame(i);this.settle=()=>window.cancelAnimationFrame(o)}else{const o=window.setTimeout(i,16);this.settle=()=>window.clearTimeout(o)}}async render(){var f;if((f=this.settle)==null||f.call(this),this.settle=void 0,this.disposed)return!1;if(this.rendering)return this.renderAgain=!0,!1;this.rendering=!0;const i=this.generation,o=this.moves;let r=!1;try{r=await this.renderNow(i),r&&(this.failed=!1,this.onRender(null))}catch(h){!this.disposed&&i===this.generation&&o===this.moves&&(this.failed=!0,this.onRender(h))}finally{this.rendering=!1}if(o!==this.moves&&(this.renderAgain=!0),!r&&!this.renderAgain&&this.release(),this.renderAgain&&!this.disposed)return this.renderAgain=!1,this.render();const u=this.pendingDamage;return this.pendingDamage=null,u&&!this.disposed&&await this.renderArea(u),r}async patch(i){if(this.disposed)return!1;if(this.rendering){const o=this.pendingDamage;return this.pendingDamage=o?{x0:Math.min(o.x0,i.x0),y0:Math.min(o.y0,i.y0),x1:Math.max(o.x1,i.x1),y1:Math.max(o.y1,i.y1)}:i,!1}return this.renderArea(i)}async renderNow(i){const{width:o,height:r,dpr:u}=this.size;if(!o||!r)return!1;const f=performance.now(),h=this.view,v=[];let p=0,y=0;for(const x of e0(h,this.pins,o,r)){const b=await this.renderPane(x,u);b&&(v.push(b),p=Math.max(p,b.bitmap.width),y+=b.bitmap.height)}if(this.disposed||i!==this.generation)return!1;this.frames=v,this.held=h.zoom===this.view.zoom&&!this.covers(this.view)?h:null;const m=Math.round(performance.now()-f);return this.draw(),v.length&&this.onChange(this.shown,{renderMs:m,frameWidth:p,frameHeight:y}),!0}async renderPane(i,o){var w;const r=this.view.zoom*o,u=T=>{const S=i.pinX?0:(i.area.x1-i.area.x0)*T,z=i.pinY?0:(i.area.y1-i.area.y0)*T;return{x0:Math.max(0,Math.floor(i.area.x0-S)),y0:Math.max(0,Math.floor(i.area.y0-z)),x1:Math.min(this.doc.width,Math.ceil(i.area.x1+S)),y1:Math.min(this.doc.height,Math.ceil(i.area.y1+z))}},f=T=>(T.x1-T.x0)*(T.y1-T.y0)*Math.min(1,r)**2*Math.max(1,r)**2<=Jd,{x0:h,y0:v,x1:p,y1:y}=LD.map(u).find(T=>f(T))??u(0);if(p<=h||y<=v)return null;let m,x,b,C;if(r<1){let T=Math.max(1,Math.floor(1/r));for(;(p-h)/T*((y-v)/T)>Jd;)T+=1;b=Math.ceil((p-h)/T),C=Math.ceil((y-v)/T),x=await this.doc.renderArea(h,v,h+b*T,v+C*T,b,C),m={x:h,y:v,width:b*T,height:C*T,scale:1/T}}else{let T=r;const S=(p-h)*(y-v)*T*T,z=u(0),L=Math.max(Jd,Math.min(OD,(z.x1-z.x0)*(z.y1-z.y0)*r*r));S>L&&(T=Math.max(1,T*Math.sqrt(L/S))),T=Math.max(1,Math.min(T,Qp/(p-h),Qp/(y-v))),b=Math.max(1,Math.ceil((p-h)*T)),C=Math.max(1,Math.ceil((y-v)*T)),x=await this.doc.render(h,v,T,b,C),m={x:h,y:v,width:b/T,height:C/T,scale:T}}const E=document.createElement("canvas");return E.width=b,E.height=C,(w=E.getContext("2d"))==null||w.putImageData(tg(x,b,C),0,0),{bitmap:E,...m,pinX:i.pinX,pinY:i.pinY}}async renderArea(i){if(this.disposed)return!1;const o=this.frames;if(!o.length||this.rendering||this.failed)return this.render();const r=o.flatMap(y=>{const m=y.bitmap.width/y.width,x=y.bitmap.height/y.height,b=ic(Math.floor((i.x0-y.x)*m),0,y.bitmap.width),C=ic(Math.floor((i.y0-y.y)*x),0,y.bitmap.height),E=ic(Math.ceil((i.x1-y.x)*m),0,y.bitmap.width),w=ic(Math.ceil((i.y1-y.y)*x),0,y.bitmap.height);return E>b&&w>C?[{frame:y,sx:m,sy:x,px0:b,py0:C,width:E-b,height:w-C}]:[]});if(!r.length)return!1;const u=performance.now(),f=this.generation,h=[];try{for(const{frame:y,sx:m,sy:x,px0:b,py0:C,width:E,height:w}of r){const T=Math.round(1/y.scale);h.push(y.scale<1?await this.doc.renderArea(y.x+b*T,y.y+C*T,y.x+(b+E)*T,y.y+(C+w)*T,E,w):await this.doc.render(y.x+b/m,y.y+C/x,y.scale,E,w))}}catch(y){return!this.disposed&&f===this.generation&&this.frames===o&&(this.failed=!0,this.onRender(y)),!1}if(this.disposed||f!==this.generation)return!1;if(this.frames!==o)return this.render();r.forEach(({frame:y,px0:m,py0:x,width:b,height:C},E)=>{var w;return(w=y.bitmap.getContext("2d"))==null?void 0:w.putImageData(tg(h[E],b,C),m,x)});const v=Math.round(performance.now()-u);this.draw();const p=r.reduce((y,m)=>m.width*m.height>y.width*y.height?m:y);return this.onChange(this.shown,{renderMs:v,frameWidth:p.width,frameHeight:p.height}),this.onRender(null),!0}setBackdrop(i){i===this.backdrop||this.disposed||(this.backdrop=i,this.draw())}draw(){const{width:i,height:o,dpr:r}=this.size,u=Math.round(i*r),f=Math.round(o*r);(this.canvas.width!==u||this.canvas.height!==f)&&(this.canvas.width=u,this.canvas.height=f);const h=this.canvas.getContext("2d");if(!h)return;const v=this.shown,{zoom:p}=v;h.setTransform(r,0,0,r,0,0),h.fillStyle=this.backdrop,h.fillRect(0,0,i,o);const y=e0(v,this.pins,i,o);for(const m of y){h.save(),y.length>1&&(h.beginPath(),h.rect(m.clip.x0,m.clip.y0,m.clip.x1-m.clip.x0,m.clip.y1-m.clip.y0),h.clip());const x=(E,w)=>({x:(E-m.offX)*p,y:(w-m.offY)*p}),b=x(0,0);this.framed&&(h.shadowColor="rgba(15, 15, 30, 0.12)",h.shadowBlur=12,this.pattern??(this.pattern=_D(h)),h.fillStyle=this.pattern??"#ffffff",h.fillRect(b.x,b.y,this.doc.width*p,this.doc.height*p),h.shadowBlur=0);const C=this.frames.find(E=>E.pinX===m.pinX&&E.pinY===m.pinY);if(C){h.imageSmoothingEnabled=p<1,h.imageSmoothingQuality="high";const E=x(C.x,C.y);h.drawImage(C.bitmap,E.x,E.y,C.width*p,C.height*p)}this.decorate&&(h.save(),this.decorate(h,x,{zoom:p,x:m.offX,y:m.offY}),h.restore()),h.restore()}}sample(i,o){var m;const r=this.toImage(i,o),{left:u,top:f}=this.pins,h=this.frames.find(x=>x.pinX===r.x<u&&x.pinY===r.y<f);if(!h)return null;const v=Math.floor((r.x-h.x)/h.width*h.bitmap.width),p=Math.floor((r.y-h.y)/h.height*h.bitmap.height);if(v<0||p<0||v>=h.bitmap.width||p>=h.bitmap.height)return null;const y=(m=h.bitmap.getContext("2d"))==null?void 0:m.getImageData(v,p,1,1).data;return y?[y[0],y[1],y[2]]:null}}const UD="#f3f3f6";function ng(){return getComputedStyle(document.documentElement).getPropertyValue("--kit-canvas").trim()||UD}const ID=.01,VD=100;function qD(n,i=1){return n.pointerType!=="pen"?1:n.pressure>0?n.pressure:i}function Qi(n,i,o=1){const r=i.toImage(n.clientX,n.clientY),u=i.toScreen(r.x,r.y);return{x:r.x,y:r.y,pressure:qD(n,o),clientX:n.clientX,clientY:n.clientY,canvasX:u.x,canvasY:u.y,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey||n.ctrlKey}}function $D(n,i){const o=(r,u)=>{const f=n.current,h=i.current,v=f==null?void 0:f.getContext("2d");if(!f||!h||!v)return;const p=window.devicePixelRatio||1,y=Math.round(f.clientWidth*p),m=Math.round(f.clientHeight*p);(f.width!==y||f.height!==m)&&(f.width=y,f.height=m),v.setTransform(p,0,0,p,0,0),r&&v.clearRect(0,0,f.clientWidth,f.clientHeight),v.save(),u(v,(x,b)=>h.toScreen(x,b)),v.restore()};return{draw:r=>o(!0,r),add:r=>o(!1,r),clear:()=>{var u;const r=n.current;(u=r==null?void 0:r.getContext("2d"))==null||u.clearRect(0,0,r.width,r.height)}}}function GD({doc:n,change:i,repaint:o,tool:r,onView:u,onRender:f,viewMemory:h,initialArea:v=null,panBounds:p=null,decorate:y=null,animated:m=!1,spacePans:x=!0,framed:b=!0,children:C,ref:E}){const w=g.useRef(null),T=g.useRef(null),S=g.useRef(null),z=g.useRef(null),[L,K]=g.useState(!1),X=g.useRef({doc:n,onView:u,onRender:f,initialArea:v,panBounds:p});X.current={doc:n,onView:u,onRender:f,initialArea:v,panBounds:p};const re=$D(T,S);g.useEffect(()=>{const F=w.current;if(!F)return;let A=h.current!=null;const H=new FD(F,n,ng(),(I,P)=>{A&&(h.current=I),X.current.onView({...I,width:F.clientWidth,height:F.clientHeight},P)},b,I=>{var P,ue;X.current.doc===n&&((ue=(P=X.current).onRender)==null||ue.call(P,I))});S.current=H,h.current&&(H.view={...h.current}),H.setPanBounds(X.current.panBounds);const le=new ResizeObserver(()=>{if(!A&&F.clientWidth>0&&F.clientHeight>0){A=!0;const I=X.current.initialArea;I?H.fitArea(I):H.fit()}A&&H.resized(),H.render()});le.observe(F);const ve=I=>{I.preventDefault(),I.ctrlKey||I.metaKey?H.zoomTo(H.view.zoom*Math.exp(-I.deltaY*ID),I.clientX,I.clientY):H.panBy(-I.deltaX,-I.deltaY)};F.addEventListener("wheel",ve,{passive:!1});const Z=typeof MutationObserver>"u"?null:new MutationObserver(()=>H.setBackdrop(ng()));return Z==null||Z.observe(document.documentElement,{attributes:!0,attributeFilter:["style","data-color-scheme","data-brand","class"]}),()=>{Z==null||Z.disconnect(),le.disconnect(),F.removeEventListener("wheel",ve),H.dispose(),S.current=null}},[n,b,h]),g.useEffect(()=>{var F;return(F=S.current)==null?void 0:F.setPanBounds(p)},[n,p]),g.useEffect(()=>{const F=S.current;F&&(i.damage||F.invalidate(),(i.damage?F.patch(i.damage):F.render()).then(A=>{A&&re.clear()}))},[i]);const ae=g.useRef((o==null?void 0:o.tick)??0);g.useEffect(()=>{const F=S.current;!F||!o||o.tick===ae.current||(ae.current=o.tick,F.invalidate(),o.damage?F.renderArea(o.damage):F.render())},[o]),g.useEffect(()=>{const F=S.current;if(!F||(F.decorate=y,F.draw(),!m||!y))return;const A=window.setInterval(()=>F.draw(),VD);return()=>window.clearInterval(A)},[m,y,n]),g.useEffect(()=>{if(!x)return;const F=le=>le instanceof HTMLInputElement||le instanceof HTMLTextAreaElement,A=le=>{le.code==="Space"&&!F(le.target)&&K(!0)},H=le=>{le.code==="Space"&&K(!1)};return window.addEventListener("keydown",A),window.addEventListener("keyup",H),()=>{window.removeEventListener("keydown",A),window.removeEventListener("keyup",H)}},[x]),g.useImperativeHandle(E,()=>({view:()=>{const F=S.current,A=w.current;return F&&A?{...F.view,width:A.clientWidth,height:A.clientHeight}:null},fit:()=>{var F;return(F=S.current)==null?void 0:F.fit()},show:F=>{var A;return(A=S.current)==null?void 0:A.fitArea(F)},zoomTo:F=>{var A;return(A=S.current)==null?void 0:A.zoomTo(F)},zoomBy:F=>{const A=S.current;A&&A.zoomTo(A.view.zoom*F)},panTo:(F,A)=>{var H;return(H=S.current)==null?void 0:H.panTo(F,A)},retryRender:async()=>{var A;const F=await((A=S.current)==null?void 0:A.render())??!1;return F&&re.clear(),F}}),[]);const de=()=>S.current?{viewport:S.current,overlay:re}:null,ge=g.useRef(1),je=F=>{const A=de();if(!A||F.button===2)return;F.preventDefault();const H=F.currentTarget.closest("[tabindex]");H&&document.activeElement!==H&&H.focus({preventScroll:!0}),F.currentTarget.setPointerCapture(F.pointerId);const le=L||F.button===1?Bn:r,ve=Qi(F,A.viewport);ge.current=ve.pressure,z.current=le.begin(ve,A)||null},be=F=>{var le,ve,Z,I;const A=de(),H=z.current;if(A&&((le=r.track)==null||le.call(r,Qi(F,A.viewport),A)),A&&!H&&!L&&F.buttons===0&&((ve=r.hover)==null||ve.call(r,Qi(F,A.viewport),A)),!(!A||!(H!=null&&H.move)))for(const P of((I=(Z=F.nativeEvent).getCoalescedEvents)==null?void 0:I.call(Z))??[F.nativeEvent]){const ue=Qi(P,A.viewport,ge.current);ge.current=ue.pressure,H.move(ue,A)}},Me=F=>{var le;const A=de(),H=z.current;z.current=null,A&&H&&((le=H.end)==null||le.call(H,Qi(F,A.viewport,ge.current),A))},Be=g.useRef(()=>{});Be.current=F=>{var le;const A=z.current;if(!A||F.key!=="Escape"||F.isComposing||F.metaKey||F.ctrlKey||F.altKey||F.shiftKey)return;z.current=null;const H=de();H&&((le=A.cancel)==null||le.call(A,H)),re.clear(),F.preventDefault(),F.stopPropagation()},g.useEffect(()=>{const F=A=>Be.current(A);return window.addEventListener("keydown",F,!0),()=>window.removeEventListener("keydown",F,!0)},[]);const ye=()=>{var H;const F=de(),A=z.current;A&&(z.current=null,F&&((H=A.cancel)==null||H.call(A,F)),re.clear())};return s.jsxs("div",{className:"kui-canvas","data-testid":"kit-canvas",children:[s.jsx("canvas",{ref:w,className:"kui-canvas-surface",style:{cursor:L?Bn.cursor:r.cursor},onPointerDown:je,onPointerMove:be,onPointerUp:Me,onPointerCancel:ye,onLostPointerCapture:ye,onPointerLeave:()=>{var A;const F=de();F&&!z.current&&((A=r.leave)==null||A.call(r,F))},onDoubleClick:F=>{var H;const A=de();A&&((H=r.doubleClick)==null||H.call(r,Qi({...F,clientX:F.clientX,clientY:F.clientY,pressure:1},A.viewport),A))},onContextMenu:F=>F.preventDefault(),"data-testid":"kit-canvas-surface"}),s.jsx("canvas",{ref:T,className:"kui-canvas-overlay","aria-hidden":"true"}),C]})}const vc=new Set;function PD(n){const i=(o,r,u)=>{vc.has(i)||n(o,r,u)};return i}const yx=new WeakMap;function bx(n){return[n,...(yx.get(n)??[]).flatMap(bx)]}function lg(n,i){if(!n||!i)return n??i??null;const o=(r,u,f)=>{r.save();try{n(r,u,f)}finally{r.restore()}const h=bx(n).filter(v=>!vc.has(v));for(const v of h)vc.add(v);r.save();try{i(r,u,f)}finally{r.restore();for(const v of h)vc.delete(v)}};return yx.set(o,[n,i]),o}const ai="kit:";function Jc(n){return n.startsWith(ai)?`control:${n.slice(ai.length)}`:`command:${n}`}function Mx(n){const i=[],o=new Set;for(const r of n){for(let f=1;f<=r.path.length;f+=1){const h=`menu:${r.path.slice(0,f).join("/")}`;o.has(h)||(o.add(h),i.push({id:h,kind:"menu",label:r.path[f-1],parent:f>1?`menu:${r.path.slice(0,f-1).join("/")}`:null,menu:[]}))}if(r.command==="---")continue;const u=Jc(r.command);i.push({id:u,kind:u.startsWith("control:")?"control":"command",label:r.label,parent:r.path.length?`menu:${r.path.join("/")}`:null,menu:r.path})}return i}const xx=[{id:"action:undo",label:"undo"},{id:"action:redo",label:"redo"},{id:"action:agent",label:"askAgent"},{id:"action:mode",label:"modeMenu"},{id:"action:save",label:"save"},{id:"action:more",label:"more"}],j0={tools:"tool",panels:"panel",tabs:"tab",groups:"group",controls:"control"};function KD(n){if(!n)return null;const i=Object.keys(j0).flatMap(o=>(n[o]??[]).map(r=>r.id));return new Set([...Mx(n.menus??[]).map(o=>o.id),...i,...xx.map(o=>o.id)])}function Sx({commands:n,declaration:i,engineTools:o,agent:r,t:u,phrase:f,config:h}){const v=[],p=new Set,y=(m,x,b,C,E=[])=>{if(p.has(m))return;p.add(m);const w=Yt(h,m,E);v.push({id:m,kind:x,label:b,parent:C,hidden:w.hidden,disabled:w.disabled})};for(const m of Mx((i==null?void 0:i.menus)??[]))y(m.id,m.kind,f(m.label),m.parent,m.menu);for(const m of n){for(let x=1;x<=m.menu.length;x+=1){const b=x>1?`menu:${m.menu.slice(0,x-1).join("/")}`:null;y(`menu:${m.menu.slice(0,x).join("/")}`,"menu",f(m.menu[x-1]),b)}y(`command:${m.id}`,"command",f(m.title),m.menu.length?`menu:${m.menu.join("/")}`:null,m.menu)}for(const m of o)y(`tool:${m.id}`,"tool",f(m.label),null);for(const m of Object.keys(j0))for(const x of(i==null?void 0:i[m])??[])y(x.id,j0[m],u(x.label),x.parent??null);for(const m of xx)(r||m.id!=="action:agent")&&y(m.id,"action",u(m.label),null);return v}const YD=()=>!1,eu=g.createContext(null),XD=dx(w0,null,()=>{});function Wt(){const n=g.useContext(eu),i=(n==null?void 0:n.store)??XD,o=g.useSyncExternalStore(i.subscribe,i.get);return{config:o,store:i,locale:(n==null?void 0:n.locale)??"en-US",declared:(n==null?void 0:n.declared)??null,state:(r,u)=>{var v;const f=r.startsWith("command:"),h=Yt(o,r,u??(f?(n==null?void 0:n.menuOf(r.slice(8)))??[]:[]));return f&&!h.hidden&&((v=n==null?void 0:n.sessionHidden)!=null&&v.call(n,r.slice(8)))?{...h,hidden:!0}:h},sessionHidden:(n==null?void 0:n.sessionHidden)??YD,buttons:r=>ux(o,r),press:(n==null?void 0:n.press)??(()=>{}),offerHide:(n==null?void 0:n.offerHide)??null,openCustomize:(n==null?void 0:n.openCustomize)??null,hide:(n==null?void 0:n.hide)??null,renderButtons:(n==null?void 0:n.renderButtons)??(()=>null)}}function wx({value:n,children:i}){return s.jsx(eu.Provider,{value:n,children:s.jsx(ZD,{children:i})})}function ZD({children:n}){const i=g.useContext(eu),o=Wt(),{config:r}=o,u=g.useMemo(()=>({state:f=>o.state(f),renderExtras:(f,h)=>o.renderButtons(f,h),drawn:f=>{f.startsWith("menu:")||o.declared}}),[r,i]);return s.jsx(MC,{elements:u,children:n})}const ig={bell:CT,check:xs,download:XT,eye:Uc,flag:tk,help:OT,info:ok,link:Cc,lock:Ic,mail:Mk,message:rf,plus:sf,printer:of,send:$k,settings:cf,share:Pk,star:l3,upload:gA,x:Jl},Kl=new Map,WD=32;function QD(n){if(!n)return;if(!n.startsWith("data:image/"))return Object.hasOwn(ig,n)?ig[n]:Ss;const i=Kl.get(n);if(i)return Kl.delete(n),Kl.set(n,i),i;if(Kl.size>=WD){const r=Kl.keys().next().value;r!==void 0&&Kl.delete(r)}const o=(({size:r=16})=>s.jsx("img",{src:n,width:r,height:r,alt:"","aria-hidden":"true"}));return Kl.set(n,o),o}function tu({place:n,as:i}){const o=Wt();return s.jsx(s.Fragment,{children:o.buttons(n).map(r=>{const u=WR(r,o.locale),f=QD(r.icon),h=`host:${r.id}`;return i==="menu"?s.jsx(we,{icon:f,label:u,shortcut:r.shortcut,disabled:r.disabled,onSelect:()=>o.press(r.id),uiId:h},r.id):i==="ribbon"?s.jsx(tt,{icon:f,label:u,pressed:r.pressed,disabled:r.disabled,onClick:()=>o.press(r.id),"data-kit-ui-id":h},r.id):s.jsxs(De,{variant:"ghost","aria-pressed":r.pressed,disabled:r.disabled,onClick:()=>o.press(r.id),"data-kit-ui-id":h,children:[f?s.jsx(f,{size:15,strokeWidth:yt,"aria-hidden":"true"}):null,u]},r.id)})})}const rg=new Set;function JD(n,i){const o=new Map(n.map(b=>[b.id,b])),r=b=>{const C=new Set;for(let E=b.parent;E!==null&&!C.has(E);){C.add(E);const w=o.get(E);if(!w)return!1;if(w.hidden)return!0;E=w.parent}return!1},u=n.filter(b=>!b.hidden&&b.id!==cx&&!(b.kind==="command"&&b.parent===null)&&!r(b)),f=new Map(u.map(b=>[b.id,b])),h=new Map;for(const b of u){if(b.parent===null)continue;const C=h.get(b.parent);C?C.push(b):h.set(b.parent,[b])}const v=(b,C)=>{const E=new Set(C);E.add(b.id);const w=(h.get(b.id)??[]).filter(T=>E.has(T.id)?(rg.has(T.id)||(rg.add(T.id),console.warn(`[kit-editor] ${T.id} is its own ancestor in the declared elements`)),!1):!0).map(T=>v(T,E));return{element:b,children:w}},p=[],y=new Set;for(const b of u){if(y.has(b.id))continue;const C=[];let E=b;for(;E!==void 0;){const w=E;if(y.has(w.id)){for(const z of C)y.add(z);break}const T=C.indexOf(w.id);if(T!==-1){p.push(f.get(C[T]));for(const z of C)y.add(z);break}C.push(w.id);const S=w.parent!==null?f.get(w.parent):void 0;if(S===void 0){p.push(w);for(const z of C)y.add(z);break}E=S}}const m=i.trim().toLowerCase(),x=b=>{const C=b.children.map(x).filter(E=>E!==null);return m&&!b.element.label.toLowerCase().includes(m)&&!C.length?null:{element:b.element,children:C}};return p.map(b=>x(v(b,new Set))).filter(b=>b!==null)}function eO({catalog:n,personal:i,labels:o,onSave:r,onClose:u}){const[f,h]=g.useState([...i]),[v,p]=g.useState(""),y=g.useMemo(()=>JD(n,v),[n,v]),m=b=>h(C=>C.includes(b)?C.filter(E=>E!==b):[...C,b]),x=(b,C)=>{const E=f.includes(b.element.id);return s.jsxs("li",{children:[s.jsxs("label",{className:"kui-customize-row",children:[s.jsx("input",{type:"checkbox",checked:!E,disabled:C,onChange:()=>m(b.element.id),"data-element":b.element.id}),s.jsx("span",{children:b.element.label})]}),b.children.length?s.jsx("ul",{children:b.children.map(w=>x(w,C||E))}):null]},b.element.id)};return s.jsxs(Cs,{title:o.title,onClose:u,actions:s.jsxs(s.Fragment,{children:[s.jsx(De,{variant:"ghost",onClick:()=>h([]),"data-action":"restore",children:o.restore}),s.jsx("span",{style:{flex:1}}),s.jsx(De,{variant:"ghost",onClick:u,children:o.cancel}),s.jsx(De,{variant:"primary",onClick:()=>r(f),"data-action":"save",children:o.save})]}),children:[s.jsx("input",{className:"kui-field kui-customize-search",type:"search",placeholder:o.search,"aria-label":o.search,value:v,onChange:b=>p(b.target.value)}),s.jsx("ul",{className:"kui-customize-tree","data-testid":"kit-customize-tree",children:y.map(b=>x(b,!1))})]})}function tO({message:n,title:i,retryLabel:o,onRetry:r}){return s.jsxs("div",{className:"kui-render-failure",role:"alert","data-testid":"kit-render-failure",children:[s.jsxs("div",{children:[s.jsx("strong",{children:i}),s.jsx("div",{className:"kui-muted",children:n})]}),s.jsx(De,{onClick:r,children:o})]})}const Cx={"en-US":{undo:"Undo",redo:"Redo",askAgent:"Ask Agent",save:"Save",saved:"Saved",saveFailed:"Could not save",commandFailed:"The command failed",run:"Run",cancel:"Cancel",required:"Required",zoomOut:"Zoom out",zoomIn:"Zoom in",fit:"Fit",opening:"Opening…",openFailed:"This file could not be opened",renderFailed:"This view could not be rendered",retryRender:"Retry",unsaved:"Unsaved changes",fileChanged:"This file changed outside the editor, and you have unsaved edits.",keepMine:"Keep my edits",reloadFile:"Load the new version",noHost:"This editor runs inside a host, such as Kition.",selected:"{count} selected",moreOptions:"More options",menuBar:"Menu",ribbonScrollStart:"Scroll ribbon left",ribbonScrollEnd:"Scroll ribbon right",menusScrollStart:"Scroll menus left",menusScrollEnd:"Scroll menus right",optionsScrollStart:"Scroll tool options left",optionsScrollEnd:"Scroll tool options right",agentEdited:"Edited by the agent",hostEdited:"Edited by the app",agentLeaseHeld:"{name} is editing this part of the document, so the agent's edit was not made. Try again when they are done.",someone:"Someone",viewOnly:"View only",viewOnlyRefused:"This document is view only",commentOnly:"Can comment",commentOnlyRefused:"You can only comment on this document",more:"More",customize:"Customize interface…",customizeTitle:"Customize interface",customizeSearch:"Search",customizeRestore:"Restore defaults",customizeSave:"Save",customizeFailed:"Could not keep your customization",hideElement:"Hide",expandPanelGroup:"Expand panel group",collapsePanelGroup:"Collapse panel group",closePanel:"Close Panel",maximizeFrame:"Maximize Frame",restoreWorkspace:"Restore Workspace",panelMenu:"Panel menu",moreTabs:"More tabs",resizePanels:"Resize panels",colorPickerSquare:"Saturation and brightness",colorPickerHue:"Hue",colorPickerHex:"Hex color",railTwoColumns:"Show tools in two columns",railOneColumn:"Show tools in one column",transportControls:"Transport controls",levelMeter:"Audio levels",keyframeLane:"Keyframes",keyframeAt:"Keyframe at {time}",previewDialogOk:"OK",previewDialogCancel:"Cancel",previewDialogReset:"Reset",previewDialogPreview:"Preview",previewDialogPending:"Updating the preview…",previewDialogOff:"Preview is off: {error}",curveEditor:"Curve",curveEditorPoint:"Point {index}: {x}, {y}",colorWheel:"color wheel",colorWheelLightness:"{label} lightness",colorWheelOffset:"{label}: {x}, {y}",floatingPanelClose:"Close {title}",floatingPanelResize:"Resize",drawingIllustrations:"Illustrations",drawingShapes:"Shapes",drawingTextBox:"Text Box",drawingRect:"Rectangle",drawingRoundRect:"Rounded Rectangle",drawingEllipse:"Oval",drawingTriangle:"Triangle",drawingDiamond:"Diamond",drawingArrow:"Arrow",drawingStar:"Star",drawingLine:"Line",drawingShapeStyles:"Shape Styles",drawingFill:"Shape Fill",drawingNoFill:"No Fill",drawingOutline:"Shape Outline",drawingNoOutline:"No Outline",drawingWeight:"{value} pt",drawingArrange:"Arrange",drawingChangeShape:"Change Shape",drawingRotateRight:"Rotate Right 90°",drawingBringForward:"Bring Forward",drawingBringToFront:"Bring to Front",drawingSendBackward:"Send Backward",drawingSendToBack:"Send to Back",drawingGroup:"Group",drawingConnect:"Connect",drawingEffects:"Shape Effects",drawingShadowBottomRight:"Shadow: Offset Bottom Right",drawingShadowBottom:"Shadow: Offset Bottom",drawingShadowAround:"Shadow: Around",drawingNoShadow:"No Shadow",drawingGlow:"Glow",drawingNoGlow:"No Glow",drawingTransform:"Transform",drawingWarpArchUp:"Arch Up",drawingWarpArchDown:"Arch Down",drawingWarpCircle:"Circle",drawingWarpWave1:"Wave 1",drawingWarpWave2:"Wave 2",drawingWarpInflate:"Inflate",drawingWarpDeflate:"Deflate",drawingWarpSlantUp:"Slant Up",drawingWarpSlantDown:"Slant Down",drawingWarpTriangle:"Triangle Up",drawingWarpChevron:"Chevron Up",drawingWarpCurveUp:"Curve Up",drawingWarpCurveDown:"Curve Down",drawingWarpCanUp:"Can Up",drawingNoTransform:"No Transform",drawingGradientDown:"Gradient: Linear Down",drawingGradientRight:"Gradient: Linear Right",drawingGradientDiagonal:"Gradient: Linear Diagonal",drawingGradientCenter:"Gradient: From Center",drawingUngroup:"Ungroup",drawingDelete:"Delete",drawingShapeFormat:"Shape Format",chartInsert:"Chart",chartColumn:"Clustered Column",chartStackedColumn:"Stacked Column",chartBar:"Clustered Bar",chartLine:"Line",chartLineMarkers:"Line with Markers",chartArea:"Area",chartPie:"Pie",chartDoughnut:"Doughnut",chartScatter:"Scatter",chartRadar:"Radar",chartType:"Type",chartChangeType:"Change Chart Type",chartElements:"Chart Elements",chartTitle:"Chart Title",chartTitleText:"Chart Title",chartLegend:"Legend",chartLegend_top:"Top",chartLegend_bottom:"Bottom",chartLegend_left:"Left",chartLegend_right:"Right",chartLegendNone:"None",chartDataLabels:"Data Labels",chartGridlines:"Gridlines",chartAxisTitles:"Axis Titles",chartTrendline:"Trendline",chartTrendLinear:"Linear",chartTrendExp:"Exponential",chartTrendForecast:"Linear Forecast",chartTrendMovingAvg:"Two-Period Moving Average",chartErrorBars:"Error Bars",chartErrStdErr:"Standard Error",chartErrPercent:"Percentage",chartErrStdDev:"Standard Deviation",chartNone:"None",chartSeriesType:"Chart Type",chartSeriesTypeChart:"The chart's",chartSecondaryAxis:"Secondary Axis",chartAxisTitleText:"Axis Title",chartData:"Data",chartEditData:"Edit Data",chartSeriesName:"Series {n} name",chartCategoryName:"Category {n}",chartValue:"{series}, {category}",chartCategoryText:"Category {n}",chartSeriesText:"Series {n}",chartAddCategory:"Add Category",chartAddSeries:"Add Series",chartRemoveCategory:"Remove Category",chartRemoveSeries:"Remove Series",chartOk:"OK",chartFormat:"Format",chartFormatAxis:"Format Axis",chartAxis:"Axis",chartAxisValue:"Vertical (Value) Axis",chartAxisCategory:"Horizontal (Category) Axis",chartAxisMin:"Minimum",chartAxisMax:"Maximum",chartAxisMajor:"Major unit",chartAxisNumberFormat:"Number format",chartAxisAuto:"Auto",chartAxisShow:"Show axis",chartLabelPosition:"Label Position",chartLabel_bestFit:"Best Fit",chartLabel_ctr:"Center",chartLabel_inBase:"Inside Base",chartLabel_inEnd:"Inside End",chartLabel_outEnd:"Outside End",chartLabel_l:"Left",chartLabel_r:"Right",chartLabel_t:"Above",chartLabel_b:"Below",chartFormatSeries:"Format Series",chartSeries:"Series",chartLineWidth:"Line width (pt)",chartMarker:"Marker",chartMarker_auto:"Automatic",chartMarker_none:"None",chartMarker_circle:"Circle",chartMarker_dash:"Dash",chartMarker_diamond:"Diamond",chartMarker_dot:"Dot",chartMarker_plus:"Plus",chartMarker_square:"Square",chartMarker_star:"Star",chartMarker_triangle:"Triangle",chartMarker_x:"X",chartSmooth:"Smoothed line",inkTools:"Tools",inkPens:"Pens",inkSelect:"Select",inkPen:"Pen",inkPencil:"Pencil",inkHighlighter:"Highlighter",inkEraser:"Eraser",inkColor:"Ink Color",inkWeight:"Thickness",modeMenu:"Display mode",modeButton:"Display mode: {mode}",modeStepped:"Display mode: {mode} (showing {shown} to fit the window)",mode_menus:"Menus",mode_line:"Single line",mode_classic:"Classic",mode_focus:"Focus",focusBar:"Focus",exitFocus:"Exit focus",lineMore:"More: {group}"},"zh-CN":{undo:"撤销",redo:"重做",askAgent:"询问 Agent",save:"保存",saved:"已保存",saveFailed:"无法保存",commandFailed:"命令执行失败",run:"运行",cancel:"取消",required:"必填",zoomOut:"缩小",zoomIn:"放大",fit:"适应窗口",opening:"正在打开…",openFailed:"无法打开此文件",renderFailed:"无法渲染此视图",retryRender:"重试",unsaved:"有未保存的更改",fileChanged:"此文件在编辑器外被修改,而你有未保存的更改。",keepMine:"保留我的更改",reloadFile:"加载新版本",noHost:"此编辑器需在宿主(如 Kition)中运行。",selected:"已选 {count} 项",moreOptions:"更多选项",menuBar:"菜单",ribbonScrollStart:"向左滚动功能区",ribbonScrollEnd:"向右滚动功能区",menusScrollStart:"向左滚动菜单",menusScrollEnd:"向右滚动菜单",optionsScrollStart:"向左滚动工具选项",optionsScrollEnd:"向右滚动工具选项",agentEdited:"由 Agent 编辑",hostEdited:"由应用编辑",agentLeaseHeld:"{name} 正在编辑文档的这一部分,因此未执行 Agent 的编辑。请等其完成后再试。",someone:"有人",viewOnly:"仅查看",viewOnlyRefused:"此文档仅供查看",commentOnly:"可评论",commentOnlyRefused:"你只能评论此文档",more:"更多",customize:"自定义界面…",customizeTitle:"自定义界面",customizeSearch:"搜索",customizeRestore:"恢复默认",customizeSave:"保存",customizeFailed:"无法保存你的自定义设置",hideElement:"隐藏",expandPanelGroup:"展开面板组",collapsePanelGroup:"折叠面板组",closePanel:"关闭面板",maximizeFrame:"最大化框架",restoreWorkspace:"恢复工作区",panelMenu:"面板菜单",moreTabs:"更多选项卡",resizePanels:"调整面板大小",colorPickerSquare:"饱和度和明度",colorPickerHue:"色相",colorPickerHex:"十六进制颜色",railTwoColumns:"以两列显示工具",railOneColumn:"以一列显示工具",transportControls:"播放控件",levelMeter:"音频电平",keyframeLane:"关键帧",keyframeAt:"{time} 处的关键帧",previewDialogOk:"确定",previewDialogCancel:"取消",previewDialogReset:"重置",previewDialogPreview:"预览",previewDialogPending:"正在更新预览…",previewDialogOff:"预览已关闭:{error}",curveEditor:"曲线",curveEditorPoint:"点 {index}:{x},{y}",colorWheel:"色轮",colorWheelLightness:"{label}亮度",colorWheelOffset:"{label}:{x},{y}",floatingPanelClose:"关闭{title}",floatingPanelResize:"调整大小",drawingIllustrations:"插图",drawingShapes:"形状",drawingTextBox:"文本框",drawingRect:"矩形",drawingRoundRect:"圆角矩形",drawingEllipse:"椭圆",drawingTriangle:"三角形",drawingDiamond:"菱形",drawingArrow:"箭头",drawingStar:"星形",drawingLine:"直线",drawingShapeStyles:"形状样式",drawingFill:"形状填充",drawingNoFill:"无填充",drawingOutline:"形状轮廓",drawingNoOutline:"无轮廓",drawingWeight:"{value} 磅",drawingArrange:"排列",drawingChangeShape:"更改形状",drawingRotateRight:"向右旋转 90°",drawingBringForward:"上移一层",drawingBringToFront:"置于顶层",drawingSendBackward:"下移一层",drawingSendToBack:"置于底层",drawingGroup:"组合",drawingConnect:"连接",drawingEffects:"形状效果",drawingShadowBottomRight:"阴影:右下偏移",drawingShadowBottom:"阴影:下方偏移",drawingShadowAround:"阴影:四周",drawingNoShadow:"无阴影",drawingGlow:"发光",drawingNoGlow:"无发光",drawingTransform:"转换",drawingWarpArchUp:"上弯弧",drawingWarpArchDown:"下弯弧",drawingWarpCircle:"圆",drawingWarpWave1:"波形 1",drawingWarpWave2:"波形 2",drawingWarpInflate:"膨胀",drawingWarpDeflate:"收缩",drawingWarpSlantUp:"上斜",drawingWarpSlantDown:"下斜",drawingWarpTriangle:"正三角",drawingWarpChevron:"V 形:正",drawingWarpCurveUp:"上弯",drawingWarpCurveDown:"下弯",drawingWarpCanUp:"桶形:正",drawingNoTransform:"无转换",drawingGradientDown:"渐变:线性向下",drawingGradientRight:"渐变:线性向右",drawingGradientDiagonal:"渐变:线性对角",drawingGradientCenter:"渐变:从中心",drawingUngroup:"取消组合",drawingDelete:"删除",drawingShapeFormat:"形状格式",chartInsert:"图表",chartColumn:"簇状柱形图",chartStackedColumn:"堆积柱形图",chartBar:"簇状条形图",chartLine:"折线图",chartLineMarkers:"带数据标记的折线图",chartArea:"面积图",chartPie:"饼图",chartDoughnut:"圆环图",chartScatter:"散点图",chartRadar:"雷达图",chartType:"类型",chartChangeType:"更改图表类型",chartElements:"图表元素",chartTitle:"图表标题",chartTitleText:"图表标题",chartLegend:"图例",chartLegend_top:"顶部",chartLegend_bottom:"底部",chartLegend_left:"左侧",chartLegend_right:"右侧",chartLegendNone:"无",chartDataLabels:"数据标签",chartGridlines:"网格线",chartAxisTitles:"坐标轴标题",chartTrendline:"趋势线",chartTrendLinear:"线性",chartTrendExp:"指数",chartTrendForecast:"线性预测",chartTrendMovingAvg:"双周期移动平均",chartErrorBars:"误差线",chartErrStdErr:"标准误差",chartErrPercent:"百分比",chartErrStdDev:"标准偏差",chartNone:"无",chartSeriesType:"图表类型",chartSeriesTypeChart:"与图表相同",chartSecondaryAxis:"次坐标轴",chartAxisTitleText:"坐标轴标题",chartData:"数据",chartEditData:"编辑数据",chartSeriesName:"系列 {n} 名称",chartCategoryName:"类别 {n}",chartValue:"{series},{category}",chartCategoryText:"类别 {n}",chartSeriesText:"系列 {n}",chartAddCategory:"添加类别",chartAddSeries:"添加系列",chartRemoveCategory:"删除类别",chartRemoveSeries:"删除系列",chartOk:"确定",chartFormat:"格式",chartFormatAxis:"设置坐标轴格式",chartAxis:"坐标轴",chartAxisValue:"垂直(值)轴",chartAxisCategory:"水平(类别)轴",chartAxisMin:"最小值",chartAxisMax:"最大值",chartAxisMajor:"主要单位",chartAxisNumberFormat:"数字格式",chartAxisAuto:"自动",chartAxisShow:"显示坐标轴",chartLabelPosition:"标签位置",chartLabel_bestFit:"最佳匹配",chartLabel_ctr:"居中",chartLabel_inBase:"轴内侧",chartLabel_inEnd:"数据标签内",chartLabel_outEnd:"数据标签外",chartLabel_l:"靠左",chartLabel_r:"靠右",chartLabel_t:"靠上",chartLabel_b:"靠下",chartFormatSeries:"设置数据系列格式",chartSeries:"系列",chartLineWidth:"线条宽度(磅)",chartMarker:"数据标记",chartMarker_auto:"自动",chartMarker_none:"无",chartMarker_circle:"圆形",chartMarker_dash:"短划线",chartMarker_diamond:"菱形",chartMarker_dot:"圆点",chartMarker_plus:"加号",chartMarker_square:"正方形",chartMarker_star:"星形",chartMarker_triangle:"三角形",chartMarker_x:"X 形",chartSmooth:"平滑线",inkTools:"工具",inkPens:"笔",inkSelect:"选择",inkPen:"笔",inkPencil:"铅笔",inkHighlighter:"荧光笔",inkEraser:"橡皮擦",inkColor:"墨迹颜色",inkWeight:"粗细",modeMenu:"显示模式",modeButton:"显示模式:{mode}",modeStepped:"显示模式:{mode}(为适应窗口,显示为{shown})",mode_menus:"菜单",mode_line:"单行",mode_classic:"经典",mode_focus:"专注",focusBar:"专注",exitFocus:"退出专注",lineMore:"更多:{group}"}};function Ex(n,i){const o={...Cx};for(const[r,u]of Object.entries(n))o[r]={...o[r],...u};return px(o,i)}const zx=new Set;function Sf(n){return n instanceof Error?n.message:String(n)}function aO(n){var i;return hx(n)||((i=n==null?void 0:n.data)==null?void 0:i.reason)==="read-only"}function sg(n,i,o){n.report?n.report(i,o):Xt("error",i,Sf(o))}const og={"edit.undo":"undo","edit.redo":"redo"};function nO(n,i,o,r,u=v=>v,f,h={}){var P,ue;const v=g.useRef(h.report);v.current=h.report;const p=g.useCallback((k,B)=>v.current?v.current(k,B):Xt("error",k,Sf(B)),[]),{doc:y,change:m}=n,[x,b]=g.useState([]),[C,E]=g.useState(new Set),[w,T]=g.useState(null),S=g.useRef(f);S.current=f;const z=g.useCallback((k,B={})=>{var W;return T(k?{command:k,values:{...(W=S.current)==null?void 0:W.call(S,k),...B}}:null)},[]),L=g.useRef(n);L.current=n;const K=g.useSyncExternalStore(i.ui.subscribe,i.ui.get),X=h.history??null,[,re]=g.useState(0);g.useEffect(()=>X==null?void 0:X.subscribe(()=>re(k=>k+1)),[X]);const ae=g.useRef(X);ae.current=X;const de=i.readOnly===!0,ge=n.comments??zx,je=g.useCallback(k=>de&&Rc(k,ge),[ge,de]);g.useEffect(()=>{y&&y.commands().then(b)},[y]),g.useEffect(()=>{if(!y)return;let k=!1;return y.disabledCommands().catch(()=>[]).then(B=>{k||E(new Set(B))}),()=>{k=!0}},[m.revision,y]);const be=g.useCallback(async(k,B={})=>{const W=L.current.doc;if(!W)return null;const ie=Be.current.get(k);if(ie!=null&&ie.mutates&&Yt(i.ui.get(),`command:${k}`,ie.menu).denied||ie&&je(ie))return null;try{return JSON.parse(await W.execute(k,B))}catch{return null}},[i,je]),Me=g.useMemo(()=>new Map(x.map(k=>[k.id,k])),[x]),Be=g.useRef(Me);Be.current=Me;const ye=g.useCallback(async(k,B)=>{const W=Me.get(k),ie=ae.current,xe=ie?og[k]:void 0;if(ie&&xe){if(Yt(i.ui.get(),`command:${k}`,W==null?void 0:W.menu).denied||Yt(i.ui.get(),`action:${xe}`).denied)return null;try{return JSON.stringify({done:await ie[xe]()!==!1})}catch(Ce){return p(o("commandFailed"),Ce),null}}if(!B&&W&&Qc(W)&&!Yt(i.ui.get(),`command:${k}`,W.menu).denied&&!je(W))return z(W),null;try{return await L.current.run(k,B??{})}catch(Ce){return de&&aO(Ce)?Xt("info",o(ge.size?"commentOnlyRefused":"viewOnlyRefused")):p(o("commandFailed"),Ce),null}},[Me,ge,i,de,je,p,z,o]),F=X?X.canUndo():((P=y==null?void 0:y.info)==null?void 0:P.canUndo)??!1,A=X?X.canRedo():((ue=y==null?void 0:y.info)==null?void 0:ue.canRedo)??!1,H=g.useCallback((k,B)=>{const W=Me.get(k);if(!W||Yt(K,`command:${k}`,W.menu).denied)return!1;const ie=X?og[k]:void 0;if(ie)return ie==="undo"?F:A;if(B.has(k)||je(W))return!1;const xe=de?fx(k,ge):null;return xe===null||(xe==="undo"?F:A)},[Me,A,F,ge,X,de,je,K]),le=g.useCallback(k=>H(k,C),[C,H]),ve=g.useCallback(async k=>{const B=L.current.doc;if(!B)return!1;const W=await L.current.disabledCommands().catch(()=>null);return W!=null&&L.current.doc===B&&H(k,new Set(W))},[H]),Z=g.useCallback(async()=>{try{await L.current.save(),Xt("success",o("saved"))}catch(k){p(o("saveFailed"),k)}},[p,o]),I=g.useCallback((k,B)=>{var W;Yt(i.ui.get(),`command:${k}`,(W=Me.get(k))==null?void 0:W.menu).denied?ye(k,B??{}):z(Me.get(k)??null,B)},[Me,i,ye,z]);return{session:n,host:i,t:o,phrase:u,testId:r,commands:x,byId:Me,enabled:le,enabledNow:ve,run:ye,ask:I,query:be,save:Z,report:p,dialog:w,setDialog:z,comments:ge,canUndo:F,canRedo:A}}const wf=g.createContext(null);function lO({editor:n,tools:i=null,children:o}){const r=g.useMemo(()=>({editor:n,tools:i}),[n,i]),{host:u,byId:f,session:h}=n,v=g.useSyncExternalStore(u.ui.subscribe,u.ui.get),p=i==null?void 0:i.setDenied,y=u.readOnly===!0;g.useLayoutEffect(()=>{p==null||p(w=>y||Yt(v,`tool:${w}`).denied)},[v,y,p]);const m=g.useMemo(()=>KD(u.declaration),[u]),x=g.useRef(h.doc);x.current=h.doc;const b=n.comments??zx,C=g.useMemo(()=>({store:u.ui,locale:u.init.locale,menuOf:w=>{var T;return((T=f.get(w))==null?void 0:T.menu)??[]},declared:m,press:w=>{var T,S;return u.ui.action({id:w,document:{path:u.init.document.path,dirty:((T=x.current)==null?void 0:T.info.dirty)??!1,revision:((S=x.current)==null?void 0:S.info.revision)??0}})},offerHide:null,openCustomize:null,hide:null,renderButtons:(w,T)=>s.jsx(tu,{place:w,as:T}),sessionHidden:b.size?w=>rD(f.get(w)??{id:w},b):void 0}),[f,b,m,u]),E=g.useRef(async()=>[]);return E.current=async()=>{const w=await h.commands(),T=i&&!i.tools.length?await h.tool("tools")??[]:(i==null?void 0:i.tools)??[];return Sx({commands:w,declaration:u.declaration,engineTools:T,agent:u.init.capabilities.includes("agent"),t:n.t,phrase:n.phrase,config:u.ui.get()})},g.useEffect(()=>{u.declaration&&u.peer.handle("ui/elements",()=>E.current())},[u]),s.jsx(wf.Provider,{value:r,children:s.jsx(gC,{strings:n.t,children:s.jsx(wx,{value:C,children:o})})})}function ze(){const n=g.useContext(wf);if(!n)throw new Error("useKitEditor outside KitEditorProvider");return n.editor}function gn(){return ze().host.readOnly===!0}function au(){var n;return((n=g.useContext(wf))==null?void 0:n.tools)??null}function jx(n){const{offerHide:i}=Wt();return i?o=>{o.preventDefault(),i(n,o.clientX,o.clientY)}:void 0}function Et({command:n,params:i,ask:o,onRun:r,...u}){const f=ze(),{enabled:h,byId:v,testId:p,phrase:y}=f,m=Wt(),x=jx(`command:${n}`);if(m.state(`command:${n}`).hidden)return null;const b=v.get(n);return s.jsx(tt,{...u,label:u.label??y((b==null?void 0:b.title)??n),disabled:u.disabled||!h(n),onClick:()=>{o?f.ask(n):r&&i===void 0&&!(b&&Qc(b))?r(n):f.run(n,i)},onContextMenu:x??u.onContextMenu,"data-testid":`${p}-cmd-${n}`,"data-kit-ui-id":`command:${n}`})}function et({icon:n,label:i,size:o="small",children:r,disabled:u,swatch:f,testId:h,primary:v,lineLabel:p}){const y=g.useContext(ja),m=g.useContext(ei);if(y==="primary"&&!v)return null;const x=v3(y,o,n!=null,p,m.size);return s.jsx(Un,{trigger:({toggle:b,open:C})=>s.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},"data-primary":v||void 0,children:[s.jsx(tt,{icon:n,label:i,size:x,disabled:u,pressed:C,swatch:f,onClick:b,"data-testid":h,primary:v,lineLabel:p}),x!=="large"?s.jsx(Ka,{size:11,strokeWidth:yt,"aria-hidden":"true",style:{marginLeft:-4,opacity:.6},onClick:b}):null]}),children:s.jsx(ja.Provider,{value:"full",children:s.jsx(ei.Provider,{value:ws,children:r})})})}function Le({command:n,params:i,label:o,icon:r,ask:u,shortcut:f,checked:h,path:v,onRun:p}){const y=ze(),{enabled:m,byId:x,testId:b,phrase:C}=y,E=Wt(),w=jx(`command:${n}`),T=v?E.state(`command:${n}`,v):null;if(E.state(`command:${n}`).hidden||T!=null&&T.hidden)return null;const S=x.get(n);return s.jsx("div",{onContextMenu:w,style:{display:"contents"},children:s.jsx(we,{icon:r,label:o??C((S==null?void 0:S.title)??n),shortcut:f===void 0?S==null?void 0:S.shortcut:f,disabled:!m(n)||!!(T!=null&&T.disabled),checked:h,onSelect:()=>{u?y.ask(n):p&&i===void 0&&!(S&&Qc(S))?p(n):y.run(n,i)},testId:`${b}-cmd-${n}`,uiId:`command:${n}`})})}const cs=n=>n.replace(/(\.\.\.|…)\s*$/,"").trim();function Tx(n,i){const o=new Map;for(const u of n){if(!i.includes(u.menu[0]??""))continue;const f=u.menu[1]??u.menu[0]??"",h=u.menu.slice(0,u.menu[1]?2:1).join("/"),v=o.get(f)??{path:h,items:[]};v.items.push(u),o.set(f,v)}const r=new Map;for(const[u,f]of o){const h=f.path.split("/")[0]??u,v=f.items.length===1&&cs(f.items[0].title)===cs(u),p=u!==h&&(v||cs(u)!==u),y=p?h:u,m=r.get(y)??{path:p?h:f.path,items:[]};m.items.push(...f.items),r.set(y,m)}return r}function iO(n,i,o=[]){var h;const[r="",u]=i.split("/"),f=new Set(o.map(v=>cs(v).toLowerCase()));return(((h=Tx(n,[r]).get(u??r))==null?void 0:h.items)??[]).filter(v=>!f.has(cs(v.title).toLowerCase()))}function kx({command:n,primary:i}){const o=sr(n);return s.jsx(Et,{command:n.id,icon:o,primary:i,lineLabel:o===bs})}function Ax({path:n,titles:i=[],exclude:o=[],primary:r=[]}){const{commands:u}=ze(),f=iO(u.filter(h=>!o.includes(h.id)),n,i);return f.length===0?null:s.jsx("div",{className:"kui-command-grid",children:f.map(h=>s.jsx(kx,{command:h,primary:r.includes(h.id)},h.id))})}function Ga({menu:n,extra:i=[],exclude:o=[],omit:r=[],label:u,primary:f=[]}){const{commands:h,phrase:v}=ze(),p=Tx(h.filter(y=>!o.includes(y.id)),[n,...i]);for(const y of r)p.delete(y);return s.jsx(s.Fragment,{children:[...p].map(([y,{path:m,items:x}])=>s.jsx(nt,{id:`menu:${m}`,label:u?u(y):v(y),icon:x[0]?sr(x[0]):void 0,children:s.jsx("div",{className:"kui-command-grid",children:x.map(b=>s.jsx(kx,{command:b,primary:f.includes(b.id)},b.id))})},y))})}function rO({canvas:n,viewMemory:i,initialArea:o=null,panBounds:r=null,framed:u,animated:f,onView:h,testId:v,tool:p,decorate:y,decorateUnder:m,children:x}){const b=ze(),C=au(),E=g.useRef(null),{doc:w,change:T,failure:S,repaints:z}=b.session,[L,K]=g.useState(null),X=g.useSyncExternalStore(z.subscribe,z.get),{t:re}=b,ae=(C==null?void 0:C.decorate)??null,de=g.useMemo(()=>lg(lg(m,ae),y),[y,m,ae]);return s.jsxs("div",{className:"kui-canvas-region","data-testid":v??`${b.testId}-canvas-region`,children:[S?s.jsxs("div",{className:"kui-message",role:"alert",children:[s.jsx("strong",{children:re("openFailed")}),s.jsx("span",{className:"kui-muted",children:S})]}):w?s.jsxs(GD,{ref:n,viewMemory:i??E,doc:w,change:T,repaint:X,tool:p??(C==null?void 0:C.canvasTool)??Bn,decorate:de,spacePans:!(C!=null&&C.wantsText),initialArea:o,panBounds:r,framed:u,animated:f,onView:(ge,je)=>{var be;(be=C==null?void 0:C.viewZoom)==null||be.call(C,ge.zoom),h==null||h(ge,je)},onRender:ge=>K(ge===null?null:{doc:w,message:Sf(ge)}),children:[x,(L==null?void 0:L.doc)===w?s.jsx(tO,{message:L.message,title:re("renderFailed"),retryLabel:re("retryRender"),onRetry:()=>{var ge;(ge=n.current)==null||ge.retryRender()}}):null]}):s.jsx("div",{className:"kui-message kui-muted",children:re("opening")}),C?s.jsx(kD,{active:C.wantsText,onText:C.typeText,onKey:ge=>C.keyDown(ge)}):null]})}const cg=1.25,sO=new Set(["checkbox","radio","button","submit","reset","range","color","file","image"]);function ug(n){return n instanceof HTMLInputElement?!sO.has(n.type):n instanceof HTMLSelectElement||n instanceof HTMLTextAreaElement&&!n.classList.contains("kui-text-sink")}function Cf(){var f;const n=ze(),i=Wt(),o=n.host.readOnly===!0,r=o&&(((f=n.comments)==null?void 0:f.size)??0)>0,u=(h,v,p)=>{const y=i.state(`action:${h}`),m=i.state(`command:${v}`);return{hidden:y.hidden||m.hostHidden||o&&!r,disabled:!p||y.disabled||m.denied}};return{undo:u("undo","edit.undo",n.canUndo),redo:u("redo","edit.redo",n.canRedo),readOnly:o,commenting:r}}function oO({before:n,mode:i}){const o=ze(),r=Wt(),{session:u,host:f,t:h,testId:v}=o,{dirty:p}=u,y=E=>r.state(`action:${E}`),{undo:m,redo:x,readOnly:b,commenting:C}=Cf();return s.jsxs(s.Fragment,{children:[n,s.jsx(tu,{place:"action",as:"action"}),b?s.jsx("span",{className:"kui-view-only","data-testid":`${v}-view-only`,"data-comment-only":C?"true":void 0,children:h(C?"commentOnly":"viewOnly")}):null,m.hidden?null:s.jsx(ua,{icon:ff,label:h("undo"),disabled:m.disabled,onClick:()=>void o.run("edit.undo",{}),"data-testid":`${v}-undo`,"data-kit-ui-id":"action:undo"}),x.hidden?null:s.jsx(ua,{icon:ZM,label:h("redo"),disabled:x.disabled,onClick:()=>void o.run("edit.redo",{}),"data-testid":`${v}-redo`,"data-kit-ui-id":"action:redo"}),f.init.capabilities.includes("agent")&&!y("agent").hidden?s.jsxs(De,{variant:"ghost",disabled:y("agent").disabled,onClick:()=>void f.openAgent(),"data-testid":`${v}-ask-agent`,"data-kit-ui-id":"action:agent",children:[s.jsx($c,{size:15,strokeWidth:yt,"aria-hidden":"true"}),h("askAgent")]}):null,i,y("save").hidden||b?null:s.jsxs(De,{variant:"primary",disabled:!p||u.saving||y("save").disabled,onClick:()=>void o.save(),"data-testid":`${v}-save`,"data-kit-ui-id":"action:save",children:[s.jsx(e3,{size:15,strokeWidth:yt,"aria-hidden":"true"}),h("save")]}),r.openCustomize&&!y("more").hidden?s.jsx(Un,{align:"end",trigger:({toggle:E,open:w})=>s.jsx(ua,{icon:ZT,label:h("more"),pressed:w,disabled:y("more").disabled,onClick:E,"data-testid":`${v}-more`,"data-kit-ui-id":"action:more"}),children:s.jsx(we,{label:h("customize"),onSelect:()=>{var E;return(E=r.openCustomize)==null?void 0:E.call(r)},testId:`${v}-customize`,uiId:"action:more"})}):null]})}function cO({x:n,y:i,label:o,testId:r,onHide:u,onClose:f}){const h=g.useRef(null),[v,p]=g.useState(null);return g.useLayoutEffect(()=>{var x,b;const y=((x=h.current)==null?void 0:x.offsetWidth)??160,m=((b=h.current)==null?void 0:b.offsetHeight)??40;p({left:Math.max(4,Math.min(n,window.innerWidth-y-4)),top:Math.max(4,Math.min(i,window.innerHeight-m-4))})},[n,i]),g.useEffect(()=>{const y=m=>{m.key==="Escape"&&(m.preventDefault(),m.stopPropagation(),f())};return window.addEventListener("keydown",y,!0),()=>window.removeEventListener("keydown",y,!0)},[f]),s.jsx("div",{className:"kui-dialog-backdrop kui-hide-menu-backdrop",onPointerDown:f,children:s.jsx("div",{ref:h,className:"kui-popover kui-hide-menu",role:"menu",style:v??{left:n,top:i,visibility:"hidden"},onPointerDown:y=>y.stopPropagation(),children:s.jsx(we,{label:o,onSelect:u,testId:r})})})}function uO({top:n,status:i,statusEnd:o,onStatusClick:r,canvas:u,zoom:f,onKeyDown:h,statusBar:v=!0,hiddenCommands:p,fileChangedBar:y=!0,frame:m,children:x}){var le,ve;const b=ze(),C=au(),{session:E,t:w,testId:T}=b,{dirty:S}=E,z=g.useContext(eu),L=Wt(),[K,X]=g.useState(null),[re,ae]=g.useState(null),de=g.useCallback(()=>ae(null),[]),ge=g.useRef(async()=>{});ge.current=async Z=>{try{await L.store.setPersonal(Z)}catch(I){sg(b,w("customizeFailed"),I)}};const je=g.useRef(()=>[]);je.current=()=>Sx({commands:b.commands,declaration:b.host.declaration,engineTools:(C==null?void 0:C.tools)??[],agent:b.host.init.capabilities.includes("agent"),t:w,phrase:b.phrase,config:{...L.store.get(),personal:[]}});const{store:be}=L,Me=be.customizable&&b.host.declaration!==null,Be=g.useMemo(()=>z&&Me?{...z,offerHide:(Z,I,P)=>ae({id:Z,x:I,y:P}),openCustomize:()=>X(je.current()),hide:Z=>void ge.current([...be.get().personal,Z])}:z,[Me,z,be]),ye=Z=>Z.currentTarget.ownerDocument.querySelector(".kui-dialog-backdrop")!=null||Z.target instanceof Element&&Z.target.closest(".kui-dialog")!=null,F=Z=>{!m||Z.nativeEvent.isComposing||ye(Z)||m.keyDown(Z)&&(Z.preventDefault(),Z.stopPropagation())},A=Z=>{H(Z);const I=!Z.metaKey&&!Z.ctrlKey&&!Z.altKey&&!Z.shiftKey;m&&I&&Z.key==="Escape"&&!Z.defaultPrevented&&!Z.nativeEvent.isComposing&&!ye(Z)&&!ug(Z.target)&&m.escape()&&Z.preventDefault()},H=Z=>{if(ye(Z))return;const I=Z.target,P=ug(I);if(P&&!((Z.metaKey||Z.ctrlKey)&&!Z.altKey&&Z.key.toLowerCase()==="s"))return;const ue=I instanceof HTMLTextAreaElement;if(ue&&Z.defaultPrevented||!Z.metaKey&&!Z.ctrlKey&&!Z.altKey&&!Z.shiftKey&&(Z.key===" "||Z.key==="Enter")&&I instanceof Element&&I.matches('button, [role="menuitem"], input[type="checkbox"], input[type="radio"]'))return;if(!P&&!ue&&(C!=null&&C.keyDown(Z))){Z.preventDefault();return}if(!P&&(h!=null&&h(Z))){Z.preventDefault();return}const k=L.config.add.find(Ce=>Ce.shortcut&&!Ce.disabled&&Pg(Ce.shortcut,Z,Es()));if(k){Z.preventDefault(),L.press(k.id);return}const B=Z.metaKey||Z.ctrlKey,W=Z.key.toLowerCase();if(B&&W==="s"){Z.preventDefault(),!L.state("action:save").denied&&!b.host.readOnly&&b.save();return}if(u!=null&&u.current&&B&&(W==="0"||W==="="||W==="+"||W==="-")){Z.preventDefault(),W==="0"?u.current.fit():u.current.zoomBy(W==="-"?1/cg:cg);return}const ie=DD(p?b.commands.filter(Ce=>!p(Ce.id)):b.commands,Z);if(ie&&b.enabled(ie.id)){Z.preventDefault(),b.run(ie.id,{});return}if(ie&&!B&&!(Z.key.length===1&&(C!=null&&C.toolForKey(Z.key,Z.shiftKey)))){Z.preventDefault();const Ce=ie.id;b.enabledNow(Ce).then(He=>He?b.run(Ce,{}):void 0);return}const xe=!B&&!Z.altKey&&Z.key.length===1&&!ue?C==null?void 0:C.toolForKey(Z.key,Z.shiftKey):null;xe&&!L.state(`tool:${xe}`).denied&&(Z.preventDefault(),C==null||C.select(xe))};return s.jsx(wx,{value:Be,children:s.jsxs("div",{ref:m==null?void 0:m.ref,className:"kui-app","data-mode":m==null?void 0:m.mode,"data-chosen-mode":m==null?void 0:m.chosen,"data-density":m!=null&&m.touch?"touch":void 0,"data-view-only":(m==null?void 0:m.viewOnly)||void 0,onKeyDownCapture:F,onKeyDown:A,tabIndex:-1,children:[n,y&&E.conflict&&E.doc?s.jsxs("div",{className:"kui-file-changed",role:"alert","data-testid":`${T}-file-changed`,children:[s.jsx("span",{children:w("fileChanged")}),s.jsx(De,{variant:"ghost",size:"sm",onClick:()=>void E.keepMine().catch(Z=>sg(b,w("saveFailed"),Z)),"data-testid":`${T}-keep-mine`,children:w("keepMine")}),s.jsx(De,{variant:"primary",size:"sm",onClick:()=>E.reopen(),"data-testid":`${T}-reload`,children:w("reloadFile")})]}):null,x,v?s.jsxs(TA,{onClick:r?Z=>!(Z.target instanceof Element&&Z.target.closest('button, input, select, [role="menuitem"]'))&&r():void 0,children:[i,S?s.jsx("span",{"data-testid":`${T}-unsaved`,children:w("unsaved")}):null,((le=E.editedBy)==null?void 0:le.by)==="agent"?s.jsxs("span",{className:"kui-agent-edited","data-testid":`${T}-agent-edited`,children:[s.jsx($c,{size:12,strokeWidth:yt,"aria-hidden":"true"}),w("agentEdited")]}):((ve=E.editedBy)==null?void 0:ve.by)==="system"?s.jsx("span",{className:"kui-host-edited","data-testid":`${T}-host-edited`,title:E.editedBy.originLabel,children:w("hostEdited")}):null,s.jsx(kA,{}),o,u&&f!=null?s.jsx(AA,{zoom:f,onZoom:Z=>{var I;return(I=u.current)==null?void 0:I.zoomTo(Z)},onFit:()=>{var Z;return(Z=u.current)==null?void 0:Z.fit()},labels:{out:w("zoomOut"),in:w("zoomIn"),fit:w("fit")}}):null]}):null,b.dialog?s.jsx(jD,{command:b.dialog.command,values:b.dialog.values,title:b.phrase(b.dialog.command.title),labels:{run:w("run"),cancel:w("cancel"),required:w("required"),more:w("moreOptions")},onClose:()=>b.setDialog(null),onRun:Z=>{const I=b.dialog.command.id;b.setDialog(null),b.run(I,Z)}},b.dialog.command.id):null,K?s.jsx(eO,{catalog:K,personal:L.config.personal,labels:{title:w("customizeTitle"),search:w("customizeSearch"),restore:w("customizeRestore"),cancel:w("cancel"),save:w("customizeSave")},onSave:Z=>{X(null),ge.current(Z)},onClose:()=>X(null)}):null,re?s.jsx(cO,{x:re.x,y:re.y,label:w("hideElement"),testId:`${T}-hide-element`,onHide:()=>{ae(null),ge.current([...L.store.get().personal,re.id])},onClose:de}):null,s.jsx(OA,{})]})})}function bl({label:n,path:i,children:o,uiId:r,testId:u}){const f=r??`menu:${i}`,{phrase:h}=ze(),v=g.useRef(null),p=g.useRef(null),y=g.useRef(null),[m,x]=g.useState(null),b=g.useRef(!1),C=()=>{var z;const S=(z=v.current)==null?void 0:z.getBoundingClientRect();S&&x({left:S.right-2,top:S.top-4,maxHeight:Math.max(0,window.innerHeight-16)})},E=()=>{var S,z;(S=y.current)!=null&&S.contains(document.activeElement)&&((z=p.current)==null||z.focus()),x(null)},w=g.useCallback(()=>{var je;const S=(je=v.current)==null?void 0:je.getBoundingClientRect(),z=y.current;if(!S||!z)return;const L=Math.max(0,window.innerHeight-16),K=Math.min(z.scrollHeight,L),X=z.offsetWidth,re=S.right-2,ae=re+X<=window.innerWidth-4?re:S.left+2-X>=4?S.left+2-X:re,de=Math.max(4,Math.min(ae,window.innerWidth-X-4)),ge=Math.max(8,Math.min(S.top-4,window.innerHeight-8-K));x(be=>!be||be.left===de&&be.top===ge&&be.maxHeight===L?be:{left:de,top:ge,maxHeight:L})},[]),T=m!=null;return g.useLayoutEffect(()=>{if(!T)return;w();const S=y.current;if(!S||typeof ResizeObserver>"u")return;const z=new ResizeObserver(()=>w());z.observe(S);for(const L of S.children)z.observe(L);return()=>z.disconnect()},[T,w]),g.useLayoutEffect(()=>{var S;!m||!b.current||!y.current||(b.current=!1,(S=y.current.querySelector('[role^="menuitem"]:not(:disabled)'))==null||S.focus())},[m]),s.jsxs("div",{ref:v,className:"kui-submenu",onPointerEnter:C,onPointerLeave:E,children:[s.jsxs("div",{ref:p,className:"kui-menu-item",role:"menuitem","aria-haspopup":"menu","aria-expanded":m!=null,tabIndex:-1,"data-kit-ui-id":f,"data-testid":u,onKeyDown:S=>{S.target!==S.currentTarget||!["ArrowRight","Enter"," "].includes(S.key)||(S.preventDefault(),S.stopPropagation(),b.current=!0,C())},children:[s.jsx("span",{style:{width:15}}),s.jsx("span",{children:h(n)}),s.jsx(Bc,{size:13,strokeWidth:yt,"aria-hidden":"true",style:{marginLeft:"auto",opacity:.6}})]}),m?s.jsxs("div",{ref:y,className:"kui-popover kui-submenu-popover",role:"menu",style:{left:m.left,top:m.top,maxHeight:m.maxHeight},onKeyDown:S=>{S.key==="ArrowLeft"?(S.preventDefault(),S.stopPropagation(),E()):gf(S,E)},children:[o,s.jsx(tu,{place:f,as:"menu"})]}):null]})}function dO({children:n}){const{t:i}=ze();return s.jsx(Kc,{className:"kui-options-strip",panelClassName:"kui-options-bar",labels:{start:i("optionsScrollStart"),end:i("optionsScrollEnd")},testId:"options-scroll",children:n})}function fO(n,i={},o=null){const{query:r,session:u}=ze(),[f,h]=g.useState(null),v=JSON.stringify(i);return g.useEffect(()=>{if(!u.doc)return;let p=!1;return r(n,JSON.parse(v)).then(y=>{p||h(y)}),()=>{p=!0}},[o,n,v,r,u.change.revision,u.doc]),f}function hO(n,i){return n===i||n==="*"||i==="*"}function mO(n,i){return n.find(o=>!o.holder.self&&hO(o.scope,i))??null}const T0=[],dg=new WeakMap;function fg(n){return Array.isArray(n)?n.filter(i=>{var o;return!!i&&typeof i.scope=="string"&&typeof((o=i.holder)==null?void 0:o.name)=="string"}):T0}function vO(n){const i=n.init.capabilities.includes("lease");let o=T0;const r=new Set,u=f=>{o=f.length?f:T0;for(const h of[...r])h()};if(i){let f=!1;n.peer.on("lease/changed",h=>{f=!0,u(fg(h==null?void 0:h.leases))}),n.peer.request("host/leases",{}).then(h=>{f||u(fg(h==null?void 0:h.leases))},()=>{})}return{available:i,list:()=>o,subscribe:f=>(r.add(f),()=>r.delete(f)),heldByOther:f=>mO(o,f),acquire:async(f,h)=>{var v;if(n.readOnly)return{granted:!1,reason:"read-only",holder:null};if(!i)return{granted:!0,lease:null};try{const{lease:p}=await n.peer.request("host/leaseAcquire",h===void 0?{scope:f}:{scope:f,ttl:h});return{granted:!0,lease:p??null}}catch(p){const y=p instanceof ht?p.data:void 0;return(y==null?void 0:y.reason)===Z0?{granted:!1,reason:"held",holder:((v=y.lease)==null?void 0:v.holder)??null}:(y==null?void 0:y.reason)==="read-only"?{granted:!1,reason:"read-only",holder:null}:{granted:!0,lease:null}}},release:async f=>{i&&await n.peer.request("host/leaseRelease",{scope:f}).catch(()=>{})}}}function hg(n){let i=dg.get(n);return i||dg.set(n,i=vO(n)),i}function rc(n,i){const o=i==null?`\`${n}\``:`step ${i} (\`${n}\`)`;return new ht(-32e3,`${o} is not allowed: the document is read-only`,i==null?{reason:vn,command:n}:{reason:vn,command:n,step:i})}function mg(n){return new ht(-32e3,n.message,n)}function k0(n){return n instanceof Error?n.message:String(n)}function pO(n){const{origin:i,originLabel:o,draft:r}=n;if(i===void 0){if(o!==void 0)throw new ht(-32602,'`originLabel` names a host feature: it needs `origin: "system"`');return{by:"agent"}}if(i!=="system")throw new ht(-32602,`\`origin\` is "system" or absent, not ${JSON.stringify(i)}`);if(r===!0)throw new ht(-32602,"a host's change (`origin: \"system\"`) is made on the document, not on the agent's draft");if(o!==void 0&&(typeof o!="string"||!Zw.test(o)))throw new ht(-32602,`\`originLabel\` is 1 to 64 letters, digits, \`.\`, \`_\` or \`-\`, not ${JSON.stringify(o)}`);return{by:"system",originLabel:o??Ww}}function gO(n,i,o){const r=`step ${o} (\`${i}\`) failed`;return n instanceof xf?new ht(-32e3,`${r}: ${n.message}`,{reason:Hc,command:i,step:o,errors:n.errors}):n instanceof mx?new ht(-32e3,`${r}: ${n.message}`,{reason:n.reason,command:i,step:o}):n instanceof ht?new ht(n.code,`${r}: ${n.message}`,n.data):new Error(`${r}: ${k0(n)}`)}const yO=new Set(["edit.undo","edit.redo"]),vg={scope:"agent"};function bO(n,i){return new ht(-32e3,`step ${i} (\`${n}\`) cannot run in a call context: this kit's engine keeps no editor state of the agent's own, so its \`on\`, \`part\` and \`time\` cannot be set without moving the person's`,{reason:C0,command:n,step:i})}function MO(n,i){const o=i.toLowerCase().split(/\s+/).filter(Boolean);return n.filter(r=>{const u=`${r.id} ${r.title} ${r.description??""} ${r.params??""}`.toLowerCase();return o.every(f=>u.includes(f))}).map(r=>({id:r.id,title:r.title,description:r.description,enabled:r.enabled,mutates:r.mutates,schema:r.schema??null}))}function xO(n,i,o,r){const u=(r==null?void 0:r.name)||"another session";return new ht(-32e3,`step ${i} (\`${n}\`) is not allowed: ${u} holds the lease on \`${o}\``,{reason:Z0,command:n,step:i,scope:o,...r?{holder:r}:{}})}async function SO(n,i,o,r,u,f){if(!i){const v=o?n.list().find(p=>!p.holder.self&&p.scope==="*"):void 0;if(v)throw f("*",v.holder);return u()}const h=await n.acquire(i,r);if(!h.granted){const v=h;if(v.reason==="read-only")return u();throw f(i,v.holder)}try{return await u()}finally{h.lease&&await n.release(i)}}function wO(n,i,o,r={}){var ve,Z,I;const u=n.init.document.path,f=n.readOnly===!0,h=f&&((ve=n.init.document.comments)==null?void 0:ve.canComment)===!0,v=i.commentCommands,p=g.useMemo(()=>iD(v,h),[h,v]),y=vD(n.files,i,u,!0,o,{readOnly:f,canComment:h,replicaMergesFile:r.replicaMergesFile,followFile:r.followFile}),{doc:m,failure:x}=y,b=(m==null?void 0:m.info.revision)??null,C=(m==null?void 0:m.info.dirty)??!1,E=g.useRef(y);E.current=y;const w=g.useRef({doc:null,map:null,commands:null,loading:null}),T=g.useCallback(P=>{const ue=w.current;if(ue.doc===P&&ue.loading)return ue.loading;const k=P.commands().then(B=>{const W=new Map(B.map(ie=>[ie.id,ie.menu]));return w.current.loading===k&&(w.current={doc:P,map:W,commands:new Map(B.map(ie=>[ie.id,ie])),loading:k}),W});return k.catch(()=>{w.current.loading===k&&(w.current={doc:null,map:null,commands:null,loading:null})}),w.current={doc:P,map:null,commands:null,loading:k},k},[]);g.useEffect(()=>{m&&T(m).catch(()=>{})},[m,T]);const S=g.useCallback(P=>{var k;const ue=(k=w.current.commands)==null?void 0:k.get(P);return Rc(ue??{id:P},p)},[p]),z=g.useCallback(async(P,ue={},k=null,B={})=>{const W=E.current.doc;if(!W)return null;const ie=w.current,xe=ie.doc===W&&ie.map?ie.map:await T(W);if(Yt(n.ui.get(),`command:${P}`,xe.get(P)??[]).denied)throw lc(P);if(f&&S(P))throw rc(P);try{return await y.run(P,ue,k,B)}catch(Ce){throw hx(Ce)?rc(P):Ce}},[S,n,T,f,y.run]),L=r.agentSkipsUnchangedPaint===!0,K=g.useRef(r);K.current=r;const X=g.useMemo(()=>px(Cx,n.init.locale),[n]),re=r.agentLeaseScope!=null;g.useEffect(()=>{re&&hg(n)},[n,re]);const ae=g.useRef(Promise.resolve()),de=g.useRef(null),ge=g.useRef(null),[je,be]=g.useState(null),Me=g.useCallback((P,ue)=>{ge.current={edit:P,revision:ue},be(P)},[]),Be=g.useRef(!1),ye=g.useRef({doc:null,version:null}),F=g.useRef(null);F.current??(F.current=new gD({open:()=>E.current.draft.open(),merge:(P,ue,k,B)=>E.current.draft.merge(P,ue,k,B),compare:(P,ue)=>E.current.draft.compare(P,ue),preview:async P=>{const ue=E.current.doc;return ue?z0(ue,P).catch(()=>null):null},changed:P=>n.peer.notify("draft/changed",P)})),g.useEffect(()=>{const P=F.current;return P.attach(),()=>P.dispose()},[]),g.useEffect(()=>{Be.current||(m?(Be.current=!0,n.opened([...m.info.model?["model","draft","draft-model","check"]:["check"],...m.info.context?["context"]:[],...m.info.changes?["changes"]:[],...m.info.premises?["premises"]:[]])):x&&(Be.current=!0,n.failed(new Error(x))))},[m,x,n]),g.useEffect(()=>{var ue;if(!m)return;const P=de.current??(((ue=ge.current)==null?void 0:ue.revision)===m.info.revision?ge.current.edit:{by:"person"});P.by==="person"&&ge.current&&(ge.current=null,be(null)),n.changed({dirty:m.info.dirty,revision:m.info.revision,title:n.init.document.name,...P})},[m,n,b,C]);const A=((Z=m==null?void 0:m.info.schema)==null?void 0:Z.reads)??null,H=((I=m==null?void 0:m.info.schema)==null?void 0:I.newestAuthor)??null,le=g.useRef(null);return g.useEffect(()=>{if(A===null||H===null||H<=A)return;const P=`${A}:${H}`;le.current!==P&&(le.current=P,n.peer.notify("document/schema",{reads:A,newestAuthor:H}))},[n,H,A]),g.useEffect(()=>{if(!n.replica||!m)return;const P=m.info.replica??null,ue=P?P.join(","):null,k=ye.current;ye.current={doc:m,version:ue},!(k.doc!==m||!P||ue===k.version)&&n.peer.notify("replica/changed",{version:P.slice().buffer})},[m,n,b]),g.useEffect(()=>{const{peer:P}=n;P.handle("document/state",()=>{const J=E.current.doc;return{dirty:(J==null?void 0:J.info.dirty)??!1,revision:(J==null?void 0:J.info.revision)??0,title:n.init.document.name}}),P.handle("document/save",async()=>{var J;if(f)throw new ht(-32e3,"the document is read-only",{reason:vn});return await E.current.save(),{saved:!(((J=E.current.doc)==null?void 0:J.info.dirty)??!0),version:null}});const ue=()=>{const J=E.current.doc;if(!J)throw new Error("the document is still opening");return J},k=F.current,B=J=>{if(f)throw new ht(-32e3,"a draft is not allowed: the document is read-only",{reason:vn});return k.engine(J)};P.handle("ai/inspect",async J=>{const he=(J==null?void 0:J.draft)===!0,Ee=he?await B(!1):ue(),{width:O,height:oe,dirty:fe,canUndo:N,canRedo:G,inspected:me}=Ee.info,pe=`${O} × ${oe}${he?", draft":fe?", unsaved":""}`,ke=J.context?await Ee.inspectAt(J.context,J.part):{details:me};return Ee.agentReply({path:u,kit:i.kitId,revision:Ee.info.revision,summary:pe,dirty:he?!1:fe,canUndo:N,canRedo:G,...ke,...he?{draft:k.info()}:{}})}),P.handle("document/check",async J=>{const he=(J==null?void 0:J.draft)===!0?await B(!1):ue();return he.agentReply({diagnostics:await he.check()})}),P.handle("ai/commands",async({query:J})=>{const he=JR(n.ui.get(),await ue().commands());return MO(f?he.map(Ee=>Rc(Ee,p)?{...Ee,enabled:!1}:Ee):he,J)}),P.handle("ai/run",async J=>{const{steps:he,save:Ee,draft:O}=J,oe=pO(J),fe=ue(),N=await T(fe),G=QR(n.ui.get(),he,ke=>N.get(ke)??[]);if(G>=0)throw lc(he[G].command,G);const me=f?he.findIndex(ke=>S(ke.command)):-1;if(me>=0)throw rc(he[me].command,me);if(O===!0)return He(await B(!0),he);const pe=fe.info.context===!0?-1:he.findIndex(ke=>ke.context!=null);if(pe>=0)throw bO(he[pe].command,pe);return xe(()=>W(fe,he,Ee,oe))});const W=async(J,he,Ee,O)=>{var ke,Re,Pe,Ve;const oe=[],fe=O.by==="system"?{kind:"system",principal:"kdm",label:O.originLabel}:{kind:"agent",principal:((ke=n.init.document.comments)==null?void 0:ke.me)??"agent",label:"ai/run"},N={last:null,meanwhile:!1},G=J.info.context===!0?{state:null}:null,me=Ke=>({...L?{skipUnchangedPaint:!0}:{},origin:fe,...G?{agent:{state:G,set:Ke}}:{}});de.current=O;try{for(const[Ke,Xe]of he.entries()){let wt=J.info.revision,ga;try{const Dt=()=>(wt=J.info.revision,N.last!==null&&wt!==N.last&&(N.meanwhile=!0),z(Xe.command,Xe.params??{},null,me(Xe.context??null)));ga=await Ce(J,Xe.command,Xe.params??{},Ke,Dt,O)}catch(Dt){if(Dt instanceof ht&&((Re=Dt.data)==null?void 0:Re.reason)===Z0)throw Dt;const yn=Dt instanceof ht&&((Pe=Dt.data)==null?void 0:Pe.reason)==="not-allowed"?lc(Xe.command,Ke):Dt instanceof ht&&((Ve=Dt.data)==null?void 0:Ve.reason)===vn?rc(Xe.command,Ke):gO(Dt,Xe.command,Ke);throw O.by==="system"?yn:await ie(J,oe,yn,Xe.command,Ke,N,me(null),O)}let Qt=ga;try{Qt=ga==null?null:JSON.parse(ga)}catch{}if(N.last=J.info.revision,oe.push({command:Xe.command,changed:J.info.revision!==wt,result:Qt}),Qt!==null&&typeof Qt=="object"&&"closed"in Qt&&Qt.closed===!0)return{completed:oe,closed:!0,saved:!1,notRun:he.length-oe.length}}}finally{de.current=null}oe.some(Ke=>Ke.changed)&&Me(O,J.info.revision);const pe=!f&&!Yt(n.ui.get(),"action:save").denied;return Ee&&pe&&J.info.dirty&&await E.current.save(),J.agentReply({completed:oe,saved:Ee&&pe&&!J.info.dirty})},ie=async(J,he,Ee,O,oe,fe,N,G)=>{const me=Ee instanceof ht&&Ee.data&&typeof Ee.data=="object"?Ee.data:{},pe=Ee instanceof ht?Ee.code:-32e3,ke=(Xe,wt,ga)=>{const Qt={...me,command:O,step:oe,completed:wt,...ga?{rolledBack:ga}:{}};return fe.meanwhile&&(Qt.editedMeanwhile=!0),new ht(pe,`${Ee.message}${Xe}`,Qt)},Re=he.filter(Xe=>Xe.changed).length,Pe=Xe=>ke(` The ${he.length} step(s) before it could not be rolled back (${Xe}): they stay in the document; undo them (\`edit.undo\`) or keep them.`,he,null);if(fe.last!==null&&J.info.revision!==fe.last&&(fe.meanwhile=!0),Re===0)return ke(he.length?` The ${he.length} step(s) before it were rolled back: the document is as it was before the run.`:"",[],he);if(he.some(Xe=>yO.has(Xe.command)))return Pe("the steps undid or redid edits themselves");if(fe.meanwhile&&J.info.origins!==!0)return Pe("someone else edited the document while the run was under way, and this kit's engine cannot take back the agent's steps alone: it does not run commands as an origin");let Ve=0,Ke="";for(;Ve<Re;){const Xe=J.info.revision;fe.last!==null&&Xe!==fe.last&&(fe.meanwhile=!0);try{await Ce(J,"edit.undo",vg,oe,()=>z("edit.undo",vg,null,N),G)}catch(wt){Ke=k0(wt);break}if(J.info.revision===Xe){Ke="the kit had nothing more to undo";break}Ve+=1,fe.last=J.info.revision}if(Ve===0)return Pe(Ke);if(Ve<Re){let Xe=Re-Ve,wt=0;for(;Xe>0;)he[wt++].changed&&(Xe-=1);return ke(` Only ${Ve} of the ${Re} step(s) that changed the document could be rolled back (${Ke}): the first ${wt} step(s) stay in the document.`,he.slice(0,wt),he.slice(wt))}return fe.meanwhile?ke(` The ${he.length} step(s) before it were rolled back in the agent's undo scope, but someone else edited the document while the run was under way: their edits stay, and where they changed what those steps made or changed, their change was kept (an object a step created went, with what they did to it). Inspect the document before going on.`,[],he):ke(` The ${he.length} step(s) before it were rolled back: the document is as it was before the run.`,[],he)},xe=J=>{const he=ae.current.then(J,J);return ae.current=he.then(()=>{},()=>{}),he},Ce=async(J,he,Ee,O,oe,fe)=>{var ke,Re;const N=K.current.agentLeaseScope,G=N?hg(n):null;if(!N||!(G!=null&&G.available))return oe();let me="";try{me=await N(he,Ee,J)||""}catch{me=""}const pe=((Re=(ke=w.current.commands)==null?void 0:ke.get(he))==null?void 0:Re.mutates)??!0;return SO(G,me,pe,K.current.agentLeaseTtl,oe,(Pe,Ve)=>(fe.by==="agent"&&n.notify({level:"warning",title:X("agentLeaseHeld",{name:(Ve==null?void 0:Ve.name)||X("someone")})}),xO(he,O,Pe,Ve)))};P.handle("ai/preview",async({maxSize:J,draft:he})=>({png:await z0(he===!0?await B(!1):ue(),J)}));const He=async(J,he)=>{const Ee=[];let O=!1;try{for(const[oe,fe]of he.entries()){const N=J.info.revision;let G;try{G=await J.execute(fe.command,fe.params??{})}catch(pe){throw pe instanceof xf?new ht(-32e3,`step ${oe} (\`${fe.command}\`) failed on the draft: ${pe.message}`,{reason:Hc,command:fe.command,step:oe,errors:pe.errors}):new Error(`step ${oe} (\`${fe.command}\`) failed on the draft: ${k0(pe)}`)}let me=G;try{me=G==null||G===""?null:JSON.parse(G)}catch{}if(Ee.push({command:fe.command,changed:J.info.revision!==N,result:me}),me!==null&&typeof me=="object"&&"closed"in me&&me.closed===!0)return O=!0,{completed:Ee,closed:!0,saved:!1,notRun:he.length-Ee.length}}}finally{!O&&Ee.some(oe=>oe.changed)&&k.edited()}return{completed:Ee,saved:!1}};P.handle("draft/state",()=>k.info()),P.handle("draft/ready",()=>k.ready()),P.handle("draft/reopen",()=>k.reopen()),P.handle("draft/compare",J=>k.compare(Math.max(1,Number(J==null?void 0:J.maxSize)||1024),(J==null?void 0:J.schema)??null)),P.handle("draft/merge",async({origin:J,schema:he=null})=>{var O,oe;if(f)throw new ht(-32e3,"the document is read-only",{reason:vn});const Ee={kind:"agent",principal:String((J==null?void 0:J.principal)??""),...J!=null&&J.label?{label:String(J.label)}:{}};de.current={by:"agent"};try{const fe=await k.merge(Ee,he),N=E.current.doc;return N&&Me({by:"agent"},N.info.revision),fe.merged&&((oe=(O=K.current).draftMerged)==null||oe.call(O,{summary:fe.summary})),fe}catch(fe){throw fe instanceof ls?mg(fe.data):fe}finally{de.current=null}}),P.handle("draft/discard",()=>k.discard());const $=async J=>{if(!ue().info.model)throw new ht(-32601,"the kit's engine does not answer the object model");try{return await J()}catch(he){throw he instanceof ls?mg(he.data):he}};P.handle("model/describe",J=>$(()=>E.current.model.describe((J==null?void 0:J.schema)??null)));const te=J=>{if(ue().info.changes!==!0)throw new ht(-32601,"the kit's engine keeps no replica, so it cannot say what changed");return J()};P.handle("ai/version",()=>te(async()=>({version:await E.current.model.version()}))),P.handle("ai/changes",J=>te(()=>E.current.model.changes(String((J==null?void 0:J.since)??""),(J==null?void 0:J.schema)??null))),P.handle("ai/premise",({method:J,params:he})=>ue().premiseRead(J,he)),P.handle("model/batch",J=>$(async()=>{const{schema:he=null,draft:Ee,...O}=J??{},oe=Array.isArray(O.ops)?O.ops:[];if(f&&oe.length)throw new ls({code:vn,index:null,message:"the document is read-only"});const fe=await T(ue());if(oe.forEach((G,me)=>{if((G==null?void 0:G.op)==="command"&&typeof G.id=="string"&&Yt(n.ui.get(),`command:${G.id}`,fe.get(G.id)??[]).denied)throw new ls({code:"command-failed",index:me,message:lc(G.id).message})}),Ee!==!0)return E.current.model.batch(O,he);const N=await(await B(oe.length>0)).modelBatch(O,he);return oe.length&&k.edited(),N}));const Te=P.on("document/fileChanged",()=>void E.current.checkFile()),_e=P.on("document/held",J=>{typeof(J==null?void 0:J.version)=="string"&&E.current.holdFile(J.version)});return n.replica&&(P.handle("replica/version",async()=>({version:await E.current.replica.version()})),P.handle("replica/export",({since:J})=>E.current.replica.exportChanges(J)),P.handle("replica/import",async({changes:J,blobs:he})=>({damage:await E.current.replica.importChanges(J,he)})),P.handle("replica/info",async()=>({docId:await E.current.replica.docId()}))),()=>{Te(),_e()}},[p,Me,S,n,i.kitId,T,u,f,z,L,X]),{...y,run:z,editedBy:je,comments:p}}const Nx=[{preset:"rect",icon:Ss,label:"drawingRect"},{preset:"roundRect",icon:XM,label:"drawingRoundRect"},{preset:"ellipse",icon:kM,label:"drawingEllipse"},{preset:"triangle",icon:vA,label:"drawingTriangle"},{preset:"diamond",icon:DM,label:"drawingDiamond"},{preset:"rightArrow",icon:jk,label:"drawingArrow"},{preset:"star5",icon:l3,label:"drawingStar"},{preset:"line",icon:IM,label:"drawingLine"}],CO=["Shape","Shapes","Text Box","Textbox"],EO=[.5,.75,1,1.5,2.25,3,4.5,6];function zO({testId:n="drawing",label:i,merge:o,exclude:r,primary:u}){const f=ze(),{t:h}=f,v=!f.enabled("drawing.insert"),p=x=>void f.run("drawing.insert",x),y=f.byId.has("draw.shape"),m=x=>y?void f.run("draw.shape",{preset:x}):p({geometry:{preset:x}});return s.jsxs(nt,{label:i??h("drawingIllustrations"),icon:Ql,children:[s.jsx(et,{icon:Ql,label:h("drawingShapes"),size:"large",disabled:v,testId:`${n}-shapes`,primary:!0,children:Nx.map(x=>s.jsx(we,{icon:x.icon,label:h(x.label),testId:`${n}-shape-${x.preset}`,onSelect:()=>m(x.preset)},x.preset))}),s.jsx(tt,{icon:ir,label:h("drawingTextBox"),size:"large",disabled:v,onClick:()=>p({kind:"textBox",text:""}),"data-testid":`${n}-text-box`,primary:!0}),o?s.jsx(Ax,{path:o,titles:CO,exclude:r,primary:u!=null&&u.length?u:void 0}):null]})}function jO(n,i){const o=parseInt(n.slice(1),16),r=u=>Math.round(u+(255-u)*i);return`#${[o>>16,o>>8&255,o&255].map(u=>r(u).toString(16).padStart(2,"0")).join("").toUpperCase()}`}const TO=[{id:"down",label:"drawingGradientDown",angle:90},{id:"right",label:"drawingGradientRight",angle:0},{id:"diagonal",label:"drawingGradientDiagonal",angle:45},{id:"center",label:"drawingGradientCenter",angle:0,path:"circle"}];function kO(n,i){const o=jO(n,.75),[r,u]=i.path?[o,n]:[n,o];return{gradient:{stops:[{pos:0,color:r},{pos:1,color:u}],angle:i.angle,...i.path?{path:i.path}:{}}}}function AO(n){var h,v,p;const i=ze(),o=((h=i.session.change)==null?void 0:h.revision)??((p=(v=i.session.doc)==null?void 0:v.info)==null?void 0:p.revision),[r,u]=g.useState(null),f=n.join(",");return g.useEffect(()=>{if(n.length===0){u(null);return}let y=!1;return Promise.resolve(i.query("drawing.describe",{ids:[n[0]]})).then(m=>{var x,b,C,E;y||u(((E=(C=(b=(x=m==null?void 0:m.objects)==null?void 0:x[0])==null?void 0:b.fill)==null?void 0:C.color)==null?void 0:E.rgb)??null)}),()=>{y=!0}},[i,f,o]),r}function NO(n){var h,v,p;const i=ze(),o=((h=i.session.change)==null?void 0:h.revision)??((p=(v=i.session.doc)==null?void 0:v.info)==null?void 0:p.revision),[r,u]=g.useState(!1),f=n.join(",");return g.useEffect(()=>{if(n.length===0||!i.enabled("drawing.ungroup")){u(!1);return}let y=!1;return Promise.resolve(i.query("drawing.describe",{ids:[...n]})).then(m=>{var x;y||u(((x=m==null?void 0:m.objects)==null?void 0:x.some(b=>b.kind==="group"))??!1)}),()=>{y=!0}},[i,f,o]),r}const RO=[{id:"bottomRight",label:"drawingShadowBottomRight",shadow:{blur:4,distance:3,angle:45}},{id:"bottom",label:"drawingShadowBottom",shadow:{blur:4,distance:3,angle:90}},{id:"around",label:"drawingShadowAround",shadow:{blur:8,distance:0,angle:0}}],DO=[{preset:"textArchUp",label:"drawingWarpArchUp"},{preset:"textArchDown",label:"drawingWarpArchDown"},{preset:"textCircle",label:"drawingWarpCircle"},{preset:"textWave1",label:"drawingWarpWave1"},{preset:"textWave2",label:"drawingWarpWave2"},{preset:"textInflate",label:"drawingWarpInflate"},{preset:"textDeflate",label:"drawingWarpDeflate"},{preset:"textSlantUp",label:"drawingWarpSlantUp"},{preset:"textSlantDown",label:"drawingWarpSlantDown"},{preset:"textTriangle",label:"drawingWarpTriangle"},{preset:"textChevron",label:"drawingWarpChevron"},{preset:"textCurveUp",label:"drawingWarpCurveUp"},{preset:"textCurveDown",label:"drawingWarpCurveDown"},{preset:"textCanUp",label:"drawingWarpCanUp"}];function OO({disabled:n,testId:i="drawing",onPick:o}){const{t:r}=ze();return s.jsxs(et,{icon:mf,label:r("drawingTransform"),disabled:n,testId:`${i}-transform`,children:[DO.map(u=>s.jsx(we,{label:r(u.label),testId:`${i}-warp-${u.preset}`,onSelect:()=>o(u.preset)},u.preset)),s.jsx(St,{}),s.jsx(we,{label:r("drawingNoTransform"),testId:`${i}-no-warp`,onSelect:()=>o(null)})]})}function LO({ids:n,testId:i="drawing",effects:o=!0}){const r=ze(),{t:u}=r,f=n.length===0||!r.enabled("drawing.format"),h=C=>void r.run("drawing.format",{ids:n,...C}),v=n.length===0||!r.enabled("drawing.arrange"),p=C=>void r.run("drawing.arrange",{ids:n,order:C}),y=NO(n),m=n.length===0||!r.enabled("drawing.text"),x=C=>{for(const E of n)r.run("drawing.text",{id:E,warp:C})},b=AO(n)??"#5645D4";return s.jsxs(s.Fragment,{children:[s.jsx(nt,{label:u("drawingShapeStyles"),icon:ms,children:s.jsxs(Ft,{children:[s.jsxs(et,{icon:ms,label:u("drawingFill"),disabled:f,testId:`${i}-fill`,primary:!0,children:[s.jsx(pn,{onPick:C=>h({fill:{color:C}}),testId:`${i}-fill-colors`}),s.jsx(St,{}),TO.map(C=>s.jsx(we,{label:u(C.label),testId:`${i}-gradient-${C.id}`,onSelect:()=>h({fill:kO(b,C)})},C.id)),s.jsx(St,{}),s.jsx(we,{label:u("drawingNoFill"),testId:`${i}-no-fill`,onSelect:()=>h({fill:{none:!0}})})]}),o?s.jsxs(et,{icon:$c,label:u("drawingEffects"),disabled:f,testId:`${i}-effects`,children:[RO.map(C=>s.jsx(we,{label:u(C.label),testId:`${i}-shadow-${C.id}`,onSelect:()=>h({effects:{shadow:{color:{rgb:"#000000",alpha:.4},...C.shadow}}})},C.id)),s.jsx(we,{label:u("drawingNoShadow"),testId:`${i}-no-shadow`,onSelect:()=>h({effects:{shadow:null}})}),s.jsx(St,{}),s.jsx(we,{label:u("drawingGlow"),testId:`${i}-glow`,onSelect:()=>h({effects:{glow:{color:{rgb:b,alpha:.6},size:5}}})}),s.jsx(we,{label:u("drawingNoGlow"),testId:`${i}-no-glow`,onSelect:()=>h({effects:{glow:null}})})]}):null,s.jsx(OO,{disabled:m,testId:i,onPick:x}),s.jsxs(et,{icon:vs,label:u("drawingOutline"),disabled:f,testId:`${i}-outline`,primary:!0,children:[s.jsx(pn,{onPick:C=>h({stroke:{color:C}}),testId:`${i}-outline-colors`}),s.jsx(St,{}),EO.map(C=>s.jsx(we,{label:u("drawingWeight",{value:C}),testId:`${i}-weight-${C}`,onSelect:()=>h({stroke:{width:C}})},C)),s.jsx(St,{}),s.jsx(we,{label:u("drawingNoOutline"),testId:`${i}-no-outline`,onSelect:()=>h({stroke:{none:!0}})})]})]})}),s.jsxs(nt,{label:u("drawingArrange"),icon:u0,children:[s.jsx(Ft,{children:s.jsx(et,{icon:Ql,label:u("drawingChangeShape"),disabled:f,testId:`${i}-change-shape`,children:Nx.map(C=>s.jsx(we,{icon:C.icon,label:u(C.label),onSelect:()=>h({geometry:{preset:C.preset}})},C.preset))})}),s.jsxs(Ft,{children:[s.jsxs(et,{icon:u0,label:u("drawingBringForward"),disabled:v,testId:`${i}-bring`,primary:!0,children:[s.jsx(we,{label:u("drawingBringForward"),testId:`${i}-bring-forward`,onSelect:()=>p("forward")}),s.jsx(we,{label:u("drawingBringToFront"),testId:`${i}-bring-front`,onSelect:()=>p("front")})]}),s.jsxs(et,{icon:Gk,label:u("drawingSendBackward"),disabled:v,testId:`${i}-send`,primary:!0,children:[s.jsx(we,{label:u("drawingSendBackward"),testId:`${i}-send-backward`,onSelect:()=>p("backward")}),s.jsx(we,{label:u("drawingSendToBack"),testId:`${i}-send-back`,onSelect:()=>p("back")})]})]}),s.jsxs(Ft,{children:[s.jsx(tt,{icon:af,label:u("drawingGroup"),disabled:n.length<2||!r.enabled("drawing.group"),onClick:()=>void r.run("drawing.group",{ids:n}),"data-testid":`${i}-group`,primary:!0}),s.jsx(tt,{icon:zT,label:u("drawingConnect"),disabled:n.length!==2||!r.enabled("drawing.connect"),onClick:()=>void r.run("drawing.connect",{from:n[0],to:n[1]}),"data-testid":`${i}-connect`}),s.jsx(tt,{icon:hf,label:u("drawingUngroup"),disabled:!y,onClick:()=>void r.run("drawing.ungroup",{ids:n}),"data-testid":`${i}-ungroup`}),s.jsx(tt,{icon:Vc,label:u("drawingRotateRight"),disabled:n.length===0||!r.enabled("drawing.transform"),onClick:()=>void r.run("drawing.transform",{ids:n,rotateBy:90}),"data-testid":`${i}-rotate`}),s.jsx(tt,{icon:Tc,label:u("drawingDelete"),disabled:n.length===0||!r.enabled("drawing.delete"),onClick:()=>void r.run("drawing.delete",{ids:n}),"data-testid":`${i}-delete`})]})]})]})}const HO=[{tool:"select",icon:hs,label:"inkSelect"},{tool:"pen",icon:PM,label:"inkPen"},{tool:"pencil",icon:lr,label:"inkPencil"},{tool:"highlighter",icon:_M,label:"inkHighlighter"},{tool:"eraser",icon:Fc,label:"inkEraser"}],BO=[.5,1,1.5,2,3,4.5,6,12],_O=["pen","pencil","highlighter"];function FO({testId:n="ink"}){var E;const i=ze(),o=au(),{t:r}=i,u=(E=i.session.change)==null?void 0:E.revision,[f,h]=g.useState(null),v=g.useCallback(()=>{i.query("draw.state").then(w=>{w&&h(w)})},[i]);g.useEffect(()=>{v();const w=setTimeout(v,60);return()=>clearTimeout(w)},[v,u,o==null?void 0:o.active]);const p=w=>(o==null?void 0:o.tools.some(T=>T.id===w))??!1,y=async w=>{p(w)?o==null||o.select(w):await i.run(`draw.${w}`,{}),v()},m=o&&p((f==null?void 0:f.tool)??"select")&&o.tools.some(w=>w.id===o.active)?o.active:f==null?void 0:f.tool,x=f&&_O.includes(f.tool)?f.tool:null,b=async w=>{x&&(await i.run(`draw.${x}`,w),v())},C=!i.enabled("draw.pen");return s.jsxs(s.Fragment,{children:[s.jsx(nt,{label:r("inkTools"),icon:PM,children:HO.map(w=>s.jsx(tt,{icon:w.icon,label:r(w.label),size:"large",pressed:m===w.tool,disabled:C&&w.tool!=="select",onClick:()=>void y(w.tool),"data-testid":`${n}-${w.tool}`,primary:!0},w.tool))}),s.jsx(nt,{label:r("inkPens"),icon:vs,children:s.jsxs(Ft,{children:[s.jsx(et,{icon:nr,label:r("inkColor"),disabled:!x,swatch:x?f==null?void 0:f.color:void 0,testId:`${n}-color`,primary:!0,children:s.jsx(pn,{onPick:w=>void b({color:w}),testId:`${n}-colors`})}),s.jsx(et,{icon:vs,label:r("inkWeight"),disabled:!x,testId:`${n}-weight`,primary:!0,children:BO.map(w=>s.jsx(we,{label:r("drawingWeight",{value:w}),checked:(f==null?void 0:f.width)===w,testId:`${n}-weight-${w}`,onSelect:()=>void b({width:w})},w))})]})})]})}const Rx=["axes","labelPosition","lineWidth","marker","smooth","trends","combo"],UO=["column","stackedColumn","line","lineMarkers","area"],IO=[{id:"linear",label:"chartTrendLinear",trendline:{kind:"linear"}},{id:"exp",label:"chartTrendExp",trendline:{kind:"exp"}},{id:"forecast",label:"chartTrendForecast",trendline:{kind:"linear",forward:2}},{id:"movingAvg",label:"chartTrendMovingAvg",trendline:{kind:"movingAvg",period:2}}],VO=[{id:"stdErr",label:"chartErrStdErr",errorBars:{kind:"stdErr"}},{id:"percentage",label:"chartErrPercent",errorBars:{kind:"percentage",value:5}},{id:"stdDev",label:"chartErrStdDev",errorBars:{kind:"stdDev",value:1}}],qO=["none","auto","circle","dash","diamond","dot","plus","square","star","triangle","x"];function $O(n){switch(n){case"pie":return["bestFit","ctr","inEnd","outEnd"];case"doughnut":return[];case"column":case"bar":return["ctr","inBase","inEnd","outEnd"];case"stackedColumn":case"percentColumn":case"stackedBar":case"percentBar":return["ctr","inBase","inEnd"];case"line":case"lineMarkers":case"stackedLine":case"scatter":return["ctr","l","r","t","b"];default:return[]}}function Dx(n){return n==="line"||n==="lineMarkers"||n==="stackedLine"||n==="scatter"||n==="radar"}const Ef=[{kind:"column",icon:Wl,label:"chartColumn"},{kind:"stackedColumn",icon:AT,label:"chartStackedColumn"},{kind:"bar",icon:Wl,label:"chartBar"},{kind:"line",icon:mp,label:"chartLine"},{kind:"lineMarkers",icon:mp,label:"chartLineMarkers"},{kind:"area",icon:kT,label:"chartArea"},{kind:"pie",icon:vp,label:"chartPie"},{kind:"doughnut",icon:vp,label:"chartDoughnut"},{kind:"scatter",icon:NT,label:"chartScatter"},{kind:"radar",icon:Fk,label:"chartRadar"}],GO=["top","bottom","left","right"];function PO({testId:n="chart",size:i="large",primary:o}){const r=ze(),{t:u}=r;return s.jsx(et,{icon:Wl,label:u("chartInsert"),size:i,disabled:!r.enabled("drawing.insert"),testId:`${n}-insert`,primary:o,children:Ef.map(f=>s.jsx(we,{icon:f.icon,label:u(f.label),testId:`${n}-insert-${f.kind}`,onSelect:()=>void r.run("drawing.insert",{kind:"chart",chart:{kind:f.kind}})},f.kind))})}function KO(n){var f,h,v;const i=ze(),o=((f=i.session.change)==null?void 0:f.revision)??((v=(h=i.session.doc)==null?void 0:h.info)==null?void 0:v.revision),[r,u]=g.useState(null);return g.useEffect(()=>{if(!n){u(null);return}let p=!1;return i.query("drawing.describe",{ids:[n]}).then(y=>{var m,x;p||u(((x=(m=y==null?void 0:y.objects)==null?void 0:m[0])==null?void 0:x.chart)??null)}),()=>{p=!0}},[i,n,o]),r}function YO({id:n,testId:i="chart",dataEditable:o=!0,formats:r=Rx}){const u=ze(),{t:f}=u,h=KO(n),[v,p]=g.useState(!1),[y,m]=g.useState(null),x=!h||!u.enabled("drawing.chart"),b=S=>void u.run("drawing.chart",{id:n,...S}),C=typeof(h==null?void 0:h.kind)=="object",E=(h==null?void 0:h.kind)==="pie"||(h==null?void 0:h.kind)==="doughnut",w=E||(h==null?void 0:h.kind)==="radar"||C,T=S=>b({seriesFormat:((h==null?void 0:h.series)??[]).map((z,L)=>({index:L,...S}))});return s.jsxs(s.Fragment,{children:[s.jsx(nt,{label:f("chartType"),icon:Wl,children:s.jsx(et,{icon:Wl,label:f("chartChangeType"),size:"large",disabled:x||C,testId:`${i}-type`,primary:!0,children:Ef.map(S=>s.jsx(we,{icon:S.icon,label:f(S.label),checked:(h==null?void 0:h.kind)===S.kind,testId:`${i}-type-${S.kind}`,onSelect:()=>b(S.kind==="pie"||S.kind==="doughnut"?QO(h,S.kind):{kind:S.kind})},S.kind))})}),s.jsxs(nt,{label:f("chartElements"),icon:uk,children:[s.jsxs(Ft,{children:[s.jsx(tt,{icon:BM,label:f("chartTitle"),pressed:(h==null?void 0:h.title)!=null,disabled:x,onClick:()=>b({title:(h==null?void 0:h.title)!=null?null:f("chartTitleText")}),"data-testid":`${i}-title`,primary:!0}),s.jsxs(et,{icon:ir,label:f("chartLegend"),disabled:x,testId:`${i}-legend`,primary:!0,children:[GO.map(S=>s.jsx(we,{label:f(`chartLegend_${S}`),checked:(h==null?void 0:h.legend)===S,testId:`${i}-legend-${S}`,onSelect:()=>b({legend:S})},S)),s.jsx(St,{}),s.jsx(we,{label:f("chartLegendNone"),checked:h!=null&&h.legend==null,testId:`${i}-legend-none`,onSelect:()=>b({legend:null})})]}),s.jsx(tt,{icon:nf,label:f("chartDataLabels"),pressed:(h==null?void 0:h.dataLabels)??!1,disabled:x,onClick:()=>b({dataLabels:!(h!=null&&h.dataLabels)}),"data-testid":`${i}-data-labels`,primary:!0})]}),s.jsxs(Ft,{children:[s.jsx(tt,{icon:fs,label:f("chartGridlines"),pressed:(h==null?void 0:h.gridlines)??!1,disabled:x||E,onClick:()=>b({gridlines:!(h!=null&&h.gridlines)}),"data-testid":`${i}-gridlines`}),r.includes("trends")?s.jsxs(s.Fragment,{children:[s.jsxs(et,{icon:mA,label:f("chartTrendline"),disabled:x||w,testId:`${i}-trendline`,children:[IO.map(S=>s.jsx(we,{label:f(S.label),testId:`${i}-trendline-${S.id}`,onSelect:()=>T({trendline:S.trendline})},S.id)),s.jsx(St,{}),s.jsx(we,{label:f("chartNone"),testId:`${i}-trendline-none`,onSelect:()=>T({trendline:null})})]}),s.jsxs(et,{icon:cr,label:f("chartErrorBars"),disabled:x||w,testId:`${i}-error-bars`,children:[VO.map(S=>s.jsx(we,{label:f(S.label),testId:`${i}-error-bars-${S.id}`,onSelect:()=>T({errorBars:S.errorBars})},S.id)),s.jsx(St,{}),s.jsx(we,{label:f("chartNone"),testId:`${i}-error-bars-none`,onSelect:()=>T({errorBars:null})})]})]}):null,s.jsx(tt,{icon:ir,label:f("chartAxisTitles"),pressed:(h==null?void 0:h.xTitle)!=null||(h==null?void 0:h.yTitle)!=null,disabled:x||E,onClick:()=>(h==null?void 0:h.xTitle)!=null||(h==null?void 0:h.yTitle)!=null?b({xTitle:null,yTitle:null}):b({xTitle:f("chartAxisTitleText"),yTitle:f("chartAxisTitleText")}),"data-testid":`${i}-axis-titles`})]})]}),s.jsx(XO,{spec:h,disabled:x,formats:r,testId:i,onChange:b,onDialog:m}),o?s.jsx(nt,{label:f("chartData"),icon:Gc,children:s.jsx(tt,{icon:ss,label:f("chartEditData"),size:"large",disabled:x,onClick:()=>p(!0),"data-testid":`${i}-edit-data`,primary:!0})}):null,v&&h?s.jsx(JO,{spec:h,testId:i,onClose:()=>p(!1),onApply:S=>b(S)}):null,y==="axis"&&h?s.jsx(ZO,{spec:h,testId:i,onClose:()=>m(null),onApply:b}):null,y==="series"&&h?s.jsx(WO,{spec:h,formats:r,testId:i,onClose:()=>m(null),onApply:b}):null]})}function XO({spec:n,disabled:i,formats:o,testId:r,onChange:u,onDialog:f}){const{t:h}=ze(),v=(n==null?void 0:n.kind)==="pie"||(n==null?void 0:n.kind)==="doughnut",p=typeof(n==null?void 0:n.kind)=="object",y=$O(n==null?void 0:n.kind),m=o.filter(b=>b==="lineWidth"||b==="marker"||b==="smooth"||b==="combo"),x=m.includes("lineWidth")||Dx(n==null?void 0:n.kind)&&m.length>0||m.includes("combo")&&typeof(n==null?void 0:n.kind)=="string"&&!["pie","doughnut","radar","scatter"].includes(n.kind);return!o.includes("axes")&&!o.includes("labelPosition")&&m.length===0?null:s.jsx(nt,{label:h("chartFormat"),icon:nr,children:s.jsxs(Ft,{children:[o.includes("axes")?s.jsx(tt,{icon:cr,label:h("chartFormatAxis"),disabled:i||v||p,onClick:()=>f("axis"),"data-testid":`${r}-format-axis`}):null,o.includes("labelPosition")?s.jsx(et,{icon:s3,label:h("chartLabelPosition"),disabled:i||y.length===0,testId:`${r}-label-position`,children:y.map(b=>s.jsx(we,{label:h(`chartLabel_${b}`),checked:(n==null?void 0:n.dataLabels)===!0&&n.dataLabelPosition===b,testId:`${r}-label-position-${b}`,onSelect:()=>u({dataLabels:!0,dataLabelPosition:b})},b))}):null,m.length>0?s.jsx(tt,{icon:vs,label:h("chartFormatSeries"),disabled:i||p||!x,onClick:()=>f("series"),"data-testid":`${r}-format-series`}):null]})})}function pc(n){if(n.trim()==="")return null;const i=Number(n);return Number.isFinite(i)?i:void 0}const gc=n=>n==null?"":String(n);function ZO({spec:n,onApply:i,onClose:o,testId:r="chart"}){const{t:u}=ze(),[f,h]=g.useState("yAxis"),v=z=>n[z]??{},[p,y]=g.useState(()=>pg(v("yAxis"))),m=f==="yAxis"||n.kind==="scatter",x=pc(p.min),b=pc(p.max),C=pc(p.major),E=m&&(x===void 0||b===void 0||C===void 0||C!=null&&C<=0||x!=null&&b!=null&&x>=b)||p.numberFormat.length>255,w=z=>{h(z),y(pg(v(z)))},T=()=>{const z={numberFormat:p.numberFormat.trim()||null,hidden:!p.shown};m&&Object.assign(z,{min:x,max:b,major:C}),i({[f]:z}),o()},S=(z,L,K)=>{const X=p[z],re=K&&X.trim()!==""&&!Number.isFinite(Number(X));return[s.jsx("label",{htmlFor:`chart-axis-${z}`,children:L},`${z}-label`),s.jsx("input",{id:`chart-axis-${z}`,className:"kui-field",inputMode:K?"decimal":void 0,placeholder:u("chartAxisAuto"),"aria-invalid":re,value:X,onChange:ae=>y(de=>({...de,[z]:ae.target.value})),"data-testid":`${r}-axis-${z}`},z)]};return s.jsx(Cs,{title:u("chartFormatAxis"),onClose:o,testId:`${r}-axis`,actions:s.jsxs(s.Fragment,{children:[s.jsx(De,{onClick:o,children:u("cancel")}),s.jsx(De,{variant:"primary",disabled:E,onClick:T,"data-testid":`${r}-axis-ok`,children:u("chartOk")})]}),children:s.jsxs("div",{className:"kui-param-grid",children:[s.jsx("span",{children:u("chartAxis")}),s.jsx(mc,{label:u("chartAxis"),quiet:!0,value:f,choices:[["yAxis",u("chartAxisValue")],["xAxis",u("chartAxisCategory")]],onChange:w,testId:`${r}-axis-which`}),m?[...S("min",u("chartAxisMin"),!0),...S("max",u("chartAxisMax"),!0),...S("major",u("chartAxisMajor"),!0)]:null,S("numberFormat",u("chartAxisNumberFormat"),!1),s.jsx("span",{}),s.jsx(ar,{label:u("chartAxisShow"),checked:p.shown,onChange:z=>y(L=>({...L,shown:z})),testId:`${r}-axis-shown`})]})})}function pg(n){return{min:gc(n.min),max:gc(n.max),major:gc(n.major),numberFormat:n.numberFormat??"",shown:!n.hidden}}function WO({spec:n,formats:i=Rx,onApply:o,onClose:r,testId:u="chart"}){const{t:f}=ze(),h=Dx(n.kind),v=i.includes("combo")&&typeof n.kind=="string"&&!["pie","doughnut","radar","scatter"].includes(n.kind),[p,y]=g.useState(0),m=T=>{const S=n.series[T];return{lineWidth:gc(S==null?void 0:S.lineWidth),marker:(S==null?void 0:S.marker)??"",smooth:(S==null?void 0:S.smooth)??!1,kind:typeof(S==null?void 0:S.kind)=="string"?S.kind:"",secondary:(S==null?void 0:S.secondary)??!1}},[x,b]=g.useState(()=>m(0)),C=pc(x.lineWidth),E=C===void 0||C!=null&&(C<0||C>100),w=()=>{const T={index:p};i.includes("lineWidth")&&(T.lineWidth=C),h&&i.includes("marker")&&(T.marker=x.marker===""?null:x.marker),h&&i.includes("smooth")&&(T.smooth=x.smooth),v&&(T.kind=x.kind===""?null:x.kind,T.secondary=x.secondary),o({seriesFormat:[T]}),r()};return s.jsx(Cs,{title:f("chartFormatSeries"),onClose:r,testId:`${u}-series`,actions:s.jsxs(s.Fragment,{children:[s.jsx(De,{onClick:r,children:f("cancel")}),s.jsx(De,{variant:"primary",disabled:E,onClick:w,"data-testid":`${u}-series-ok`,children:f("chartOk")})]}),children:s.jsxs("div",{className:"kui-param-grid",children:[s.jsx("span",{children:f("chartSeries")}),s.jsx(mc,{label:f("chartSeries"),quiet:!0,value:String(p),choices:n.series.map((T,S)=>[String(S),T.name]),onChange:T=>{y(Number(T)),b(m(Number(T)))},testId:`${u}-series-which`}),i.includes("lineWidth")?[s.jsx("label",{htmlFor:"chart-series-width",children:f("chartLineWidth")},"w-label"),s.jsx("input",{id:"chart-series-width",className:"kui-field",inputMode:"decimal",placeholder:f("chartAxisAuto"),"aria-invalid":E,value:x.lineWidth,onChange:T=>b(S=>({...S,lineWidth:T.target.value})),"data-testid":`${u}-series-width`},"w")]:null,h&&i.includes("marker")?[s.jsx("span",{children:f("chartMarker")},"m-label"),s.jsx(mc,{label:f("chartMarker"),quiet:!0,value:x.marker,choices:[["",f("chartMarker_auto")],...qO.filter(T=>T!=="auto").map(T=>[T,f(`chartMarker_${T}`)])],onChange:T=>b(S=>({...S,marker:T})),testId:`${u}-series-marker`},"m")]:null,v?[s.jsx("span",{children:f("chartSeriesType")},"k-label"),s.jsx(mc,{label:f("chartSeriesType"),quiet:!0,value:x.kind,choices:[["",f("chartSeriesTypeChart")],...UO.map(T=>{var S;return[T,f(((S=Ef.find(z=>z.kind===T))==null?void 0:S.label)??T)]})],onChange:T=>b(S=>({...S,kind:T})),testId:`${u}-series-kind`},"k"),s.jsx("span",{},"x-label"),s.jsx(ar,{label:f("chartSecondaryAxis"),checked:x.secondary,onChange:T=>b(S=>({...S,secondary:T})),testId:`${u}-series-secondary`},"x")]:null,h&&i.includes("smooth")?[s.jsx("span",{},"s-label"),s.jsx(ar,{label:f("chartSmooth"),checked:x.smooth,onChange:T=>b(S=>({...S,smooth:T})),testId:`${u}-series-smooth`},"s")]:null]})})}function QO(n,i){return!n||n.series.length<=1?{kind:i}:{kind:i,series:[{name:n.series[0].name,values:n.series[0].values}]}}function JO({spec:n,onApply:i,onClose:o,testId:r="chart"}){const{t:u}=ze(),[f,h]=g.useState(n.categories),[v,p]=g.useState(n.series.map(w=>w.name)),[y,m]=g.useState(()=>n.series.map(w=>n.categories.map((T,S)=>w.values[S]==null?"":String(w.values[S])))),x=n.kind==="pie"||n.kind==="doughnut",b=y.some(w=>w.some(T=>T.trim()!==""&&!Number.isFinite(Number(T)))),C=()=>{i({categories:f,series:v.map((w,T)=>({name:w,values:y[T].map(S=>S.trim()===""?null:Number(S))}))}),o()},E=(w,T,S)=>m(z=>z.map((L,K)=>K===w?L.map((X,re)=>re===T?S:X):L));return s.jsxs(Cs,{title:u("chartEditData"),onClose:o,testId:`${r}-data`,actions:s.jsxs(s.Fragment,{children:[s.jsx(De,{onClick:o,children:u("cancel")}),s.jsx(De,{variant:"primary",disabled:b||v.length===0,onClick:C,"data-testid":`${r}-data-ok`,children:u("chartOk")})]}),children:[s.jsx("div",{style:{maxHeight:360,overflow:"auto"},children:s.jsxs("table",{className:"kui-chart-data",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{}),v.map((w,T)=>s.jsx("th",{children:s.jsx("input",{"aria-label":u("chartSeriesName",{n:T+1}),value:w,onChange:S=>p(z=>z.map((L,K)=>K===T?S.target.value:L)),"data-testid":`${r}-data-series-${T}`})},T))]})}),s.jsx("tbody",{children:f.map((w,T)=>s.jsxs("tr",{children:[s.jsx("th",{children:s.jsx("input",{"aria-label":u("chartCategoryName",{n:T+1}),value:w,onChange:S=>h(z=>z.map((L,K)=>K===T?S.target.value:L)),"data-testid":`${r}-data-category-${T}`})}),v.map((S,z)=>s.jsx("td",{children:s.jsx("input",{inputMode:"decimal","aria-label":u("chartValue",{series:v[z],category:w}),"aria-invalid":y[z][T].trim()!==""&&!Number.isFinite(Number(y[z][T])),value:y[z][T],onChange:L=>E(z,T,L.target.value),"data-testid":`${r}-data-cell-${z}-${T}`})},z))]},T))})]})}),s.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[s.jsx(De,{onClick:()=>{h(w=>[...w,u("chartCategoryText",{n:w.length+1})]),m(w=>w.map(T=>[...T,""]))},"data-testid":`${r}-data-add-category`,children:u("chartAddCategory")}),s.jsx(De,{disabled:x,onClick:()=>{p(w=>[...w,u("chartSeriesText",{n:w.length+1})]),m(w=>[...w,f.map(()=>"")])},"data-testid":`${r}-data-add-series`,children:u("chartAddSeries")}),s.jsx(De,{disabled:f.length<=1,onClick:()=>{h(w=>w.slice(0,-1)),m(w=>w.map(T=>T.slice(0,-1)))},"data-testid":`${r}-data-remove-category`,children:u("chartRemoveCategory")}),s.jsx(De,{disabled:v.length<=1,onClick:()=>{p(w=>w.slice(0,-1)),m(w=>w.slice(0,-1))},"data-testid":`${r}-data-remove-series`,children:u("chartRemoveSeries")})]})]})}const eL=4e3;function tL({tool:n,onExit:i}){const o=ze(),r=au(),u=Wt(),{undo:f}=Cf(),{host:h,t:v,testId:p,phrase:y}=o,m=r==null?void 0:r.tools.find(T=>T.id===r.active),x=n??(m?{label:y(m.label),icon:MD(m.icon,m.id)}:null),b=u.state("action:agent"),C=x==null?void 0:x.icon,[E,w]=g.useState(!0);return g.useEffect(()=>{const T=setTimeout(()=>w(!1),eL);return()=>clearTimeout(T)},[]),s.jsxs("div",{className:"kui-focus-bar",role:"toolbar","aria-label":v("focusBar"),"data-fresh":E||void 0,"data-testid":`${p}-focus-bar`,children:[s.jsxs(De,{variant:"ghost",className:"kui-focus-exit",title:`${v("exitFocus")} (Esc)`,onClick:i,"data-testid":`${p}-focus-exit`,"data-kit-ui-id":"action:mode",children:[s.jsx(wk,{size:16,strokeWidth:yt,"aria-hidden":"true"}),v("exitFocus"),s.jsx("kbd",{children:"Esc"})]}),f.hidden?null:s.jsx(ua,{icon:ff,label:v("undo"),disabled:f.disabled,onClick:()=>void o.run("edit.undo",{}),"data-testid":`${p}-focus-undo`,"data-kit-ui-id":"action:undo"}),h.init.capabilities.includes("agent")&&!b.hidden?s.jsx(ua,{icon:$c,label:v("askAgent"),disabled:b.disabled,onClick:()=>void h.openAgent(),"data-testid":`${p}-focus-ask`,"data-kit-ui-id":"action:agent"}):null,x&&C?s.jsxs("span",{className:"kui-focus-tool","data-testid":`${p}-focus-tool`,children:[s.jsx(C,{size:16,strokeWidth:yt,"aria-hidden":"true"}),x.label]}):null]})}const aL="---";function nL(n){var o,r;const i=[];for(const u of n)u.kind==="separator"&&(i.length===0||((o=i.at(-1))==null?void 0:o.kind)==="separator")||i.push(u);return((r=i.at(-1))==null?void 0:r.kind)==="separator"&&i.pop(),i}function Ox(n,i,o,r){const u=[],f=new Set;for(const h of n){if(h.path.length===i){h.command===aL?u.push({kind:"separator"}):o(h)&&u.push({kind:"row",row:h});continue}const v=h.path[i];if(f.has(v))continue;f.add(v);const p=h.path.slice(0,i+1).join("/"),y=Ox(n.filter(m=>m.path.length>i&&m.path[i]===v),i+1,o,r);(y.length||r(p))&&u.push({kind:"submenu",label:v,path:p,children:y})}return nL(u)}function lL(n,i,o=()=>!1){const r=[];for(const u of n){const f=u.path[0];f&&!r.includes(f)&&r.push(f)}return r.map(u=>({label:u,children:Ox(n.filter(f=>f.path[0]===u),1,i,o)})).filter(u=>u.children.length>0||o(u.label))}function iL({row:n,checked:i,onKitCommand:o}){const{phrase:r,testId:u}=ze(),f=Wt(),h=Jc(n.command);f.declared;const v=f.state(h,n.path);return s.jsx(we,{label:r(n.label),shortcut:n.shortcut,disabled:v.disabled,checked:i,onSelect:()=>!v.denied&&(o==null?void 0:o(n.command)),testId:`${u}-${h.replace(":","-")}`,uiId:h})}function Lx({nodes:n,checked:i,onKitCommand:o,onCommand:r}){const{phrase:u}=ze();return s.jsx(s.Fragment,{children:n.map((f,h)=>{if(f.kind==="separator")return s.jsx(St,{},`---${h}`);if(f.kind==="submenu")return s.jsx(bl,{label:f.label,path:f.path,children:s.jsx(Lx,{nodes:f.children,checked:i,onKitCommand:o,onCommand:r})},`menu:${f.path}`);const{row:v}=f,p=`${v.command}@${h}`;return v.command.startsWith(ai)?s.jsx(iL,{row:v,checked:i==null?void 0:i(v.command),onKitCommand:o},p):s.jsx(Le,{command:v.command,path:v.path,label:u(v.label),shortcut:v.shortcut??void 0,checked:i==null?void 0:i(v.command),onRun:r},p)})})}function rL({tree:n,nodes:i}){var o,r;return s.jsxs(s.Fragment,{children:[(o=n.before)==null?void 0:o.map(u=>s.jsx(we,{icon:u.icon,label:u.label,onSelect:u.onSelect,testId:u.testId},u.label)),(r=n.before)!=null&&r.length&&i.length?s.jsx(St,{}):null,s.jsx(Lx,{nodes:i,checked:n.checked,onKitCommand:n.onKitCommand,onCommand:n.onCommand})]})}function sL(n){const{byId:i}=ze(),{config:o,sessionHidden:r}=Wt(),u=g.useRef(new WeakMap);return g.useMemo(()=>{var v;const f=new Map,h=p=>ux(o,`menu:${p}`).length>0&&!Yt(o,`menu:${p}`).hidden;for(const p of n){if(!p.menu)continue;const{rows:y,hidden:m}=p.menu,x=u.current.get(y);if(x&&x.hidden===m&&x.config===o&&x.byId===i&&x.sessionHidden===r){f.set(p.id,x.nodes);continue}const b=((v=lL(y,C=>{var w;if(m!=null&&m(C)||!C.command.startsWith(ai)&&r(C.command))return!1;const E=Jc(C.command);return!Yt(o,E,C.path).hidden&&!Yt(o,E,((w=i.get(C.command))==null?void 0:w.menu)??[]).hidden},h).find(C=>C.label===p.id))==null?void 0:v.children)??[];u.current.set(y,{hidden:m,config:o,byId:i,sessionHidden:r,nodes:b}),f.set(p.id,b)}return f},[i,o,r,n])}const is=n=>n.flatMap(i=>i.kind==="row"?[i.row]:i.kind==="submenu"?is(i.children):[]),oL=5;function gg({row:n,tree:i,primary:o}){var b,C;const r=ze(),u=Wt(),{byId:f,phrase:h,testId:v}=r,p=h(n.label);if(n.command.startsWith(ai)){const E=Jc(n.command),w=u.state(E,n.path),T=sr({id:n.command.slice(ai.length),title:n.label});return s.jsx(tt,{icon:T,lineLabel:T===bs,primary:o,label:p,pressed:(b=i.checked)==null?void 0:b.call(i,n.command),disabled:w.disabled,onClick:()=>{var S;return!w.denied&&((S=i.onKitCommand)==null?void 0:S.call(i,n.command))},"data-testid":`${v}-${E.replace(":","-")}`,"data-kit-ui-id":E})}const y=f.get(n.command),m=u.state(`command:${n.command}`,n.path),x=sr(y??{id:n.command,title:n.label});return s.jsx(tt,{icon:x,lineLabel:x===bs,primary:o,label:p,pressed:(C=i.checked)==null?void 0:C.call(i,n.command),disabled:!r.enabled(n.command)||m.disabled,onClick:()=>{i.onCommand&&!(y&&Qc(y))?i.onCommand(n.command):r.run(n.command)},"data-testid":`${v}-cmd-${n.command}`,"data-kit-ui-id":`command:${n.command}`})}function cL({tab:n,nodes:i}){var C,E;const{byId:o,phrase:r}=ze(),u=Cf(),f=new Set([...u.undo.hidden?[]:["edit.undo"],...u.redo.hidden?[]:["edit.redo"]]),h=w=>w.filter(T=>!f.has(T.command)),v=w=>{const T=w.find(S=>S.command!=="---");return T?sr(o.get(T.command)??{id:T.command.replace(ai,""),title:T.label}):void 0},p=n.menu;if(!p)return null;const y=h(i.flatMap(w=>w.kind==="row"?[w.row]:[])),m=i.flatMap(w=>w.kind==="submenu"&&h(is(w.children)).length?[w]:[]),x=p.primary?null:new Set([...y,...m.flatMap(w=>h(is(w.children)))].filter(w=>w.command!=="---").slice(0,oL).map(w=>w.command)),b=w=>{var T;return x?x.has(w.command):(T=p.primary)==null?void 0:T.includes(w.command)};return s.jsxs(s.Fragment,{children:[y.length||(C=p.before)!=null&&C.length?s.jsx(nt,{id:`menu:${n.id}`,label:n.label,icon:v(y),children:s.jsxs("div",{className:"kui-command-grid",children:[(E=p.before)==null?void 0:E.map(w=>{const T=w.icon??sr({id:w.testId??w.label,title:w.label});return s.jsx(tt,{icon:T,lineLabel:!w.icon&&T===bs,primary:w.primary,label:w.label,onClick:w.onSelect,"data-testid":w.testId},w.label)}),y.map((w,T)=>s.jsx(gg,{row:w,tree:p,primary:b(w)},`${w.command}@${T}`))]})}):null,m.map(w=>s.jsx(nt,{id:`menu:${w.path}`,label:r(w.label),icon:v(h(is(w.children))),children:s.jsx("div",{className:"kui-command-grid",children:h(is(w.children)).map((T,S)=>s.jsx(gg,{row:T,tree:p,primary:b(T)},`${T.command}@${S}`))})},w.path))]})}const yg={menus:xk,line:XM,classic:GM,focus:OM},bg=()=>Es()?"Cmd+\\":"Ctrl+\\";function uL({display:n,shown:i,areas:o=!0}){const{t:r,testId:u}=ze(),f=Wt().state("action:mode");if(f.hidden||n.allowed.length<2)return null;if(!o){const y=`${r("mode_focus")} (${bg()})`;return s.jsx(ua,{icon:OM,label:y,className:"kui-mode-button",disabled:f.disabled,onClick:()=>n.choose("focus"),"data-testid":`${u}-mode-focus`,"data-kit-ui-id":"action:mode"})}const h=yg[n.chosen],v=i!==n.chosen,p=v?r("modeStepped",{mode:r(`mode_${n.chosen}`),shown:r(`mode_${i}`)}):r("modeButton",{mode:r(`mode_${n.chosen}`)});return s.jsx(Un,{align:"end",trigger:({toggle:y,open:m})=>s.jsx("button",{type:"button",className:"kui-icon-button kui-mode-button","aria-label":p,title:p,"aria-haspopup":"menu","aria-expanded":m,"data-stepped":v||void 0,disabled:f.disabled,onClick:y,"data-testid":`${u}-mode`,"data-kit-ui-id":"action:mode",children:s.jsx(h,{size:16,strokeWidth:yt,"aria-hidden":"true"})}),children:n.allowed.map(y=>s.jsx(we,{icon:yg[y],label:r(`mode_${y}`),shortcut:y==="focus"?bg():null,checked:y===n.chosen,onSelect:()=>n.choose(y),testId:`${u}-mode-${y}`,uiId:"action:mode"},y))})}function or(n){return n.menu?`menu:${n.id}`:`tab:${n.id}`}function dL(n,i=!0){const{modes:o}=g.useSyncExternalStore(n.ui.subscribe,n.ui.get),r=n.kit.id,[u,f]=g.useState(()=>HR(r)),[h,v]=g.useState(()=>o.default==="focus"),p=ox(o),y=i?p:p.filter(E=>E==="menus"||E==="focus"),m=i?_R({stored:u,rules:o,kit:n.display,readOnly:n.readOnly===!0}):"menus",x=g.useCallback(E=>{if(E==="focus"){v(!0);return}BR(r,E),f(E),v(!1)},[r]),b=g.useCallback(()=>v(E=>!E),[]),C=g.useCallback(()=>v(!1),[]);return{chosen:m,focus:h&&y.includes("focus"),allowed:y,choose:x,toggleFocus:b,exitFocus:C}}function fL(n,i,o,r){const[u,f]=g.useState(Number.POSITIVE_INFINITY),[h,v]=g.useState(()=>new Map);g.useLayoutEffect(()=>{const m=n.current;if(!m||typeof ResizeObserver>"u")return;const x=new ResizeObserver(b=>{var E;const C=(E=b[0])==null?void 0:E.contentRect.width;C!=null&&f(C)});return x.observe(m),()=>x.disconnect()},[n]);const p=FR(i,u,{classic:h.get(`classic:${o}`),line:h.get(`line:${o}`)},r),y=g.useCallback((m,x)=>{const b=n.current;if(!x||!b||typeof ResizeObserver>"u")return;const C=b.getBoundingClientRect().width,E=x.scrollWidth-x.clientWidth,w=`${m}:${o}`;v(T=>{const S=T.get(w);if(E>1){const z=Math.ceil(C+E);return S!==void 0&&Math.abs(S-z)<=1?T:new Map(T).set(w,z)}return S===void 0||S<=C?T:new Map(T).set(w,Math.floor(C))})},[n,o]);return{effective:p,measure:y}}const Mg="(pointer: coarse)";function hL(){const[n,i]=g.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(Mg).matches);return g.useEffect(()=>{var u;if(typeof window>"u"||typeof window.matchMedia!="function")return;const o=window.matchMedia(Mg),r=()=>i(o.matches);return(u=o.addEventListener)==null||u.call(o,"change",r),()=>{var f;return(f=o.removeEventListener)==null?void 0:f.call(o,"change",r)}},[]),n}const Hx=g.createContext(null),mL=g.createContext(null);function vL(){return g.useContext(Hx)}function xg({children:n}){return vL()==="focus"?null:s.jsx(s.Fragment,{children:n})}const pL=32,Sg=2;function gL(n,i,o,r){const u=v=>(i.get(v)??0)+Sg;if(n.reduce((v,p)=>v+u(p),0)<=o)return null;let f=o-pL-Sg;const h=new Set;r!==null&&n.includes(r)&&(h.add(r),f-=u(r));for(const v of n)if(!h.has(v)){if(u(v)>f)break;h.add(v),f-=u(v)}return h}function yL({tabs:n,active:i,onTab:o}){const{t:r}=ze(),u=g.useRef(null),f=g.useRef(new Map),[h,v]=g.useState(null),p=g.useRef(()=>{});p.current=()=>{const m=u.current;if(!m)return;const x=C=>`${C.id}
|
|
94
|
+
${C.label}`;for(const C of m.querySelectorAll(".kui-ribbon-tab")){const E=n.find(w=>w.id===C.dataset.tab);E&&!C.hidden&&f.current.set(x(E),C.offsetWidth)}const b=n.every(C=>f.current.has(x(C)))?gL(n.map(C=>C.id),new Map(n.map(C=>[C.id,f.current.get(x(C))??0])),m.clientWidth,i):null;v(C=>bL(C,b)?C:b)},g.useLayoutEffect(()=>p.current(),[n,i,h]),g.useLayoutEffect(()=>{const m=u.current;if(!m||typeof ResizeObserver>"u")return;const x=new ResizeObserver(()=>p.current());return x.observe(m),()=>x.disconnect()},[]);const y=h===null?[]:n.filter(m=>!h.has(m.id));return s.jsxs("div",{ref:u,className:"kui-frame-tabs",children:[s.jsx("div",{className:"kui-ribbon-tabs",role:"tablist",children:n.map(m=>s.jsx("button",{type:"button",role:"tab",className:"kui-ribbon-tab","aria-selected":m.id===i,hidden:h!==null&&!h.has(m.id),onClick:()=>o(m.id),"data-tab":m.id,"data-testid":`ribbon-tab-${m.id}`,"data-kit-ui-id":or(m),children:m.label},m.id))}),y.length>0?s.jsx(Un,{align:"end",trigger:({toggle:m,open:x})=>s.jsx("button",{type:"button",className:"kui-frame-tabs-more","aria-label":r("moreTabs"),title:r("moreTabs"),"aria-haspopup":"menu","aria-expanded":x,onClick:m,"data-testid":"ribbon-tabs-more",children:s.jsx(Ka,{size:14,strokeWidth:yt,"aria-hidden":"true"})}),children:y.map(m=>s.jsx(we,{label:m.label,onSelect:()=>o(m.id),testId:`ribbon-tabs-more-${m.id}`,uiId:or(m)},m.id))}):null]})}function bL(n,i){return n===null||i===null?n===i:n.size===i.size&&[...n].every(o=>i.has(o))}function ML({tab:n}){const[i,o]=g.useState(!1),r=g.useRef(null),u=Wt(),{t:f}=ze(),h=u.state(or(n));return s.jsxs("span",{ref:r,style:{display:"inline-flex"},children:[s.jsx("button",{type:"button",className:"kui-menu-bar-item","aria-expanded":i,"aria-haspopup":"dialog",onClick:()=>o(v=>!v),"data-testid":`ribbon-tab-${n.id}`,"data-kit-ui-id":or(n),children:n.label}),s.jsx(Q0,{open:i,anchor:r,onClose:()=>o(!1),label:n.label,className:"kui-drop-ribbon",testId:`ribbon-drop-${n.id}`,children:s.jsx(Kc,{className:"kui-drop-ribbon-strip",panelClassName:"kui-ribbon-panel",resetKey:n.id,labels:{start:f("ribbonScrollStart"),end:f("ribbonScrollEnd")},testId:`ribbon-drop-${n.id}-scroll`,children:s.jsx("fieldset",{className:"kui-element",disabled:h.disabled,children:s.jsx(ja.Provider,{value:"full",children:n.ribbon})})})})]})}function xL({tabs:n,menus:i}){const{t:o,testId:r}=ze();return s.jsx("nav",{className:"kui-menu-nav","aria-label":o("menuBar"),"data-testid":`${r}-menu-bar`,children:s.jsx(Kc,{className:"kui-menu-strip",panelClassName:"kui-menu-bar",labels:{start:o("menusScrollStart"),end:o("menusScrollEnd")},testId:`${r}-menu-bar-scroll`,children:n.map(u=>u.menu?s.jsxs(Un,{trigger:({toggle:f,open:h})=>s.jsx("button",{type:"button",className:"kui-menu-bar-item","aria-expanded":h,onClick:f,"data-testid":`${r}-menu-${u.id}`,"data-kit-ui-id":`menu:${u.id}`,children:u.label}),children:[s.jsx(rL,{tree:u.menu,nodes:i.get(u.id)??[]}),s.jsx(tu,{place:`menu:${u.id}`,as:"menu"})]},u.id):s.jsx(ML,{tab:u},u.id))})})}function SL(n,i){if(n<=0)return ws;const o=i.length,r=Math.min(o,n-1),u=Math.min(o,Math.max(0,n-1-o)),f=h=>new Set(i.slice(o-h));return{size:r===o&&o>0?"icon":"small",icons:f(r),collapsed:f(u)}}function wL(n){return 1+2*n}function zf(n){return[...n.querySelectorAll("[data-ribbon-group]")].filter(i=>!i.closest(".kui-drop-panel"))}function CL(n){return zf(n).map(i=>i.dataset.ribbonGroup??"")}function wg(n){return zf(n).reduce((i,o)=>i+o.offsetWidth,0)}function EL({mode:n,tab:i,nodes:o,panel:r,measure:u}){const{t:f}=ze(),h=Wt(),v=i.ribbon??(i.menu?s.jsx(cL,{tab:i,nodes:o}):null),p=g.useCallback(z=>f("lineMore",{group:z}),[f]),y=n==="line",m=`${n}:${i.id}`,[x,b]=g.useState({key:m,level:0,groups:[],fresh:0}),C=x.key===m?x.level:0,E=x.key===m?x.groups:[],w=g.useMemo(()=>y?ws:SL(C,E),[E,C,y]),T=g.useRef({width:0,content:0}),S=g.useRef(null);return g.useLayoutEffect(()=>{const z=r.current;if(!y&&z){const L=CL(z);if(z.scrollWidth-z.clientWidth>1&&C<wL(L.length)){b(X=>({key:m,level:C+1,groups:L,fresh:X.fresh}));return}T.current={width:z.clientWidth,content:wg(z)};const K=S.current;if(K){K.disconnect(),K.observe(z);for(const X of zf(z))K.observe(X)}}u(n,z)}),g.useLayoutEffect(()=>{const z=r.current;if(y||!z||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{const K=T.current;(z.clientWidth>K.width+1||Math.abs(wg(z)-K.content)>1)&&b(X=>({key:m,level:0,groups:X.groups,fresh:X.fresh+1}))});return S.current=L,L.observe(z),()=>{L.disconnect(),S.current=null}},[m,y,r]),v?s.jsx(Kc,{className:y?"kui-line":"kui-ribbon-body",panelClassName:y?"kui-line-panel":"kui-ribbon-panel",role:"tabpanel",resetKey:i.id,labels:{start:f("ribbonScrollStart"),end:f("ribbonScrollEnd")},testId:"ribbon-scroll",panelRef:r,children:s.jsx("fieldset",{className:"kui-element",disabled:h.state(or(i)).disabled,children:s.jsx(f3.Provider,{value:p,children:s.jsx(ja.Provider,{value:y?"line":"full",children:s.jsx(ei.Provider,{value:w,children:v})})})})}):null}function zL({tabs:n,tab:i,onTab:o,defaultTab:r,title:u,actions:f,options:h,rail:v,sidebar:p,panels:y,focusTool:m,statusBar:x=!0,children:b,...C}){const E=ze(),{host:w,phrase:T,testId:S}=E,z=Wt(),L=g.useRef(null),K=g.useRef(null),X=w.readOnly===!0,re=hL(),ae=z.config.add,de=g.useMemo(()=>{if(!n.some(W=>W.menu))return n;const B=ae.map(W=>W.place).filter(W=>W.startsWith("menu:")&&!W.includes("/")).map(W=>W.slice(5)).filter((W,ie,xe)=>xe.indexOf(W)===ie&&!n.some(Ce=>Ce.id===W));return B.length?[...n,...B.map(W=>({id:W,label:T(W),menu:{rows:[]}}))]:n},[ae,T,n]),ge=sL(de),je=de.filter(B=>{var W,ie;return z.state(or(B)).hidden||X&&!B.view?!1:!B.menu||B.ribbon?!0:(((W=ge.get(B.id))==null?void 0:W.length)??0)>0||(((ie=B.menu.before)==null?void 0:ie.length)??0)>0||z.buttons(`menu:${B.id}`).length>0}),be=dL(w,je.length>0),[Me,Be]=g.useState(r??null),ye=i??Me,F=je.find(B=>B.id===ye)??je.find(B=>B.id===r)??je.find(B=>B.id.toLowerCase()!=="file")??je[0]??null,A=(F==null?void 0:F.id)??null,H=g.useCallback(B=>{Be(B),o==null||o(B)},[o]);g.useLayoutEffect(()=>{i!==void 0&&A!==null&&A!==i&&(o==null||o(A))},[A,o,i]);const le=fL(L,be.chosen,A??"",be.allowed),ve=be.focus?"focus":le.effective,Z=B=>(Es()?B.metaKey:B.ctrlKey)&&!B.shiftKey&&!B.altKey&&B.code==="Backslash"?!be.allowed.includes("focus")||z.state("action:mode").denied?!1:(be.toggleFocus(),!0):!1,I=()=>be.focus?(be.exitFocus(),!0):!1,P=ve==="focus",ue=g.useRef(P);g.useLayoutEffect(()=>{var W,ie;if(ue.current===P)return;ue.current=P;const B=document.activeElement;B&&B!==document.body&&B.isConnected||(ie=(P?null:(W=L.current)==null?void 0:W.querySelector(".kui-mode-button"))??L.current)==null||ie.focus({preventScroll:!0})},[P]);const k=P?s.jsx(tL,{tool:m,onExit:be.exitFocus}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"kui-frame-top","data-testid":`${S}-top-bar`,children:[u?s.jsx("div",{className:"kui-frame-title",children:u}):null,ve==="menus"?s.jsx(xL,{tabs:je,menus:ge}):s.jsx(yL,{tabs:je,active:A,onTab:H}),s.jsx("div",{className:"kui-ribbon-end",children:s.jsx(oO,{before:f,mode:s.jsx(uL,{display:be,shown:ve,areas:je.length>0})})})]}),(ve==="line"||ve==="classic")&&F?s.jsx(EL,{mode:ve,tab:F,nodes:ge.get(F.id)??[],panel:K,measure:le.measure}):null,h?s.jsx(dO,{children:h}):null]});return s.jsx(Hx.Provider,{value:ve,children:s.jsx(mL.Provider,{value:be,children:s.jsx(uO,{...C,statusBar:x&&!P,top:k,frame:{ref:L,mode:ve,chosen:be.chosen,touch:re,viewOnly:X,keyDown:Z,escape:I},children:s.jsxs("div",{className:"kui-frame-body",children:[v&&!X&&!P?v:null,p&&!P?p:null,s.jsx("div",{className:"kui-frame-main",children:b}),y&&!P?y:null]})})})})}const A0=Object.freeze({accent:"#5645d4",surface:"#ffffff",ink:"#1f1d2b",font:"11px ui-sans-serif, system-ui, sans-serif",marquee:{fill:null,fillOpacity:.08,stroke:null,width:1,dash:[4,3],inside:!1},path:{minWidth:1,dash:[4,3]},line:{width:1,dash:[4,3]},anchor:{shape:"square",radius:0,size:6,fill:null,ringWidth:1},handle:{radius:3,fill:null,ringWidth:0},label:{font:null,dx:4,dy:-4},measure:{fill:null,color:null,font:null,padX:6,height:18,padY:2,radius:4,dx:12,dy:12,align:"start"},swatch:{size:12,radius:3,ringWidth:2,ring:null,selectedRing:null}});function jL(n){if(!n)return A0;const i=A0,o={...i};for(const[r,u]of Object.entries(n)){if(u===void 0)continue;const f=i[r];o[r]=f&&typeof f=="object"&&!Array.isArray(f)?{...f,...u}:u}return o}function Yl([n,i,o,r]){return`rgba(${n}, ${i}, ${o}, ${r/255})`}function TL(n){const i=/(\d+(?:\.\d+)?)px/.exec(n);return i?Number(i[1]):11}function kL(n,i,o,r,u){const f=u.measure,h=f.font??u.font,v=f.fill??u.ink;n.font=h;const p=n.measureText(r).width+f.padX*2,y=f.height??Math.round(TL(h)*1.2)+f.padY*2,m=f.align==="center"?i-p/2:i;n.fillStyle=v,n.beginPath(),n.roundRect(m,o,p,y,f.radius),n.fill(),n.fillStyle=f.color??(v===u.surface?u.ink:u.surface),n.textBaseline="middle",n.fillText(r,m+f.padX,o+y/2)}function Cg(n,i,o,r,u){switch(r.kind){case"marquee":{const f=u.marquee,h=i(r.x0,r.y0),v=i(r.x1,r.y1);if(n.save(),n.globalAlpha*=f.fillOpacity,n.fillStyle=f.fill??u.accent,n.fillRect(h.x,h.y,v.x-h.x,v.y-h.y),n.restore(),n.strokeStyle=f.stroke??u.accent,n.lineWidth=f.width,n.setLineDash(f.dash),f.inside){const p=f.width/2,[y,m]=[Math.min(h.x,v.x),Math.max(h.x,v.x)],[x,b]=[Math.min(h.y,v.y),Math.max(h.y,v.y)];n.strokeRect(y+p,x+p,Math.max(0,m-y-f.width),Math.max(0,b-x-f.width))}else n.strokeRect(h.x+.5,h.y+.5,v.x-h.x,v.y-h.y);break}case"path":{const f=i(0,0);n.translate(f.x,f.y),n.scale(o.zoom,o.zoom),n.lineWidth=Math.max(r.width,u.path.minWidth)/o.zoom,r.dashed&&n.setLineDash(u.path.dash.map(h=>h/o.zoom)),n.strokeStyle=Yl(r.color),n.stroke(new Path2D(r.d));break}case"line":{const f=i(r.ax,r.ay),h=i(r.bx,r.by);n.lineWidth=u.line.width,r.dashed&&n.setLineDash(u.line.dash),n.strokeStyle=Yl(r.color),n.beginPath(),n.moveTo(f.x,f.y),n.lineTo(h.x,h.y),n.stroke();break}case"anchor":{const f=u.anchor,h=i(r.x,r.y),v=r.size||f.size,p=Yl(r.color);if(n.fillStyle=r.filled?p:f.fill??u.surface,n.strokeStyle=p,n.lineWidth=f.ringWidth,f.shape==="circle")n.beginPath(),n.arc(h.x,h.y,v/2,0,Math.PI*2),n.fill(),f.ringWidth>0&&(n.beginPath(),n.arc(h.x,h.y,Math.max(0,v/2-f.ringWidth/2),0,Math.PI*2),n.stroke());else if(f.radius>0){const y=Math.round(h.x-v/2),m=Math.round(h.y-v/2),x=f.ringWidth/2;n.beginPath(),n.roundRect(y,m,v,v,f.radius),n.fill(),f.ringWidth>0&&(n.beginPath(),n.roundRect(y+x,m+x,v-f.ringWidth,v-f.ringWidth,Math.max(0,f.radius-x)),n.stroke())}else{const y=Math.round(h.x-v/2),m=Math.round(h.y-v/2);n.fillRect(y,m,v,v),f.ringWidth>0&&n.strokeRect(y+f.ringWidth/2,m+f.ringWidth/2,v-f.ringWidth,v-f.ringWidth)}break}case"handle":{const f=u.handle,h=i(r.x,r.y),v=Yl(r.color);n.fillStyle=f.fill??v,n.beginPath(),n.arc(h.x,h.y,f.radius,0,Math.PI*2),n.fill(),f.ringWidth>0&&(n.strokeStyle=v,n.lineWidth=f.ringWidth,n.stroke());break}case"label":{const f=i(r.x,r.y);n.font=u.label.font??u.font,n.fillStyle=Yl(r.color),n.fillText(r.text,f.x+u.label.dx,f.y+u.label.dy);break}case"measure":{const f=i(r.x,r.y);kL(n,f.x+u.measure.dx,f.y+u.measure.dy,r.text,u);break}case"highlight":{n.fillStyle=Yl(r.color),n.beginPath(),r.quad.forEach(([f,h],v)=>{const p=i(f,h);v===0?n.moveTo(p.x,p.y):n.lineTo(p.x,p.y)}),n.closePath(),n.fill();break}case"swatch":{const f=u.swatch,h=i(r.x,r.y);n.fillStyle=Yl(r.color),n.strokeStyle=r.selected?f.selectedRing??u.accent:f.ring??u.surface,n.lineWidth=f.ringWidth,n.beginPath(),n.roundRect(h.x-f.size/2,h.y-f.size/2,f.size,f.size,f.radius),n.fill(),n.stroke();break}}}function AL(n,i=A0,o){return(r,u,f)=>{const h={};n.forEach((v,p)=>{const y=()=>{r.lineWidth=1,r.setLineDash([])};r.save();try{y();let m=!1;o&&(m=o(v,{context:r,toScreen:u,view:f,style:i,overlays:n,index:p,frame:h,drawDefault:(x=v)=>{r.save();try{y(),Cg(r,u,f,x,i)}finally{r.restore()}}})===!0),m||(r.restore(),r.save(),y(),Cg(r,u,f,v,i))}finally{r.restore()}})}}const NL=()=>!1;function t0(n){return{shift:n.shift,alt:n.alt,command:n.meta,control:!1,space:!1}}const RL=new Set(["Delete","Backspace"]),Eg=new Set(["Enter","Escape","Backspace","Delete","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Tab","Home","End"]);function DL(n,i,o,r){var oe,fe;const[u,f]=g.useState([]),[h,v]=g.useState(r.initial),[p,y]=g.useState(()=>NL),[m,x]=g.useState(null),[b,C]=g.useState(null),E=g.useRef(r);E.current=r;const w=g.useRef(p);w.current=p;const T=g.useRef(0),S=g.useRef(null),[z,L]=g.useState(0),K=g.useRef(r.initial),X=g.useRef(null),re=Object.keys(r.hostTools??{}).find(N=>{var G;return((G=r.hostTools)==null?void 0:G[N])===Bn})??Bn.id;let ae=h;p(h)&&(ae=((oe=u.find(N=>{var G;return!((G=r.hidden)!=null&&G.has(N.id))&&!p(N.id)}))==null?void 0:oe.id)??re,u.length&&ae!==h&&v(ae));const de=((fe=r.hostTools)==null?void 0:fe[ae])??(ae===Bn.id&&!u.some(N=>N.id===ae)?Bn:void 0);K.current=ae;const ge=g.useRef(new Set);ge.current=new Set(Object.keys(r.hostTools??{})),u.some(N=>N.id===Bn.id)||ge.current.add(Bn.id);const je=g.useCallback(N=>{if(w.current(N))return;const G=++T.current;S.current=G,K.current=N,L(G),v(N)},[]),be=g.useCallback(N=>y(()=>N),[]),Me=g.useRef(1),Be=g.useRef(null),ye=g.useRef(!1),F=g.useRef([]),A=g.useRef(null),H=g.useCallback((N,G)=>{var pe,ke;if(!N)return;A.current=N,x(N);let me=null;for(const Re of N.requests)Re.kind==="switchTool"?(S.current===null||G===S.current)&&!w.current(Re.id)&&(me=Re.id):Re.kind==="status"?C(Re.text):(ke=(pe=E.current).onDialog)==null||ke.call(pe,Re.name,Re.params);me!==null&&me!==K.current&&(K.current=me,X.current={id:me,serial:T.current},ge.current.has(me)||F.current.unshift({name:"selectTool",args:[me,Me.current],settled:!0,coalesce:!1,selection:G}),v(me))},[]),le=g.useRef(!1),ve=g.useRef(null),Z=g.useCallback((N,G)=>{const me=document.activeElement??document.body;le.current=!0,ve.current=0;try{me.dispatchEvent(new KeyboardEvent("keydown",{key:N,code:OL(N),shiftKey:G,bubbles:!0,cancelable:!0}))}finally{le.current=!1,ve.current=null}},[]),I=g.useCallback(N=>{ve.current===null?F.current.push(N):F.current.splice(ve.current++,0,N)},[]),P=g.useCallback(async()=>{var N;if(!ye.current){ye.current=!0;try{for(let G=F.current.shift();G;G=F.current.shift()){if("work"in G){await G.work();continue}if("key"in G){G.key.length>1?Z(G.key,G.shift):(N=A.current)!=null&&N.wantsText?H(await n("toolText",[G.key,Me.current],!0).catch(()=>null)):E.current.onDeferredKey?E.current.onDeferredKey(G.key,G.shift):Z(G.key,G.shift);continue}H(await n(G.name,G.args,G.settled).catch(()=>null),G.selection),G.selection===S.current&&(S.current=null)}}finally{ye.current=!1}}},[H,Z,n]),ue=g.useCallback((N,G,me,pe=!1,ke)=>{const Re=F.current[F.current.length-1];pe&&ve.current===null&&Re&&"name"in Re&&Re.coalesce&&Re.name===N?F.current[F.current.length-1]={name:N,args:G,settled:me,coalesce:pe,selection:ke}:I({name:N,args:G,settled:me,coalesce:pe,selection:ke}),P()},[I,P]),k=g.useCallback(N=>!ye.current&&!F.current.length?N():new Promise((G,me)=>{I({work:()=>N().then(G,me)}),P()}),[I,P]);g.useEffect(()=>dD(n,k),[k,n]),g.useEffect(()=>{i&&n("tools").then(N=>f(N??[]))},[i,n]);const B=!!de;g.useEffect(()=>{if(!i){X.current=null;return}if(B)return;const N=X.current;X.current=null,!((N==null?void 0:N.id)===ae&&N.serial===z)&&ue("selectTool",[ae,Me.current],!0,!1,z)},[ae,B,i,z,ue]),g.useEffect(()=>{if(!i||B)return;const N=Be.current??{x:0,y:0};ue("toolState",[N.x,N.y,"{}",Me.current],!1,!0)},[o.revision,i]);const W=g.useCallback((N,G,me,pe,ke=!1)=>{Me.current=me,Be.current={x:G.x,y:G.y},ue("pointer",[JSON.stringify({action:N,x:G.x,y:G.y,mods:t0(G),pressure:G.pressure,zoom:me})],pe,ke)},[ue]),ie=g.useMemo(()=>de??{id:ae,cursor:(m==null?void 0:m.cursor)||"default",begin:(N,{viewport:G})=>(W("down",N,G.view.zoom,!1),{move:(me,pe)=>W("drag",me,pe.viewport.view.zoom,!1,!0),end:(me,pe)=>W("up",me,pe.viewport.view.zoom,!0),cancel:me=>ue("toolKey",["Escape","{}",me.viewport.view.zoom],!0)}),hover:(N,{viewport:G})=>W("move",N,G.view.zoom,!1,!0),doubleClick:(N,{viewport:G})=>W("doubleClick",N,G.view.zoom,!0)},[ae,de,W,m==null?void 0:m.cursor,ue]),xe=m==null?void 0:m.overlays,{overlayStyle:Ce,drawOverlay:He}=r,$=LL(),te=g.useMemo(()=>{const N=jL(Ce);return $&&!(Ce!=null&&Ce.accent)?{...N,accent:$}:N},[$,Ce]),Te=g.useMemo(()=>xe!=null&&xe.length&&!de?PD(AL(xe,te,He)):null,[He,de,xe,te]),_e=g.useCallback(N=>{if(de||!N.shiftKey&&!N.altKey&&!N.metaKey&&!N.ctrlKey&&N.key==="Escape"&&E.current.escapable&&!E.current.escapable())return!1;const G=N.metaKey||N.ctrlKey,me=N.key.length===1||RL.has(N.key);if(!G&&!N.altKey&&me&&!le.current&&(ye.current||F.current.length))return F.current.push({key:N.key,shift:N.shiftKey}),P(),!0;const pe=A.current;if(!pe)return!1;if(pe.wantsText&&!G){if(N.key.length===1)ue("toolText",[N.key,Me.current],!0);else if(Eg.has(N.key))ue("toolKey",[N.key,JSON.stringify(t0({shift:N.shiftKey,alt:N.altKey,meta:!1})),Me.current],!0);else return!1;return!0}return pe.busy&&Eg.has(N.key)?(ue("toolKey",[N.key,JSON.stringify(t0({shift:N.shiftKey,alt:N.altKey,meta:G})),Me.current],!0),!0):!1},[de,P,ue]),J=g.useCallback((N,G)=>{const me=(G?`Shift+${N}`:N).toLowerCase(),pe=u.filter(Re=>{var Pe;return!((Pe=E.current.hidden)!=null&&Pe.has(Re.id))}).filter(Re=>{var Pe;return((Pe=Re.shortcut)==null?void 0:Pe.toLowerCase())===me});if(!pe.length)return null;const ke=pe.findIndex(Re=>Re.id===ae);return pe[(ke+1)%pe.length].id},[ae,u]),he=g.useCallback(()=>{if(B)return;const N=Be.current??{x:0,y:0};ue("toolState",[N.x,N.y,"{}",Me.current],!1,!0)},[B,ue]),Ee=g.useCallback(N=>{if(!Number.isFinite(N)||N<=0||Math.abs(N-Me.current)<1e-9||(Me.current=N,!i||B||!A.current))return;const G=Be.current??{x:0,y:0};ue("toolState",[G.x,G.y,"{}",N],!1,!0)},[B,i,ue]),O=g.useCallback(N=>{N&&ue("toolText",[N,Me.current],!0)},[ue]);return{tools:u,active:ae,select:je,setDenied:be,refresh:he,viewZoom:Ee,typeText:O,canvasTool:ie,decorate:Te,status:b,wantsText:!!(m!=null&&m.wantsText)&&!de,keyDown:_e,toolForKey:J}}function OL(n){return/^[a-z]$/i.test(n)?`Key${n.toUpperCase()}`:/^[0-9]$/.test(n)?`Digit${n}`:n==="Delete"||n==="Backspace"?n:{".":"Period",",":"Comma","/":"Slash",";":"Semicolon","'":"Quote","[":"BracketLeft","]":"BracketRight","-":"Minus","=":"Equal","`":"Backquote","\\":"Backslash"," ":"Space"}[n]??""}function LL(){const n=()=>typeof document>"u"?null:getComputedStyle(document.documentElement).getPropertyValue("--kit-primary").trim()||null,[i,o]=g.useState(n);return g.useEffect(()=>{if(typeof MutationObserver>"u")return;const r=new MutationObserver(()=>o(n()));return r.observe(document.documentElement,{attributes:!0,attributeFilter:["style","data-color-scheme","data-brand","class"]}),o(n()),()=>r.disconnect()},[]),i}const Oc=n=>n.replace(/\\(.)/g,(i,o)=>o==="n"?`
|
|
95
|
+
`:o==="t"?" ":o);function HL(n){const i=new Map;for(const o of n.split(`
|
|
96
|
+
`)){if(!o.trim()||o.startsWith("#"))continue;const[,r,u]=o.split(" ");r&&u&&i.set(Oc(r),Oc(u.replace(/\r$/,"")))}return i}function BL(n){const i=new Map;for(const o of n.matchAll(/"((?:[^"\\]|\\.)*)"\s*=>\s*"((?:[^"\\]|\\.)*)"/g))i.set(Oc(o[1]),Oc(o[2]));return i}function Bx(n){const i=n.toLowerCase(),[o,r]=i.split("-"),u=[i];return o==="zh"&&u.push(["tw","hk","mo","hant"].includes(r??"")?"zh-hant":"zh-hans"),o==="sr"&&i.includes("latn")&&u.push("sr-latn"),u.push(o),u}async function _L(n,i){const o=new Map(Object.entries(n).map(([p,y])=>[p.split("/").pop().replace(/\.(tsv|rs)$/,"").toLowerCase(),{path:p,load:y}])),r=Bx(i).find(p=>o.has(p));if(!r||i.toLowerCase().startsWith("en"))return p=>p;const{path:u,load:f}=o.get(r),h=String(await f()),v=u.endsWith(".rs")?BL(h):HL(h);return p=>v.get(p)??p}function FL(n,i,o){var f;const r=Bx(o).concat(o).find(h=>Object.keys(i).some(v=>v.toLowerCase()===h)),u=r?(f=Object.entries(i).find(([h])=>h.toLowerCase()===r))==null?void 0:f[1]:void 0;return!u||o.toLowerCase().startsWith("en")?n:h=>u[h]??n(h)}function UL(){return{kitId:"kit.sheet",base:new URL("./engine/",document.baseURI).href,module:"kition_sheet_kit",documentClass:"SheetDocument",fonts:["DroidSansFallbackFull.ttf","Carlito-Regular.ttf","Carlito-Bold.ttf","Carlito-Italic.ttf","Carlito-BoldItalic.ttf","Caladea-Regular.ttf","Caladea-Bold.ttf","Caladea-Italic.ttf","Caladea-BoldItalic.ttf","Arimo-Variable.ttf","Arimo-Italic-Variable.ttf","Tinos-Regular.ttf","Tinos-Bold.ttf","Tinos-Italic.ttf","Cousine-Regular.ttf","MaShanZheng-Regular.ttf"].map(n=>new URL(`./fonts/${n}`,document.baseURI).href)}}const IL={"fn:SUM":"返回所有参数之和。","fn:SUMIF":"对满足条件的单元格求和。","fn:SUMIFS":"对同时满足多个条件的单元格求和。","fn:SUMPRODUCT":"返回各数组对应元素乘积之和。","fn:AVERAGE":"返回参数的算术平均值。","fn:AVERAGEIF":"返回满足条件的单元格的平均值。","fn:AVERAGEIFS":"返回同时满足多个条件的单元格的平均值。","fn:COUNT":"计算区域中包含数字的单元格个数。","fn:COUNTA":"计算区域中非空单元格的个数。","fn:COUNTBLANK":"计算区域中空单元格的个数。","fn:COUNTIF":"计算区域中满足条件的单元格个数。","fn:COUNTIFS":"计算同时满足多个条件的单元格个数。","fn:MAX":"返回一组数值中的最大值。","fn:MIN":"返回一组数值中的最小值。","fn:MAXIFS":"返回满足条件的单元格中的最大值。","fn:MINIFS":"返回满足条件的单元格中的最小值。","fn:MEDIAN":"返回一组数的中位数。","fn:MODE":"返回一组数据中出现次数最多的值。","fn:LARGE":"返回数据集中第 k 个最大值。","fn:SMALL":"返回数据集中第 k 个最小值。","fn:RANK":"返回某数字在一列数字中的排位。","fn:STDEV":"估算基于样本的标准偏差。","fn:VAR":"估算基于样本的方差。","fn:IF":"判断条件是否成立,成立返回一个值,否则返回另一个值。","fn:IFS":"返回第一个成立的条件对应的值。","fn:IFERROR":"表达式出错时返回指定的值,否则返回表达式的值。","fn:IFNA":"表达式为 #N/A 时返回指定的值。","fn:AND":"所有参数都为 TRUE 时返回 TRUE。","fn:OR":"任一参数为 TRUE 时返回 TRUE。","fn:NOT":"对逻辑值求反。","fn:XOR":"返回所有参数的逻辑异或。","fn:TRUE":"返回逻辑值 TRUE。","fn:FALSE":"返回逻辑值 FALSE。","fn:SWITCH":"将表达式与一组值比较,返回第一个匹配项对应的结果。","fn:VLOOKUP":"在区域首列查找值,并返回同一行中指定列的值。","fn:HLOOKUP":"在区域首行查找值,并返回同一列中指定行的值。","fn:XLOOKUP":"在区域或数组中查找,并返回对应项。","fn:LOOKUP":"在单行或单列中查找值。","fn:INDEX":"返回区域中指定行列交叉处的值或引用。","fn:MATCH":"返回查找值在区域中的相对位置。","fn:XMATCH":"返回某项在数组或区域中的相对位置。","fn:CHOOSE":"根据序号从参数列表中选择一个值。","fn:OFFSET":"以某引用为基准,返回偏移指定行列后的引用。","fn:INDIRECT":"返回由文本字符串指定的引用。","fn:ROW":"返回引用的行号。","fn:COLUMN":"返回引用的列号。","fn:ROWS":"返回引用或数组的行数。","fn:COLUMNS":"返回引用或数组的列数。","fn:FILTER":"按条件筛选区域或数组。","fn:SORT":"对区域或数组排序。","fn:UNIQUE":"返回区域或数组中的唯一值。","fn:SEQUENCE":"生成一个连续数字的数组。","fn:TRANSPOSE":"转置区域或数组的行和列。","fn:ROUND":"按指定位数四舍五入。","fn:ROUNDUP":"向远离零的方向舍入。","fn:ROUNDDOWN":"向零的方向舍入。","fn:INT":"向下取整为最接近的整数。","fn:TRUNC":"截去数字的小数部分。","fn:MOD":"返回两数相除的余数。","fn:ABS":"返回数字的绝对值。","fn:POWER":"返回数字的乘幂。","fn:SQRT":"返回正平方根。","fn:PRODUCT":"返回所有参数的乘积。","fn:RAND":"返回 0 到 1 之间的随机数。","fn:RANDBETWEEN":"返回两个指定数之间的随机整数。","fn:PI":"返回圆周率 π。","fn:CEILING":"向上舍入为最接近的指定基数的倍数。","fn:FLOOR":"向下舍入为最接近的指定基数的倍数。","fn:SUBTOTAL":"返回列表或数据库中的分类汇总。","fn:AGGREGATE":"返回列表或数据库中的聚合值,可忽略隐藏行和错误值。","fn:LEFT":"从文本左边返回指定个数的字符。","fn:RIGHT":"从文本右边返回指定个数的字符。","fn:MID":"从文本指定位置起返回指定个数的字符。","fn:LEN":"返回文本中的字符个数。","fn:LENB":"返回文本中的字节数。","fn:FIND":"返回一个文本在另一个文本中的起始位置(区分大小写)。","fn:SEARCH":"返回一个文本在另一个文本中的起始位置(不区分大小写)。","fn:REPLACE":"替换文本中指定位置的字符。","fn:SUBSTITUTE":"用新文本替换文本中的旧文本。","fn:CONCATENATE":"将多个文本合并为一个。","fn:CONCAT":"将多个区域或文本合并为一个。","fn:TEXTJOIN":"用分隔符合并多个区域或文本。","fn:TEXT":"将数值按指定格式转换为文本。","fn:VALUE":"将表示数字的文本转换为数字。","fn:TRIM":"删除文本中多余的空格。","fn:UPPER":"将文本转换为大写。","fn:LOWER":"将文本转换为小写。","fn:PROPER":"将每个单词的首字母转换为大写。","fn:REPT":"按指定次数重复文本。","fn:EXACT":"比较两个文本是否完全相同。","fn:CHAR":"返回代码对应的字符。","fn:CODE":"返回文本第一个字符的代码。","fn:TODAY":"返回当前日期。","fn:NOW":"返回当前日期和时间。","fn:DATE":"返回指定年、月、日的日期。","fn:YEAR":"返回日期的年份。","fn:MONTH":"返回日期的月份。","fn:DAY":"返回日期是当月的第几天。","fn:HOUR":"返回时间的小时数。","fn:MINUTE":"返回时间的分钟数。","fn:SECOND":"返回时间的秒数。","fn:TIME":"返回指定时、分、秒的时间。","fn:WEEKDAY":"返回日期是星期几。","fn:WEEKNUM":"返回日期是一年中的第几周。","fn:DATEDIF":"计算两个日期之间的天数、月数或年数。","fn:DATEVALUE":"将文本形式的日期转换为序列号。","fn:EDATE":"返回指定月数之前或之后的日期。","fn:EOMONTH":"返回指定月数之前或之后的月末日期。","fn:NETWORKDAYS":"返回两个日期之间的工作日天数。","fn:WORKDAY":"返回指定工作日天数之前或之后的日期。","fn:DAYS":"返回两个日期之间的天数。","fn:ISBLANK":"值为空时返回 TRUE。","fn:ISERROR":"值为任意错误值时返回 TRUE。","fn:ISNUMBER":"值为数字时返回 TRUE。","fn:ISTEXT":"值为文本时返回 TRUE。","fn:ISNA":"值为 #N/A 时返回 TRUE。","fn:PMT":"返回贷款的每期付款额。","fn:PV":"返回投资的现值。","fn:FV":"返回投资的未来值。","fn:NPV":"返回一系列现金流的净现值。","fn:IRR":"返回一系列现金流的内部收益率。","fn:RATE":"返回年金的每期利率。","fn:NPER":"返回投资的期数。","fn:LET":"为计算结果命名,以便在公式中重复使用。","fn:LAMBDA":"创建可重复使用的自定义函数。"},VL={nameBox:"Name Box",formula:"Formula",enterFormula:"Enter",insertFunction:"Insert Function",expandFormulaBar:"Expand Formula Bar",collapseFormulaBar:"Collapse Formula Bar",showGroup:"Show",showGridlines:"Gridlines",showFormulaBar:"Formula Bar",showHeadings:"Headings",freezePanes:"Freeze Panes",unfreezePanes:"Unfreeze Panes",freezeAt:"Freeze to Row {row} and Column {col}",freezeRowsAt:"Freeze to Row {row}",freezeColsAt:"Freeze to Column {col}",freezeTopRow:"Freeze Top Row",freezeFirstColumn:"Freeze First Column",focusCell:"Highlight Rows and Columns",focusCellColors:"Highlight colour",focusCellColor:"Highlight colour {index}",gridlineColor:"Gridline Colour",gridlineAuto:"Automatic",functionSearch:"Search for a function:",functionCategory:"Or select a category:",functionPick:"Select a function:",functionNone:"No function matches","fnCategory:common":"Most Used","fnCategory:all":"All","fnCategory:Financial":"Financial","fnCategory:Logical":"Logical","fnCategory:Text":"Text","fnCategory:DateTime":"Date & Time","fnCategory:Lookup":"Lookup & Reference","fnCategory:MathTrig":"Math & Trig","fnCategory:Statistical":"Statistical","fnCategory:Engineering":"Engineering","fnCategory:Information":"Information","fnCategory:Database":"Database","fnCategory:Compatibility":"Compatibility","fnCategory:Web":"Web","fnCategory:Cube":"Cube",insertAbove:"Insert",insertAboveAfter:"rows above",insertBelow:"Insert",insertBelowAfter:"rows below",insertLeft:"Insert",insertLeftAfter:"columns left",insertRight:"Insert",insertRightAfter:"columns right",insertCellsRight:"Insert Cells, Shift Right",insertCellsDown:"Insert Cells, Shift Down",insertSheetItem:"Insert Sheet",deleteCellsLeft:"Delete Cells, Shift Left",deleteCellsUp:"Delete Cells, Shift Up",deleteRowsItem:"Delete Rows",deleteColsItem:"Delete Columns",deleteSheetItem:"Delete Sheet",gridMenu:"Cell Menu",menuCut:"Cut",menuCopy:"Copy",menuPaste:"Paste",deleteMenu:"Delete",insertMenu:"Insert",clearContents:"Clear Contents",formatCellsItem:"Format Cells…",hideLines:"Hide",unhideLines:"Unhide",rowHeightItem:"Row Height…",columnWidthItem:"Column Width…",addSheet:"New Sheet",renameSheet:"Rename",deleteSheet:"Delete",sheetList:"Sheet List",sheetMenu:"Sheet Menu",sheetLocked:"Protected sheet",sheetHidden:"Hidden",sheetScrollLeft:"Scroll Tabs Left",sheetScrollRight:"Scroll Tabs Right",moveSheet:"Move Sheet",moveSheetLeft:"Move Left",moveSheetRight:"Move Right",copySheet:"Create a Copy",tabColor:"Tab Color",noTabColor:"No Fill",hideSheet:"Hide Sheet",unhideSheet:"Unhide Sheet",hideNeedsTwo:"At least two sheets must show for one to be hidden",insertSheetBefore:"Before This Sheet",insertSheetAfter:"After This Sheet",deleteSheetTitle:"Delete Sheet",deleteSheetConfirm:"Delete “{sheet}”?",deleteSheetOk:"Delete",cancel:"Cancel",ok:"OK",unhideSheetTitle:"Unhide",unhideSheetPrompt:"Unhide sheet:",sheetNameEmpty:"A sheet name can’t be blank!",sheetNameInvalid:"A sheet name can’t contain any of these characters: \\ / : ? * [ ]",sheetNameTaken:"That sheet name already exists!",sheetNameApostrophe:"A sheet name can’t begin or end with an apostrophe",sheetNameReserved:"“History” is a reserved name",statSum:"Sum={value}",statAverage:"Average={value}",statCount:"Count={value}",sheetSelection:"{sheet} · {selection}",sheetOf:"Sheet {index} of {count}",exported:"Exported",exportFailed:"Export failed",templateTitle:"Save as Template",templateName:"Template name",templateNameRequired:"Enter a name for the template",templateSaved:"Template saved",templateFailed:"The template was not saved",commentFailed:"Comment failed",commentThread:"Comment thread ({count})",formatPainter:"Format Painter",formatPainterTip:"Format Painter: click to paint once, double-click to keep painting (Esc stops)",fontBox:"Font",fontSearch:"Search fonts (name, initials or pinyin)",fontRecent:"Recently Used",fontAll:"All Fonts",fontResults:"Search Results ({count})",fontNoResults:"No fonts found",fontMore:"Font list",fontSizeBox:"Font Size",fontSizeList:"Font sizes",fontSizeRange:"Could not set the size: a font size is from 1 to 409 points",boldTip:"Bold ({key}B)",italicTip:"Italic ({key}I)",underlineTip:"Underline ({key}U)",strikeTip:"Strikethrough ({key}5)",fontColorApply:"Font Color",fillColorApply:"Fill Color",colorMenu:"More choices",colorAutomatic:"Automatic",colorNoFill:"No Fill",colorRecent:"Recent Colors",colorMore:"More Colors",colorHex:"Colour (#RRGGBB)",colorApply:"OK",colorBad:"A colour is # and six hexadecimal digits",tableTools:"Table Design",tablePresetStyles:"Preset Styles",tableThemeColor:"Theme Color","tableGroup:light":"Light","tableGroup:medium":"Medium","tableGroup:dark":"Dark","tableGroup:custom":"Custom",tableNewStyle:"New Table Style…",tableConvertToRange:"Convert to Range",tableClearStyle:"Clear Table Style",tableSetAsDefault:"Set As Default",tableIsDefault:"Default table style",tableModifyStyle:"Modify…",tableDeleteStyle:"Delete",tableColumnPrefix:"Column",formatAsTableTitle:"Format As Table",tableDataSource:"Where is the data for your table?",tableOnlyFormat:"Only Format As Table",tableTitleRows:"The number of title rows",tableConvert:"Convert to a table and apply the table style",tableHasHeaders:"My table has headers",tableFilterButtons:"Filter the table",resizeTableTitle:"Resize Table",resizeTableRange:"Select the new data range for your table",newTableStyleTitle:"New Table Style",modifyTableStyleTitle:"Modify Table Style",tableStyleName:"Name",tableStyleNameEmpty:"Enter a name for the table style",tableElement:"Table Element","tablePart:wholeTable":"Whole Table","tablePart:headerRow":"Header Row","tablePart:totalRow":"Total Row","tablePart:firstColumn":"First Column","tablePart:lastColumn":"Last Column","tablePart:firstRowStripe":"First Row Stripe","tablePart:secondRowStripe":"Second Row Stripe","tablePart:firstColumnStripe":"First Column Stripe","tablePart:secondColumnStripe":"Second Column Stripe",tablePartFill:"Fill",tablePartText:"Text color",tablePartBorder:"Border",tablePartLines:"Inside lines",tablePartBold:"Bold",tablePartItalic:"Italic",tableStripeSize:"Stripe size",tableClearPart:"Clear",tablePreview:"Preview",tableSetDefault:"Set as default table style for this document",tableNoColor:"No Color",tableName:"Table Name",formatCellsTitle:"Format Cells","fcTab:number":"Number","fcTab:alignment":"Alignment","fcTab:font":"Font","fcTab:border":"Border","fcTab:fill":"Patterns","fcTab:protection":"Protection",fcCategory:"Category","fcCat:general":"General","fcCat:number":"Number","fcCat:currency":"Currency","fcCat:accounting":"Accounting","fcCat:date":"Date","fcCat:time":"Time","fcCat:percent":"Percentage","fcCat:fraction":"Fraction","fcCat:scientific":"Scientific","fcCat:text":"Text","fcCat:custom":"Custom",fcSample:"Sample",fcDecimals:"Decimal places",fcThousands:"Use 1000 Separator (,)",fcRedNegative:"Negative numbers in red",fcSymbol:"Symbol",fcNoSymbol:"None",fcType:"Type",fcHorizontal:"Horizontal",fcVertical:"Vertical","fcH:General":"General","fcH:Left":"Left","fcH:Center":"Center","fcH:Right":"Right","fcH:Fill":"Fill","fcH:Justify":"Justify","fcH:CenterAcross":"Center Across Selection","fcH:Distributed":"Distributed","fcV:Top":"Top","fcV:Center":"Center","fcV:Bottom":"Bottom","fcV:Justify":"Justify","fcV:Distributed":"Distributed",fcIndent:"Indent",fcRotation:"Orientation (degrees)",fcWrap:"Wrap text",fcShrink:"Shrink to fit",fcMerge:"Merge cells",fcFont:"Font",fcFontStyle:"Font style",fcRegular:"Regular",fcItalic:"Italic",fcBold:"Bold",fcBoldItalic:"Bold Italic",fcSize:"Size",fcUnderline:"Underline","fcU:None":"None","fcU:Single":"Single","fcU:Double":"Double","fcU:SingleAccounting":"Single Accounting","fcU:DoubleAccounting":"Double Accounting",fcColor:"Color",fcStrike:"Strikethrough",fcSuper:"Superscript",fcSub:"Subscript",fcPreviewText:"Kition AaBbCc 表格",fcPresets:"Presets",fcBorderNone:"None",fcBorderOutside:"Outline",fcBorderInside:"Inside",fcBorderEdges:"Border","fcEdge:top":"Top","fcEdge:bottom":"Bottom","fcEdge:left":"Left","fcEdge:right":"Right","fcEdge:insideHorizontal":"Inside horizontal","fcEdge:insideVertical":"Inside vertical","fcEdge:diagonalDown":"Diagonal down","fcEdge:diagonalUp":"Diagonal up",fcLineStyle:"Line style","fcLine:thin":"Thin","fcLine:medium":"Medium","fcLine:thick":"Thick","fcLine:dashed":"Dashed","fcLine:dotted":"Dotted","fcLine:double":"Double","fcLine:hair":"Hair",fcText:"Text",fcNoColor:"No Color",fcLocked:"Locked",fcHidden:"Hidden",fcProtectionNote:"Locking cells or hiding formulas has no effect until you protect the worksheet (Review › Protect Sheet).",symbolRecent:"Recently Used Symbols",symbolCommon:"Common Symbols",symbolMore:"More Symbols…",symbolTitle:"Symbol",symbolTabSymbols:"Symbols",symbolTabSpecial:"Special Characters",symbolSearch:"Type a symbol name and press Enter",symbolFont:"Font:",symbolNormalText:"(normal text)",symbolSubset:"Subset:",symbolSubsetNames:"en",symbolRecentDialog:"Recently used symbols:",symbolCode:"Character code: ",symbolFrom:"from: Unicode (hex)",symbolInsert:"Insert",symbolClose:"Close",specialEmDash:"Em Dash",specialEnDash:"En Dash",specialNbHyphen:"Nonbreaking Hyphen",specialEmSpace:"Em Space",specialEnSpace:"En Space",specialQuarterSpace:"1/4 Em Space",specialNbSpace:"Nonbreaking Space",specialCopyright:"Copyright",specialRegistered:"Registered",specialTrademark:"Trademark",specialSection:"Section",specialParagraph:"Paragraph",specialEllipsis:"Ellipsis",specialSingleOpen:"Single Opening Quote",specialSingleClose:"Single Closing Quote",specialDoubleOpen:"Double Opening Quote",specialDoubleClose:"Double Closing Quote",specialDegree:"Degree",specialCelsius:"Degree Celsius",specialPerMille:"Per Mille",specialPlusMinus:"Plus-Minus",specialTimes:"Multiplication",specialDivide:"Division",specialRoot:"Square Root",specialInfinity:"Infinity",specialAlmostEqual:"Almost Equal",specialNotEqual:"Not Equal",specialLessEqual:"Less Than or Equal",specialGreaterEqual:"Greater Than or Equal",specialEuro:"Euro",specialYuan:"Yuan",specialPound:"Pound",specialNumero:"Numero",pasteSpecialItem:"Paste Special…",clearMenu:"Clear Contents",clearAllItem:"All",clearFormatsItem:"Formats",clearContentsItem:"Contents",clearCommentsItem:"Comments",clearLinksItem:"Hyperlinks",sortMenu:"Sort",sortAscendingItem:"Ascending",sortDescendingItem:"Descending",mergeCellsItem:"Merge Cells",unmergeCellsItem:"Unmerge Cells",insertNoteItem:"Insert Comment",linkItem:"Hyperlink…",mergeTitle:"Merge Cells",mergeConfirm:"Merging keeps only the value of the upper-left cell. Merge anyway?",tablePicturesTitle:"Format as Table",tablePicturesConfirm:"The header row can’t hold pictures. Clear the pictures in it and continue?",moveTitle:"Move Cells",moveReplace:"There's already data here. Do you want to replace it?",filterTitle:"Filter",filterAscending:"Sort A to Z",filterDescending:"Sort Z to A",filterContent:"Filter by Values",filterText:"Text Filters",filterNumber:"Number Filters",filterDate:"Date Filters",filterSearch:"Search",filterAll:"(Select All)",filterAllResults:"(Select All Search Results)",filterBlanks:"(Blanks)",filterNoMatch:"No matches",filterClear:"Clear Filter",filterEmptyText:"(Empty text)",filterEquals:"Equals",filterNotEquals:"Does Not Equal",filterBeginsWith:"Begins With",filterEndsWith:"Ends With",filterContains:"Contains",filterNotContains:"Does Not Contain",filterGreater:"Greater Than",filterGreaterOrEqual:"Greater Than or Equal To",filterLess:"Less Than",filterLessOrEqual:"Less Than or Equal To",filterBetween:"Between",filterTop:"Top 10",filterAboveAverage:"Above Average",filterBelowAverage:"Below Average",filterCustom:"Custom Filter",filterCustomTitle:"Custom AutoFilter",filterShowRows:"Show rows where {column}:",filterAnd:"And",filterOr:"Or",filterTopTitle:"Top 10 AutoFilter",filterLargest:"Top",filterSmallest:"Bottom",filterItems:"Items",filterPercent:"Percent",validationPick:"Pick from the list",validationStopTitle:"Invalid Entry",validationWarningTitle:"Warning",validationInfoTitle:"Information",validationContinue:"Continue?",validationRetry:"Retry",validationYes:"Yes",validationNo:"No",validationTitle:"Data Validation",validationSettings:"Settings",validationInputTab:"Input Message",validationErrorTab:"Error Alert",validationCriteria:"Validation criteria",validationAllow:"Allow:","validationKind-any":"Any value","validationKind-whole":"Whole number","validationKind-decimal":"Decimal","validationKind-list":"List","validationKind-date":"Date","validationKind-time":"Time","validationKind-textLength":"Text length","validationKind-custom":"Custom",validationData:"Data:","validationOp-between":"between","validationOp-notBetween":"not between","validationOp-equal":"equal to","validationOp-notEqual":"not equal to","validationOp-greater":"greater than","validationOp-less":"less than","validationOp-greaterOrEqual":"greater than or equal to","validationOp-lessOrEqual":"less than or equal to",validationMinimum:"Minimum:",validationMaximum:"Maximum:",validationValue:"Value:",validationSource:"Source:",validationFormula:"Formula:",validationIgnoreBlank:"Ignore blank",validationDropdown:"In-cell dropdown",validationShowInput:"Show input message when cell is selected",validationTitleField:"Title:",validationInputMessage:"Input message:",validationShowError:"Show error alert after invalid data is entered",validationStyle:"Style:",validationStyleStop:"Stop",validationStyleWarning:"Warning",validationStyleInfo:"Information",validationErrorMessage:"Error message:",validationClearAll:"Clear All",errorUnavailable:"command `{command}` is not available right now: {reason}",errorInvalidParams:"invalid parameters for `{command}`: {reason}",errorInternal:"internal error in `{command}` (the workbook was kept as it was): {reason}",errorUnknownCommand:"unknown command `{command}`",errorOpenEmpty:"'{name}' is empty (0 bytes): there is no workbook in it.",errorOpenNotSheet:"'{name}' is {what}, not a spreadsheet.",errorOpenEncrypted:"'{name}' is password-protected. Kition Sheet can't open encrypted workbooks yet; remove the password in Excel and try again.",errorOpenLegacy:"'{name}' is not a spreadsheet: it is an Office binary file without a workbook (a Word or PowerPoint 97-2003 file, say).",errorOpenXls:"'{name}' is an Excel 97-2003 (.xls) workbook that can't be read ({reason}). Open it in Excel or WPS and save it as .xlsx.",errorOpenDamaged:"'{name}' is damaged and can't be opened: {reason}",errorOpenImport:"We can't import '{name}': {reason}",errorOpenCant:"We can't open '{name}': {reason}",errorFormula:"There's a problem with this formula: {reason}",errorNotFound:"We couldn't find what you were looking for: {what}",circularTitle:"Circular Reference Warning",circularMessage:"There are one or more circular references where a formula refers to its own cell directly or indirectly. They show 0 and might calculate incorrectly; remove them, or turn on iterative calculation."},qL={nameBox:"名称框",formula:"公式",enterFormula:"输入",insertFunction:"插入函数",expandFormulaBar:"展开编辑栏",collapseFormulaBar:"折叠编辑栏",showGroup:"显示",showGridlines:"显示网格线",showFormulaBar:"显示编辑栏",showHeadings:"显示行号列标",freezePanes:"冻结窗格",unfreezePanes:"取消冻结",freezeAt:"冻结至第{row}行{col}列",freezeRowsAt:"冻结至第{row}行",freezeColsAt:"冻结至第{col}列",freezeTopRow:"冻结首行",freezeFirstColumn:"冻结首列",focusCell:"高亮行列",focusCellColors:"高亮颜色",focusCellColor:"高亮颜色 {index}",gridlineColor:"网格线颜色",gridlineAuto:"自动",functionSearch:"查找函数:",functionCategory:"或选择类别:",functionPick:"选择函数:",functionNone:"没有匹配的函数","fnCategory:common":"常用函数","fnCategory:all":"全部","fnCategory:Financial":"财务","fnCategory:Logical":"逻辑","fnCategory:Text":"文本","fnCategory:DateTime":"日期与时间","fnCategory:Lookup":"查找与引用","fnCategory:MathTrig":"数学与三角函数","fnCategory:Statistical":"统计","fnCategory:Engineering":"工程","fnCategory:Information":"信息","fnCategory:Database":"数据库","fnCategory:Compatibility":"兼容性","fnCategory:Web":"Web","fnCategory:Cube":"多维数据集",...IL,insertAbove:"向上插入",insertAboveAfter:"行",insertBelow:"向下插入",insertBelowAfter:"行",insertLeft:"向左插入",insertLeftAfter:"列",insertRight:"向右插入",insertRightAfter:"列",insertCellsRight:"插入单元格-右移",insertCellsDown:"插入单元格-下移",insertSheetItem:"插入工作表",deleteCellsLeft:"删除单元格-左移",deleteCellsUp:"删除单元格-上移",deleteRowsItem:"删除行",deleteColsItem:"删除列",deleteSheetItem:"删除工作表",gridMenu:"单元格操作",menuCut:"剪切",menuCopy:"复制",menuPaste:"粘贴",deleteMenu:"删除",insertMenu:"插入",clearContents:"清除内容",formatCellsItem:"设置单元格格式…",hideLines:"隐藏",unhideLines:"取消隐藏",rowHeightItem:"行高…",columnWidthItem:"列宽…",addSheet:"新建工作表",renameSheet:"重命名",deleteSheet:"删除",sheetList:"工作表列表",sheetMenu:"工作表操作",sheetLocked:"工作表已保护",sheetHidden:"已隐藏",sheetScrollLeft:"向左滚动标签",sheetScrollRight:"向右滚动标签",moveSheet:"移动工作表",moveSheetLeft:"向左移动",moveSheetRight:"向右移动",copySheet:"创建副本",tabColor:"工作表标签",noTabColor:"无填充",hideSheet:"隐藏工作表",unhideSheet:"取消隐藏",hideNeedsTwo:"至少显示两个工作表时才能隐藏",insertSheetBefore:"在当前工作表前",insertSheetAfter:"在当前工作表后",deleteSheetTitle:"删除工作表",deleteSheetConfirm:"确认要删除“{sheet}”吗?",deleteSheetOk:"确认删除",cancel:"取消",ok:"确定",unhideSheetTitle:"取消隐藏",unhideSheetPrompt:"取消隐藏工作表:",sheetNameEmpty:"工作表名称不能为空!",sheetNameInvalid:"工作表名不能包含无效字符:\\ / : ? * [ ]",sheetNameTaken:"工作表名称已经存在!",sheetNameApostrophe:"工作表名称不能以单引号开头或结尾",sheetNameReserved:"“History”是保留名称",statSum:"求和={value}",statAverage:"平均值={value}",statCount:"计数={value}",sheetSelection:"{sheet} · {selection}",sheetOf:"第 {index} 个工作表,共 {count} 个",exported:"已导出",exportFailed:"导出失败",templateTitle:"保存为模板",templateName:"模板名称",templateNameRequired:"请输入模板名称",templateSaved:"模板保存成功",templateFailed:"模板保存失败",commentFailed:"评论失败",commentThread:"评论 ({count})",formatPainter:"格式刷",formatPainterTip:"格式刷:单击刷一次,双击可连续刷(Esc 结束)",fontBox:"字体",fontSearch:"搜索字体(名称、首字母或全拼)",fontRecent:"最近使用",fontAll:"所有字体",fontResults:"搜索结果({count})",fontNoResults:"暂无搜索结果",fontMore:"字体列表",fontSizeBox:"字号",fontSizeList:"字号列表",fontSizeRange:"设置失败,字号必须在 1-409 磅之间",boldTip:"加粗 ({key}B)",italicTip:"倾斜 ({key}I)",underlineTip:"下划线 ({key}U)",strikeTip:"删除线 ({key}5)",fontColorApply:"字体颜色",fillColorApply:"填充颜色",colorMenu:"更多选项",colorAutomatic:"自动",colorNoFill:"无填充颜色",colorRecent:"最近使用颜色",colorMore:"其他颜色",colorHex:"颜色(#RRGGBB)",colorApply:"确定",colorBad:"颜色是 # 加六位十六进制数",tableTools:"表格工具",tablePresetStyles:"预设样式",tableThemeColor:"主题颜色","tableGroup:light":"浅色系","tableGroup:medium":"中色系","tableGroup:dark":"深色系","tableGroup:custom":"自定义",tableNewStyle:"新建表格样式…",tableConvertToRange:"转换为区域",tableClearStyle:"清除表格样式",tableSetAsDefault:"设为默认值",tableIsDefault:"默认表格样式",tableModifyStyle:"修改…",tableDeleteStyle:"删除",tableColumnPrefix:"列",formatAsTableTitle:"套用表格样式",tableDataSource:"表数据的来源",tableOnlyFormat:"仅套用表格样式",tableTitleRows:"标题行的行数",tableConvert:"转换成表格,并套用表格样式",tableHasHeaders:"表包含标题",tableFilterButtons:"筛选按钮",resizeTableTitle:"调整表格大小",resizeTableRange:"为表选择新的数据区域",newTableStyleTitle:"新建表格样式",modifyTableStyleTitle:"修改表格样式",tableStyleName:"名称",tableStyleNameEmpty:"请输入表格样式的名称",tableElement:"表元素","tablePart:wholeTable":"整个表","tablePart:headerRow":"标题行","tablePart:totalRow":"汇总行","tablePart:firstColumn":"第一列","tablePart:lastColumn":"最后一列","tablePart:firstRowStripe":"第一行条纹","tablePart:secondRowStripe":"第二行条纹","tablePart:firstColumnStripe":"第一列条纹","tablePart:secondColumnStripe":"第二列条纹",tablePartFill:"填充",tablePartText:"字体颜色",tablePartBorder:"边框",tablePartLines:"内部框线",tablePartBold:"加粗",tablePartItalic:"倾斜",tableStripeSize:"条纹尺寸",tableClearPart:"清除",tablePreview:"预览",tableSetDefault:"设为此文档的默认表格样式",tableNoColor:"无颜色",tableName:"表名称",formatCellsTitle:"单元格格式","fcTab:number":"数字","fcTab:alignment":"对齐","fcTab:font":"字体","fcTab:border":"边框","fcTab:fill":"图案","fcTab:protection":"保护",fcCategory:"分类","fcCat:general":"常规","fcCat:number":"数值","fcCat:currency":"货币","fcCat:accounting":"会计专用","fcCat:date":"日期","fcCat:time":"时间","fcCat:percent":"百分比","fcCat:fraction":"分数","fcCat:scientific":"科学记数","fcCat:text":"文本","fcCat:custom":"自定义",fcSample:"示例",fcDecimals:"小数位数",fcThousands:"使用千位分隔符(,)",fcRedNegative:"负数显示为红色",fcSymbol:"货币符号",fcNoSymbol:"无",fcType:"类型",fcHorizontal:"水平对齐",fcVertical:"垂直对齐","fcH:General":"常规","fcH:Left":"靠左","fcH:Center":"居中","fcH:Right":"靠右","fcH:Fill":"填充","fcH:Justify":"两端对齐","fcH:CenterAcross":"跨列居中","fcH:Distributed":"分散对齐","fcV:Top":"靠上","fcV:Center":"居中","fcV:Bottom":"靠下","fcV:Justify":"两端对齐","fcV:Distributed":"分散对齐",fcIndent:"缩进",fcRotation:"方向(度)",fcWrap:"自动换行",fcShrink:"缩小字体填充",fcMerge:"合并单元格",fcFont:"字体",fcFontStyle:"字形",fcRegular:"常规",fcItalic:"倾斜",fcBold:"加粗",fcBoldItalic:"加粗 倾斜",fcSize:"字号",fcUnderline:"下划线","fcU:None":"无","fcU:Single":"单下划线","fcU:Double":"双下划线","fcU:SingleAccounting":"会计用单下划线","fcU:DoubleAccounting":"会计用双下划线",fcColor:"颜色",fcStrike:"删除线",fcSuper:"上标",fcSub:"下标",fcPreviewText:"Kition AaBbCc 表格",fcPresets:"预置",fcBorderNone:"无",fcBorderOutside:"外边框",fcBorderInside:"内部",fcBorderEdges:"边框","fcEdge:top":"上边框","fcEdge:bottom":"下边框","fcEdge:left":"左边框","fcEdge:right":"右边框","fcEdge:insideHorizontal":"内部横线","fcEdge:insideVertical":"内部竖线","fcEdge:diagonalDown":"左斜线","fcEdge:diagonalUp":"右斜线",fcLineStyle:"线条样式","fcLine:thin":"细线","fcLine:medium":"中粗线","fcLine:thick":"粗线","fcLine:dashed":"虚线","fcLine:dotted":"点线","fcLine:double":"双线","fcLine:hair":"极细线",fcText:"文本",fcNoColor:"无颜色",fcLocked:"锁定",fcHidden:"隐藏",fcProtectionNote:"只有保护工作表(审阅 › 保护工作表)后,锁定单元格或隐藏公式才有效。",symbolRecent:"最近使用符号",symbolCommon:"常用符号",symbolMore:"更多符号…",symbolTitle:"符号",symbolTabSymbols:"符号",symbolTabSpecial:"特殊字符",symbolSearch:"输入符号名称,回车搜索",symbolFont:"字体:",symbolNormalText:"(普通文本)",symbolSubset:"子集:",symbolSubsetNames:"zh",symbolRecentDialog:"近期使用过的符号:",symbolCode:"字符代码:",symbolFrom:"来自:Unicode(十六进制)",symbolInsert:"插入",symbolClose:"关闭",specialEmDash:"长划线",specialEnDash:"短划线",specialNbHyphen:"不间断连字符",specialEmSpace:"全角空格",specialEnSpace:"半角空格",specialQuarterSpace:"1/4 全角空格",specialNbSpace:"不间断空格",specialCopyright:"版权所有",specialRegistered:"注册",specialTrademark:"商标",specialSection:"小节",specialParagraph:"段落",specialEllipsis:"省略号",specialSingleOpen:"左单引号",specialSingleClose:"右单引号",specialDoubleOpen:"左双引号",specialDoubleClose:"右双引号",specialDegree:"度",specialCelsius:"摄氏度",specialPerMille:"千分号",specialPlusMinus:"正负号",specialTimes:"乘号",specialDivide:"除号",specialRoot:"根号",specialInfinity:"无穷大",specialAlmostEqual:"约等于",specialNotEqual:"不等于",specialLessEqual:"小于等于",specialGreaterEqual:"大于等于",specialEuro:"欧元",specialYuan:"人民币",specialPound:"英镑",specialNumero:"编号",pasteSpecialItem:"选择性粘贴…",clearMenu:"清除内容",clearAllItem:"全部",clearFormatsItem:"格式",clearContentsItem:"内容",clearCommentsItem:"批注",clearLinksItem:"超链接",sortMenu:"排序",sortAscendingItem:"升序",sortDescendingItem:"降序",mergeCellsItem:"合并单元格",unmergeCellsItem:"取消合并单元格",insertNoteItem:"插入批注",linkItem:"超链接…",mergeTitle:"合并单元格",mergeConfirm:"合并后的单元格将只保留左/上单元格中的值,确定合并吗?",tablePicturesTitle:"套用表格样式",tablePicturesConfirm:"标题行不能包含图片,确定后将清除标题行中的图片,是否继续?",moveTitle:"提示",moveReplace:"是否替换目标单元格内容?",filterTitle:"筛选",filterAscending:"升序",filterDescending:"降序",filterContent:"内容筛选",filterText:"文本筛选",filterNumber:"数字筛选",filterDate:"日期筛选",filterSearch:"搜索",filterAll:"(全选)",filterAllResults:"(全选搜索结果)",filterBlanks:"(空白)",filterNoMatch:"暂无搜索结果",filterClear:"清空条件",filterEmptyText:"(空文本)",filterEquals:"等于",filterNotEquals:"不等于",filterBeginsWith:"开头是",filterEndsWith:"结尾是",filterContains:"包含",filterNotContains:"不包含",filterGreater:"大于",filterGreaterOrEqual:"大于或等于",filterLess:"小于",filterLessOrEqual:"小于或等于",filterBetween:"介于",filterTop:"前十项",filterAboveAverage:"高于平均值",filterBelowAverage:"低于平均值",filterCustom:"自定义筛选",filterCustomTitle:"自定义自动筛选方式",filterShowRows:"显示行:{column}",filterAnd:"与",filterOr:"或",filterTopTitle:"自动筛选前 10 个",filterLargest:"最大",filterSmallest:"最小",filterItems:"项",filterPercent:"百分比",validationPick:"从下拉列表中选择",validationStopTitle:"错误提示",validationWarningTitle:"警告",validationInfoTitle:"信息",validationContinue:"是否继续?",validationRetry:"重试",validationYes:"是",validationNo:"否",validationTitle:"数据验证",validationSettings:"设置",validationInputTab:"输入信息",validationErrorTab:"出错警告",validationCriteria:"有效性条件",validationAllow:"允许:","validationKind-any":"任何值","validationKind-whole":"整数","validationKind-decimal":"小数","validationKind-list":"序列","validationKind-date":"日期","validationKind-time":"时间","validationKind-textLength":"文本长度","validationKind-custom":"自定义",validationData:"数据:","validationOp-between":"介于","validationOp-notBetween":"未介于","validationOp-equal":"等于","validationOp-notEqual":"不等于","validationOp-greater":"大于","validationOp-less":"小于","validationOp-greaterOrEqual":"大于或等于","validationOp-lessOrEqual":"小于或等于",validationMinimum:"最小值:",validationMaximum:"最大值:",validationValue:"数值:",validationSource:"来源:",validationFormula:"公式:",validationIgnoreBlank:"忽略空值",validationDropdown:"提供下拉箭头",validationShowInput:"选定单元格时显示输入信息",validationTitleField:"标题:",validationInputMessage:"输入信息:",validationShowError:"输入无效数据时显示出错警告",validationStyle:"样式:",validationStyleStop:"停止",validationStyleWarning:"警告",validationStyleInfo:"信息",validationErrorMessage:"错误信息:",validationClearAll:"全部清除",errorUnavailable:"命令现在不可用:{reason}",errorInvalidParams:"参数无效:{reason}",errorInternal:"内部错误(工作簿已保持原样):{reason}",errorUnknownCommand:"未知命令:{command}",errorOpenEmpty:"“{name}”是空文件(0 字节),其中没有工作簿。",errorOpenNotSheet:"“{name}”是{what},不是表格文件。",errorOpenEncrypted:"“{name}”已设置密码保护。暂时无法打开加密的工作簿,请先取消密码后再试。",errorOpenLegacy:"“{name}”不是表格文件:它是不含工作簿的 Office 二进制文件(例如 Word 或 PowerPoint 97-2003 文件)。",errorOpenXls:"“{name}”是无法读取的 Excel 97-2003 (.xls) 工作簿({reason})。请在 WPS 或 Excel 中打开并另存为 .xlsx。",errorOpenDamaged:"“{name}”已损坏,无法打开:{reason}",errorOpenImport:"无法导入“{name}”:{reason}",errorOpenCant:"无法打开“{name}”:{reason}",errorFormula:"公式存在错误:{reason}",errorNotFound:"找不到您要查找的内容:{what}","errorKind:a PDF document":"PDF 文档","errorKind:a PNG picture":"PNG 图片","errorKind:a JPEG picture":"JPEG 图片","errorKind:a GIF picture":"GIF 图片","errorKind:a Word document":"Word 文档","errorKind:a PowerPoint presentation":"PowerPoint 演示文稿","errorKind:a ZIP archive":"ZIP 压缩包",circularTitle:"循环引用警告",circularMessage:"存在一个或多个循环引用:公式直接或间接引用了自身所在的单元格。这些单元格显示为 0,可能导致计算不正确;请删除循环引用,或启用迭代计算。"},_x={"en-US":VL,"zh-CN":qL},N0=(n,i,o)=>{const r=`fn:${i}`,u=n(r);return u===r?o:u},$L={"zh-CN":{File:"文件",Export:"导出","New Comment":"新建批注","Export as PDF":"导出为 PDF","Export as CSV":"导出为 CSV","Export as CSV UTF-8":"导出为 CSV UTF-8(带 BOM)","Export as Web Page":"导出为网页","Export as Picture":"输出为图片","Export as Excel Workbook":"另存为 Excel 工作簿",Template:"模板","Save as Template":"保存为模板",Draw:"绘图",Automate:"自动化",Table:"表格","Table Design":"表设计","Chart Design":"图表设计","Switch Row/Column":"切换行/列","Select Data":"选择数据","Add Chart Element":"添加图表元素","Quick Layout":"快速布局","Change Colors":"更改颜色","Move Chart":"移动图表","Chart Layouts":"图表布局","Chart Styles":"图表样式",Location:"位置",Format:"格式",Clipboard:"剪贴板",Font:"字体",Alignment:"对齐方式",Number:"数字",Styles:"样式",Cells:"单元格",Editing:"编辑",Paste:"粘贴","Paste Special":"选择性粘贴",Cut:"剪切",Copy:"复制","Format Painter":"格式刷",Bold:"加粗",Italic:"倾斜",Underline:"下划线","Double Underline":"双下划线",Strikethrough:"删除线","Increase Font Size":"增大字号","Decrease Font Size":"减小字号",Borders:"边框","Fill Color":"填充颜色","Font Color":"字体颜色","No Fill":"无填充",Automatic:"自动","Top Align":"顶端对齐","Middle Align":"垂直居中","Bottom Align":"底端对齐","Align Left":"左对齐",Center:"居中","Align Right":"右对齐","Wrap Text":"自动换行","Decrease Indent":"减少缩进","Increase Indent":"增加缩进",Orientation:"方向","Merge & Center":"合并后居中","Merge Across":"跨越合并","Merge Cells":"合并单元格","Unmerge Cells":"取消合并","Number Format":"数字格式","Accounting Number Format":"会计数字格式","Percent Style":"百分比样式","Comma Style":"千位分隔样式","Increase Decimal":"增加小数位数","Decrease Decimal":"减少小数位数","Conditional Formatting":"条件格式","Data Bars":"数据条","Color Scales":"色阶","Icon Sets":"图标集","Clear Rules":"清除规则","Manage Rules":"管理规则","Format as Table":"套用表格样式",Properties:"属性","Resize Table":"调整表格大小","Remove Duplicates":"删除重复项","Convert to Range":"转换为区域","Table Style Options":"表格样式选项","Header Row":"标题行","Total Row":"汇总行","Banded Rows":"镶边行","First Column":"第一列","Last Column":"最后一列","Banded Columns":"镶边列","Filter Button":"筛选按钮","Table Styles":"表格样式","New Table Style…":"新建表格样式…","Cell Styles":"单元格样式",Insert:"插入",Delete:"删除","Insert Sheet Rows":"插入工作表行","Insert Sheet Columns":"插入工作表列","Insert Cells":"插入单元格","Insert Sheet":"插入工作表","Hide Sheet":"隐藏工作表","Unhide Sheet…":"取消隐藏工作表…","Delete Sheet Rows":"删除工作表行","Delete Sheet Columns":"删除工作表列","Delete Cells":"删除单元格","Delete Sheet":"删除工作表","Row Height":"行高","Column Width":"列宽","AutoFit Row Height":"自动调整行高","AutoFit Column Width":"自动调整列宽","Format Cells":"设置单元格格式",Sum:"求和",Average:"平均值","Count Numbers":"计数",Max:"最大值",Min:"最小值",Fill:"填充",Down:"向下",Right:"向右",Up:"向上",Left:"向左",Series:"序列","Smart fill":"智能填充",Clear:"清除","Clear All":"全部清除","Clear Formats":"清除格式","Clear Contents":"清除内容","Clear Comments":"清除批注","Clear Hyperlinks":"清除超链接","Sort & Filter":"排序和筛选","Sort A to Z":"升序","Sort Z to A":"降序","Custom Sort":"自定义排序",Reapply:"重新应用","Find & Select":"查找和选择",Find:"查找",Replace:"替换","Go To":"转到","Go To Special":"定位条件",Good:"好",Bad:"差",Neutral:"适中",Title:"标题",Total:"汇总","Heading 1":"标题 1","Heading 2":"标题 2",Normal:"常规",General:"常规",Currency:"货币",Accounting:"会计专用","Short Date":"短日期","Long Date":"长日期",Time:"时间",Percentage:"百分比",Fraction:"分数",Scientific:"科学记数",Text:"文本","Bottom Border":"下框线","Top Border":"上框线","Left Border":"左框线","Right Border":"右框线","No Border":"无框线","All Borders":"所有框线","Outside Borders":"外侧框线","Thick Outside Borders":"粗外侧框线","Bottom Double Border":"双底框线","Thick Bottom Border":"粗下框线","Top and Bottom Border":"上下框线","Angle Counterclockwise":"逆时针角度","Angle Clockwise":"顺时针角度","Vertical Text":"竖排文字","Rotate Text Up":"向上旋转文字","Rotate Text Down":"向下旋转文字",Checkbox:"复选框","Cell Controls":"单元格控件",Symbols:"符号",Picture:"图片","Recommended Pivot Tables":"推荐的数据透视表",Tables:"表格","Recommended Charts":"推荐的图表",Charts:"图表","Art text":"艺术字",Links:"链接","Lasso Select":"套索选择",Tools:"工具","Ink to Shape":"墨迹转换为形状",Convert:"转换","Sheet Right-to-Left":"工作表从右向左","Print Gridlines":"打印网格线","Print Headings":"打印行号列标","Sheet Options":"工作表选项","Print Titles":"打印标题",Background:"背景","Page Setup":"页面设置","Scale to Fit":"调整为合适大小",Colors:"颜色",Fonts:"字体",Effects:"效果","Bring Forward":"上移一层","Send Backward":"下移一层","Selection Pane":"选择窗格",Align:"对齐",Rotate:"旋转",Arrange:"排列","Insert Function":"插入函数","Recently Used":"最近使用","Date & Time":"日期和时间","Lookup & Reference":"查找与引用","Math & Trig":"数学和三角函数","More Functions":"其他函数","Function Library":"函数库","Name Manager":"名称管理器","Defined Names":"定义的名称","Formula Auditing":"公式审核","Calculation Options":"计算选项",Calculation:"计算",Advanced:"高级","Text to Columns":"分列",Consolidate:"合并计算","Data Tools":"数据工具","Hide Detail":"隐藏明细数据","Show Detail":"显示明细数据",Outline:"分级显示","From Text/CSV":"从文本/CSV","Get Data":"获取数据","From Table/Range":"来自表格/区域","Import Data":"导入数据","Queries & Connections":"查询和连接","Refresh All":"全部刷新","Goal Seek":"单变量求解","Scenario Manager":"方案管理器","Data Table":"模拟运算表",Forecast:"预测","Delete Comment":"删除批注","Protect Sheet":"保护工作表","Unprotect Sheet":"撤销工作表保护","Protect Workbook":"保护工作簿",Protect:"保护","Workbook Statistics":"工作簿统计信息",Thesaurus:"同义词库",Proofing:"校对","Check Accessibility":"检查辅助功能",Accessibility:"辅助功能","Zoom to Selection":"缩放到选定区域","Page Break Preview":"分页预览","Custom Views":"自定义视图","Workbook Views":"工作簿视图",Split:"拆分","New Window":"新建窗口","Arrange All":"全部重排",Hide:"隐藏",Unhide:"取消隐藏","Switch Windows":"切换窗口",Window:"窗口",Macros:"宏","Record Actions":"录制操作","New Script":"新建脚本","All Scripts":"所有脚本","Scripting Tools":"脚本工具","You can't change part of an array.":"不能更改数组的某一部分。","A checkbox can't be typed in. Clear its contents, then type.":"复选框不可直接编辑,请删除后再插入","A checkbox cell can't hold a link.":"复选框单元格不能插入链接。","A table's header row can't hold pictures.":"标题行不能包含图片。","This value doesn't match the data validation restrictions defined for this cell.":"此值与此单元格定义的数据验证限制不匹配。","A table can't overlap another table.":"表格不能与另一个表格重叠。","A table needs a row besides its header.":"表格除标题行外至少需要一行数据。","A workbook must contain at least one visible worksheet.":"工作簿中至少应含有一张可见的工作表。","Cell must contain a formula.":"单元格必须包含公式。","Cell must contain a value.":"单元格必须包含值。","Column width must be between 0 and 255 characters.":"列宽必须介于 0 到 255 个字符之间。","Enter a valid range on this sheet.":"请输入此工作表上的有效区域。","files larger than 2 GB aren't supported":"不支持大于 2 GB 的文件","Input cell reference is not valid.":"输入单元格引用无效。","Multi-cell array formulas aren't allowed in tables.":"表格中不允许使用多单元格数组公式。","No cells were found.":"未找到单元格。","No dictionary is available on this system (Kition Sheet uses the system word list).":"此系统上没有可用的词典(Kition Sheet 使用系统词表)。","No sheets are hidden.":"没有隐藏的工作表。","Nothing to import.":"没有可导入的内容。","Nothing to paste.":"没有可粘贴的内容。","ODS is supported for data import only. Save as .xlsx or another supported export format.":"ODS 文件只能导入数据。请另存为 .xlsx 或其他支持的格式。","XLSB is supported for data import only. Save as .xlsx or another supported export format.":"XLSB 文件只能导入数据。请另存为 .xlsx 或其他支持的格式。","Excel 97-2003 (.xls) workbooks are opened but not saved. Save as .xlsx or another supported export format.":"Excel 97-2003 (.xls) 工作簿只能打开,不能保存。请另存为 .xlsx 或其他支持的格式。","This .xls workbook is password-protected. Kition Sheet can't open encrypted workbooks yet; remove the password and try again.":"此 .xls 工作簿已设置密码保护。暂时无法打开加密的工作簿,请先取消密码后再试。","Only the characters of a text cell can be formatted.":"只能设置文本单元格中字符的格式。","Pick up a format first.":"请先用格式刷选取格式。","Reference isn't valid.":"引用无效。","Row height must be between 0 and 409 points.":"行高必须介于 0 到 409 磅之间。","Select data for the chart first.":"请先选择图表的数据。","That command cannot be used on overlapping selections.":"该命令不能用于重叠的选定区域。","The cell has no formula.":"该单元格没有公式。","The cell or chart you're trying to change is on a protected sheet.":"您试图更改的单元格或图表位于受保护的工作表中。","The cell you're trying to change is on a protected sheet.":"您试图更改的单元格位于受保护的工作表中。","The cells can't be moved past the edge of the sheet.":"不能将单元格移出工作表的边界。","The consolidated data doesn't fit below and right of the destination.":"合并计算的数据超出了目标位置右下方的范围。","The copied sheet no longer exists.":"复制的工作表已不存在。","The extract range can't overlap the list range.":"复制到的区域不能与列表区域重叠。","The file is empty.":"文件是空的。","The name entered already exists. Enter a unique name.":"输入的名称已存在。请输入唯一的名称。","The name that you entered is not valid.":"输入的名称无效。","The number must be between 1 and 409.":"数字必须介于 1 到 409 之间。","The password you supplied is not correct.":"密码不正确。","The selection is too large to move.":"选定区域太大,无法移动。","The sheet the format was picked up on is gone.":"选取格式的工作表已不存在。","The workbook is protected and cannot be changed.":"工作簿受保护,不能更改。","There are no scenarios on this sheet.":"此工作表上没有方案。","There is no row above the table for its header.":"表格上方没有可用作标题行的行。","There is nothing in the selected rows or columns to format as a table.":"所选行或列中没有可套用表格样式的内容。","There's a problem with this formula.":"公式存在错误。","There's no comment in this cell.":"此单元格中没有批注。","There's no filter here.":"此处没有筛选。","This action won't work on multiple selections.":"不能对多重选定区域使用此命令。","This can't be done with the whole sheet selected.":"选中整张工作表时无法执行此操作。","To do this, all the merged cells need to be the same size.":"此操作要求合并单元格都具有相同大小。","To prevent possible loss of data, Excel cannot shift nonblank cells off of the worksheet.":"为了防止可能的数据丢失,不能将非空单元格移出工作表。","Too many copies of this sheet.":"此工作表的副本太多。","Undo and Redo can't run inside another command.":"撤销和恢复不能在其他命令中运行。","The sheet is too large to export as one picture; export a smaller range.":"工作表太大,无法输出为一张图片;请输出较小的区域。","Data Validation":"数据验证"}},GL=[[/^command `([^`]+)` is not available right now: ([\s\S]*)$/,"errorUnavailable",["command","reason"]],[/^invalid parameters for `([^`]+)`: ([\s\S]*)$/,"errorInvalidParams",["command","reason"]],[/^internal error in `([^`]+)` \(the workbook was kept as it was\): ([\s\S]*)$/,"errorInternal",["command","reason"]],[/^unknown command `([^`]+)`$/,"errorUnknownCommand",["command"]],[/^'([\s\S]+)' is empty \(0 bytes\): there is no workbook in it\.$/,"errorOpenEmpty",["name"]],[/^'([\s\S]+)' is password-protected\. /,"errorOpenEncrypted",["name"]],[/^'([\s\S]+)' is not a spreadsheet: it is an Office binary file/,"errorOpenLegacy",["name"]],[/^'([\s\S]+)' is an Excel 97-2003 \(\.xls\) workbook that can't be read \(([\s\S]*)\)\. /,"errorOpenXls",["name","reason"]],[/^'([\s\S]+)' is damaged and can't be opened: ([\s\S]*)$/,"errorOpenDamaged",["name","reason"]],[/^'([\s\S]+)' is (an? [^,]+), not a spreadsheet\.$/,"errorOpenNotSheet",["name","what"]],[/^We can't import '([\s\S]+)': ([\s\S]*)$/,"errorOpenImport",["name","reason"]],[/^We can't open '([\s\S]+)': ([\s\S]*)$/,"errorOpenCant",["name","reason"]],[/^There's a problem with this formula: ([\s\S]*)$/,"errorFormula",["reason"]],[/^We couldn't find what you were looking for: ([\s\S]*)$/,"errorNotFound",["what"]]];function us(n,i,o,r=0){const u=o instanceof Error?o.message:String(o),f=n(u);if(f!==u||r>3)return f;const h=/^step \d+ \(`[^`]+`\) failed: ([\s\S]*)$/.exec(u);if(h)return us(n,i,h[1],r+1);for(const[v,p,y]of GL){const m=v.exec(u);if(!m)continue;const x={};y.forEach((C,E)=>{const w=m[E+1]??"";x[C]=C==="reason"?us(n,i,w,r+1):C==="what"?PL(i,w):w});const b=i(p,x);return b===p?u:b}return u}function PL(n,i){const o=`errorKind:${i}`,r=n(o);return r===o?i:r}function KL(n){const i=n.inspected;return{sheets:i.sheets??[],tabs:Array.isArray(i.tabs)?i.tabs:[],sheet:i.sheet??"",active:i.active??"A1",selection:i.selection??"A1",stats:i.stats??null,lines:i.lines??{rows:1,cols:1,wholeRows:!1,wholeCols:!1},content:i.content??"",editing:i.editing===!0,editText:i.editText??null,formulaBar:i.formulaBar!==!1,gridlines:i.gridlines!==!1,gridColor:typeof i.gridColor=="string"?i.gridColor:null,headings:i.headings!==!1,focusCell:i.focusCell===!0,focusColor:typeof i.focusColor=="string"?i.focusColor:Fx[0],freeze:Array.isArray(i.freeze)?i.freeze:[0,0],freezePreview:Array.isArray(i.freezePreview)?i.freezePreview:null,freezeShift:Array.isArray(i.freezeShift)?i.freezeShift:[0,0],formatPainter:i.formatPainter==="once"||i.formatPainter==="sticky"?i.formatPainter:null,activeRect:Array.isArray(i.activeRect)?i.activeRect:null,zoom:typeof i.zoom=="number"?i.zoom:100,zoomAsked:typeof i.zoomAsked=="number"?i.zoomAsked:0,formulaText:i.formulaText??"",formulaReferences:i.formulaReferences??[],formulaHint:i.formulaHint??null,editCell:i.editCell??null,style:i.style??{},table:i.table??null,tableInfo:i.tableInfo??null,dialog:i.dialog&&typeof i.dialog=="object"?i.dialog:null,shape:i.shape??null,shapes:Array.isArray(i.shapes)?i.shapes:[],shapeEditing:i.shapeEditing===!0,chart:i.chart??null,escape:i.escape===!0,checkbox:i.checkbox===!0,notice:i.notice&&typeof i.notice=="object"&&typeof i.notice.text=="string"?i.notice:null,validation:i.validation&&typeof i.validation=="object"&&Array.isArray(i.validation.rect)?i.validation:null}}const YL=["file.new","file.open","file.save","file.saveAs","file.close","file.print","file.printPreview","file.saveBytes"],XL=["file.export","file.exportPdf","file.exportCsv","file.exportHtml"],Hn={File:["file.properties"],Insert:["insert.pivotTable","insert.table","insert.sparkline","insert.link","insert.symbol"],Draw:["draw.lasso","draw.inkToShape"],"Page Layout":["pageLayout.theme","pageLayout.margins","pageLayout.orientation","pageLayout.size","pageLayout.printArea","pageLayout.breaks","pageLayout.printTitles","pageLayout.scaleToFit","pageLayout.printGridlines"],Formulas:["formulas.insertFunction","formulas.autoSum","formulas.financial","formulas.logical","formulas.text","formulas.dateTime","formulas.lookupReference","formulas.mathTrig","formulas.nameManager","formulas.calculateNow"],Data:["data.getData","data.refreshAll","data.sortAscending","data.sortDescending","data.sort","data.filter","data.textToColumns","data.removeDuplicates","data.validation","data.group"],Automate:["automate.recordActions","automate.newScript","automate.allScripts"],Review:["review.spelling","review.workbookStatistics","review.checkAccessibility","review.newComment","review.deleteComment","review.newNote","review.protectSheet","review.protectWorkbook"],View:["view.normal","view.pageBreakPreview","view.pageLayout","view.freezePanes","view.gridlines","view.headings","view.zoom","view.zoomToSelection","view.split"],Table:["table.rename","table.resize","table.removeDuplicates","table.convertToRange","table.headerRow","table.totalRow","table.bandedRows","table.style"],"Chart Design":["chart.quickLayout","chart.changeColors","chart.selectData","chart.switchRowColumn","chart.move"]},Fx=["#FBE9C6","#DCEBFF","#DDF3E1","#FCE1E4","#ECE3FA","#E3E6EA","#E8A33D","#3D7FE0","#3FA35B","#D9536A","#8A63D2","#6B7380"],ZL=["#C0C0C0","#808080","#000000","#99CCFF","#3366FF","#CCFFCC","#339966","#FFCC99","#FF6600","#FF99CC","#993366","#CC99FF"];function R0(n){const i=/^([A-Z]+)(\d+)/.exec(n)??["","A","1"],o=i[1];let r=0;for(const u of o)r=r*26+u.charCodeAt(0)-64;return{row:Number(i[2]),col:o,colIndex:r}}function D0(n){let i="";for(let o=n;o>0;o=Math.floor((o-1)/26))i=String.fromCharCode(65+(o-1)%26)+i;return i}const Fn=[{name:"宋体",also:["SimSun","songti","st"],css:'"SimSun", "Songti SC", "STSong", serif'},{name:"黑体",also:["SimHei","heiti","ht"],css:'"SimHei", "Heiti SC", "STHeiti", sans-serif'},{name:"微软雅黑",also:["Microsoft YaHei","weiruanyahei","wryh"],css:'"Microsoft YaHei", "PingFang SC", sans-serif'},{name:"仿宋",also:["FangSong","fangsong","fs"],css:'"FangSong", "STFangsong", serif'},{name:"楷体",also:["KaiTi","kaiti","kt"],css:'"KaiTi", "Kaiti SC", "STKaiti", "Ma Shan Zheng", serif'},{name:"等线",also:["DengXian","dengxian","dx"],css:'"DengXian", "PingFang SC", sans-serif'},{name:"新宋体",also:["NSimSun","xinsongti","xst"],css:'"NSimSun", "Songti SC", serif'},{name:"Calibri",also:[],css:'"Calibri", "Carlito", sans-serif'},{name:"Arial",also:[],css:'"Arial", "Arimo", sans-serif'},{name:"Times New Roman",also:[],css:'"Times New Roman", "Tinos", serif'},{name:"Courier New",also:[],css:'"Courier New", "Cousine", monospace'},{name:"Cambria",also:[],css:'"Cambria", "Caladea", serif'},{name:"Verdana",also:[],css:"Verdana, sans-serif"},{name:"Georgia",also:[],css:"Georgia, serif"},{name:"Helvetica",also:[],css:'Helvetica, "Arimo", sans-serif'},{name:"Tahoma",also:[],css:"Tahoma, sans-serif"},{name:"Consolas",also:[],css:"Consolas, monospace"},{name:"Aptos",also:[],css:"Aptos, sans-serif"}];function WL(n,i){const o=i.trim().toLowerCase();return o?[n.name,...n.also].some(r=>r.toLowerCase().includes(o)):!0}const Ux=[6,8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72],a0=["General","Number","Currency","Accounting","Short Date","Long Date","Time","Percentage","Fraction","Scientific","Text"],Ie=()=>{window.requestAnimationFrame(()=>{var n;return(n=document.querySelector(".kui-text-sink"))==null?void 0:n.focus({preventScroll:!0})})};function QL({text:n,references:i}){let o=0;const r=i.map(u=>{const f=n.slice(o,u.start);o=u.end;const[h,v,p]=u.color;return s.jsxs("span",{children:[f,s.jsx("span",{"data-formula-reference":u.text,style:{color:`rgb(${h}, ${v}, ${p})`},children:n.slice(u.start,u.end)})]},u.start)});return s.jsxs(s.Fragment,{children:[r,n.slice(o)]})}const zg=8,O0=16;function JL(n){return{marks:n.commentAnchors,creates:n.commentAnchors&&n.hasService("comment.create")}}function Ix(n){try{return JSON.parse(n)}catch{return null}}async function eH(n){const i=Ix(await n("editor.commentAnchor",{}));if(!(i!=null&&i.anchor)||!Array.isArray(i.anchor.ids)||i.anchor.ids.length===0)throw new Error("the selection has no anchor");return i.anchor}async function jg(n,i){if(i.length===0)return[];const o=Ix(await n("editor.commentPlaces",{anchors:i.map(u=>({ids:u.ids}))})),r=Array.isArray(o==null?void 0:o.places)?o.places:[];return i.map((u,f)=>r[f]??{found:!1})}function tH(n,i){const o=[];return n.forEach((r,u)=>{const f=i[u];if(r.resolved||!(f!=null&&f.found)||!f.active||!Array.isArray(f.rect))return;const[h,v,p]=f.rect;[h,v,p].every(Number.isFinite)&&o.push({thread:r.id,x:h+p,y:v,count:r.count})}),o}function Ms(n,i,o,r){return{x:(o<i.left?o:o-n.x)*n.zoom,y:(r<i.top?r:r-n.y)*n.zoom}}function aH(n,i,o){const r=Ms(n,i,o.x,o.y),u=o.x>=i.left&&r.x<i.left*n.zoom,f=o.y>=i.top&&r.y<i.top*n.zoom;return u||f||r.x<=0||r.y<0||r.x>n.width||r.y>=n.height?null:{left:r.x-O0,top:r.y}}function nH(n){const i=n==null?void 0:n.data;return typeof(i==null?void 0:i.reason)=="string"?i.reason:null}function Vx({hint:n,pick:i,onPick:o,testId:r}){const{t:u}=ze(),f=n.functions[Math.min(i,n.functions.length-1)],h=n.call;return s.jsxs("div",{className:"sheet-formula-hints","data-testid":r,onPointerDown:v=>v.stopPropagation(),onMouseDown:v=>v.preventDefault(),children:[h&&!n.functions.length?s.jsx("div",{className:"sheet-formula-call","data-testid":`${r}-call`,children:h.bold?s.jsxs(s.Fragment,{children:[h.signature.slice(0,h.bold[0]),s.jsx("b",{children:h.signature.slice(h.bold[0],h.bold[1])}),h.signature.slice(h.bold[1])]}):h.signature}):null,n.functions.length?s.jsxs("div",{className:"sheet-formula-list-row",children:[s.jsx("ul",{className:"sheet-formula-list",role:"listbox","data-testid":`${r}-list`,children:n.functions.map((v,p)=>s.jsx("li",{role:"option","aria-selected":v===f,"data-name":v.name,ref:v===f?y=>y==null?void 0:y.scrollIntoView({block:"nearest"}):void 0,onClick:()=>o(v.name),"data-index":p,children:v.name},v.name))}),f?s.jsxs("div",{className:"sheet-formula-doc",children:[s.jsx("div",{className:"sheet-formula-doc-syntax",children:f.signature}),s.jsx("div",{"data-testid":`${r}-description`,children:N0(u,f.name,f.description)})]}):null]}):null]})}function lH({hint:n,views:i,pins:o,onPick:r}){const u=g.useSyncExternalStore(i.subscribe,i.get);if(!u||!n.at)return null;const f=Ms(u,o,n.at[0],n.at[1]);return f.x<0||f.y<0||f.x>u.width||f.y>u.height?null:s.jsx("div",{className:"sheet-cell-hints",style:{left:f.x,top:f.y+2},children:s.jsx(Vx,{hint:n,pick:n.pick,onPick:r,testId:"sheet-cell-hints"})})}let qx=null;const L0=new Set,H0=n=>{qx=n;for(const i of L0)i(n)},B0=(n={onChoose:()=>{},onCancel:Ie})=>H0(n),iH=["SUM","AVERAGE","IF","COUNT","MAX","MIN","VLOOKUP","SUMIF","COUNTIF","ROUND","IFERROR","TODAY"],rH=["Financial","DateTime","MathTrig","Statistical","Lookup","Database","Text","Logical","Information","Engineering","Compatibility","Web","Cube"];function sH(){const{query:n,t:i}=ze(),[o,r]=g.useState(qx),[u,f]=g.useState([]),[h,v]=g.useState(""),[p,y]=g.useState("common"),[m,x]=g.useState(null),b=g.useRef(null);g.useEffect(()=>(L0.add(r),()=>{L0.delete(r)}),[]),g.useEffect(()=>{o&&(v(""),y("common"),u.length||n("formulas.functions",{}).then(z=>f(Array.isArray(z)?z:[])))},[o]);const C=g.useMemo(()=>{const z=h.trim().toLowerCase();return z?u.filter(L=>L.name.toLowerCase().includes(z)||N0(i,L.name,L.description).toLowerCase().includes(z)):p==="common"?iH.map(L=>u.find(K=>K.name===L)).filter(L=>L!=null):p==="all"?u:u.filter(L=>L.category===p)},[u,p,h,i]);g.useEffect(()=>{x(z=>{var L;return z&&C.some(K=>K.name===z)?z:((L=C[0])==null?void 0:L.name)??null})},[C]);const E=C.find(z=>z.name===m)??null;if(!o)return null;const w=()=>{H0(null),o.onCancel()},T=z=>{z&&(H0(null),o.onChoose(z))},S=z=>{var K,X,re;if(!C.length)return;const L=Math.max(0,Math.min(C.length-1,C.findIndex(ae=>ae.name===m)+z));x(((K=C[L])==null?void 0:K.name)??null),(re=(X=b.current)==null?void 0:X.querySelector(`[data-index="${L}"]`))==null||re.scrollIntoView({block:"nearest"})};return s.jsx(da,{open:!0,onOpenChange:z=>z?void 0:w(),children:s.jsxs(fa,{size:"md",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:z=>z.preventDefault(),"data-testid":"sheet-insert-function",children:[s.jsx(ma,{children:s.jsx(pa,{children:i("insertFunction")})}),s.jsx(ha,{children:s.jsxs("div",{className:"sheet-function-dialog",children:[s.jsxs("label",{className:"sheet-function-row",children:[s.jsx("span",{children:i("functionSearch")}),s.jsx("input",{className:"kui-field",value:h,autoFocus:!0,spellCheck:!1,onChange:z=>v(z.target.value),onKeyDown:z=>{z.key==="ArrowDown"||z.key==="ArrowUp"?(z.preventDefault(),S(z.key==="ArrowDown"?1:-1)):z.key==="Enter"&&(z.preventDefault(),T(m))},"data-testid":"sheet-insert-function-search"})]}),s.jsxs("label",{className:"sheet-function-row",children:[s.jsx("span",{children:i("functionCategory")}),s.jsx("select",{className:"kui-field",value:p,disabled:h.trim()!=="",onChange:z=>y(z.target.value),"data-testid":"sheet-insert-function-category",children:["common","all",...rH].map(z=>s.jsx("option",{value:z,children:i(`fnCategory:${z}`)},z))})]}),s.jsx("span",{children:i("functionPick")}),s.jsxs("ul",{ref:b,className:"sheet-function-list",role:"listbox","aria-label":i("functionPick"),"data-testid":"sheet-insert-function-list",children:[C.map((z,L)=>s.jsx("li",{role:"option","aria-selected":z.name===m,"data-name":z.name,"data-index":L,onClick:()=>x(z.name),onDoubleClick:()=>T(z.name),children:z.name},z.name)),!C.length&&u.length?s.jsx("li",{"aria-disabled":"true",children:i("functionNone")}):null]}),s.jsx("div",{className:"sheet-function-about","data-testid":"sheet-insert-function-about",children:E?s.jsxs(s.Fragment,{children:[s.jsx("b",{children:E.signature}),s.jsx("div",{children:N0(i,E.name,E.description)})]}):null})]})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!E,onClick:()=>T(m),"data-testid":"sheet-insert-function-ok",children:i("ok")}),s.jsx(De,{variant:"secondary",onClick:w,"data-testid":"sheet-insert-function-cancel",children:i("cancel")})]})]})})}const oH={b:"bold",i:"italic",u:"underline"},Tg=(n,i)=>Array.from(n.slice(0,i)).length,cH='[data-testid="sheet-formula"]',n0=n=>requestAnimationFrame(()=>{n.selectionEnd===n.value.length&&(n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight)});function uH({info:n}){const{run:i,t:o}=ze(),r=gn(),u=r||n.checkbox&&!n.editing,[f,h]=g.useState(null),v=g.useRef(null),[p,y]=g.useState(null),m=g.useRef(!1),x=g.useRef(!1),[b,C]=g.useState(!1),E=p??(n.editing?n.editText??"":n.content),w=n.formulaText===E?n.formulaReferences:[],[T,S]=g.useState({left:0,top:0}),[z,L]=g.useState(null),[K,X]=g.useState(0),re=g.useRef(""),ae=(I,P,ue)=>{x.current=!0;const k=`${P}:${ue}:${I}`;k!==re.current&&(re.current=k,i("editor.formula",{text:I,start:P,end:ue}).then(B=>{if(!m.current)return;const W=B?JSON.parse(B):null;L((W==null?void 0:W.hint)??null)}))},de=(I,P,ue)=>{I.value=P,I.setSelectionRange(ue,ue),n0(I),y(P),X(0),ae(P,ue,ue)},ge=(I,P)=>{if(!(z!=null&&z.replace))return;const[ue,k]=z.replace,B=I.value.slice(k);de(I,I.value.slice(0,ue)+P+"("+(B.startsWith("(")?B.slice(1):B),ue+P.length+1)},je=()=>{var I;x.current=!1,re.current="",y(null),L(null),(I=v.current)==null||I.blur(),Ie()},be=I=>{const P=v.current,ue={enter:I};x.current&&p!=null&&P&&Object.assign(ue,{text:p,start:P.selectionStart,end:P.selectionEnd}),je(),i("editor.formula",ue)},Me=()=>{je(),i("editor.formula",{})},Be=(I,P,ue)=>{const k=v.current;k&&(x.current=!0,re.current=`${P}:${ue}:${I}`,k.value=I,k.focus({preventScroll:!0}),k.setSelectionRange(P,ue),n0(k),y(I))},ye=g.useRef({down:!1,grid:!1}),[F,A]=g.useState(0);g.useEffect(()=>{const I=k=>{ye.current={down:!0,grid:k.target instanceof Element&&k.target.closest('[data-testid="sheet-canvas-region"]')!=null}},P=()=>{const{grid:k}=ye.current;ye.current={down:!1,grid:k},k&&A(B=>B+1)},ue=k=>{k.target instanceof HTMLTextAreaElement&&k.target.classList.contains("kui-text-sink")&&(x.current=!1)};return window.addEventListener("pointerdown",I,!0),window.addEventListener("pointerup",P,!0),window.addEventListener("keydown",ue,!0),()=>{window.removeEventListener("pointerdown",I,!0),window.removeEventListener("pointerup",P,!0),window.removeEventListener("keydown",ue,!0)}},[]),g.useEffect(()=>{!F||!x.current||m.current||i("editor.formula",{peek:!0}).then(I=>{const P=I?JSON.parse(I):null;P!=null&&P.editing?P.pointing&&x.current&&!m.current&&!ye.current.down&&Be(P.text??"",P.end,P.end):x.current=!1})},[F]),g.useEffect(()=>{!n.editing&&!m.current&&!ye.current.down&&(x.current=!1)},[n.editing]);const H=async(I,P)=>{var xe,Ce;const[ue,k]=[I.selectionStart??0,I.selectionEnd??0],B=I.value;if(u||ue>=k||B.startsWith("="))return;const W=((xe=n.editCell)==null?void 0:xe.cell)??n.active,ie=((Ce=n.editCell)==null?void 0:Ce.sheet)??n.sheet;(x.current||n.editing)&&(y(null),x.current=!1,await i("editor.formula",{text:B,enter:"stay"})),await i("cell.formatText",{cell:W,sheet:ie,start:Tg(B,ue),end:Tg(B,k),toggle:P}),requestAnimationFrame(()=>{I.focus(),I.setSelectionRange(ue,k)})},le=()=>{const I=v.current;I&&m.current&&p!=null&&ae(p,I.selectionStart??p.length,I.selectionEnd??p.length);const P=x.current||n.editing;B0({onChoose:async ue=>{await i("formulas.insertFunction",{name:ue});const k=await i("editor.formula",{peek:!0}),B=k?JSON.parse(k):null;B!=null&&B.editing&&Be(B.text??"",B.end,B.end)},onCancel:()=>{if(!P)return Ie();i("editor.formula",{peek:!0}).then(ue=>{const k=ue?JSON.parse(ue):null;k!=null&&k.editing?Be(k.text??"",k.start,k.end):Ie()})}})},ve=n.editCell&&n.editCell.sheet!==n.sheet?n.editCell.cell:n.selection===n.active?n.active:n.selection,Z=p!=null||n.editing;return s.jsxs("div",{className:"kui-bar sheet-formula-bar","data-expanded":b,"data-testid":"sheet-formula-bar",children:[s.jsx("input",{className:"kui-field sheet-name-box",value:f??ve,"aria-label":o("nameBox"),spellCheck:!1,onFocus:I=>I.target.select(),onChange:I=>h(I.target.value),onBlur:()=>h(null),onKeyDown:I=>{I.key==="Enter"&&f?(n.editing&&i("editor.formula",{enter:"stay"}),i("edit.goTo",{reference:f.trim()}),h(null),I.currentTarget.blur()):I.key==="Escape"&&(I.preventDefault(),h(null),I.currentTarget.blur())},"data-testid":"sheet-name-box"}),s.jsx(ua,{icon:Jl,label:o("cancel"),disabled:!Z||u,onMouseDown:I=>I.preventDefault(),onClick:Me,"data-testid":"sheet-formula-cancel"}),s.jsx(ua,{icon:xs,label:o("enterFormula"),disabled:!Z||u,onMouseDown:I=>I.preventDefault(),onClick:()=>be("stay"),"data-testid":"sheet-formula-enter"}),s.jsx(ua,{icon:ps,label:o("insertFunction"),disabled:u,onMouseDown:I=>I.preventDefault(),onClick:le,"data-testid":"sheet-formula-fx"}),s.jsxs("div",{className:"sheet-formula-field","data-colored":w.length>0,children:[s.jsx("div",{className:"sheet-formula-colors","aria-hidden":"true",children:s.jsx("span",{style:{transform:`translate(${-T.left}px, ${-T.top}px)`},children:s.jsx(QL,{text:E,references:w})})}),s.jsx("textarea",{ref:v,className:"kui-field sheet-formula",value:E,rows:1,wrap:b?"soft":"off","aria-label":o("formula"),spellCheck:!1,readOnly:u,onMouseDown:I=>{n.checkbox&&!n.editing&&!r&&I.preventDefault()},onFocus:()=>{m.current=!0,!u&&n.editing&&(x.current=!0,y(n.editText??""))},onBlur:()=>{m.current=!1,re.current="",y(null),L(null)},onScroll:I=>S({left:I.currentTarget.scrollLeft,top:I.currentTarget.scrollTop}),onChange:I=>{if(u)return;const P=I.target;y(P.value),X(0),n0(P),ae(P.value,P.selectionStart??P.value.length,P.selectionEnd??P.value.length)},onSelect:I=>{const P=I.currentTarget;x.current&&p!=null&&m.current&&ae(P.value,P.selectionStart??0,P.selectionEnd??0)},onKeyDown:I=>{if(I.nativeEvent.isComposing||I.key==="Process")return;const P=I.metaKey||I.ctrlKey,ue=P&&!I.altKey&&!I.shiftKey?oH[I.key.toLowerCase()]:void 0,k=I.currentTarget,B=(z==null?void 0:z.functions.length)??0;if(ue)I.preventDefault(),H(k,ue);else if(P&&I.shiftKey&&I.key.toLowerCase()==="u")I.preventDefault(),C(W=>!W);else if(u)(I.key==="Escape"||I.key==="Enter")&&(I.preventDefault(),je());else if(I.key==="F4"&&k.value.startsWith("=")){I.preventDefault();const[W,ie]=[k.selectionStart??0,k.selectionEnd??0];i("editor.cycleReference",{text:k.value,start:W,end:ie}).then(xe=>{const Ce=xe?JSON.parse(xe):null;Ce&&Ce.text!==k.value&&de(k,Ce.text,Ce.start)})}else if(B&&(I.key==="ArrowDown"||I.key==="ArrowUp")&&!I.shiftKey)I.preventDefault(),X(W=>Math.max(0,Math.min(B-1,W+(I.key==="ArrowDown"?1:-1))));else if(B&&I.key==="Tab"&&!I.shiftKey){I.preventDefault();const W=z==null?void 0:z.functions[Math.min(K,B-1)];W&&ge(k,W.name)}else if(I.key==="Enter"&&(I.altKey||I.ctrlKey)){I.preventDefault();const[W,ie]=[k.selectionStart??0,k.selectionEnd??0];de(k,k.value.slice(0,W)+`
|
|
97
|
+
`+k.value.slice(ie),W+1)}else I.key==="Enter"&&!P?(I.preventDefault(),be(I.shiftKey?"up":"down")):I.key==="Tab"&&!P?(I.preventDefault(),be(I.shiftKey?"left":"right")):I.key==="Escape"&&(I.preventDefault(),Me())},"data-testid":"sheet-formula"}),z&&p!=null?s.jsx(Vx,{hint:z,pick:K,testId:"sheet-formula-hints",onPick:I=>{const P=document.querySelector(cH);P&&ge(P,I)}}):null]}),s.jsx(ua,{icon:b?TM:Ka,label:o(b?"collapseFormulaBar":"expandFormulaBar"),"aria-expanded":b,onMouseDown:I=>I.preventDefault(),onClick:()=>C(I=>!I),"data-testid":"sheet-formula-expand"})]})}let $x=null;const _0=new Set,zs=n=>{$x=n;for(const i of _0)i(n)},dH=n=>zs({kind:"delete",sheet:n}),jf=n=>zs({kind:"confirm",...n}),fH=(n,i,o)=>zs({kind:"confirm",title:n,message:i,testId:o,onOk:()=>{},alone:!0}),Gx=()=>zs({kind:"unhide"});function hH({info:n}){const{run:i,t:o}=ze(),[r,u]=g.useState($x),[f,h]=g.useState(null);g.useEffect(()=>(_0.add(u),()=>{_0.delete(u)}),[]);const v=n.tabs.filter(m=>m.hidden).map(m=>m.name);g.useEffect(()=>{(r==null?void 0:r.kind)==="unhide"&&h(m=>m&&v.includes(m)?m:v[0]??null)},[r,v.join("\0")]);const p=()=>zs(null),y=m=>{m.preventDefault(),Ie()};if((r==null?void 0:r.kind)==="delete"){const m=()=>{p(),i("home.deleteSheet",{sheet:r.sheet})};return s.jsx(da,{open:!0,onOpenChange:x=>x?void 0:p(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:y,"data-testid":"sheet-delete-dialog",children:[s.jsx(ma,{children:s.jsx(pa,{children:o("deleteSheetTitle")})}),s.jsx(ha,{children:s.jsx("p",{"data-testid":"sheet-delete-message",children:o("deleteSheetConfirm",{sheet:r.sheet})})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",onClick:m,"data-testid":"sheet-delete-confirm",children:o("deleteSheetOk")}),s.jsx(De,{variant:"secondary",onClick:p,"data-testid":"sheet-delete-cancel",children:o("cancel")})]})]})})}if((r==null?void 0:r.kind)==="confirm"){const m=()=>{p(),r.onOk()};return s.jsx(da,{open:!0,onOpenChange:x=>x?void 0:p(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:y,"data-testid":r.testId,children:[s.jsx(ma,{children:s.jsx(pa,{children:r.title})}),s.jsx(ha,{children:s.jsx("p",{"data-testid":`${r.testId}-message`,children:r.message})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",onClick:m,"data-testid":`${r.testId}-ok`,children:o("ok")}),r.alone?null:s.jsx(De,{variant:"secondary",onClick:p,"data-testid":`${r.testId}-cancel`,children:o("cancel")})]})]})})}if((r==null?void 0:r.kind)==="unhide"){const m=()=>{p(),f&&i("sheet.unhide",{sheet:f})};return s.jsx(da,{open:!0,onOpenChange:x=>x?void 0:p(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:y,"data-testid":"sheet-unhide-dialog",children:[s.jsx(ma,{children:s.jsx(pa,{children:o("unhideSheetTitle")})}),s.jsxs(ha,{children:[s.jsx("p",{children:o("unhideSheetPrompt")}),s.jsx("div",{className:"sheet-unhide-list",role:"listbox","aria-label":o("unhideSheetPrompt"),children:v.map(x=>s.jsx("button",{type:"button",role:"option",className:"sheet-unhide-option","aria-selected":x===f,onClick:()=>h(x),onDoubleClick:()=>{p(),i("sheet.unhide",{sheet:x})},"data-testid":`sheet-unhide-option-${x}`,children:x},x))})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!f,onClick:m,"data-testid":"sheet-unhide-ok",children:o("ok")}),s.jsx(De,{variant:"secondary",onClick:p,"data-testid":"sheet-unhide-cancel",children:o("cancel")})]})]})})}return null}const kg=4,sc=12,Ag=28,Ng=160,l0=n=>n.replace(/[A-Z]/g,i=>i.toLowerCase());function mH(n,i,o){const r=n.trim();return r?/[:\\/?*[\]]/.test(r)?"sheetNameInvalid":r.startsWith("'")||r.endsWith("'")?"sheetNameApostrophe":l0(r)==="history"?"sheetNameReserved":o.some(u=>u!==i&&l0(u)===l0(r))?"sheetNameTaken":null:"sheetNameEmpty"}const vH=n=>Math.max(4,[...n].reduce((i,o)=>i+((o.codePointAt(0)??0)>11903?2:1),0))+2;function pH({info:n}){const{run:i,t:o}=ze(),r=gn(),[u,f]=g.useState(null),[h,v]=g.useState(""),[p,y]=g.useState(null),[m,x]=g.useState(null),[b,C]=g.useState(null),E=g.useRef(null),w=g.useRef(new Map),T=g.useRef(null),S=g.useRef(u);S.current=u;const z=g.useRef(!1),L=n.tabs,K=L.filter($=>!$.hidden),X=$=>L.findIndex(te=>te.name===$),re=$=>{$!==n.sheet&&i("sheet.activate",{sheet:$})},ae=g.useRef({visible:K,tabs:L,run:i,activate:re});ae.current={visible:K,tabs:L,run:i,activate:re};const de=g.useRef(null),ge=async($=!1)=>{const te=de.current;if(!te||te!==u)return;const Te=h.trim(),_e=Te===te?null:mH(h,te,L.map(J=>J.name));_e&&(Xt("error",o(_e)),$)||(de.current=null,f(null),$&&Ie(),!_e&&Te!==te&&await i("sheet.rename",{sheet:te,name:Te}))},je=()=>{de.current=null,f(null),Ie()},be=$=>{r||(de.current=$,v($),f($))},Me=async $=>{const te=await i("sheet.move",{sheet:$,to:X($)+1,copy:!0});let Te=null;try{Te=te?JSON.parse(te).name:null}catch{Te=null}typeof Te=="string"&&be(Te)},Be=g.useRef(ge);Be.current=ge;const ye=K.map($=>$.name).join("\0");g.useLayoutEffect(()=>{const $=E.current,te=w.current.get(n.sheet);if(!$||!te)return;const Te=te.offsetLeft,_e=Te+te.offsetWidth;Te<$.scrollLeft?$.scrollLeft=Te:_e>$.scrollLeft+$.clientWidth&&($.scrollLeft=_e-$.clientWidth)},[n.sheet,ye]);const F=g.useCallback(($,te,Te)=>{var O,oe;const _e=(O=E.current)==null?void 0:O.getBoundingClientRect();if(!_e||Te<_e.top-sc||Te>_e.bottom+sc||te<_e.left||te>_e.right)return null;const J=ae.current.visible,he=J.findIndex(fe=>fe.name===$);let Ee=0;for(const fe of J){if(fe.name===$)continue;const N=(oe=w.current.get(fe.name))==null?void 0:oe.getBoundingClientRect();N&&te>N.left+N.width/2&&(Ee+=1)}return he>=0&&Ee>=he?Ee+1:Ee},[]),A=g.useCallback(($,te)=>{const{visible:Te,tabs:_e}=ae.current,J=Te.findIndex(Ee=>Ee.name===$);if(J<0||te===J||te===J+1)return null;const he=_e.filter(Ee=>Ee.name!==$).map(Ee=>Ee.name);return te<Te.length?he.indexOf(Te[te].name):he.indexOf(Te[Te.length-1].name)+1},[]),H=$=>{T.current=$,C($)},le=g.useCallback($=>{const te=T.current;if(!te)return;T.current=null,C(null);const Te=w.current.get(te.sheet);if(Te!=null&&Te.hasPointerCapture(te.pointer)&&Te.releasePointerCapture(te.pointer),z.current=!0,window.setTimeout(()=>{z.current=!1},0),!te.moving){$&&ae.current.activate(te.sheet);return}if(!$||te.slot==null)return;const _e=A(te.sheet,te.slot);_e!=null&&ae.current.run("sheet.move",{sheet:te.sheet,to:_e})},[A]),ve=b!=null;g.useEffect(()=>{if(!ve)return;const $=J=>{var N,G;const he=T.current;if(!he||J.pointerId!==he.pointer)return;if(J.buttons===0){le(!1);return}const Ee=Math.abs(J.clientX-he.startX)>kg||Math.abs(J.clientY-he.startY)>kg,O=(N=w.current.get(he.sheet))==null?void 0:N.getBoundingClientRect(),oe=!O||J.clientX<O.left||J.clientX>O.right,fe=he.moving||he.canDrag&&Ee&&(!he.fromField||oe);fe&&!he.moving&&(S.current===he.sheet&&Be.current(),(G=w.current.get(he.sheet))==null||G.setPointerCapture(he.pointer)),H({...he,x:J.clientX,y:J.clientY,moving:fe,slot:fe?F(he.sheet,J.clientX,J.clientY):null})},te=J=>{T.current&&J.pointerId===T.current.pointer&&le(!0)},Te=()=>le(!1),_e=J=>{var he;J.key!=="Escape"||!((he=T.current)!=null&&he.moving)||(J.preventDefault(),J.stopPropagation(),le(!1))};return window.addEventListener("pointermove",$,!0),window.addEventListener("pointerup",te,!0),window.addEventListener("pointercancel",Te,!0),window.addEventListener("keydown",_e,!0),window.addEventListener("blur",Te),()=>{window.removeEventListener("pointermove",$,!0),window.removeEventListener("pointerup",te,!0),window.removeEventListener("pointercancel",Te,!0),window.removeEventListener("keydown",_e,!0),window.removeEventListener("blur",Te)}},[ve,le,F]);const Z=(b==null?void 0:b.moving)===!0;g.useEffect(()=>{if(!Z)return;const $=window.setInterval(()=>{const te=T.current,Te=E.current;if(!te||!Te)return;const _e=Te.getBoundingClientRect();if(te.y<_e.top-sc||te.y>_e.bottom+sc)return;const J=te.x>_e.right-Ag?12:te.x<_e.left+Ag?-12:0;if(!J)return;const he=Te.scrollLeft;Te.scrollLeft=he+J,Te.scrollLeft!==he&&H({...te,slot:F(te.sheet,te.x,te.y)})},30);return()=>window.clearInterval($)},[Z,F]);const I=($,te)=>{if(te.button!==0)return;const Te=te.target instanceof HTMLInputElement,_e=te.currentTarget.getBoundingClientRect(),J={dx:te.clientX-_e.left,top:_e.top,height:_e.height},he=!r&&K.length>1;H({sheet:$,pointer:te.pointerId,startX:te.clientX,startY:te.clientY,x:te.clientX,y:te.clientY,moving:!1,fromField:Te,canDrag:he,grab:J,slot:null})},P=($,te)=>{x(null),y({sheet:$,at:te})},ue=p!=null||m!=null;g.useEffect(()=>{if(!ue)return;const $=()=>{y(null),x(null)};return window.addEventListener("blur",$),()=>window.removeEventListener("blur",$)},[ue]);const k=g.useRef(null);g.useLayoutEffect(()=>{var Te;const $=(Te=k.current)==null?void 0:Te.getBoundingClientRect().top,te=(_e,J,he)=>{var oe;const Ee=(oe=k.current)==null?void 0:oe.ownerDocument.querySelector(`[data-testid="${_e}"]`);if(!J||$==null||!Ee)return;const O=Math.max(4,$-Ee.offsetHeight-2);J.y!==O&&he({x:J.x,y:O})};te("sheet-menu",(p==null?void 0:p.at)??null,_e=>y(J=>J&&{...J,at:_e})),te("sheet-list",m,x)},[p,m]);let B=null;if(b!=null&&b.moving&&b.slot!=null&&A(b.sheet,b.slot)!=null){const $=K[b.slot],te=K[b.slot-1],Te=$?w.current.get($.name):te?w.current.get(te.name):void 0;Te&&(B=$?Te.offsetLeft-1:Te.offsetLeft+Te.offsetWidth+1)}const W=(b==null?void 0:b.moving)===!0&&b.slot==null,ie=p?L.find($=>$.name===p.sheet)??null:null,xe=ie?X(ie.name):-1,Ce=xe>0,He=xe>=0&&xe<L.length-1;return s.jsxs("div",{ref:k,className:"sheet-tabs","data-testid":"sheet-tabs","data-drop":W?"none":void 0,children:[s.jsx(ua,{icon:UM,label:o("sheetList"),onClick:$=>{const te=$.currentTarget.getBoundingClientRect();y(null),x({x:te.left,y:te.top})},"data-testid":"sheet-list-button"}),s.jsx(ua,{icon:sf,label:o("addSheet"),disabled:r,onClick:()=>void i("home.insertSheet",{before:L.length}),"data-testid":"sheet-add"}),s.jsxs("div",{ref:E,className:"sheet-strip",role:"tablist","data-testid":"sheet-strip",onWheel:$=>{Math.abs($.deltaY)>Math.abs($.deltaX)&&($.currentTarget.scrollLeft+=$.deltaY)},children:[K.map($=>s.jsx(gH,{tab:$,active:$.name===n.sheet,dragging:(b==null?void 0:b.moving)===!0&&b.sheet===$.name,renaming:u===$.name,name:h,readOnly:r,menuLabel:o("sheetMenu"),lockLabel:o("sheetLocked"),refFor:te=>{te?w.current.set($.name,te):w.current.delete($.name)},onName:v,onRename:te=>void ge(te),onCancelRename:je,onPress:te=>I($.name,te),onClick:()=>{z.current||re($.name)},onDoubleClick:()=>be($.name),onContextMenu:te=>{te.preventDefault(),!r&&(re($.name),P($.name,{x:te.clientX,y:te.clientY}))},onMenu:te=>{const Te=te.currentTarget.getBoundingClientRect();P($.name,{x:Te.left,y:Te.top})}},$.name)),B!=null?s.jsx("div",{className:"sheet-drop-mark",style:{left:B},"data-slot":(b==null?void 0:b.slot)??void 0,"data-testid":"sheet-drop-mark"}):null]}),b!=null&&b.moving?s.jsx("div",{className:"sheet-tab sheet-tab-ghost",style:{left:b.x-b.grab.dx,top:b.grab.top,height:b.grab.height},"aria-hidden":"true","data-testid":"sheet-drag-ghost",children:s.jsx("span",{className:"sheet-tab-name",children:b.sheet})}):null,s.jsx(ua,{icon:J0,label:o("sheetScrollLeft"),onClick:()=>{var $;return($=E.current)==null?void 0:$.scrollBy({left:-Ng})},"data-testid":"sheet-scroll-left"}),s.jsx(ua,{icon:Bc,label:o("sheetScrollRight"),onClick:()=>{var $;return($=E.current)==null?void 0:$.scrollBy({left:Ng})},"data-testid":"sheet-scroll-right"}),s.jsx(g0,{at:m,onClose:()=>x(null),label:o("sheetList"),testId:"sheet-list",children:s.jsx("div",{className:"sheet-list",children:L.map($=>s.jsxs("div",{className:"sheet-list-row","data-hidden":$.hidden||void 0,children:[s.jsx("span",{className:"sheet-list-color",style:$.color?{background:$.color}:void 0,"data-color":$.color??void 0,"data-testid":`sheet-list-color-${$.name}`}),s.jsx(we,{label:$.name,shortcut:$.hidden?o("sheetHidden"):null,checked:$.name===n.sheet,disabled:$.hidden,onSelect:()=>re($.name),testId:`sheet-list-item-${$.name}`}),$.hidden?s.jsx("button",{type:"button",className:"sheet-list-unhide",title:o("unhideSheet"),"aria-label":o("unhideSheet"),onClick:te=>{te.stopPropagation(),r||i("sheet.unhide",{sheet:$.name,activate:!1})},"data-testid":`sheet-list-unhide-${$.name}`,children:s.jsx(d0,{size:14,"aria-hidden":"true"})}):null]},$.name))})}),s.jsx(g0,{at:(p==null?void 0:p.at)??null,onClose:()=>y(null),label:o("sheetMenu"),testId:"sheet-menu",children:ie?s.jsxs(s.Fragment,{children:[r?s.jsx(we,{label:o("addSheet"),disabled:!0,onSelect:()=>{},testId:"sheet-menu-insert"}):s.jsxs(bl,{label:o("addSheet"),path:"Sheet Tab/New Sheet",testId:"sheet-menu-insert",children:[s.jsx(we,{label:o("insertSheetBefore"),onSelect:()=>void i("home.insertSheet",{before:xe}),testId:"sheet-menu-insert-before"}),s.jsx(we,{label:o("insertSheetAfter"),onSelect:()=>void i("home.insertSheet",{before:xe+1}),testId:"sheet-menu-insert-after"})]}),s.jsx(we,{label:o("renameSheet"),disabled:r,onSelect:()=>be(ie.name),testId:"sheet-menu-rename"}),r||!Ce&&!He?s.jsx(we,{label:o("moveSheet"),disabled:!0,onSelect:()=>{},testId:"sheet-menu-move"}):s.jsxs(bl,{label:o("moveSheet"),path:"Sheet Tab/Move",testId:"sheet-menu-move",children:[Ce?s.jsx(we,{label:o("moveSheetLeft"),onSelect:()=>void i("sheet.move",{sheet:ie.name,to:xe-1}),testId:"sheet-menu-move-left"}):null,He?s.jsx(we,{label:o("moveSheetRight"),onSelect:()=>void i("sheet.move",{sheet:ie.name,to:xe+1}),testId:"sheet-menu-move-right"}):null]}),s.jsx(we,{label:o("copySheet"),disabled:r,onSelect:()=>void Me(ie.name),testId:"sheet-menu-copy"}),r?s.jsx(we,{label:o("tabColor"),disabled:!0,onSelect:()=>{},testId:"sheet-menu-color"}):s.jsxs(bl,{label:o("tabColor"),path:"Sheet Tab/Tab Color",testId:"sheet-menu-color",children:[s.jsx(we,{label:o("noTabColor"),onSelect:()=>void i("sheet.tabColor",{sheet:ie.name,color:"none"}),testId:"sheet-menu-no-color"}),s.jsx(pn,{onPick:$=>void i("sheet.tabColor",{sheet:ie.name,color:$}),testId:"sheet-menu-colors"})]}),r||K.length>1?s.jsx(we,{label:o("hideSheet"),disabled:r,onSelect:()=>void i("sheet.hide",{sheet:ie.name}),testId:"sheet-menu-hide"}):s.jsx("span",{className:"sheet-menu-hint",title:o("hideNeedsTwo"),"data-testid":"sheet-menu-hide-hint",children:s.jsx(we,{label:o("hideSheet"),disabled:!0,onSelect:()=>{},testId:"sheet-menu-hide"})}),s.jsx(St,{}),s.jsx(we,{label:o("deleteSheet"),disabled:r||L.length<2,onSelect:()=>dH(ie.name),testId:"sheet-menu-delete"})]}):null})]})}function gH(n){const{tab:i,active:o,dragging:r,renaming:u}=n;return s.jsxs("div",{ref:n.refFor,role:"tab",tabIndex:o?0:-1,className:"sheet-tab","aria-selected":o,title:i.name,"data-color":i.color??void 0,"data-dragging":r||void 0,style:i.color?{"--sheet-tab-color":i.color}:void 0,onPointerDown:n.onPress,onClick:n.onClick,onDoubleClick:n.onDoubleClick,onContextMenu:n.onContextMenu,"data-testid":`sheet-tab-${i.name}`,children:[i.protected?s.jsx("span",{className:"sheet-tab-lock",role:"img","aria-label":n.lockLabel,title:n.lockLabel,"data-testid":`sheet-lock-${i.name}`,children:s.jsx(Ic,{size:12,"aria-hidden":"true"})}):null,u?s.jsx("input",{className:"kui-field sheet-tab-rename",autoFocus:!0,maxLength:31,value:n.name,style:{width:`${vH(n.name)}ch`},onFocus:f=>f.currentTarget.select(),onChange:f=>n.onName(f.target.value),onBlur:()=>n.onRename(!1),onClick:f=>f.stopPropagation(),onDoubleClick:f=>f.stopPropagation(),onKeyDown:f=>{f.key==="Enter"&&n.onRename(!0),f.key==="Escape"&&(f.preventDefault(),f.stopPropagation(),n.onCancelRename())},"data-testid":"sheet-rename"}):s.jsx("span",{className:"sheet-tab-name",children:i.name}),o?s.jsx("button",{type:"button",className:"sheet-tab-arrow","aria-label":n.menuLabel,title:n.menuLabel,onPointerDown:f=>f.stopPropagation(),onClick:f=>{f.stopPropagation(),n.onMenu(f)},"data-testid":"sheet-menu-arrow",children:s.jsx(Ka,{size:12,"aria-hidden":"true"})}):null]})}const yH=[{key:"filterEquals",op:"="},{key:"filterNotEquals",op:"<>"},{key:"filterBeginsWith",op:"beginsWith"},{key:"filterEndsWith",op:"endsWith"},{key:"filterContains",op:"contains"},{key:"filterNotContains",op:"notContains"}],bH=[{key:"filterEquals",op:"="},{key:"filterNotEquals",op:"<>"},{key:"filterGreater",op:">"},{key:"filterGreaterOrEqual",op:">="},{key:"filterLess",op:"<"},{key:"filterLessOrEqual",op:"<="},{key:"filterBetween",op:">=",op2:"<="}],Rg=["=","<>",">",">=","<","<=","beginsWith","endsWith","contains","notContains"],Dg={"=":"filterEquals","<>":"filterNotEquals",">":"filterGreater",">=":"filterGreaterOrEqual","<":"filterLess","<=":"filterLessOrEqual",beginsWith:"filterBeginsWith",endsWith:"filterEndsWith",contains:"filterContains",notContains:"filterNotContains"};let Px=null;const F0=new Set,Kx=n=>{Px=n;for(const i of F0)i(n)};function MH({views:n,pins:i}){const{run:o,t:r}=ze(),u=g.useSyncExternalStore(n.subscribe,n.get),[f,h]=g.useState(Px),[v,p]=g.useState(null),[y,m]=g.useState(new Set),[x,b]=g.useState(!0),[C,E]=g.useState(""),[w,T]=g.useState(!1),[S,z]=g.useState(null),[L,K]=g.useState(null),X=g.useRef(null);g.useEffect(()=>(F0.add(h),()=>{F0.delete(h)}),[]),g.useEffect(()=>{if(p(null),E(""),T(!1),!f)return;let H=!0;return o("data.filterValues",{cell:f.cell}).then(le=>{var Z;if(!H||!le)return;const ve=JSON.parse(le);p(ve),m(new Set(ve.values.filter(I=>I.checked).map(I=>I.text))),b(((Z=ve.blanks)==null?void 0:Z.checked)??!0)}),()=>{H=!1}},[f,o]),g.useEffect(()=>{if(!f||S||L)return;const H=ve=>{X.current&&ve.target instanceof Node&&!X.current.contains(ve.target)&&ae()},le=ve=>{ve.key==="Escape"&&(ve.stopPropagation(),ae())};return window.addEventListener("pointerdown",H,!0),window.addEventListener("keydown",le,!0),()=>{window.removeEventListener("pointerdown",H,!0),window.removeEventListener("keydown",le,!0)}});const re=g.useMemo(()=>{if(!v)return[];const H=C.trim().toLowerCase();return H?v.values.filter(le=>le.text.toLowerCase().includes(H)):v.values},[v,C]);function ae(){Kx(null),Ie()}const de=async H=>{f&&(ae(),await o("data.filterBy",{cell:f.cell,...H}))},ge=async H=>{v&&(ae(),await o("data.sort",{range:v.range,header:!0,keys:[{column:v.column,order:H}]}))},je=()=>{if(!v)return;const H=C.trim()!=="",le=re.filter(I=>y.has(I.text)).map(I=>I.text),ve=v.blanks!=null&&x&&!H,Z=!H&&le.length===v.values.length&&(v.blanks==null||x);de(Z?{clear:!0}:{values:le,blanks:ve})};if(!f||!u)return null;const be=Ms(u,i,f.cellRect[0],f.cellRect[3]),Me=re.length>0&&re.every(H=>y.has(H.text))&&(C.trim()!==""||(v==null?void 0:v.blanks)==null||x),Be=()=>{const H=new Set(y);for(const le of re)Me?H.delete(le.text):H.add(le.text);m(H),C.trim()||b(!Me)},ye=(v==null?void 0:v.kind)==="number"?r("filterNumber"):(v==null?void 0:v.kind)==="date"?r("filterDate"):r("filterText"),F=(v==null?void 0:v.kind)==="text"?yH:bH,A=H=>H===""?r("filterEmptyText"):H;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{ref:X,className:"sheet-filter-menu",style:{left:Math.max(0,be.x),top:be.y+1},role:"dialog","aria-label":r("filterTitle"),"data-testid":"sheet-filter-menu",onPointerDown:H=>H.stopPropagation(),onKeyDown:H=>{H.key==="Enter"&&!(H.target instanceof HTMLButtonElement)&&je(),H.stopPropagation()},children:[s.jsxs("div",{className:"sheet-filter-sort",children:[s.jsx("button",{type:"button",onClick:()=>void ge("asc"),"data-testid":"sheet-filter-asc",children:r("filterAscending")}),s.jsx("button",{type:"button",onClick:()=>void ge("desc"),"data-testid":"sheet-filter-desc",children:r("filterDescending")})]}),s.jsxs("div",{className:"sheet-filter-tabs",children:[s.jsx("span",{className:"sheet-filter-tab","aria-current":"true",children:r("filterContent")}),s.jsxs("button",{type:"button",className:"sheet-filter-tab","aria-expanded":w,onClick:()=>T(!w),"data-testid":"sheet-filter-conditions",children:[ye," ▾"]})]}),w?s.jsxs("div",{className:"sheet-filter-conditions",role:"menu","data-testid":"sheet-filter-condition-list",children:[F.map(H=>s.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{T(!1),z({op:H.op,value:"",op2:H.op2??"=",value2:"",and:!0})},"data-testid":`sheet-filter-cond-${H.key}`,children:[r(H.key),"…"]},H.key)),(v==null?void 0:v.kind)!=="text"?s.jsxs(s.Fragment,{children:[s.jsxs("button",{type:"button",role:"menuitem",onClick:()=>K({bottom:!1,count:"10",percent:!1}),"data-testid":"sheet-filter-cond-top",children:[r("filterTop"),"…"]}),s.jsx("button",{type:"button",role:"menuitem",onClick:()=>void de({aboveAverage:!0}),"data-testid":"sheet-filter-cond-above",children:r("filterAboveAverage")}),s.jsx("button",{type:"button",role:"menuitem",onClick:()=>void de({aboveAverage:!1}),"data-testid":"sheet-filter-cond-below",children:r("filterBelowAverage")})]}):null,s.jsxs("button",{type:"button",role:"menuitem",onClick:()=>z({op:"=",value:"",op2:"=",value2:"",and:!0}),"data-testid":"sheet-filter-cond-custom",children:[r("filterCustom"),"…"]})]}):null,s.jsx("input",{className:"sheet-filter-search",type:"search",value:C,placeholder:r("filterSearch"),onChange:H=>E(H.target.value),"data-testid":"sheet-filter-search"}),s.jsx("div",{className:"sheet-filter-list",role:"listbox","aria-multiselectable":"true","data-testid":"sheet-filter-list",children:v?s.jsxs(s.Fragment,{children:[s.jsxs("label",{className:"sheet-filter-item",children:[s.jsx("input",{type:"checkbox",checked:Me,onChange:Be,"data-testid":"sheet-filter-all"}),C.trim()?r("filterAllResults"):r("filterAll")]}),re.map(H=>s.jsxs("label",{className:"sheet-filter-item",children:[s.jsx("input",{type:"checkbox",checked:y.has(H.text),onChange:()=>{const le=new Set(y);le.has(H.text)?le.delete(H.text):le.add(H.text),m(le)},"data-testid":`sheet-filter-item-${H.text}`}),s.jsx("span",{className:"sheet-filter-text",children:A(H.text)}),s.jsxs("span",{className:"sheet-filter-count",children:["(",H.count,")"]})]},H.text)),v.blanks&&!C.trim()?s.jsxs("label",{className:"sheet-filter-item",children:[s.jsx("input",{type:"checkbox",checked:x,onChange:()=>b(!x),"data-testid":"sheet-filter-blanks"}),s.jsx("span",{className:"sheet-filter-text",children:r("filterBlanks")}),s.jsxs("span",{className:"sheet-filter-count",children:["(",v.blanks.count,")"]})]}):null,!re.length&&C.trim()?s.jsx("div",{className:"sheet-filter-none",children:r("filterNoMatch")}):null]}):null}),s.jsxs("div",{className:"sheet-filter-actions",children:[s.jsx("button",{type:"button",className:"sheet-filter-clear",onClick:()=>void de({clear:!0}),disabled:!(v!=null&&v.criterion),"data-testid":"sheet-filter-clear",children:r("filterClear")}),s.jsx("span",{className:"sheet-filter-spacer"}),s.jsx(De,{variant:"primary",onClick:je,disabled:!v,"data-testid":"sheet-filter-ok",children:r("ok")}),s.jsx(De,{variant:"secondary",onClick:ae,"data-testid":"sheet-filter-cancel",children:r("cancel")})]})]}),S?s.jsx(da,{open:!0,onOpenChange:H=>H?void 0:z(null),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,"data-testid":"sheet-filter-custom",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("filterCustomTitle")})}),s.jsxs(ha,{children:[s.jsx("p",{className:"sheet-filter-custom-label",children:r("filterShowRows",{column:(v==null?void 0:v.header)||(v==null?void 0:v.column)||""})}),s.jsxs("div",{className:"sheet-filter-custom-row",children:[s.jsx("select",{value:S.op,onChange:H=>z({...S,op:H.target.value}),"data-testid":"sheet-filter-custom-op",children:Rg.map(H=>s.jsx("option",{value:H,children:r(Dg[H]??"filterEquals")},H))}),s.jsx("input",{value:S.value,onChange:H=>z({...S,value:H.target.value}),autoFocus:!0,"data-testid":"sheet-filter-custom-value"})]}),s.jsxs("div",{className:"sheet-filter-custom-join",children:[s.jsxs("label",{children:[s.jsx("input",{type:"radio",checked:S.and,onChange:()=>z({...S,and:!0}),"data-testid":"sheet-filter-custom-and"}),r("filterAnd")]}),s.jsxs("label",{children:[s.jsx("input",{type:"radio",checked:!S.and,onChange:()=>z({...S,and:!1}),"data-testid":"sheet-filter-custom-or"}),r("filterOr")]})]}),s.jsxs("div",{className:"sheet-filter-custom-row",children:[s.jsx("select",{value:S.op2,onChange:H=>z({...S,op2:H.target.value}),"data-testid":"sheet-filter-custom-op2",children:Rg.map(H=>s.jsx("option",{value:H,children:r(Dg[H]??"filterEquals")},H))}),s.jsx("input",{value:S.value2,onChange:H=>z({...S,value2:H.target.value}),"data-testid":"sheet-filter-custom-value2"})]})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!S.value.trim(),onClick:()=>{const H=S.value2.trim()?{op2:S.op2,value2:S.value2.trim()}:{};z(null),de({custom:{op:S.op,value:S.value.trim(),...H,and:S.and}})},"data-testid":"sheet-filter-custom-ok",children:r("ok")}),s.jsx(De,{variant:"secondary",onClick:()=>z(null),"data-testid":"sheet-filter-custom-cancel",children:r("cancel")})]})]})}):null,L?s.jsx(da,{open:!0,onOpenChange:H=>H?void 0:K(null),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,"data-testid":"sheet-filter-top",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("filterTopTitle")})}),s.jsx(ha,{children:s.jsxs("div",{className:"sheet-filter-custom-row",children:[s.jsxs("select",{value:L.bottom?"bottom":"top",onChange:H=>K({...L,bottom:H.target.value==="bottom"}),"data-testid":"sheet-filter-top-which",children:[s.jsx("option",{value:"top",children:r("filterLargest")}),s.jsx("option",{value:"bottom",children:r("filterSmallest")})]}),s.jsx("input",{value:L.count,inputMode:"numeric",onChange:H=>K({...L,count:H.target.value.replace(/[^0-9]/g,"")}),"data-testid":"sheet-filter-top-count"}),s.jsxs("select",{value:L.percent?"percent":"items",onChange:H=>K({...L,percent:H.target.value==="percent"}),"data-testid":"sheet-filter-top-unit",children:[s.jsx("option",{value:"items",children:r("filterItems")}),s.jsx("option",{value:"percent",children:r("filterPercent")})]})]})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!Number(L.count),onClick:()=>{K(null),de({top:{count:Math.min(500,Number(L.count)),bottom:L.bottom,percent:L.percent}})},"data-testid":"sheet-filter-top-ok",children:r("ok")}),s.jsx(De,{variant:"secondary",onClick:()=>K(null),"data-testid":"sheet-filter-top-cancel",children:r("cancel")})]})]})}):null]})}const Tf=n=>({value:n,listeners:new Set}),js=(n,i)=>{n.value=i;for(const o of n.listeners)o(i)},kf=n=>{const[i,o]=g.useState(n.value);return g.useEffect(()=>(n.listeners.add(o),()=>{n.listeners.delete(o)}),[n]),i},U0=Tf(null),Yx=Tf(!1),I0=Tf(!1),xH=n=>js(U0,n),Zl=(n=!0)=>js(Yx,n),Og=()=>js(I0,!0);function SH({info:n,views:i,pins:o}){const{run:r,t:u}=ze(),f=g.useSyncExternalStore(i.subscribe,i.get),h=kf(Yx),v=g.useRef(null),p=n.validation;if(g.useEffect(()=>{h&&(!(p!=null&&p.list)||n.editing)&&Zl(!1)},[n.active,n.editing,n.sheet]),g.useEffect(()=>{if(!h)return;const S=L=>{v.current&&L.target instanceof Node&&!v.current.contains(L.target)&&Zl(!1)},z=L=>{L.key==="Escape"&&(L.stopPropagation(),Zl(!1),Ie())};return window.addEventListener("pointerdown",S,!0),window.addEventListener("keydown",z,!0),()=>{window.removeEventListener("pointerdown",S,!0),window.removeEventListener("keydown",z,!0)}},[h]),!p||!f||n.editing||n.shape)return null;const[y,m,x,b]=p.rect,C=Ms(f,o,y,m),E=Ms(f,o,x,b);if(E.x<0||E.y<0||C.x>f.width||C.y>f.height)return null;const w=Math.max(12,E.y-C.y),T=async S=>{Zl(!1),await r("cell.set",{cell:p.cell,input:S}),Ie()};return s.jsxs(s.Fragment,{children:[p.list?s.jsx("button",{type:"button",className:"sheet-validation-arrow",style:{left:E.x+1,top:C.y,height:w},"aria-label":u("validationPick"),"aria-expanded":h,onPointerDown:S=>S.stopPropagation(),onMouseDown:S=>S.preventDefault(),onClick:()=>Zl(!h),"data-testid":"sheet-validation-arrow",children:s.jsx("svg",{width:"8",height:"5",viewBox:"0 0 8 5","aria-hidden":"true",children:s.jsx("path",{d:"M0 0h8L4 5z",fill:"currentColor"})})}):null,h&&p.list?s.jsx("div",{ref:v,className:"sheet-validation-list",role:"listbox",style:{left:C.x,top:E.y+1,minWidth:Math.max(60,E.x-C.x+18)},onPointerDown:S=>S.stopPropagation(),onMouseDown:S=>S.preventDefault(),"data-testid":"sheet-validation-list",children:p.list.map((S,z)=>s.jsx("button",{type:"button",role:"option","aria-selected":n.content===S,onClick:()=>void T(S),"data-testid":`sheet-validation-option-${S}`,children:S},`${z}:${S}`))}):null,p.prompt&&!h?s.jsxs("div",{className:"sheet-validation-prompt",style:{left:E.x+(p.list?20:4),top:E.y+4},role:"tooltip","data-testid":"sheet-validation-prompt",children:[p.prompt.title?s.jsx("strong",{children:p.prompt.title}):null,p.prompt.message?s.jsx("span",{children:p.prompt.message}):null]}):null]})}function wH(){const{run:n,t:i,phrase:o}=ze(),r=kf(U0);if(!r)return null;const u=v=>{js(U0,null),n("editor.validation",{answer:v}).then(()=>Ie())},f=o(r.message),h=r.title||i(r.style==="stop"?"validationStopTitle":r.style==="warning"?"validationWarningTitle":"validationInfoTitle");return s.jsx(da,{open:!0,onOpenChange:v=>v?void 0:u("cancel"),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:v=>v.preventDefault(),"data-testid":"sheet-validation-alert","data-style":r.style,children:[s.jsx(ma,{children:s.jsx(pa,{children:h})}),s.jsxs(ha,{children:[s.jsx("p",{className:`sheet-validation-message sheet-validation-${r.style}`,"data-testid":"sheet-validation-message",children:f}),r.style==="warning"?s.jsx("p",{children:i("validationContinue")}):null]}),s.jsx(va,{className:"sheet-dialog-actions",children:r.style==="stop"?s.jsxs(s.Fragment,{children:[s.jsx(De,{variant:"primary",onClick:()=>u("retry"),"data-testid":"sheet-validation-retry",children:i("validationRetry")}),s.jsx(De,{variant:"secondary",onClick:()=>u("cancel"),"data-testid":"sheet-validation-cancel",children:i("cancel")})]}):r.style==="warning"?s.jsxs(s.Fragment,{children:[s.jsx(De,{variant:"primary",onClick:()=>u("accept"),"data-testid":"sheet-validation-yes",children:i("validationYes")}),s.jsx(De,{variant:"secondary",onClick:()=>u("retry"),"data-testid":"sheet-validation-no",children:i("validationNo")}),s.jsx(De,{variant:"secondary",onClick:()=>u("cancel"),"data-testid":"sheet-validation-cancel",children:i("cancel")})]}):s.jsxs(s.Fragment,{children:[s.jsx(De,{variant:"primary",onClick:()=>u("accept"),"data-testid":"sheet-validation-ok",children:i("ok")}),s.jsx(De,{variant:"secondary",onClick:()=>u("cancel"),"data-testid":"sheet-validation-cancel",children:i("cancel")})]})})]})})}const CH=["any","whole","decimal","list","date","time","textLength","custom"],EH=["between","notBetween","equal","notEqual","greater","less","greaterOrEqual","lessOrEqual"],oc={range:"",type:"any",operator:"between",formula1:"",formula2:null,ignoreBlank:!0,dropdown:!0,showInput:!0,inputTitle:"",inputMessage:"",showError:!0,errorStyle:"stop",errorTitle:"",errorMessage:""};function zH({info:n}){const{run:i,t:o}=ze(),r=kf(I0),[u,f]=g.useState("settings"),[h,v]=g.useState(oc);if(g.useEffect(()=>{var E;r&&(f("settings"),v((E=n.validation)!=null&&E.rule?{...oc,...n.validation.rule}:oc))},[r]),!r)return null;const p=()=>{js(I0,!1),Ie()},y=E=>v({...h,...E}),m=h.operator==="between"||h.operator==="notBetween",x=h.type==="whole"||h.type==="decimal"||h.type==="date"||h.type==="time"||h.type==="textLength",b=async()=>{const E=n.selection;if(p(),h.type==="any"&&!h.inputTitle&&!h.inputMessage){await i("data.validation",{range:E,clear:!0});return}await i("data.validation",{range:E,type:h.type,operator:h.operator,formula1:h.formula1,...x&&m&&h.formula2?{formula2:h.formula2}:{},ignoreBlank:h.ignoreBlank,dropdown:h.dropdown,showInput:h.showInput,inputTitle:h.inputTitle,inputMessage:h.inputMessage,showError:h.showError,errorStyle:h.errorStyle,errorTitle:h.errorTitle,errorMessage:h.errorMessage})},C=(E,w,T,S)=>s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:E}),s.jsx("input",{value:w,onChange:z=>T(z.target.value),"data-testid":S})]});return s.jsx(da,{open:!0,onOpenChange:E=>E?void 0:p(),children:s.jsxs(fa,{size:"md",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:E=>E.preventDefault(),"data-testid":"sheet-validation-dialog",children:[s.jsx(ma,{children:s.jsx(pa,{children:o("validationTitle")})}),s.jsxs(ha,{children:[s.jsx("div",{className:"sheet-fc-tabs",role:"tablist",children:["settings","input","error"].map(E=>s.jsx("button",{type:"button",role:"tab","aria-selected":u===E,onClick:()=>f(E),"data-testid":`sheet-validation-tab-${E}`,children:o(E==="settings"?"validationSettings":E==="input"?"validationInputTab":"validationErrorTab")},E))}),u==="settings"?s.jsxs("div",{className:"sheet-validation-pane",children:[s.jsx("p",{className:"sheet-validation-heading",children:o("validationCriteria")}),s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:o("validationAllow")}),s.jsx("select",{value:h.type,onChange:E=>y({type:E.target.value,formula1:"",formula2:null}),"data-testid":"sheet-validation-type",children:CH.map(E=>s.jsx("option",{value:E,children:o(`validationKind-${E}`)},E))})]}),x?s.jsxs(s.Fragment,{children:[s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:o("validationData")}),s.jsx("select",{value:h.operator,onChange:E=>y({operator:E.target.value}),"data-testid":"sheet-validation-operator",children:EH.map(E=>s.jsx("option",{value:E,children:o(`validationOp-${E}`)},E))})]}),C(o(m?"validationMinimum":"validationValue"),h.formula1,E=>y({formula1:E}),"sheet-validation-formula1"),m?C(o("validationMaximum"),h.formula2??"",E=>y({formula2:E}),"sheet-validation-formula2"):null]}):null,h.type==="list"?C(o("validationSource"),h.formula1,E=>y({formula1:E}),"sheet-validation-source"):null,h.type==="custom"?C(o("validationFormula"),h.formula1,E=>y({formula1:E}),"sheet-validation-formula"):null,h.type!=="any"?s.jsxs("label",{className:"sheet-validation-check",children:[s.jsx("input",{type:"checkbox",checked:h.ignoreBlank,onChange:E=>y({ignoreBlank:E.target.checked}),"data-testid":"sheet-validation-ignore-blank"}),o("validationIgnoreBlank")]}):null,h.type==="list"?s.jsxs("label",{className:"sheet-validation-check",children:[s.jsx("input",{type:"checkbox",checked:h.dropdown,onChange:E=>y({dropdown:E.target.checked}),"data-testid":"sheet-validation-dropdown"}),o("validationDropdown")]}):null]}):u==="input"?s.jsxs("div",{className:"sheet-validation-pane",children:[s.jsxs("label",{className:"sheet-validation-check",children:[s.jsx("input",{type:"checkbox",checked:h.showInput,onChange:E=>y({showInput:E.target.checked}),"data-testid":"sheet-validation-show-input"}),o("validationShowInput")]}),C(o("validationTitleField"),h.inputTitle,E=>y({inputTitle:E}),"sheet-validation-input-title"),s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:o("validationInputMessage")}),s.jsx("textarea",{value:h.inputMessage,onChange:E=>y({inputMessage:E.target.value}),rows:4,"data-testid":"sheet-validation-input-message"})]})]}):s.jsxs("div",{className:"sheet-validation-pane",children:[s.jsxs("label",{className:"sheet-validation-check",children:[s.jsx("input",{type:"checkbox",checked:h.showError,onChange:E=>y({showError:E.target.checked}),"data-testid":"sheet-validation-show-error"}),o("validationShowError")]}),s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:o("validationStyle")}),s.jsxs("select",{value:h.errorStyle,onChange:E=>y({errorStyle:E.target.value}),"data-testid":"sheet-validation-style",children:[s.jsx("option",{value:"stop",children:o("validationStyleStop")}),s.jsx("option",{value:"warning",children:o("validationStyleWarning")}),s.jsx("option",{value:"information",children:o("validationStyleInfo")})]})]}),C(o("validationTitleField"),h.errorTitle,E=>y({errorTitle:E}),"sheet-validation-error-title"),s.jsxs("label",{className:"sheet-validation-field",children:[s.jsx("span",{children:o("validationErrorMessage")}),s.jsx("textarea",{value:h.errorMessage,onChange:E=>y({errorMessage:E.target.value}),rows:4,"data-testid":"sheet-validation-error-message"})]})]})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"secondary",onClick:()=>v({...oc}),"data-testid":"sheet-validation-clear-all",children:o("validationClearAll")}),s.jsx("span",{className:"sheet-filter-spacer"}),s.jsx(De,{variant:"primary",onClick:()=>void b(),disabled:h.type!=="any"&&!h.formula1.trim(),"data-testid":"sheet-validation-ok",children:o("ok")}),s.jsx(De,{variant:"secondary",onClick:p,"data-testid":"sheet-validation-dialog-cancel",children:o("cancel")})]})]})})}let V0=0;const q0=new Set,Lg=()=>{V0+=1;for(const n of q0)n(V0)},i0=n=>n&&typeof n=="object"&&"Rgb"in n?`#${n.Rgb.toString(16).padStart(6,"0").toUpperCase()}`:void 0,jH=["number","alignment","font","border","fill","protection"],TH=["general","number","currency","accounting","date","time","percent","fraction","scientific","text","custom"],yc=["yyyy/m/d",'yyyy"年"m"月"d"日"','yyyy"年"m"月"','m"月"d"日"',"yyyy-mm-dd","m/d/yy","d-mmm-yy","aaaa"],bc=["h:mm:ss","h:mm",'h"时"mm"分"ss"秒"',"h:mm AM/PM","yyyy/m/d h:mm"],Mc=["# ?/?","# ??/??","# ?/2","# ?/4","# ?/10"],kH=["General","0","0.00","#,##0","#,##0.00","0%","0.00%","0.00E+00","@","yyyy/m/d","h:mm:ss","[Red]-0.00"],AH=["¥","$","€","£",""];function NH(n){return!n||n==="General"?"general":n==="@"?"text":n.startsWith("_(")?"accounting":/E\+/.test(n)?"scientific":n.includes("%")?"percent":Mc.includes(n)?"fraction":yc.includes(n)?"date":bc.includes(n)?"time":/^"?[¥$€£]"?#,##0/.test(n)?"currency":/^(#,##)?0(\.0+)?(;\[Red\]-(#,##)?0(\.0+)?)?$/.test(n)?"number":"custom"}const RH=n=>{var i;return((i=/\.(0+)/.exec(n))==null?void 0:i[1].length)??0},pl=n=>n>0?`.${"0".repeat(n)}`:"",DH=["General","Left","Center","Right","Fill","Justify","CenterAcross","Distributed"],OH=["Top","Center","Bottom","Justify","Distributed"],LH=["None","Single","Double","SingleAccounting","DoubleAccounting"],HH=["thin","medium","thick","dashed","dotted","double","hair"],r0=["top","bottom","left","right","insideHorizontal","insideVertical","diagonalDown","diagonalUp"];function BH({info:n}){var Ml,Ts;const{run:i,query:o,t:r}=ze(),[u,f]=g.useState(V0),[h,v]=g.useState(!1),[p,y]=g.useState("number"),[m,x]=g.useState({}),[b,C]=g.useState("general"),[E,w]=g.useState(2),[T,S]=g.useState(!1),[z,L]=g.useState(!1),[K,X]=g.useState("¥"),[re,ae]=g.useState(""),[de,ge]=g.useState("General"),[je,be]=g.useState(""),[Me,Be]=g.useState("General"),[ye,F]=g.useState("Bottom"),[A,H]=g.useState(0),[le,ve]=g.useState(0),[Z,I]=g.useState(!1),[P,ue]=g.useState(!1),[k,B]=g.useState(!1),[W,ie]=g.useState(""),[xe,Ce]=g.useState(!1),[He,$]=g.useState(!1),[te,Te]=g.useState(11),[_e,J]=g.useState("None"),[he,Ee]=g.useState(),[O,oe]=g.useState(!1),[fe,N]=g.useState("Baseline"),[G,me]=g.useState("thin"),[pe,ke]=g.useState("#000000"),[Re,Pe]=g.useState([]),[Ve,Ke]=g.useState({}),[Xe,wt]=g.useState(void 0),[ga,Qt]=g.useState(!0),[Dt,yn]=g.useState(!1);g.useEffect(()=>(q0.add(f),()=>{q0.delete(f)}),[]),g.useEffect(()=>{u!==0&&(v(!0),y("number"),o("cell.get",{cell:n.active}).then(ne=>{var At,na,Nt,xl,Sl,wl,Wa,Qa,Ja,ya,en,Ba,Vn,Cl,qn,bn,_a;const qe=(ne==null?void 0:ne.style)??{};x(qe);const st=qe.num_fmt??"General",Ot=NH(st);C(Ot),w(Ot==="general"?2:RH(st)),S(st.includes("#,##0")),L(st.includes("[Red]")),ae(st),ge(st),Be(((At=qe.align)==null?void 0:At.h)??"General"),F(((na=qe.align)==null?void 0:na.v)??"Bottom"),H(((Nt=qe.align)==null?void 0:Nt.indent)??0),ve(((xl=qe.align)==null?void 0:xl.rotation)===255?0:((Sl=qe.align)==null?void 0:Sl.rotation)??0),I(((wl=qe.align)==null?void 0:wl.wrap)===!0),ue(((Wa=qe.align)==null?void 0:Wa.shrink)===!0),B(!1),ie(((Qa=qe.font)==null?void 0:Qa.name)??""),Ce(((Ja=qe.font)==null?void 0:Ja.bold)===!0),$(((ya=qe.font)==null?void 0:ya.italic)===!0),Te(((en=qe.font)==null?void 0:en.size)??11),J(((Ba=qe.font)==null?void 0:Ba.underline)??"None"),Ee(i0((Vn=qe.font)==null?void 0:Vn.color)),oe(((Cl=qe.font)==null?void 0:Cl.strike)===!0),N(((qn=qe.font)==null?void 0:qn.vert)??"Baseline"),Pe([]),Ke(Object.fromEntries(r0.map(su=>[su,!1]))),wt(void 0),Qt(((bn=qe.protection)==null?void 0:bn.locked)!==!1),yn(((_a=qe.protection)==null?void 0:_a.hidden)===!0)}))},[u]);const Za=g.useMemo(()=>{const ne=T?"#,##0":"0";switch(b){case"general":return"General";case"number":return z?`${ne}${pl(E)};[Red]-${ne}${pl(E)}`:`${ne}${pl(E)}`;case"currency":return`${K?`"${K}"`:""}#,##0${pl(E)}`;case"accounting":return`_(${K?`"${K}"`:""}* #,##0${pl(E)}_);_(${K?`"${K}"`:""}* (#,##0${pl(E)});_(${K?`"${K}"`:""}* "-"??_);_(@_)`;case"percent":return`0${pl(E)}%`;case"scientific":return`0${pl(E)}E+00`;case"text":return"@";case"date":return yc.includes(re)?re:yc[0];case"time":return bc.includes(re)?re:bc[0];case"fraction":return Mc.includes(re)?re:Mc[0];default:return de.trim()||"General"}},[b,de,E,re,z,K,T]);if(g.useEffect(()=>{if(!h)return;const ne=Za.replace(/"/g,'""');o("formulas.evaluate",{formula:`=TEXT(${n.active},"${ne}")`}).then(qe=>be(qe==null?"":String(qe)))},[Za,n.active,o,h]),!h)return null;const ur=()=>{v(!1),Ie()},iu=async()=>{var At,na,Nt,xl,Sl,wl,Wa,Qa,Ja,ya,en,Ba,Vn,Cl,qn,bn,_a;const ne={};Za!==(m.num_fmt??"General")&&(ne.num_fmt=Za);const qe={};Me!==(((At=m.align)==null?void 0:At.h)??"General")&&(qe.h=Me),ye!==(((na=m.align)==null?void 0:na.v)??"Bottom")&&(qe.v=ye),A!==(((Nt=m.align)==null?void 0:Nt.indent)??0)&&(qe.indent=A),le!==(((xl=m.align)==null?void 0:xl.rotation)===255?0:((Sl=m.align)==null?void 0:Sl.rotation)??0)&&(qe.rotation=Math.max(-90,Math.min(90,le))),Z!==(((wl=m.align)==null?void 0:wl.wrap)===!0)&&(qe.wrap=Z),P!==(((Wa=m.align)==null?void 0:Wa.shrink)===!0)&&(qe.shrink=P),Object.keys(qe).length&&(ne.align=qe);const st={};W&&W!==((Qa=m.font)==null?void 0:Qa.name)&&(st.name=W),xe!==(((Ja=m.font)==null?void 0:Ja.bold)===!0)&&(st.bold=xe),He!==(((ya=m.font)==null?void 0:ya.italic)===!0)&&(st.italic=He),te!==(((en=m.font)==null?void 0:en.size)??11)&&(st.size=te),_e!==(((Ba=m.font)==null?void 0:Ba.underline)??"None")&&(st.underline=_e),he!==i0((Vn=m.font)==null?void 0:Vn.color)&&(st.color=he??"auto"),O!==(((Cl=m.font)==null?void 0:Cl.strike)===!0)&&(st.strike=O),fe!==(((qn=m.font)==null?void 0:qn.vert)??"Baseline")&&(st.vert=fe),Object.keys(st).length&&(ne.font=st),Xe!==void 0&&(ne.fill=Xe??"none"),(ga!==(((bn=m.protection)==null?void 0:bn.locked)!==!1)||Dt!==(((_a=m.protection)==null?void 0:_a.hidden)===!0))&&(ne.protection={locked:ga,hidden:Dt});const Ot={};Object.keys(ne).length&&(Ot.style=ne),Re.length&&(Ot.edges=Re),k&&(Ot.merge=!0),ur(),Object.keys(Ot).length&&await i("home.formatCells",Ot)},Ut=ne=>{if(ne==="none"){Pe([{preset:"none",style:G,color:pe}]),Ke(Object.fromEntries(r0.map(st=>[st,!1])));return}Pe(st=>[...st.filter(Ot=>Ot.preset!=="none"),{preset:ne,style:G,color:pe}]);const qe=ne==="outside"?["top","bottom","left","right"]:["insideHorizontal","insideVertical"];Ke(st=>({...st,...Object.fromEntries(qe.map(Ot=>[Ot,!0]))}))},ru=ne=>{const qe=!Ve[ne];Ke(st=>({...st,[ne]:qe})),Pe(st=>[...st,{preset:ne,style:qe?G:"none",color:pe}])},li=s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcDecimals")}),s.jsx("input",{className:"kui-field",type:"number",min:0,max:30,style:{width:56},value:E,onChange:ne=>w(Math.max(0,Math.min(30,Math.round(Number(ne.target.value)||0)))),"data-testid":"fc-decimals"})]}),ii=ne=>s.jsx("ul",{className:"sheet-function-list sheet-fc-list",role:"listbox","aria-label":r("fcType"),"data-testid":"fc-list",children:ne.map(qe=>s.jsx("li",{role:"option","aria-selected":qe===Za,onClick:()=>ae(qe),"data-code":qe,children:qe},qe))});return s.jsx(da,{open:!0,onOpenChange:ne=>ne?void 0:ur(),children:s.jsxs(fa,{size:"md",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:ne=>ne.preventDefault(),"data-testid":"sheet-format-cells",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("formatCellsTitle")})}),s.jsxs(ha,{children:[s.jsx("div",{className:"sheet-fc-tabs",role:"tablist",children:jH.map(ne=>s.jsx("button",{type:"button",role:"tab","aria-selected":p===ne,onClick:()=>y(ne),"data-testid":`fc-tab-${ne}`,children:r(`fcTab:${ne}`)},ne))}),s.jsxs("div",{className:"sheet-fc-page",role:"tabpanel","data-testid":`fc-page-${p}`,children:[p==="number"?s.jsxs("div",{className:"sheet-fc-number",children:[s.jsx("ul",{className:"sheet-function-list sheet-fc-categories",role:"listbox","aria-label":r("fcCategory"),"data-testid":"fc-categories",children:TH.map(ne=>s.jsx("li",{role:"option","aria-selected":b===ne,onClick:()=>C(ne),"data-testid":`fc-cat-${ne}`,children:r(`fcCat:${ne}`)},ne))}),s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcSample")}),s.jsx("output",{className:"sheet-fc-sample","data-testid":"fc-sample",children:je})]}),b==="number"?s.jsxs(s.Fragment,{children:[li,s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:T,onChange:ne=>S(ne.target.checked),"data-testid":"fc-thousands"}),r("fcThousands")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:z,onChange:ne=>L(ne.target.checked),"data-testid":"fc-red-negative"}),r("fcRedNegative")]})]}):null,b==="currency"||b==="accounting"?s.jsxs(s.Fragment,{children:[li,s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcSymbol")}),s.jsx("select",{className:"kui-field",value:K,onChange:ne=>X(ne.target.value),"data-testid":"fc-symbol",children:AH.map(ne=>s.jsx("option",{value:ne,children:ne||r("fcNoSymbol")},ne))})]})]}):null,b==="percent"||b==="scientific"?li:null,b==="date"?ii(yc):null,b==="time"?ii(bc):null,b==="fraction"?ii(Mc):null,b==="custom"?s.jsxs(s.Fragment,{children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcType")}),s.jsx("input",{className:"kui-field",value:de,spellCheck:!1,onChange:ne=>ge(ne.target.value),"data-testid":"fc-code"})]}),s.jsx("ul",{className:"sheet-function-list sheet-fc-list",role:"listbox","aria-label":r("fcType"),children:kH.map(ne=>s.jsx("li",{role:"option","aria-selected":ne===de,onClick:()=>ge(ne),children:ne},ne))})]}):null,s.jsx("div",{className:"sheet-fc-note","data-testid":"fc-format",children:Za})]})]}):null,p==="alignment"?s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcHorizontal")}),s.jsx("select",{className:"kui-field",value:Me,onChange:ne=>Be(ne.target.value),"data-testid":"fc-h",children:DH.map(ne=>s.jsx("option",{value:ne,children:r(`fcH:${ne}`)},ne))})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcVertical")}),s.jsx("select",{className:"kui-field",value:ye,onChange:ne=>F(ne.target.value),"data-testid":"fc-v",children:OH.map(ne=>s.jsx("option",{value:ne,children:r(`fcV:${ne}`)},ne))})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcIndent")}),s.jsx("input",{className:"kui-field",type:"number",min:0,max:15,style:{width:56},value:A,onChange:ne=>H(Math.max(0,Math.min(15,Math.round(Number(ne.target.value)||0)))),"data-testid":"fc-indent"})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcRotation")}),s.jsx("input",{className:"kui-field",type:"number",min:-90,max:90,style:{width:56},value:le,onChange:ne=>ve(Math.round(Number(ne.target.value)||0)),"data-testid":"fc-rotation"})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:Z,onChange:ne=>I(ne.target.checked),"data-testid":"fc-wrap"}),r("fcWrap")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:P,onChange:ne=>ue(ne.target.checked),"data-testid":"fc-shrink"}),r("fcShrink")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:k,onChange:ne=>B(ne.target.checked),"data-testid":"fc-merge"}),r("fcMerge")]})]}):null,p==="font"?s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcFont")}),s.jsx("select",{className:"kui-field",value:W,onChange:ne=>ie(ne.target.value),"data-testid":"fc-font",children:[...W&&!Fn.some(ne=>ne.name===W)?[W]:[],...Fn.map(ne=>ne.name)].map(ne=>s.jsx("option",{value:ne,children:ne},ne))})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcFontStyle")}),s.jsxs("select",{className:"kui-field",value:`${xe?"b":""}${He?"i":""}`,onChange:ne=>{Ce(ne.target.value.includes("b")),$(ne.target.value.includes("i"))},"data-testid":"fc-font-style",children:[s.jsx("option",{value:"",children:r("fcRegular")}),s.jsx("option",{value:"i",children:r("fcItalic")}),s.jsx("option",{value:"b",children:r("fcBold")}),s.jsx("option",{value:"bi",children:r("fcBoldItalic")})]})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcSize")}),s.jsx("input",{className:"kui-field",list:"sheet-fc-sizes",style:{width:64},value:te,onChange:ne=>Te(Number(ne.target.value)||te),"data-testid":"fc-size"}),s.jsx("datalist",{id:"sheet-fc-sizes",children:Ux.map(ne=>s.jsx("option",{value:ne},ne))})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcUnderline")}),s.jsx("select",{className:"kui-field",value:_e,onChange:ne=>J(ne.target.value),"data-testid":"fc-underline",children:LH.map(ne=>s.jsx("option",{value:ne,children:r(`fcU:${ne}`)},ne))})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcColor")}),s.jsx(s0,{value:he,onChange:Ee,none:r("colorAutomatic"),testId:"fc-font-color"})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:O,onChange:ne=>oe(ne.target.checked),"data-testid":"fc-strike"}),r("fcStrike")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:fe==="Superscript",onChange:ne=>N(ne.target.checked?"Superscript":"Baseline"),"data-testid":"fc-super"}),r("fcSuper")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:fe==="Subscript",onChange:ne=>N(ne.target.checked?"Subscript":"Baseline"),"data-testid":"fc-sub"}),r("fcSub")]}),s.jsx("div",{className:"sheet-fc-preview","data-testid":"fc-preview",style:{fontFamily:((Ml=Fn.find(ne=>ne.name===W))==null?void 0:Ml.css)??W,fontWeight:xe?700:400,fontStyle:He?"italic":"normal",fontSize:Math.min(36,te*1.33),color:he??void 0,textDecoration:`${_e!=="None"?"underline":""} ${O?"line-through":""}`.trim()||"none"},children:r("fcPreviewText")})]}):null,p==="border"?s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcPresets")}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>Ut("none"),"data-testid":"fc-border-none",children:r("fcBorderNone")}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>Ut("outside"),"data-testid":"fc-border-outside",children:r("fcBorderOutside")}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>Ut("inside"),"data-testid":"fc-border-inside",children:r("fcBorderInside")})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcBorderEdges")}),s.jsx("span",{className:"sheet-fc-edges",children:r0.map(ne=>s.jsx("button",{type:"button",className:"kui-ribbon-button","aria-pressed":Ve[ne]===!0,onClick:()=>ru(ne),"data-testid":`fc-edge-${ne}`,children:r(`fcEdge:${ne}`)},ne))})]}),s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcLineStyle")}),s.jsx("select",{className:"kui-field",value:G,onChange:ne=>me(ne.target.value),"data-testid":"fc-line-style",children:HH.map(ne=>s.jsx("option",{value:ne,children:r(`fcLine:${ne}`)},ne))})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcColor")}),s.jsx(s0,{value:pe,onChange:ne=>ke(ne??"#000000"),none:r("colorAutomatic"),testId:"fc-line-color"})]}),s.jsx("div",{className:"sheet-fc-border-preview","data-testid":"fc-border-preview",children:s.jsx("span",{style:{borderTop:Ve.top?`2px solid ${pe}`:void 0,borderBottom:Ve.bottom?`2px solid ${pe}`:void 0,borderLeft:Ve.left?`2px solid ${pe}`:void 0,borderRight:Ve.right?`2px solid ${pe}`:void 0},children:r("fcText")})})]}):null,p==="fill"?s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsx("button",{type:"button",className:"kui-menu-item",onClick:()=>wt(null),"data-testid":"fc-fill-none",children:r("fcNoColor")}),s.jsx(pn,{onPick:ne=>wt(ne.toUpperCase()),testId:"fc-fill-colors"}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("colorMore")}),s.jsx(s0,{value:Xe??void 0,onChange:ne=>wt(ne??null),none:r("fcNoColor"),testId:"fc-fill-more"})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("fcSample")}),s.jsx("span",{className:"sheet-fc-swatch",style:{background:Xe??(Xe===null?"#FFFFFF":i0((Ts=m.fill)==null?void 0:Ts.fg)??"#FFFFFF")},"data-testid":"fc-fill-sample","data-color":Xe??""})]})]}):null,p==="protection"?s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:ga,onChange:ne=>Qt(ne.target.checked),"data-testid":"fc-locked"}),r("fcLocked")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:Dt,onChange:ne=>yn(ne.target.checked),"data-testid":"fc-hidden"}),r("fcHidden")]}),s.jsx("p",{className:"sheet-fc-note",children:r("fcProtectionNote")})]}):null]})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"secondary",onClick:ur,"data-testid":"fc-cancel",children:r("cancel")}),s.jsx(De,{variant:"primary",onClick:()=>void iu(),"data-testid":"fc-ok",children:r("ok")})]})]})})}function s0({value:n,onChange:i,none:o,testId:r}){const{t:u}=ze(),[f,h]=g.useState(!1),[v,p]=g.useState("");return s.jsxs("span",{className:"sheet-color-field",children:[s.jsxs("button",{type:"button",className:"sheet-color-value","aria-expanded":f,onClick:()=>h(y=>!y),"data-testid":r,"data-color":n??"",children:[s.jsx("span",{style:{background:n??"transparent"},className:n?void 0:"sheet-color-empty"}),n??o]}),f?s.jsxs("span",{className:"sheet-color-pop",children:[s.jsx("button",{type:"button",className:"kui-menu-item",onClick:()=>{i(void 0),h(!1)},"data-testid":`${r}-none`,children:o}),s.jsx(pn,{onPick:y=>{i(y.toUpperCase()),h(!1)},testId:`${r}-colors`}),s.jsxs("span",{className:"sheet-color-more",children:[s.jsx("input",{className:"kui-field",style:{width:84},value:v,placeholder:"#3C5593","aria-label":u("colorHex"),onChange:y=>p(y.target.value),"data-testid":`${r}-hex`}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>{const y=v.trim().startsWith("#")?v.trim():`#${v.trim()}`;if(!/^#[0-9A-F]{6}$/i.test(y)){Xt("error",u("colorBad"));return}i(y.toUpperCase()),p(""),h(!1)},"data-testid":`${r}-hex-ok`,children:u("colorApply")})]})]}):null]})}function Xx({preview:n}){return s.jsx("span",{className:"sheet-table-thumb","aria-hidden":"true",children:n.flatMap((i,o)=>i.map(([r,u,f,h,v,p],y)=>{const m={background:r??"#FFFFFF",borderTopColor:f??"transparent",borderBottomColor:h??"transparent",borderLeftColor:v??"transparent",borderRightColor:p??"transparent"};return s.jsx("span",{style:m,children:s.jsx("i",{style:{background:u??"#404040"}})},`${o}-${y}`)}))})}let Zx=null;const $0=new Set,nu=n=>{Zx=n;for(const i of $0)i(n)},_H=(n,i)=>nu({kind:"format",style:n,range:i}),Hg=n=>nu(n?{kind:"new",replace:n.name,name:n.name,parts:n.parts,isDefault:n.isDefault}:{kind:"new",name:"",parts:{},isDefault:!1}),FH=n=>nu({kind:"resize",range:n}),Bg=n=>`=${n.replace(/([A-Z]+)(\d+)/g,"$$$1$$$2")}`,cc=n=>n.trim().replace(/^=/,"").replace(/\$/g,""),UH=["wholeTable","headerRow","totalRow","firstColumn","lastColumn","firstRowStripe","secondRowStripe","firstColumnStripe","secondColumnStripe"];function IH(n){const i=["wholeTable","firstColumnStripe","secondColumnStripe","firstRowStripe","secondRowStripe","headerRow"];return Array.from({length:5},(o,r)=>Array.from({length:5},(u,f)=>{let h=null,v=null,p=null;for(const y of i){const m=n[y];!m||!(y==="wholeTable"||y==="headerRow"&&r===0||r>0&&y==="firstRowStripe"&&(r-1)%2===0||r>0&&y==="secondRowStripe"&&(r-1)%2===1)||(h=m.fill??h,v=m.color??v,p=m.border??p)}return[h,v,r===0?p:null,r===4?p:null,f===0?p:null,f===4?p:null]}))}function uc({value:n,onChange:i,testId:o,label:r}){const{t:u}=ze(),[f,h]=g.useState(!1),[v,p]=g.useState("");return s.jsxs("span",{className:"sheet-color-field",children:[s.jsxs("button",{type:"button",className:"sheet-color-value","aria-label":r,"aria-expanded":f,onClick:()=>h(y=>!y),"data-testid":o,"data-color":n??"",children:[s.jsx("span",{style:{background:n??"transparent"},className:n?void 0:"sheet-color-empty"}),n??u("tableNoColor")]}),f?s.jsxs("span",{className:"sheet-color-pop","data-testid":`${o}-panel`,children:[s.jsx("button",{type:"button",className:"kui-menu-item",onClick:()=>{i(void 0),h(!1)},"data-testid":`${o}-none`,children:u("tableNoColor")}),s.jsx(pn,{onPick:y=>{i(y.toUpperCase()),h(!1)},testId:`${o}-colors`}),s.jsx("span",{className:"sheet-font-heading",children:u("colorMore")}),s.jsxs("span",{className:"sheet-color-more",children:[s.jsx("input",{type:"color","aria-label":u("colorMore"),value:/^#[0-9A-F]{6}$/i.test(v)?v:n??"#000000",onChange:y=>p(y.target.value.toUpperCase())}),s.jsx("input",{className:"kui-field",style:{width:84},value:v,placeholder:"#3C5593","aria-label":u("colorHex"),onChange:y=>p(y.target.value),"data-testid":`${o}-hex`}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>{const y=v.trim().startsWith("#")?v.trim():`#${v.trim()}`;if(!/^#[0-9A-F]{6}$/i.test(y)){Xt("error",u("colorBad"));return}i(y.toUpperCase()),p(""),h(!1)},"data-testid":`${o}-hex-ok`,children:u("colorApply")})]})]}):null]})}function VH({info:n}){const{run:i,query:o,t:r}=ze(),[u,f]=g.useState(Zx);g.useEffect(()=>($0.add(f),()=>{$0.delete(f)}),[]);const[h,v]=g.useState(""),[p,y]=g.useState("format"),[m,x]=g.useState(1),[b,C]=g.useState(!0),[E,w]=g.useState(!0),[T,S]=g.useState(""),[z,L]=g.useState({}),[K,X]=g.useState("wholeTable"),[re,ae]=g.useState(!1);g.useEffect(()=>{((u==null?void 0:u.kind)==="format"||(u==null?void 0:u.kind)==="resize")&&v(Bg(u.range)),(u==null?void 0:u.kind)==="format"&&(y("format"),x(1),C(!0),w(!0)),(u==null?void 0:u.kind)==="new"&&(S(u.name),L(u.parts),X("wholeTable"),ae(u.isDefault))},[u]);const de=async ye=>{const F=/^(?:.*!)?([A-Z]+\d+)(?::([A-Z]+\d+))?$/.exec(ye);if(!F)return!1;const A=R0(F[1]),H=R0(F[2]??F[1]);for(let le=A.colIndex;le<=Math.min(H.colIndex,A.colIndex+255);le+=1){const ve=await o("cell.get",{cell:`${D0(le)}${A.row}`});if(ve!=null&&ve.picture)return!0}return!1};if(!u)return null;const ge=()=>{nu(null),Ie()},je=ye=>ye.preventDefault();if(u.kind==="format"){const ye=async()=>{const F=p==="format"?{range:cc(h),style:u.style,mode:p,titleRows:m}:{range:cc(h),style:u.style,mode:p,header:b,filter:E,columnPrefix:r("tableColumnPrefix")};if(ge(),p==="table"&&b&&await de(cc(h))){jf({title:r("tablePicturesTitle"),message:r("tablePicturesConfirm"),testId:"sheet-table-pictures",onOk:()=>void i("home.formatAsTable",{...F,clearPictures:!0})});return}await i("home.formatAsTable",F)};return s.jsx(da,{open:!0,onOpenChange:F=>F?void 0:ge(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:je,"data-testid":"sheet-fat",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("formatAsTableTitle")})}),s.jsx(ha,{children:s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tableDataSource")}),s.jsx("input",{className:"kui-field",value:h,spellCheck:!1,onChange:F=>v(F.target.value),"data-testid":"sheet-fat-range"})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"radio",name:"sheet-fat-mode",checked:p==="format",onChange:()=>y("format"),"data-testid":"sheet-fat-format"}),r("tableOnlyFormat")]}),s.jsxs("label",{className:"sheet-dialog-row sheet-dialog-indent",children:[s.jsx("span",{children:r("tableTitleRows")}),s.jsx("input",{className:"kui-field",type:"number",min:0,max:9,style:{width:56},disabled:p!=="format",value:m,onChange:F=>x(Math.max(0,Math.min(9,Math.round(Number(F.target.value)||0)))),"data-testid":"sheet-fat-title-rows"})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"radio",name:"sheet-fat-mode",checked:p==="table",onChange:()=>y("table"),"data-testid":"sheet-fat-table"}),r("tableConvert")]}),s.jsxs("label",{className:"sheet-dialog-choice sheet-dialog-indent",children:[s.jsx("input",{type:"checkbox",disabled:p!=="table",checked:b,onChange:F=>C(F.target.checked),"data-testid":"sheet-fat-header"}),r("tableHasHeaders")]}),s.jsxs("label",{className:"sheet-dialog-choice sheet-dialog-indent",children:[s.jsx("input",{type:"checkbox",disabled:p!=="table",checked:E,onChange:F=>w(F.target.checked),"data-testid":"sheet-fat-filter"}),r("tableFilterButtons")]})]})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"secondary",onClick:ge,"data-testid":"sheet-fat-cancel",children:r("cancel")}),s.jsx(De,{variant:"primary",onClick:()=>void ye(),"data-testid":"sheet-fat-ok",children:r("ok")})]})]})})}if(u.kind==="resize"){const ye=async()=>{await i("table.resize",{range:cc(h)})!=null?ge():n.tableInfo&&v(Bg(n.tableInfo.range))};return s.jsx(da,{open:!0,onOpenChange:F=>F?void 0:ge(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:je,"data-testid":"sheet-resize",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("resizeTableTitle")})}),s.jsx(ha,{children:s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("resizeTableRange")}),s.jsx("input",{className:"kui-field",value:h,autoFocus:!0,spellCheck:!1,onChange:F=>v(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.preventDefault(),ye())},"data-testid":"sheet-resize-range"})]})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"secondary",onClick:ge,"data-testid":"sheet-resize-cancel",children:r("cancel")}),s.jsx(De,{variant:"primary",onClick:()=>void ye(),"data-testid":"sheet-resize-ok",children:r("ok")})]})]})})}const be=z[K]??{},Me=ye=>L(F=>{const A={...F[K]??{},...ye};for(const le of Object.keys(A))(A[le]===void 0||A[le]===!1)&&delete A[le];const H={...F,[K]:A};return Object.keys(A).length||delete H[K],H}),Be=async()=>{if(!T.trim()){Xt("error",r("tableStyleNameEmpty"));return}await i("table.newStyle",{name:T.trim(),elements:z,default:re,...u.replace?{replace:u.replace}:{}})!=null&&ge()};return s.jsx(da,{open:!0,onOpenChange:ye=>ye?void 0:ge(),children:s.jsxs(fa,{size:"lg",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:je,"data-testid":"sheet-nts",children:[s.jsx(ma,{children:s.jsx(pa,{children:r(u.replace?"modifyTableStyleTitle":"newTableStyleTitle")})}),s.jsx(ha,{children:s.jsxs("div",{className:"sheet-dialog-form",children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tableStyleName")}),s.jsx("input",{className:"kui-field",value:T,autoFocus:!0,spellCheck:!1,onChange:ye=>S(ye.target.value),"data-testid":"sheet-nts-name"})]}),s.jsxs("div",{className:"sheet-nts-body",children:[s.jsxs("div",{children:[s.jsx("div",{className:"sheet-font-heading",children:r("tableElement")}),s.jsx("ul",{className:"sheet-function-list sheet-nts-parts",role:"listbox","aria-label":r("tableElement"),children:UH.map(ye=>s.jsx("li",{role:"option","aria-selected":ye===K,"data-set":z[ye]?"true":void 0,onClick:()=>X(ye),"data-testid":`sheet-nts-el-${ye}`,children:r(`tablePart:${ye}`)},ye))})]}),s.jsxs("div",{className:"sheet-nts-format",children:[s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tablePartFill")}),s.jsx(uc,{value:be.fill,onChange:ye=>Me({fill:ye}),label:r("tablePartFill"),testId:"sheet-nts-fill"})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tablePartText")}),s.jsx(uc,{value:be.color,onChange:ye=>Me({color:ye}),label:r("tablePartText"),testId:"sheet-nts-color"})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tablePartBorder")}),s.jsx(uc,{value:be.border,onChange:ye=>Me({border:ye}),label:r("tablePartBorder"),testId:"sheet-nts-border"})]}),s.jsxs("div",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tablePartLines")}),s.jsx(uc,{value:be.lines,onChange:ye=>Me({lines:ye}),label:r("tablePartLines"),testId:"sheet-nts-lines"})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:be.bold===!0,onChange:ye=>Me({bold:ye.target.checked}),"data-testid":"sheet-nts-bold"}),r("tablePartBold")]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:be.italic===!0,onChange:ye=>Me({italic:ye.target.checked}),"data-testid":"sheet-nts-italic"}),r("tablePartItalic")]}),K.endsWith("Stripe")?s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:r("tableStripeSize")}),s.jsx("input",{className:"kui-field",type:"number",min:1,max:9,style:{width:56},value:be.size??1,onChange:ye=>Me({size:Math.max(1,Math.min(9,Math.round(Number(ye.target.value)||1)))}),"data-testid":"sheet-nts-size"})]}):null,s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>L(ye=>Object.fromEntries(Object.entries(ye).filter(([F])=>F!==K))),"data-testid":"sheet-nts-clear-part",children:r("tableClearPart")})]}),s.jsxs("div",{children:[s.jsx("div",{className:"sheet-font-heading",children:r("tablePreview")}),s.jsx("span",{"data-testid":"sheet-nts-preview",children:s.jsx(Xx,{preview:IH(z)})})]})]}),s.jsxs("label",{className:"sheet-dialog-choice",children:[s.jsx("input",{type:"checkbox",checked:re,onChange:ye=>ae(ye.target.checked),"data-testid":"sheet-nts-default"}),r("tableSetDefault")]})]})}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"secondary",onClick:ge,"data-testid":"sheet-nts-cancel",children:r("cancel")}),s.jsx(De,{variant:"primary",onClick:()=>void Be(),"data-testid":"sheet-nts-ok",children:r("ok")})]})]})})}function Wx({info:n,testId:i="sheet-table"}){var E;const{run:o,t:r}=ze(),[u,f]=g.useState(null),[h,v]=g.useState(null),p=fO("table.styles",u==null?{}:{slot:u},((E=n.tableInfo)==null?void 0:E.style)??null);if(!p)return s.jsx("div",{className:"sheet-table-gallery","data-testid":`${i}-gallery`});const y=p.table!=null,m=w=>{v(null),y?o("table.style",{style:w}).finally(Ie):_H(w,p.range??n.selection)},x=(w,T,S)=>{w.preventDefault(),w.stopPropagation(),v({name:T,custom:S})},b=(w,T,S)=>s.jsxs("span",{className:"sheet-table-item","data-default":p.default===w||void 0,children:[s.jsx("button",{type:"button",className:"sheet-table-style",title:w,"aria-label":w,"aria-pressed":p.current===w,onClick:()=>m(w),onContextMenu:z=>x(z,w,S),"data-testid":`${i}-${w}`,children:s.jsx(Xx,{preview:T})}),p.default===w?s.jsx("span",{className:"sheet-table-default",title:r("tableIsDefault"),"data-testid":`${i}-default-mark`,children:"★"}):null,S?s.jsx("button",{type:"button",className:"sheet-table-delete","aria-label":r("tableDeleteStyle"),title:r("tableDeleteStyle"),onClick:z=>{z.stopPropagation(),o("table.deleteStyle",{name:w})},"data-testid":`${i}-delete-${w}`,children:s.jsx(Jl,{size:10,"aria-hidden":"true"})}):null]},w),C=p.custom.find(w=>w.name===(h==null?void 0:h.name));return s.jsxs("div",{className:"sheet-table-gallery","data-testid":`${i}-gallery`,onClick:w=>h&&!w.target.closest(".sheet-table-menu")?v(null):void 0,children:[s.jsxs("div",{className:"sheet-table-scroll",children:[s.jsx("div",{className:"sheet-table-title",children:r("tablePresetStyles")}),s.jsxs("div",{className:"sheet-table-colors",children:[s.jsx("span",{children:r("tableThemeColor")}),s.jsx("span",{className:"sheet-table-swatches",role:"radiogroup","aria-label":r("tableThemeColor"),children:p.colors.map((w,T)=>s.jsx("span",{role:"radio",tabIndex:0,"aria-checked":p.slot===T,className:"sheet-table-swatch",style:{background:w},title:w,onClick:S=>{S.stopPropagation(),f(T)},onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),f(T))},"data-testid":`${i}-color-${T}`,children:p.slot===T?s.jsx(xs,{size:11,"aria-hidden":"true"}):null},T))})]}),p.groups.map(w=>s.jsxs("div",{className:"sheet-table-group","data-testid":`${i}-group-${w.id}`,children:[s.jsx("div",{className:"sheet-font-heading",children:r(`tableGroup:${w.id}`)}),s.jsx("div",{className:"sheet-table-grid",children:w.styles.map(T=>b(T.name,T.preview,!1))})]},w.id)),p.custom.length?s.jsxs("div",{className:"sheet-table-group","data-testid":`${i}-group-custom`,children:[s.jsx("div",{className:"sheet-font-heading",children:r("tableGroup:custom")}),s.jsx("div",{className:"sheet-table-grid",children:p.custom.map(w=>b(w.name,w.preview,!0))})]}):null]}),h?s.jsxs("div",{className:"sheet-table-menu kui-popover",role:"menu","data-testid":`${i}-menu`,children:[s.jsx("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>void o("table.setDefaultStyle",{name:h.name}),"data-testid":`${i}-menu-default`,children:r("tableSetAsDefault")}),h.custom&&C?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>Hg({name:C.name,parts:C.elements,isDefault:p.default===C.name}),"data-testid":`${i}-menu-modify`,children:r("tableModifyStyle")}),s.jsx("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>void o("table.deleteStyle",{name:h.name}),"data-testid":`${i}-menu-delete`,children:r("tableDeleteStyle")})]}):null]}):null,s.jsxs("div",{className:"sheet-table-actions",children:[y?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>void o("table.convertToRange",{}).finally(Ie),"data-testid":`${i}-convert`,children:r("tableConvertToRange")}),s.jsx("button",{type:"button",className:"kui-menu-item sheet-danger",role:"menuitem",onClick:()=>void o("table.style",{style:"None"}).finally(Ie),"data-testid":`${i}-clear`,children:r("tableClearStyle")})]}):null,s.jsx("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>Hg(),"data-testid":`${i}-new`,children:r("tableNewStyle")})]})]})}function qH({info:n}){const{enabled:i,phrase:o}=ze();return s.jsx(et,{icon:ss,label:o("Format as Table"),size:"large",testId:"sheet-format-table",disabled:!i("home.formatAsTable"),children:s.jsx(Wx,{info:n})})}function $H({info:n}){const{run:i,t:o,phrase:r}=ze(),u=n.tableInfo,[f,h]=g.useState((u==null?void 0:u.name)??"");if(g.useEffect(()=>h((u==null?void 0:u.name)??""),[u==null?void 0:u.name]),!u)return null;const v=(y,m,x,b)=>s.jsxs("label",{className:"sheet-dialog-choice sheet-table-option",children:[s.jsx("input",{type:"checkbox",defaultChecked:u[y]===!0,onChange:C=>void i(m,{on:C.target.checked}).finally(Ie),"data-testid":b},`${String(y)}-${String(u[y])}`),x]}),p=()=>{f.trim()&&f.trim()!==u.name&&i("table.rename",{name:f.trim()}).then(y=>y==null?h(u.name):void 0)};return s.jsxs(s.Fragment,{children:[s.jsxs(nt,{label:r("Properties"),icon:Pc,children:[s.jsxs(Ft,{children:[s.jsxs("label",{className:"sheet-dialog-row",children:[s.jsx("span",{children:o("tableName")}),s.jsx("input",{className:"kui-ribbon-field",style:{width:96},value:f,onChange:y=>h(y.target.value),onBlur:p,onKeyDown:y=>{y.key==="Enter"&&(y.preventDefault(),p(),Ie())},"data-testid":"sheet-table-name"})]}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>FH(u.range),"data-testid":"sheet-table-resize",children:r("Resize Table")})]}),s.jsxs(Ft,{children:[s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>void i("table.removeDuplicates",{}),"data-testid":"sheet-table-dedupe",children:r("Remove Duplicates")}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>void i("table.convertToRange",{}).finally(Ie),"data-testid":"sheet-table-to-range",children:r("Convert to Range")})]})]}),s.jsx(nt,{label:r("Table Style Options"),icon:ss,children:s.jsxs("div",{className:"sheet-table-options",children:[v("header","table.headerRow",r("Header Row"),"sheet-table-opt-header"),v("totals","table.totalRow",r("Total Row"),"sheet-table-opt-totals"),v("bandedRows","table.bandedRows",r("Banded Rows"),"sheet-table-opt-banded-rows"),v("firstCol","table.firstColumn",r("First Column"),"sheet-table-opt-first-col"),v("lastCol","table.lastColumn",r("Last Column"),"sheet-table-opt-last-col"),v("bandedCols","table.bandedColumns",r("Banded Columns"),"sheet-table-opt-banded-cols"),v("filter","table.filterButton",r("Filter Button"),"sheet-table-opt-filter")]})}),s.jsx(nt,{label:r("Table Styles"),icon:ss,children:s.jsx(et,{icon:ss,label:r("Table Styles"),size:"large",testId:"sheet-table-design-styles",children:s.jsx(Wx,{info:n,testId:"sheet-table-design"})})})]})}const GH=6,PH=10,Af=n=>ds("sheet",n,i=>Array.isArray(i)&&i.every(o=>typeof o=="string")?i:void 0)??[],Qx=(n,i,o)=>{const r=[i,...Af(n).filter(u=>u!==i)].slice(0,o);return Ji("sheet",n,r),r},KH=[["Carlito","Carlito-Regular.ttf"],["Caladea","Caladea-Regular.ttf"],["Arimo","Arimo-Variable.ttf"],["Tinos","Tinos-Regular.ttf"],["Cousine","Cousine-Regular.ttf"],["Ma Shan Zheng","MaShanZheng-Regular.ttf"]];let _g=!1;function YH(){if(!(_g||typeof FontFace>"u")){_g=!0;for(const[n,i]of KH)new FontFace(n,`url(${new URL(`./fonts/${i}`,document.baseURI).href})`).load().then(r=>document.fonts.add(r)).catch(()=>{})}}function XH({info:n}){const{run:i,enabled:o,t:r}=ze(),f=gn()||n.editing||!o("edit.formatPainter");return s.jsx(tt,{icon:$M,label:r("formatPainter"),title:r("formatPainterTip"),size:"large",pressed:n.formatPainter!=null,disabled:f,onClick:h=>{h.detail>1||i("edit.formatPainter",{}).finally(Ie)},onDoubleClick:()=>void i("edit.formatPainter",{sticky:!0}).finally(Ie),"data-testid":"sheet-format-painter","data-sticky":n.formatPainter==="sticky"||void 0})}function o0({font:n,current:i,onPick:o,testId:r}){const u=n.name===i;return s.jsxs("button",{type:"button",role:"menuitemcheckbox","aria-checked":u,className:"kui-menu-item sheet-font-row",style:{fontFamily:n.css},title:n.also[0]&&/[^\x00-\x7f]/.test(n.name)?`${n.name} (${n.also[0]})`:n.name,onClick:()=>o(n.name),"data-testid":`${r}-${n.name}`,children:[s.jsx("span",{className:"sheet-font-check","aria-hidden":"true",children:u?"✓":""}),s.jsx("span",{children:n.name})]})}function ZH({info:n}){var b;const{run:i,enabled:o,t:r}=ze(),u=gn(),f=((b=n.style.font)==null?void 0:b.name)??"",[h,v]=g.useState(null),p=g.useContext(ja)==="primary",y=u||!o("home.fontName"),m=C=>{const E=C.trim();if(v(null),!E)return;const w=Fn.find(S=>[S.name,...S.also].some(z=>z.toLowerCase()===E.toLowerCase())),T=(w==null?void 0:w.name)??E;Qx("recentFonts",T,GH),i("home.fontName",{name:T}).finally(Ie)},x=C=>{C.stopPropagation(),C.key==="Enter"?(C.preventDefault(),m(C.currentTarget.value)):C.key==="Escape"&&(C.preventDefault(),v(null),Ie())};return s.jsxs("span",{className:"sheet-combo","data-primary":"true",children:[s.jsx("input",{className:"kui-ribbon-field sheet-combo-field",style:{width:p?76:118},value:h??f,placeholder:r("fontBox"),"aria-label":r("fontBox"),disabled:y,onChange:C=>v(C.target.value),onFocus:C=>C.currentTarget.select(),onBlur:()=>v(null),onKeyDown:x,"data-testid":"sheet-font"}),s.jsx(Un,{trigger:({toggle:C,open:E})=>s.jsx("button",{type:"button",className:"kui-ribbon-button sheet-combo-arrow","data-primary":"true","aria-label":r("fontMore"),"aria-expanded":E,"aria-pressed":E,disabled:y,onClick:C,"data-testid":"sheet-font-arrow",children:s.jsx(Ka,{size:12,"aria-hidden":"true"})}),children:s.jsx(WH,{current:f,onPick:m})})]})}function WH({current:n,onPick:i}){const{t:o}=ze(),[r,u]=g.useState(""),f=g.useMemo(()=>Af("recentFonts").map(p=>Fn.find(y=>y.name===p)??{name:p,also:[],css:`"${p}"`}),[]),h=g.useRef(null);g.useEffect(YH,[]),g.useEffect(()=>{var y;const p=(y=h.current)==null?void 0:y.querySelector('[aria-checked="true"]');p==null||p.scrollIntoView({block:"nearest"})},[]);const v=r.trim()?Fn.filter(p=>WL(p,r)):null;return s.jsxs("div",{className:"sheet-font-panel","data-testid":"sheet-font-panel",children:[s.jsx("div",{className:"sheet-font-search",children:s.jsx("input",{className:"kui-ribbon-field",type:"search",value:r,placeholder:o("fontSearch"),"aria-label":o("fontSearch"),onChange:p=>u(p.target.value),onKeyDown:p=>{p.key!=="Escape"&&p.key!=="ArrowDown"&&p.stopPropagation(),p.key==="Enter"&&(v!=null&&v.length)&&(p.preventDefault(),i(v[0].name))},"data-testid":"sheet-font-search"})}),s.jsx("div",{className:"sheet-font-list",ref:h,"data-testid":"sheet-font-list",children:v?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sheet-font-heading","data-testid":"sheet-font-results",children:o("fontResults",{count:v.length})}),v.length?v.map(p=>s.jsx(o0,{font:p,current:n,onPick:i,testId:"sheet-font-result"},p.name)):s.jsx("div",{className:"sheet-font-empty","data-testid":"sheet-font-empty",children:o("fontNoResults")})]}):s.jsxs(s.Fragment,{children:[f.length?s.jsxs("div",{"data-testid":"sheet-font-recent",children:[s.jsx("div",{className:"sheet-font-heading",children:o("fontRecent")}),f.map(p=>s.jsx(o0,{font:p,current:n,onPick:i,testId:"sheet-font-recent"},p.name))]}):null,s.jsxs("div",{"data-testid":"sheet-font-all",children:[s.jsx("div",{className:"sheet-font-heading",children:o("fontAll")}),Fn.map(p=>s.jsx(o0,{font:p,current:n,onPick:i,testId:"sheet-font-item"},p.name))]})]})})]})}function QH({info:n}){var x;const{run:i,enabled:o,t:r}=ze(),u=gn(),f=((x=n.style.font)==null?void 0:x.size)??11,[h,v]=g.useState(null),p=g.useContext(ja)==="primary",y=u||!o("home.fontSize"),m=b=>{v(null);const C=Number(b.trim());if(!b.trim()||!Number.isFinite(C)||C<1||C>409){Xt("error",r("fontSizeRange")),Ie();return}i("home.fontSize",{size:C}).finally(Ie)};return s.jsxs("span",{className:"sheet-combo","data-primary":"true",children:[s.jsx("input",{className:"kui-ribbon-field sheet-combo-field",style:{width:p?24:36},value:h??String(f),"aria-label":r("fontSizeBox"),inputMode:"decimal",disabled:y,onChange:b=>v(b.target.value),onFocus:b=>b.currentTarget.select(),onBlur:()=>v(null),onKeyDown:b=>{b.stopPropagation(),b.key==="Enter"?(b.preventDefault(),m(b.currentTarget.value)):b.key==="Escape"&&(b.preventDefault(),v(null),Ie())},"data-testid":"sheet-size"}),s.jsx(Un,{trigger:({toggle:b,open:C})=>s.jsx("button",{type:"button",className:"kui-ribbon-button sheet-combo-arrow","data-primary":"true","aria-label":r("fontSizeList"),"aria-expanded":C,"aria-pressed":C,disabled:y,onClick:b,"data-testid":"sheet-size-arrow",children:s.jsx(Ka,{size:12,"aria-hidden":"true"})}),children:s.jsx("div",{className:"sheet-size-list","data-testid":"sheet-size-list",children:Ux.map(b=>s.jsxs("button",{type:"button",role:"menuitemcheckbox","aria-checked":b===f,className:"kui-menu-item sheet-font-row",onClick:()=>void i("home.fontSize",{size:b}).finally(Ie),"data-testid":`sheet-size-item-${b}`,children:[s.jsx("span",{className:"sheet-font-check","aria-hidden":"true",children:b===f?"✓":""}),s.jsx("span",{children:b})]},b))})})]})}const JH=()=>Es()?"⌘":"Ctrl+";function Fg({command:n,none:i,noneLabel:o,icon:r,label:u,store:f,initial:h,testId:v}){const{run:p,enabled:y,t:m}=ze(),x=gn(),[b,C]=g.useState(()=>ds("sheet",f,X=>typeof X=="string"&&/^#[0-9A-F]{6}$/i.test(X)?X:void 0)??h),[E,w]=g.useState(()=>Af(`${f}Recent`)),[T,S]=g.useState(""),z=x||!y(n),L=X=>{p(n,{color:X}).finally(Ie)},K=X=>{const re=X.toUpperCase();C(re),Ji("sheet",f,re),w(Qx(`${f}Recent`,re,PH)),L(re)};return s.jsxs("span",{className:"sheet-split","data-primary":"true",children:[s.jsx(tt,{icon:r,label:u,size:"icon",swatch:b,primary:!0,disabled:z,onClick:()=>L(b),"data-testid":`${v}-apply`,"data-color":b}),s.jsxs(Un,{trigger:({toggle:X,open:re})=>s.jsx("button",{type:"button",className:"kui-ribbon-button sheet-split-arrow","data-primary":"true","aria-label":`${u} — ${m("colorMenu")}`,"aria-expanded":re,"aria-pressed":re,disabled:z,onClick:X,"data-testid":v,children:s.jsx(Ka,{size:11,"aria-hidden":"true"})}),children:[s.jsxs("button",{type:"button",className:"kui-menu-item",role:"menuitem",onClick:()=>void p(n,{color:i}).finally(Ie),"data-testid":`${v}-none`,children:[s.jsx("span",{style:{width:15}}),s.jsx("span",{children:o})]}),s.jsx(pn,{onPick:K,testId:`${v}-colors`}),E.length?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sheet-font-heading",children:m("colorRecent")}),s.jsx(pn,{colors:E,onPick:K,testId:`${v}-recent`})]}):null,s.jsx("div",{className:"sheet-font-heading",children:m("colorMore")}),s.jsxs("div",{className:"sheet-color-more",children:[s.jsx("input",{type:"color","aria-label":m("colorMore"),value:/^#[0-9A-F]{6}$/i.test(T)?T:b,onChange:X=>S(X.target.value.toUpperCase()),"data-testid":`${v}-picker`}),s.jsx("input",{className:"kui-ribbon-field",style:{width:84},value:T,placeholder:"#3C5593","aria-label":m("colorHex"),onChange:X=>S(X.target.value),onKeyDown:X=>{var re,ae;X.key!=="Escape"&&X.stopPropagation(),X.key==="Enter"&&(X.preventDefault(),(ae=(re=X.currentTarget.parentElement)==null?void 0:re.querySelector("button"))==null||ae.click())},"data-testid":`${v}-hex`}),s.jsx("button",{type:"button",className:"kui-ribbon-button",onClick:()=>{const X=T.trim().startsWith("#")?T.trim():`#${T.trim()}`;if(!/^#[0-9A-F]{6}$/i.test(X)){Xt("error",m("colorBad"));return}S(""),K(X)},"data-testid":`${v}-hex-ok`,children:m("colorApply")})]})]})]})}const Ug=1e3,Ig=100;function dc({before:n,after:i,initial:o,max:r,disabled:u,onRun:f,testId:h}){const[v,p]=g.useState(String(Math.max(1,Math.min(o,r)))),y=g.useRef(null),m=Number(v),x=!u&&Number.isInteger(m)&&m>=1,b=()=>{var C;x&&(f(m),(C=y.current)==null||C.click())};return s.jsxs("div",{className:"kui-menu-item sheet-count-item",role:"menuitem",tabIndex:-1,"aria-disabled":u||void 0,"data-disabled":u||void 0,onClick:C=>{C.target.closest("input, button")||b()},onKeyDown:C=>{C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),C.stopPropagation(),b())},"data-testid":h,children:[s.jsx("span",{style:{width:15}}),s.jsx("span",{children:n}),s.jsx("input",{className:"sheet-count-field",inputMode:"numeric",value:v,disabled:u,"aria-label":`${n} ${i}`,onChange:C=>{const E=C.target.value;/^\d*$/.test(E)&&p(E===""?"":String(Math.min(Number(E),r)))},onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),b()),C.key!=="Escape"&&C.stopPropagation()},"data-testid":`${h}-count`}),s.jsx("span",{children:i}),s.jsx("button",{ref:y,type:"button",tabIndex:-1,"aria-hidden":"true",style:{display:"none"}})]})}function lu(n){const{run:i,enabled:o,t:r}=ze(),u=gn(),{lines:f}=n,h=f.wholeRows&&f.wholeCols,v=u||n.editing,p=(y,m)=>{i(y,m).finally(Ie)};return{t:r,lines:f,rowsOff:v||h||!o("home.insertRows"),colsOff:v||h||!o("home.insertColumns"),deleteRowsOff:v||h||!o("home.deleteRows"),deleteColsOff:v||h||!o("home.deleteColumns"),cellsOff:v||h||!o("home.insertCells"),deleteCellsOff:v||h||!o("home.deleteCells"),sheetOff:u||n.editing||!o("home.insertSheet"),insertRows:(y,m)=>p("home.insertRows",m?{count:y,below:m}:{count:y}),insertColumns:(y,m)=>p("home.insertColumns",m?{count:y,right:m}:{count:y}),deleteRows:()=>p("home.deleteRows",{}),deleteColumns:()=>p("home.deleteColumns",{}),insertCells:y=>p("home.insertCells",{shift:y}),deleteCells:y=>p("home.deleteCells",{shift:y}),insertSheet:()=>p("home.insertSheet",{})}}function G0({info:n,testId:i,rows:o=!0,cols:r=!0}){const u=lu(n),{t:f}=u;return s.jsxs(s.Fragment,{children:[o?s.jsxs(s.Fragment,{children:[s.jsx(dc,{before:f("insertAbove"),after:f("insertAboveAfter"),initial:u.lines.rows,max:Ug,disabled:u.rowsOff,onRun:h=>u.insertRows(h,!1),testId:`${i}-rows-above`},`a${u.lines.rows}`),s.jsx(dc,{before:f("insertBelow"),after:f("insertBelowAfter"),initial:u.lines.rows,max:Ug,disabled:u.rowsOff,onRun:h=>u.insertRows(h,!0),testId:`${i}-rows-below`},`b${u.lines.rows}`)]}):null,r?s.jsxs(s.Fragment,{children:[s.jsx(dc,{before:f("insertLeft"),after:f("insertLeftAfter"),initial:u.lines.cols,max:Ig,disabled:u.colsOff,onRun:h=>u.insertColumns(h,!1),testId:`${i}-cols-left`},`l${u.lines.cols}`),s.jsx(dc,{before:f("insertRight"),after:f("insertRightAfter"),initial:u.lines.cols,max:Ig,disabled:u.colsOff,onRun:h=>u.insertColumns(h,!0),testId:`${i}-cols-right`},`r${u.lines.cols}`)]}):null]})}function eB({info:n,testId:i}){const o=lu(n);return s.jsxs(s.Fragment,{children:[s.jsx(G0,{info:n,testId:i}),s.jsx(we,{label:o.t("insertCellsRight"),disabled:o.cellsOff,onSelect:()=>o.insertCells("right"),testId:`${i}-cells-right`}),s.jsx(we,{label:o.t("insertCellsDown"),disabled:o.cellsOff,onSelect:()=>o.insertCells("down"),testId:`${i}-cells-down`}),s.jsx(we,{label:o.t("insertSheetItem"),disabled:o.sheetOff,onSelect:o.insertSheet,testId:`${i}-sheet`})]})}function Jx({info:n,testId:i,sheet:o=!1}){const r=lu(n);return s.jsxs(s.Fragment,{children:[s.jsx(we,{label:r.t("deleteCellsLeft"),disabled:r.deleteCellsOff,onSelect:()=>r.deleteCells("left"),testId:`${i}-cells-left`}),s.jsx(we,{label:r.t("deleteCellsUp"),disabled:r.deleteCellsOff,onSelect:()=>r.deleteCells("up"),testId:`${i}-cells-up`}),s.jsx(we,{label:r.t("deleteRowsItem"),disabled:r.deleteRowsOff,onSelect:r.deleteRows,testId:`${i}-rows`}),s.jsx(we,{label:r.t("deleteColsItem"),disabled:r.deleteColsOff,onSelect:r.deleteColumns,testId:`${i}-cols`}),o?s.jsx(Le,{command:"home.deleteSheet",label:r.t("deleteSheetItem")}):null]})}let P0=()=>{};const tB=n=>P0(n);function aB({info:n,onClipboard:i}){const{t:o,enabled:r,run:u,ask:f}=ze(),[h,v]=g.useState(null);g.useEffect(()=>(P0=v,()=>{P0=()=>{}}),[]),g.useEffect(()=>{if(!h)return;const E=()=>v(null);return window.addEventListener("blur",E),()=>window.removeEventListener("blur",E)},[h]);const p=lu(n),y=()=>{v(null),Ie()},m=s.jsxs(s.Fragment,{children:[s.jsx(we,{label:o("menuCut"),disabled:!r("edit.cut"),onSelect:()=>i("cut"),testId:"sheet-grid-menu-cut"}),s.jsx(we,{label:o("menuCopy"),disabled:!r("edit.copy"),onSelect:()=>i("copy"),testId:"sheet-grid-menu-copy"}),s.jsx(we,{label:o("menuPaste"),disabled:!r("edit.paste"),onSelect:()=>i("paste"),testId:"sheet-grid-menu-paste"}),(h==null?void 0:h.target)==="cell"||(h==null?void 0:h.target)==="all"?s.jsx(we,{label:o("pasteSpecialItem"),disabled:!r("edit.pasteSpecial"),onSelect:()=>f("edit.pasteSpecial"),testId:"sheet-grid-menu-paste-special"}):null,s.jsx(St,{})]}),x=(h==null?void 0:h.target)==="rows",b=(E,w={})=>void u(E,w).finally(Ie),C=()=>{var w;(((w=n.stats)==null?void 0:w.count)??0)>1?jf({title:o("mergeTitle"),message:o("mergeConfirm"),testId:"sheet-merge-confirm",onOk:()=>b("home.mergeCells")}):b("home.mergeCells")};return s.jsxs(g0,{at:(h==null?void 0:h.at)??null,onClose:y,label:o("gridMenu"),testId:"sheet-grid-menu",children:[(h==null?void 0:h.target)==="cell"||(h==null?void 0:h.target)==="all"?s.jsxs(s.Fragment,{children:[m,s.jsx(bl,{label:o("deleteMenu"),path:"Grid/Delete",testId:"sheet-grid-menu-delete",children:s.jsx(Jx,{info:n,testId:"sheet-grid-delete"})}),s.jsxs(bl,{label:o("insertMenu"),path:"Grid/Insert",testId:"sheet-grid-menu-insert",children:[s.jsx(we,{label:o("insertCellsRight"),disabled:p.cellsOff,onSelect:()=>p.insertCells("right"),testId:"sheet-grid-insert-cells-right"}),s.jsx(we,{label:o("insertCellsDown"),disabled:p.cellsOff,onSelect:()=>p.insertCells("down"),testId:"sheet-grid-insert-cells-down"}),s.jsx(G0,{info:n,testId:"sheet-grid-insert"}),s.jsx(St,{}),s.jsx(we,{label:o("insertSheetItem"),disabled:p.sheetOff,onSelect:p.insertSheet,testId:"sheet-grid-insert-sheet"})]}),s.jsx(St,{}),s.jsxs(bl,{label:o("clearMenu"),path:"Grid/Clear",testId:"sheet-grid-menu-clear",children:[s.jsx(we,{label:o("clearAllItem"),disabled:!r("edit.clearAll"),onSelect:()=>b("edit.clearAll"),testId:"sheet-grid-clear-all"}),s.jsx(we,{label:o("clearFormatsItem"),disabled:!r("edit.clearFormats"),onSelect:()=>b("edit.clearFormats"),testId:"sheet-grid-clear-formats"}),s.jsx(we,{label:o("clearContentsItem"),disabled:!r("edit.clearContents"),onSelect:()=>b("edit.clearContents"),testId:"sheet-grid-clear-contents"}),s.jsx(we,{label:o("clearCommentsItem"),disabled:!r("edit.clearComments"),onSelect:()=>b("edit.clearComments"),testId:"sheet-grid-clear-comments"}),s.jsx(we,{label:o("clearLinksItem"),disabled:!r("edit.clearHyperlinks"),onSelect:()=>b("edit.clearHyperlinks"),testId:"sheet-grid-clear-links"})]}),s.jsxs(bl,{label:o("sortMenu"),path:"Grid/Sort",testId:"sheet-grid-menu-sort",children:[s.jsx(we,{label:o("sortAscendingItem"),disabled:!r("data.sortAscending"),onSelect:()=>b("data.sortAscending"),testId:"sheet-grid-sort-ascending"}),s.jsx(we,{label:o("sortDescendingItem"),disabled:!r("data.sortDescending"),onSelect:()=>b("data.sortDescending"),testId:"sheet-grid-sort-descending"})]}),s.jsx(we,{label:o("mergeCellsItem"),disabled:!r("home.mergeCells"),onSelect:C,testId:"sheet-grid-menu-merge"}),s.jsx(we,{label:o("unmergeCellsItem"),disabled:!r("home.unmergeCells"),onSelect:()=>b("home.unmergeCells"),testId:"sheet-grid-menu-unmerge"}),s.jsx(St,{}),s.jsx(we,{label:o("insertNoteItem"),disabled:!r("review.newNote"),onSelect:()=>f("review.newNote"),testId:"sheet-grid-menu-note"}),s.jsx(we,{label:o("linkItem"),disabled:n.checkbox||!r("insert.link"),onSelect:()=>b("insert.link"),testId:"sheet-grid-menu-link"}),s.jsx(Le,{command:"home.formatCells",label:o("formatCellsItem")})]}):null,(h==null?void 0:h.target)==="rows"||(h==null?void 0:h.target)==="cols"?s.jsxs(s.Fragment,{children:[m,s.jsx(we,{label:o("deleteMenu"),disabled:x?p.deleteRowsOff:p.deleteColsOff,onSelect:x?p.deleteRows:p.deleteColumns,testId:"sheet-grid-menu-delete"}),s.jsx(Le,{command:x?"home.hideRows":"home.hideColumns",label:o("hideLines")}),s.jsx(Le,{command:x?"home.unhideRows":"home.unhideColumns",label:o("unhideLines")}),s.jsx(G0,{info:n,testId:"sheet-grid-insert",rows:x,cols:!x}),s.jsx(Le,{command:x?"home.rowHeight":"home.columnWidth",ask:!0,label:o(x?"rowHeightItem":"columnWidthItem")}),s.jsx(St,{}),s.jsx(Le,{command:"edit.clearContents",label:o("clearContents")}),s.jsx(Le,{command:"home.formatCells",label:o("formatCellsItem")})]}):null]})}function eS({info:n,size:i="large"}){const{enabled:o,t:r}=ze(),u=gn();return s.jsx(et,{icon:n3,label:r("freezePanes"),size:i,disabled:u||!o("view.freezeTopRow"),testId:"sheet-freeze",primary:!0,children:s.jsx(nB,{info:n})})}function nB({info:n}){const{run:i,t:o}=ze(),{row:r,colIndex:u}=R0(n.active),f=r-1,h=u-1,v=n.freeze[0]>0||n.freeze[1]>0,p=g.useRef(null),y=(E,w)=>{const T=E||w?`${E},${w}`:null;T!==p.current&&(p.current=T,i("editor.freezePreview",T?{rows:E,cols:w}:{}))},m=g.useRef(i);m.current=i,g.useEffect(()=>()=>{p.current&&m.current("editor.freezePreview",{})},[]);const x=(E,w={})=>{p.current=null,i(E,w).finally(Ie)},b=(E,w,T,S,z,L)=>s.jsx("div",{onPointerEnter:()=>y(w,T),onPointerLeave:()=>p.current!=null&&y(0,0),onFocus:()=>y(w,T),children:s.jsx(we,{label:E,onSelect:()=>x(S,z),testId:L})},L),C=n.active;return s.jsxs(s.Fragment,{children:[v?s.jsxs(s.Fragment,{children:[s.jsx(we,{label:o("unfreezePanes"),onSelect:()=>x("view.unfreezePanes"),testId:"sheet-freeze-off"}),s.jsx(St,{})]}):null,f>0&&h>0?b(o("freezeAt",{row:f,col:D0(h)}),f,h,"view.freezePanes",{cell:C},"sheet-freeze-at"):null,f>0?b(o("freezeRowsAt",{row:f}),f,0,"view.freezeRows",{cell:C},"sheet-freeze-rows"):null,h>0?b(o("freezeColsAt",{col:D0(h)}),0,h,"view.freezeColumns",{cell:C},"sheet-freeze-cols"):null,b(o("freezeTopRow"),1,0,"view.freezeTopRow",{},"sheet-freeze-top-row"),b(o("freezeFirstColumn"),0,1,"view.freezeFirstColumn",{},"sheet-freeze-first-column")]})}function lB({info:n,testId:i}){const{run:o,t:r}=ze();return s.jsx("div",{className:"sheet-focus-palette",role:"group","aria-label":r("focusCellColors"),"data-testid":i,children:Fx.map((u,f)=>{const h=u.toUpperCase()===n.focusColor.toUpperCase();return s.jsx("button",{type:"button",className:"sheet-focus-swatch",style:{background:u},"aria-pressed":h,"data-selected":h||void 0,"aria-label":r("focusCellColor",{index:f+1}),title:u,onClick:()=>void o("view.focusCell",{color:u}).finally(Ie),"data-testid":`${i}-${f}`},u)})})}function tS({info:n,place:i}){const{run:o,t:r}=ze(),u=i==="ribbon",f=u?"sheet-focus":"sheet-status-focus",h=()=>void o("view.focusCell",{on:!n.focusCell}).finally(Ie);return s.jsxs("span",{className:u?"sheet-focus-split":"sheet-focus-status","data-on":n.focusCell||void 0,children:[u?s.jsx(tt,{icon:Sc,label:r("focusCell"),size:"large",pressed:n.focusCell,onClick:h,"data-testid":f,primary:!0}):s.jsx("button",{type:"button",className:"sheet-focus-icon","aria-pressed":n.focusCell,"aria-label":r("focusCell"),title:r("focusCell"),onClick:h,"data-testid":f,children:s.jsx(Sc,{size:14,"aria-hidden":"true"})}),s.jsx(Un,{placement:u?"below":"auto",trigger:({open:v,toggle:p})=>s.jsx("button",{type:"button",className:"sheet-focus-arrow","aria-expanded":v,"aria-label":r("focusCellColors"),title:r("focusCellColors"),onClick:p,"data-testid":`${f}-arrow`,"data-open":v||void 0,children:v?s.jsx(TM,{size:11,"aria-hidden":"true"}):s.jsx(Ka,{size:11,"aria-hidden":"true"})}),children:s.jsx(lB,{info:n,testId:`${f}-colors`})})]})}function iB({info:n}){const{run:i,enabled:o,t:r}=ze(),u=gn();return s.jsxs(et,{icon:fs,label:r("gridlineColor"),swatch:n.gridColor??void 0,disabled:u||!o("view.gridlineColor"),testId:"sheet-gridline-color",children:[s.jsx(we,{label:r("gridlineAuto"),checked:n.gridColor==null,onSelect:()=>void i("view.gridlineColor",{color:"auto"}).finally(Ie),testId:"sheet-gridline-color-auto"}),s.jsx(pn,{colors:ZL,onPick:f=>void i("view.gridlineColor",{color:f}).finally(Ie),testId:"sheet-gridline-colors"})]})}const rB=[["Bottom Border","bottom"],["Top Border","top"],["Left Border","left"],["Right Border","right"],["No Border","none"],["All Borders","all"],["Outside Borders","outside"],["Thick Outside Borders","thickOutside"],["Bottom Double Border","doubleBottom"],["Thick Bottom Border","thickBottom"],["Top and Bottom Border","topBottom"]],sB=["Normal","Good","Bad","Neutral","Title","Heading 1","Heading 2","Total","Accent1"];function oB({info:n,onClipboard:i}){const{run:o,enabled:r,phrase:u,t:f,testId:h}=ze(),{font:v={},align:p={}}=n.style,y=JH(),m=n.style.num_fmt&&!a0.includes(n.style.num_fmt)?[...a0,n.style.num_fmt]:a0;return s.jsxs(s.Fragment,{children:[s.jsxs(nt,{label:u("Clipboard"),icon:xc,children:[s.jsx(XH,{info:n}),s.jsxs(et,{icon:xc,label:u("Paste"),size:"large",testId:`${h}-paste`,primary:!0,children:[s.jsx(we,{label:u("Paste"),disabled:!r("edit.paste"),onSelect:()=>i("paste"),testId:`${h}-paste-text`}),s.jsx(Le,{command:"edit.pasteSpecial",label:u("Paste Special")})]}),s.jsxs(Ft,{children:[s.jsx(tt,{icon:qc,label:u("Cut"),disabled:!r("edit.cut"),onClick:()=>i("cut"),"data-testid":`${h}-cut`}),s.jsx(tt,{icon:_c,label:u("Copy"),disabled:!r("edit.copy"),onClick:()=>i("copy"),"data-testid":`${h}-copy`})]})]}),s.jsx(nt,{label:u("Font"),icon:hp,children:s.jsxs(Ft,{children:[s.jsxs(Xl,{children:[s.jsx(er,{primary:!0,children:s.jsx(ZH,{info:n})}),s.jsx(er,{primary:!0,children:s.jsx(QH,{info:n})}),s.jsx(Et,{command:"home.increaseFontSize",icon:hT,size:"icon",label:u("Increase Font Size"),title:u("Increase Font Size")}),s.jsx(Et,{command:"home.decreaseFontSize",icon:fT,size:"icon",label:u("Decrease Font Size"),title:u("Decrease Font Size")})]}),s.jsxs(Xl,{children:[s.jsx(Et,{command:"home.bold",primary:!0,icon:CM,size:"icon",pressed:v.bold,label:u("Bold"),title:f("boldTip",{key:y})}),s.jsx(Et,{command:"home.italic",primary:!0,icon:lf,size:"icon",pressed:v.italic,label:u("Italic"),title:f("italicTip",{key:y})}),s.jsx(Et,{command:"home.underline",primary:!0,icon:df,size:"icon",pressed:v.underline!=null&&v.underline!=="None",label:u("Underline"),title:f("underlineTip",{key:y})}),s.jsx(Et,{command:"home.strikethrough",icon:i3,size:"icon",pressed:v.strike,label:u("Strikethrough"),title:f("strikeTip",{key:y})}),s.jsx(et,{icon:tf,label:u("Borders"),size:"icon",testId:"sheet-borders",children:rB.map(([x,b])=>s.jsx(Le,{command:"home.borders",params:{preset:b},label:u(x)},b))}),s.jsx(Fg,{primary:!0,command:"home.fillColor",none:"none",noneLabel:f("colorNoFill"),icon:ms,label:u("Fill Color"),store:"fillColor",initial:"#FFFF00",testId:"sheet-fill"}),s.jsx(Fg,{primary:!0,command:"home.fontColor",none:"auto",noneLabel:f("colorAutomatic"),icon:hp,label:u("Font Color"),store:"fontColor",initial:"#FF0000",testId:"sheet-font-color"})]})]})}),s.jsx(nt,{label:u("Alignment"),icon:Ep,children:s.jsxs(Ft,{children:[s.jsxs(Xl,{children:[s.jsx(Et,{command:"home.alignTop",icon:yT,size:"icon",pressed:p.v==="Top",label:u("Top Align"),title:u("Top Align")}),s.jsx(Et,{command:"home.alignMiddle",icon:pT,size:"icon",pressed:p.v==="Center",label:u("Middle Align"),title:u("Middle Align")}),s.jsx(Et,{command:"home.alignBottom",icon:gT,size:"icon",pressed:p.v==="Bottom",label:u("Bottom Align"),title:u("Bottom Align")}),s.jsxs(et,{icon:JM,label:u("Orientation"),size:"icon",children:[s.jsx(Le,{command:"home.orientation",params:{angle:"counterclockwise"},label:u("Angle Counterclockwise")}),s.jsx(Le,{command:"home.orientation",params:{angle:"clockwise"},label:u("Angle Clockwise")}),s.jsx(Le,{command:"home.orientation",params:{angle:"vertical"},label:u("Vertical Text")}),s.jsx(Le,{command:"home.orientation",params:{angle:"up"},label:u("Rotate Text Up")}),s.jsx(Le,{command:"home.orientation",params:{angle:"down"},label:u("Rotate Text Down")})]}),s.jsx(Et,{command:"home.wrapText",icon:fA,pressed:p.wrap,label:u("Wrap Text")})]}),s.jsxs(Xl,{children:[s.jsx(Et,{command:"home.alignLeft",icon:Ep,size:"icon",pressed:p.h==="Left",label:u("Align Left"),title:u("Align Left")}),s.jsx(Et,{command:"home.alignCenter",primary:!0,icon:sA,size:"icon",pressed:p.h==="Center",label:u("Center"),title:u("Center")}),s.jsx(Et,{command:"home.alignRight",icon:oA,size:"icon",pressed:p.h==="Right",label:u("Align Right"),title:u("Align Right")}),s.jsx(Et,{command:"home.decreaseIndent",icon:mk,size:"icon",label:u("Decrease Indent"),title:u("Decrease Indent")}),s.jsx(Et,{command:"home.increaseIndent",icon:vk,size:"icon",label:u("Increase Indent"),title:u("Increase Indent")}),s.jsxs(et,{icon:iA,label:u("Merge & Center"),testId:"sheet-merge",primary:!0,children:[s.jsx(Le,{command:"home.mergeCenter",label:u("Merge & Center")}),s.jsx(Le,{command:"home.mergeAcross",label:u("Merge Across")}),s.jsx(Le,{command:"home.mergeCells",label:u("Merge Cells")}),s.jsx(Le,{command:"home.unmergeCells",label:u("Unmerge Cells")})]})]})]})}),s.jsx(nt,{label:u("Number"),icon:gp,children:s.jsxs(Ft,{children:[s.jsx(Xl,{children:s.jsx(er,{primary:!0,children:s.jsx("select",{className:"kui-ribbon-field",style:{width:104},value:n.style.num_fmt??"General","aria-label":u("Number Format"),onChange:x=>void o("home.numberFormat",{format:x.target.value}),"data-testid":"sheet-number-format",children:m.map(x=>s.jsx("option",{value:x,children:u(x)},x))})})}),s.jsxs(Xl,{children:[s.jsx(Et,{command:"home.accounting",icon:gp,size:"icon",label:u("Accounting Number Format"),title:u("Accounting Number Format")}),s.jsx(Et,{command:"home.percent",icon:Lk,size:"icon",label:u("Percent Style"),title:u("Percent Style")}),s.jsx(Et,{command:"home.comma",icon:zc,size:"icon",label:u("Comma Style"),title:u("Comma Style")}),s.jsx(Et,{command:"home.increaseDecimal",icon:PT,size:"icon",label:u("Increase Decimal"),title:u("Increase Decimal")}),s.jsx(Et,{command:"home.decreaseDecimal",icon:GT,size:"icon",label:u("Decrease Decimal"),title:u("Decrease Decimal")})]})]})}),s.jsxs(nt,{label:u("Styles"),icon:nr,children:[s.jsxs(et,{icon:nr,label:u("Conditional Formatting"),size:"large",testId:"sheet-cf",children:[s.jsx(Le,{command:"home.conditionalFormat",params:{rule:{type:"dataBar"}},label:u("Data Bars")}),s.jsx(Le,{command:"home.conditionalFormat",params:{rule:{type:"colorScale"}},label:u("Color Scales")}),s.jsx(Le,{command:"home.conditionalFormat",params:{rule:{type:"iconSet"}},label:u("Icon Sets")}),s.jsx(St,{}),s.jsx(Le,{command:"home.clearRules",label:u("Clear Rules")}),s.jsx(Le,{command:"home.manageRules",label:u("Manage Rules")})]}),s.jsx(qH,{info:n}),s.jsx(et,{icon:Pc,label:u("Cell Styles"),size:"large",children:sB.map(x=>s.jsx(Le,{command:"home.cellStyle",params:{name:x},label:u(x)},x))})]}),s.jsxs(nt,{label:u("Cells"),icon:zc,children:[s.jsx(et,{icon:Jk,label:u("Insert"),size:"large",testId:"sheet-insert-menu",children:s.jsx(eB,{info:n,testId:"sheet-insert"})}),s.jsx(et,{icon:Qk,label:u("Delete"),size:"large",testId:"sheet-delete-menu",children:s.jsx(Jx,{info:n,testId:"sheet-delete",sheet:!0})}),s.jsxs(et,{icon:eA,label:u("Format"),size:"large",testId:"sheet-format-menu",children:[s.jsx(Le,{command:"home.rowHeight",ask:!0,label:u("Row Height")}),s.jsx(Le,{command:"home.autofitRowHeight",label:u("AutoFit Row Height")}),s.jsx(Le,{command:"home.columnWidth",ask:!0,label:u("Column Width")}),s.jsx(Le,{command:"home.autofitColumnWidth",label:u("AutoFit Column Width")}),s.jsx(St,{}),s.jsx(Le,{command:"sheet.hide",label:u("Hide Sheet")}),s.jsx(we,{label:u("Unhide Sheet…"),disabled:!n.tabs.some(x=>x.hidden),onSelect:Gx,testId:"sheet-format-unhide"}),s.jsx(St,{}),s.jsx(Le,{command:"home.formatCells",label:u("Format Cells")})]})]}),s.jsxs(nt,{label:u("Editing"),icon:jc,children:[s.jsxs(Ft,{children:[s.jsxs(et,{icon:a3,label:u("AutoSum"),testId:"sheet-autosum",primary:!0,children:[s.jsx(Le,{command:"formulas.autoSum",params:{function:"SUM"},label:u("Sum")}),s.jsx(Le,{command:"formulas.autoSum",params:{function:"AVERAGE"},label:u("Average")}),s.jsx(Le,{command:"formulas.autoSum",params:{function:"COUNT"},label:u("Count Numbers")}),s.jsx(Le,{command:"formulas.autoSum",params:{function:"MAX"},label:u("Max")}),s.jsx(Le,{command:"formulas.autoSum",params:{function:"MIN"},label:u("Min")})]}),s.jsxs(et,{icon:SM,label:u("Fill"),children:[s.jsx(Le,{command:"edit.fillDown",label:u("Down")}),s.jsx(Le,{command:"edit.fillRight",label:u("Right")}),s.jsx(Le,{command:"edit.fillUp",label:u("Up")}),s.jsx(Le,{command:"edit.fillLeft",label:u("Left")}),s.jsx(Le,{command:"edit.fillSeries",ask:!0,label:u("Series")}),s.jsx(Le,{command:"edit.smartFill",label:u("Smart fill")})]}),s.jsxs(et,{icon:Fc,label:u("Clear"),children:[s.jsx(Le,{command:"edit.clearAll",label:u("Clear All")}),s.jsx(Le,{command:"edit.clearFormats",label:u("Clear Formats")}),s.jsx(Le,{command:"edit.clearContents",label:u("Clear Contents")}),s.jsx(Le,{command:"edit.clearComments",label:u("Clear Comments")}),s.jsx(Le,{command:"edit.clearHyperlinks",label:u("Clear Hyperlinks")})]})]}),s.jsxs(Ft,{children:[s.jsxs(et,{icon:bT,label:u("Sort & Filter"),testId:"sheet-sort",primary:!0,children:[s.jsx(Le,{command:"data.sortAscending",label:u("Sort A to Z")}),s.jsx(Le,{command:"data.sortDescending",label:u("Sort Z to A")}),s.jsx(Le,{command:"data.sort",ask:!0,label:u("Custom Sort")}),s.jsx(St,{}),s.jsx(Le,{command:"data.filter",label:u("Filter")}),s.jsx(Le,{command:"data.clearFilter",label:u("Clear")}),s.jsx(Le,{command:"data.reapply",label:u("Reapply")})]}),s.jsx(eS,{info:n,size:"small"}),s.jsxs(et,{icon:jc,label:u("Find & Select"),children:[s.jsx(Le,{command:"edit.find",ask:!0,label:u("Find")}),s.jsx(Le,{command:"edit.replace",ask:!0,label:u("Replace")}),s.jsx(Le,{command:"edit.goTo",ask:!0,label:u("Go To")}),s.jsx(Le,{command:"edit.goToSpecial",ask:!0,label:u("Go To Special")})]})]})]})]})}const cB=["view.freezePanes","view.freezeRows","view.freezeColumns","view.freezeTopRow","view.freezeFirstColumn","view.unfreezePanes"];function uB({info:n,formulaBar:i,onFormulaBar:o}){const{run:r,enabled:u,t:f}=ze();return s.jsxs(s.Fragment,{children:[s.jsxs(nt,{id:"sheet:show",label:f("showGroup"),icon:Uc,children:[s.jsxs(Ft,{children:[s.jsx(er,{primary:!0,children:s.jsx("span",{className:"sheet-show-option",children:s.jsx(ar,{label:f("showGridlines"),checked:n.gridlines,disabled:!u("view.gridlines"),onChange:h=>void r("view.gridlines",{on:h}),testId:"sheet-show-gridlines"})})}),s.jsx(er,{primary:!0,children:s.jsx("span",{className:"sheet-show-option",children:s.jsx(ar,{label:f("showFormulaBar"),checked:i,onChange:o,testId:"sheet-show-formula-bar"})})}),s.jsx(er,{children:s.jsx("span",{className:"sheet-show-option",children:s.jsx(ar,{label:f("showHeadings"),checked:n.headings,disabled:!u("view.headings"),onChange:h=>void r("view.headings",{on:h}),testId:"sheet-show-headings"})})})]}),s.jsx(iB,{info:n})]}),s.jsx(nt,{id:"sheet:focus",label:f("focusCell"),icon:Sc,children:s.jsx(tS,{info:n,place:"ribbon"})}),s.jsx(nt,{id:"sheet:freeze",label:f("freezePanes"),icon:n3,children:s.jsx(eS,{info:n})}),s.jsx(Ga,{menu:"View",omit:["Show"],exclude:cB,primary:Hn.View})]})}function dB(n,i){return n==="pdf"?{format:n,sheets:"all"}:n==="xlsx"||n==="xltx"||!i?{format:n}:{format:n,sheet:i}}function fB(n,i,o,r=null,u=null){const f=n.includes("/")?n.slice(0,n.lastIndexOf("/")+1):"",h=i||n.slice(n.lastIndexOf("/")+1),v=K0(u??h.replace(/\.[^.]+$/,""))||"Book",p=r?K0(r):"";return`${f}${p?`${v} - ${p}`:v}.${o}`}const aS=80;function K0(n){return[...n.replace(/[\\/:*?"<>|]/g,"_").trim()].slice(0,aS).join("").trim()}function hB(n){const i=atob(n),o=new Uint8Array(i.length);for(let r=0;r<i.length;r+=1)o[r]=i.charCodeAt(r);return o}function mB(n,i){const o=JSON.parse(n);if(!o||typeof o.data!="string"||o.extension!==i)throw new Error(`the engine answered no ${i.toUpperCase()} file`);return o}async function vB(n,i,o,r,u,f=null,h={}){const v=mB(await n("file.export",{...dB(o,r),...h}),o),{path:p,name:y}=i.init.document,m=(o==="csv"||o==="html"||o==="png")&&u.length>1?r:null;return i.exportFile(fB(p,y,v.extension,m,f),hB(v.data))}function pB({sheet:n,sheets:i}){const{phrase:o,t:r,host:u,session:f}=ze(),[h,v]=g.useState(!1),[p,y]=g.useState(!1);if(!u.permissions.export)return null;const m=async(C,E=null,w={})=>{const T=f.doc;if(!(!T||h)){v(!0);try{const S=await vB((z,L)=>T.execute(z,L),u,C,n,i,E,w);Xt("success",r(C==="xltx"?"templateSaved":"exported"),S)}catch(S){Xt("error",r(C==="xltx"?"templateFailed":"exportFailed"),o(S instanceof Error?S.message:String(S)))}finally{v(!1)}}},x=h||!f.doc,b=u.init.document.name||u.init.document.path.slice(u.init.document.path.lastIndexOf("/")+1);return s.jsxs(s.Fragment,{children:[s.jsxs(nt,{label:o("Export"),icon:f0,children:[s.jsx(tt,{icon:f0,size:"large",label:o("Export as PDF"),disabled:x,onClick:()=>void m("pdf"),"data-testid":"sheet-export-pdf",primary:!0}),s.jsx(tt,{icon:sk,size:"large",label:o("Export as Picture"),disabled:x,onClick:()=>void m("png"),"data-testid":"sheet-export-png",primary:!0}),s.jsx(tt,{icon:Gc,size:"large",label:o("Export as Excel Workbook"),disabled:x,onClick:()=>void m("xlsx"),"data-testid":"sheet-export-xlsx",primary:!0}),s.jsx(tt,{icon:yp,size:"large",label:o("Export as CSV"),disabled:x,onClick:()=>void m("csv"),"data-testid":"sheet-export-csv",primary:!0}),s.jsx(tt,{icon:yp,size:"large",label:o("Export as CSV UTF-8"),disabled:x,onClick:()=>void m("csv",null,{bom:!0}),"data-testid":"sheet-export-csv-bom",primary:!0}),s.jsx(tt,{icon:ik,size:"large",label:o("Export as Web Page"),disabled:x,onClick:()=>void m("html"),"data-testid":"sheet-export-html",primary:!0})]}),s.jsx(nt,{label:o("Template"),icon:m0,children:s.jsx(tt,{icon:m0,size:"large",label:o("Save as Template"),disabled:x,onClick:()=>y(!0),"data-testid":"sheet-save-template",primary:!0})}),p?s.jsx(gB,{initial:b.replace(/\.[^.]+$/,""),onCancel:()=>y(!1),onSave:C=>{y(!1),m("xltx",C)}}):null]})}function gB({initial:n,onCancel:i,onSave:o}){const{t:r}=ze(),[u,f]=g.useState(n),h=g.useRef(null);g.useEffect(()=>{var y,m;(y=h.current)==null||y.focus(),(m=h.current)==null||m.select()},[]);const v=K0(u),p=()=>{v&&o(v)};return s.jsx(da,{open:!0,onOpenChange:y=>y?void 0:i(),children:s.jsxs(fa,{size:"sm",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:y=>{y.preventDefault(),Ie()},"data-testid":"sheet-template-dialog",children:[s.jsx(ma,{children:s.jsx(pa,{children:r("templateTitle")})}),s.jsxs(ha,{children:[s.jsxs("label",{className:"sheet-template-field",children:[s.jsx("span",{children:r("templateName")}),s.jsx("input",{ref:h,value:u,maxLength:aS+20,onChange:y=>f(y.target.value),onKeyDown:y=>{y.key==="Enter"&&(y.preventDefault(),p())},"data-testid":"sheet-template-name"})]}),v?null:s.jsx("p",{className:"sheet-template-hint",role:"alert","data-testid":"sheet-template-required",children:r("templateNameRequired")})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!v,onClick:p,"data-testid":"sheet-template-ok",children:r("ok")}),s.jsx(De,{variant:"secondary",onClick:i,"data-testid":"sheet-template-cancel",children:r("cancel")})]})]})})}function yB(){let n=null;const i=new Set;return{get:()=>n,set:o=>{n=o;for(const r of i)r()},subscribe:o=>(i.add(o),()=>i.delete(o))}}function bB(n,i,o,r,u){const{marks:f,creates:h}=JL(n),[v,p]=g.useState([]),[y,m]=g.useState([]),x=g.useRef(i);x.current=i;const b=g.useCallback((S,z)=>{const L=x.current;return L?L.execute(S,z):Promise.reject(new Error("no workbook is open"))},[]);g.useEffect(()=>f?n.onComments(p):void 0,[n,f]),g.useEffect(()=>{f&&n.locateComments(async S=>x.current?(await jg(b,S)).map(z=>z.found===!0):S.map(()=>!1))},[n,f,b]),g.useEffect(()=>{if(!f||!i)return;let S=!0;return jg(b,v.map(z=>z.anchor)).then(z=>{S&&m(tH(v,z))}).catch(()=>{S&&m([])}),()=>{S=!1}},[f,i,o,r,v,b]);const C=g.useMemo(()=>{if(!y.length)return null;const S=getComputedStyle(document.documentElement).getPropertyValue("--kit-primary").trim()||"#1a8641";return(z,L)=>{z.fillStyle=S,z.strokeStyle="rgba(255, 255, 255, 0.9)",z.lineWidth=1;for(const K of y){const X=L(K.x,K.y);z.beginPath(),z.moveTo(X.x-zg,X.y),z.lineTo(X.x,X.y),z.lineTo(X.x,X.y+zg),z.closePath(),z.fill(),z.stroke()}}},[y]),[E,w]=g.useState(!1),T=g.useCallback(async()=>{if(!E){w(!0);try{const S=await eH(b);await n.service("comment.create",{anchor:S})}catch(S){nH(S)!=="cancelled"&&Xt("error",u,S instanceof Error?S.message:String(S))}finally{w(!1)}}},[E,u,n,b]);return{marks:f,creates:h,markers:y,decorate:C,create:T,busy:E}}function MB({markers:n,views:i,pins:o,onActivate:r,label:u}){const f=g.useSyncExternalStore(i.subscribe,i.get);return!f||!n.length?null:s.jsx(s.Fragment,{children:n.map(h=>{const v=aH(f,o,h);return v?s.jsx("button",{type:"button",className:"sheet-comment-marker",style:{left:v.left,top:v.top,width:O0,height:O0},"aria-label":u(h.count),title:u(h.count),"data-testid":"sheet-comment-marker","data-thread":h.thread,onPointerDown:p=>p.stopPropagation(),onClick:()=>r(h.thread)},h.thread):null})})}function xB({onCreate:n,busy:i}){const{phrase:o,session:r}=ze();return s.jsxs(nt,{label:o("Comments"),icon:Sp,children:[s.jsx(tt,{icon:Sp,size:"large",label:o("New Comment"),disabled:i||!r.doc,onClick:n,"data-testid":"sheet-host-comment",primary:!0}),s.jsx(Ax,{path:"Review/Comments",exclude:["review.newComment"]})]})}const SB=[["+","−","×","÷","±","≡","≠","≈"],["≤","≥","‰","¼","½","α","β","θ"],["℃","°","√","∞","∑","π","Ω","μ"],["←","→","↑","↓","①","②","③","№"],["©","®","™","§","※","□","☑","☒"]],wB=16,CB=[["—","specialEmDash"],["–","specialEnDash"],["‑","specialNbHyphen"],[" ","specialEmSpace"],[" ","specialEnSpace"],[" ","specialQuarterSpace"],[" ","specialNbSpace"],["©","specialCopyright"],["®","specialRegistered"],["™","specialTrademark"],["§","specialSection"],["¶","specialParagraph"],["…","specialEllipsis"],["‘","specialSingleOpen"],["’","specialSingleClose"],["“","specialDoubleOpen"],["”","specialDoubleClose"],["°","specialDegree"],["℃","specialCelsius"],["‰","specialPerMille"],["±","specialPlusMinus"],["×","specialTimes"],["÷","specialDivide"],["√","specialRoot"],["∞","specialInfinity"],["≈","specialAlmostEqual"],["≠","specialNotEqual"],["≤","specialLessEqual"],["≥","specialGreaterEqual"],["€","specialEuro"],["¥","specialYuan"],["£","specialPound"],["№","specialNumero"]],Lc=()=>ds("sheet","recentSymbols",n=>Array.isArray(n)&&n.every(i=>typeof i=="string")?n:void 0)??[],EB=n=>Ji("sheet","recentSymbols",[n,...Lc().filter(i=>i!==n)].slice(0,wB));function nS(n=!0){const{run:i}=ze();return o=>{EB(o);const r=i("insert.symbol",{char:o});return n?r.finally(Ie):r}}function zB(){const{enabled:n,phrase:i}=ze(),o=gn();return s.jsx(nt,{label:i("Symbols"),icon:Ec,children:s.jsx(et,{icon:Ec,label:i("Symbol"),size:"large",primary:!0,testId:"sheet-symbol",disabled:o||!n("insert.symbol"),children:s.jsx(jB,{})})})}function jB(){const{t:n}=ze(),i=nS(),o=g.useMemo(Lc,[]),r=(u,f)=>s.jsx("button",{type:"button",role:"menuitem",className:"sheet-symbol-cell",onClick:()=>void i(u),"data-symbol":u,"data-testid":f,children:u},u);return s.jsxs("div",{className:"sheet-symbol-panel","data-testid":"sheet-symbol-panel",children:[s.jsx("div",{className:"sheet-symbol-heading","data-testid":"sheet-symbol-recent-title",children:n("symbolRecent")}),s.jsx("div",{className:"sheet-symbol-grid sheet-symbol-recent","data-testid":"sheet-symbol-recent",children:o.map(u=>r(u,"sheet-symbol-recent-item"))}),s.jsx("div",{className:"sheet-symbol-heading","data-testid":"sheet-symbol-common-title",children:n("symbolCommon")}),s.jsx("div",{className:"sheet-symbol-grid","data-testid":"sheet-symbol-common",children:SB.flat().map(u=>r(u,"sheet-symbol-item"))}),s.jsx("div",{className:"kui-menu-separator",role:"separator"}),s.jsxs("button",{type:"button",role:"menuitem",className:"kui-menu-item",onClick:()=>TB(),"data-testid":"sheet-symbol-more",children:[s.jsx(Ec,{size:15,"aria-hidden":"true"}),s.jsx("span",{children:n("symbolMore")})]})]})}let Y0=0;const X0=new Set,TB=()=>{Y0+=1;for(const n of X0)n(Y0)};let Vg=null;const kB=()=>(Vg??(Vg=ns(async()=>{const{NAMES:n,SUBSETS:i}=await import("./symbolNames--e2SA9f6.js");return{NAMES:n,SUBSETS:i}},[],import.meta.url).then(({NAMES:n,SUBSETS:i})=>{const o=new Map;for(const u of n.split(`
|
|
98
|
+
`)){const f=u.indexOf(" ");f>0&&o.set(parseInt(u.slice(0,f),16),u.slice(f+1))}const r=i.map(u=>{const f=[];for(let h=u.from;h<=u.to;h+=1)o.has(h)&&f.push(String.fromCodePoint(h));return{id:u.id,zh:u.zh,en:u.en,chars:f}});return{names:o,subsets:r}})),Vg),qg=16,AB=n=>(n.codePointAt(0)??0).toString(16).toUpperCase().padStart(4,"0");function NB(){var F;const{t:n}=ze(),i=nS(!1),[o,r]=g.useState(Y0),[u,f]=g.useState(!1),[h,v]=g.useState("symbols"),[p,y]=g.useState(null),[m,x]=g.useState(""),[b,C]=g.useState("basicLatin"),[E,w]=g.useState(""),[T,S]=g.useState(""),[z,L]=g.useState(null),[K,X]=g.useState([]);g.useEffect(()=>(X0.add(r),()=>{X0.delete(r)}),[]),g.useEffect(()=>{o!==0&&(f(!0),v("symbols"),x(""),C("basicLatin"),w(""),S(""),L(null),X(Lc()),kB().then(y))},[o]);const re=A=>n("symbolSubsetNames")==="zh"?A.zh:A.en,ae=g.useMemo(()=>{var H,le;if(!p)return[];const A=T.trim().toLowerCase();if(A){const ve=[];for(const Z of p.subsets)for(const I of Z.chars)(H=p.names.get(I.codePointAt(0)??0))!=null&&H.toLowerCase().includes(A)&&ve.push(I);return ve}return((le=p.subsets.find(ve=>ve.id===b))==null?void 0:le.chars)??[]},[p,b,T]),de=g.useMemo(()=>{const A=T.trim().toLowerCase();return CB.filter(([H,le])=>{var ve;return!A||n(le).toLowerCase().includes(A)||(((ve=p==null?void 0:p.names.get(H.codePointAt(0)??0))==null?void 0:ve.toLowerCase().includes(A))??!1)})},[T,p,n]);if(!u)return null;const ge=()=>f(!1),je=async A=>{A&&(await i(A),X(Lc()))},be=(F=Fn.find(A=>A.name===m))==null?void 0:F.css,Me=A=>(p==null?void 0:p.names.get(A.codePointAt(0)??0))??"",Be=A=>{A.key!=="Escape"&&A.stopPropagation(),A.key==="Enter"&&(A.preventDefault(),S(E))},ye=(A,H)=>s.jsx("button",{type:"button",role:"gridcell",className:"sheet-symbol-cell","aria-selected":A===z,title:Me(A),style:be?{fontFamily:be}:void 0,onClick:()=>L(A),onDoubleClick:()=>void je(A),"data-symbol":A,"data-testid":H,children:A},`${H}-${A}`);return s.jsx(da,{open:!0,onOpenChange:A=>A?void 0:ge(),children:s.jsxs(fa,{size:"lg",dismissible:!1,"aria-describedby":void 0,onCloseAutoFocus:A=>{A.preventDefault(),Ie()},"data-testid":"sheet-symbol-dialog",children:[s.jsx(ma,{children:s.jsx(pa,{children:n("symbolTitle")})}),s.jsxs(ha,{children:[s.jsx("div",{className:"sheet-fc-tabs",role:"tablist",children:["symbols","special"].map(A=>s.jsx("button",{type:"button",role:"tab","aria-selected":h===A,onClick:()=>v(A),"data-testid":`sheet-symbol-tab-${A}`,children:n(A==="symbols"?"symbolTabSymbols":"symbolTabSpecial")},A))}),s.jsxs("div",{className:"sheet-symbol-controls",children:[s.jsx("input",{className:"kui-field sheet-symbol-search",type:"search",value:E,placeholder:n("symbolSearch"),"aria-label":n("symbolSearch"),onChange:A=>{w(A.target.value),A.target.value||S("")},onKeyDown:Be,"data-testid":"sheet-symbol-search"}),s.jsxs("span",{className:"sheet-dialog-row",children:[s.jsx("span",{children:n("symbolFont")}),s.jsxs("select",{className:"kui-field",value:m,onChange:A=>x(A.target.value),"data-testid":"sheet-symbol-font",children:[s.jsx("option",{value:"",children:n("symbolNormalText")}),Fn.map(A=>s.jsx("option",{value:A.name,children:A.name},A.name))]})]}),s.jsxs("span",{className:"sheet-dialog-row",children:[s.jsx("span",{children:n("symbolSubset")}),s.jsx("select",{className:"kui-field",value:b,disabled:!p||h!=="symbols",onChange:A=>{C(A.target.value),S(""),w("")},"data-testid":"sheet-symbol-subset",children:((p==null?void 0:p.subsets)??[{id:"basicLatin",zh:"基本拉丁字母",en:"Basic Latin"}]).map(A=>s.jsx("option",{value:A.id,children:re(A)},A.id))})]})]}),h==="symbols"?s.jsx("div",{className:"sheet-symbol-dialog-grid",role:"grid",style:{gridTemplateColumns:`repeat(${qg}, 1fr)`},"data-testid":"sheet-symbol-grid",children:ae.map(A=>ye(A,"sheet-symbol-grid-item"))}):s.jsx("div",{className:"sheet-symbol-special",role:"listbox","data-testid":"sheet-symbol-special",children:de.map(([A,H])=>s.jsxs("button",{type:"button",role:"option","aria-selected":A===z,className:"sheet-symbol-special-row",onClick:()=>L(A),onDoubleClick:()=>void je(A),"data-symbol":A,"data-testid":"sheet-symbol-special-item",children:[s.jsx("span",{className:"sheet-symbol-special-char",style:be?{fontFamily:be}:void 0,children:A.trim()?A:"·"}),s.jsx("span",{children:n(H)})]},H))}),s.jsx("div",{className:"sheet-symbol-heading",children:n("symbolRecentDialog")}),s.jsx("div",{className:"sheet-symbol-dialog-grid sheet-symbol-recent",style:{gridTemplateColumns:`repeat(${qg}, 1fr)`},"data-testid":"sheet-symbol-dialog-recent",children:K.map(A=>ye(A,"sheet-symbol-dialog-recent-item"))}),s.jsxs("div",{className:"sheet-symbol-info","data-testid":"sheet-symbol-info",children:[s.jsx("span",{"data-testid":"sheet-symbol-name",children:z?Me(z):""}),s.jsxs("span",{children:[n("symbolCode"),s.jsx("output",{"data-testid":"sheet-symbol-code",children:z?AB(z):""})]}),s.jsx("span",{"data-testid":"sheet-symbol-from",children:n("symbolFrom")})]})]}),s.jsxs(va,{className:"sheet-dialog-actions",children:[s.jsx(De,{variant:"primary",disabled:!z,onClick:()=>void je(z),"data-testid":"sheet-symbol-insert",children:n("symbolInsert")}),s.jsx(De,{variant:"secondary",onClick:ge,"data-testid":"sheet-symbol-close",children:n("symbolClose")})]})]})})}function c0(n){return n.dataset.colorScheme==="dark"?"dark":"light"}function RB(n=document.documentElement){const[i,o]=g.useState(()=>c0(n));return g.useEffect(()=>{if(o(c0(n)),typeof MutationObserver>"u")return;const r=new MutationObserver(()=>o(c0(n)));return r.observe(n,{attributes:!0,attributeFilter:["data-color-scheme"]}),()=>r.disconnect()},[n]),i}const DB=[["file","File"],["home","Home"],["insert","Insert"],["draw","Draw"],["pageLayout","Page Layout"],["formulas","Formulas"],["data","Data"],["review","Review"],["view","View"],["automate","Automate"]];function OB({host:n,phrase:i}){var _e,J,he,Ee;const o=g.useMemo(()=>Ex(_x,n.init.locale),[n]),r=g.useMemo(()=>({...n,failed:O=>n.failed(new Error(us(i,o,O)))}),[n,i,o]),u=g.useMemo(UL,[]),f=wO(r,u,KL),h=g.useMemo(()=>f.failure?{...f,failure:us(i,o,f.failure)}:f,[f,i,o]),v=nO(h,r,o,"sheet",i,void 0,{report:(O,oe)=>Xt("error",O,us(i,o,oe))}),{doc:p,change:y,state:m}=h,x=g.useRef(null),b=(p==null?void 0:p.info.revision)??0,C=g.useRef(b);C.current=b,x.current!==null&&b>x.current&&(x.current=null),g.useEffect(()=>{const O=oe=>{const fe=oe.target,N=fe instanceof HTMLTextAreaElement&&fe.classList.contains("kui-text-sink"),G=fe instanceof HTMLCanvasElement&&fe.closest(".kui-canvas")!=null;(N||G)&&(x.current=C.current)};return document.addEventListener("input",O,!0),document.addEventListener("pointerdown",O,!0),()=>{document.removeEventListener("input",O,!0),document.removeEventListener("pointerdown",O,!0)}},[]);const E=DL(h.tool,p!=null,y,{initial:"select",hostTools:{},escapable:()=>(m==null?void 0:m.escape)===!0||x.current!==null}),w=g.useRef(null),T=g.useRef({x:0,y:0,zoom:1}),[S,z]=g.useState(1),[L,K]=g.useState("home"),X=g.useRef({doc:p,right:0,bottom:0}),re=g.useRef({x:0,y:0,timer:0}),ae=bB(r,p,y,m==null?void 0:m.sheet,o("commentFailed")),de=g.useMemo(yB,[]);g.useEffect(()=>{E.refresh()},[m==null?void 0:m.formulaText,p==null?void 0:p.info.width,p==null?void 0:p.info.height,m==null?void 0:m.focusCell,m==null?void 0:m.focusColor,m==null?void 0:m.freeze.join(),(_e=m==null?void 0:m.freezePreview)==null?void 0:_e.join(),m==null?void 0:m.freezeShift.join(),m==null?void 0:m.formatPainter,E.refresh]);const ge=async O=>{const oe=v.run(O?"edit.cut":"edit.copy",{html:!0}).then(N=>N?JSON.parse(N):{}),fe=oe.then(N=>N.text??"");try{await navigator.clipboard.write([new ClipboardItem({"text/plain":fe.then(N=>new Blob([N],{type:"text/plain"})),"text/html":oe.then(N=>new Blob([N.html??""],{type:"text/html"}))})])}catch{await navigator.clipboard.writeText(await fe)}},je=async()=>{try{const O=await navigator.clipboard.read(),oe=async fe=>{const N=O.find(G=>G.types.includes(fe));return N?(await N.getType(fe)).text():""};return{text:await oe("text/plain"),html:await oe("text/html")}}catch{return{text:await navigator.clipboard.readText(),html:""}}},be=async O=>{const{text:oe,html:fe}=O??await je();await v.run("edit.paste",{...oe?{text:oe}:{},...fe?{html:fe}:{}})},Me=async O=>{try{await(O==="paste"?be():ge(O==="cut"))}catch(oe){Xt("error",o("commandFailed"),oe instanceof Error?oe.message:String(oe))}},Be=g.useRef({editing:!1,paste:be});Be.current={editing:(m==null?void 0:m.editing)===!0,paste:be},g.useEffect(()=>{const O=N=>N instanceof HTMLTextAreaElement&&N.classList.contains("kui-text-sink"),oe=N=>{(N.metaKey||N.ctrlKey)&&!N.shiftKey&&!N.altKey&&N.key.toLowerCase()==="v"&&O(N.target)&&!Be.current.editing&&N.stopPropagation()},fe=N=>{if(!O(N.target)||Be.current.editing||!N.clipboardData)return;N.preventDefault();const G={text:N.clipboardData.getData("text/plain"),html:N.clipboardData.getData("text/html")};Be.current.paste(G).catch(me=>Xt("error",o("commandFailed"),me instanceof Error?me.message:String(me)))};return window.addEventListener("keydown",oe,!0),document.addEventListener("paste",fe,!0),()=>{window.removeEventListener("keydown",oe,!0),document.removeEventListener("paste",fe,!0)}},[o]);const ye=g.useRef(new Map),F=g.useRef(null);g.useEffect(()=>{var N;if(!m)return;const O=F.current;if(F.current={sheet:m.sheet,sheets:m.sheets},!O||O.sheet===m.sheet)return;if(O.sheets.length===m.sheets.length&&!m.sheets.includes(O.sheet)&&O.sheets.indexOf(O.sheet)===m.sheets.indexOf(m.sheet)){const G=ye.current.get(O.sheet);ye.current.delete(O.sheet),G&&ye.current.set(m.sheet,G);return}const fe=ye.current.get(m.sheet)??{x:0,y:0};(N=w.current)==null||N.panTo(fe.x,fe.y)},[m==null?void 0:m.sheet,m==null?void 0:m.sheets]);const A=g.useRef(null);g.useEffect(()=>{var G;if(!m)return;const[O,oe]=m.freezeShift,fe=A.current;if(A.current={sheet:m.sheet,x:O,y:oe},!fe||fe.sheet!==m.sheet||fe.x===O&&fe.y===oe)return;const N=de.get();N&&((G=w.current)==null||G.panTo(Math.max(0,N.x-(O-fe.x)),Math.max(0,N.y-(oe-fe.y))))},[m==null?void 0:m.sheet,m==null?void 0:m.freezeShift.join()]);const H=g.useRef(0);g.useEffect(()=>{var O;!m||m.zoomAsked===H.current||(H.current=m.zoomAsked,(O=w.current)==null||O.zoomTo(m.zoom/100))},[m==null?void 0:m.zoomAsked,m==null?void 0:m.zoom]);const le=()=>ds("sheet","formulaBar",O=>typeof O=="boolean"?O:void 0),ve=g.useRef(null);g.useEffect(()=>{if(!(!p||!m)){if(ve.current!==p){const O=le();if(O!==void 0&&O!==m.formulaBar){v.run("view.formulaBar",{on:O});return}ve.current=p;return}Ji("sheet","formulaBar",m.formulaBar)}},[p,m==null?void 0:m.formulaBar]);const Z=m?ve.current===p?m.formulaBar:le()??m.formulaBar:!1,I=O=>{Ji("sheet","formulaBar",O),v.run("view.formulaBar",{on:O})},P=()=>ds("sheet","focusCell",O=>{const oe=O;return oe&&typeof oe.on=="boolean"&&typeof oe.color=="string"?{on:oe.on,color:oe.color}:void 0}),ue=g.useRef(null);g.useEffect(()=>{if(!(!p||!m)){if(ue.current!==p){ue.current=p;const O=P();O&&(O.on!==m.focusCell||O.color.toUpperCase()!==m.focusColor.toUpperCase())&&v.run("view.focusCell",{on:O.on,color:O.color});return}Ji("sheet","focusCell",{on:m.focusCell,color:m.focusColor})}},[p,m==null?void 0:m.focusCell,m==null?void 0:m.focusColor]);const k=g.useRef(null);g.useEffect(()=>{var Xe;if(!(m!=null&&m.activeRect)||!p)return;const O=k.current;if(k.current={sheet:m.sheet,active:m.active},!O||O.sheet!==m.sheet||O.active===m.active)return;const oe=de.get();if(!oe)return;const[fe,N,G,me]=m.activeRect,{left:pe,top:ke}=p.pinned??{left:0,top:0},Re=oe.width/oe.zoom,Pe=oe.height/oe.zoom;let{x:Ve,y:Ke}=oe;fe>=pe&&(fe-Ve<pe?Ve=fe-pe:G-Ve>Re&&(Ve=Math.min(fe-pe,G-Re))),N>=ke&&(N-Ke<ke?Ke=N-ke:me-Ke>Pe&&(Ke=Math.min(N-ke,me-Pe))),(Ve!==oe.x||Ke!==oe.y)&&((Xe=w.current)==null||Xe.panTo(Math.max(0,Ve),Math.max(0,Ke)))},[m==null?void 0:m.sheet,m==null?void 0:m.active,(J=m==null?void 0:m.activeRect)==null?void 0:J.join()]),g.useEffect(()=>{p&&v.run("editor.wording",{columnPrefix:o("tableColumnPrefix")})},[p]);const B=RB();g.useEffect(()=>{p&&v.run("editor.scheme",{scheme:B}).catch(()=>{})},[p,B]);const W=g.useRef(0),ie=g.useRef({seq:0,text:""});g.useEffect(()=>{var oe;const O=m==null?void 0:m.dialog;if(O){if(O.seq<=W.current){O.seq<W.current&&(W.current=O.seq);return}switch(W.current=O.seq,O.name){case"formatCells":Lg();break;case"insertFunction":B0({onChoose:async fe=>{await v.run("formulas.insertFunction",{name:fe}),Ie()},onCancel:Ie});break;case"unhideSheet":Gx();break;case"moveCells":{const fe=O.params;jf({title:o("moveTitle"),message:o("moveReplace"),testId:"sheet-move-confirm",onOk:()=>void v.run("edit.moveCells",fe).then(Ie)});break}case"filterMenu":Kx(O.params);break;case"validationList":Zl(!0);break;case"validationError":ie.current={seq:((oe=m==null?void 0:m.notice)==null?void 0:oe.seq)??0,text:String(O.params.message??"")},xH(O.params);break;case"dataValidation":Og();break;case"circularReference":fH(o("circularTitle"),o("circularMessage"),"sheet-circular");break;case"open":case"saveAs":case"saveChanges":break;default:v.ask(O.command,O.params)}}},[(he=m==null?void 0:m.dialog)==null?void 0:he.seq]);const xe=g.useRef({seq:0,text:"",at:0});g.useEffect(()=>{const O=m==null?void 0:m.notice;if(!O)return;const oe=xe.current;if(O.seq<=oe.seq){O.seq<oe.seq&&(oe.seq=O.seq);return}const fe=Date.now(),N=ie.current;!(O.text===N.text&&O.seq<=N.seq+1)&&!(O.text===oe.text&&fe-oe.at<800)&&Xt("info",i(O.text)),xe.current={seq:O.seq,text:O.text,at:fe}},[(Ee=m==null?void 0:m.notice)==null?void 0:Ee.seq]);const Ce=async O=>{var Ve;const oe=O.target instanceof HTMLCanvasElement?(Ve=O.target.closest(".kui-canvas"))==null?void 0:Ve.querySelector("canvas"):null,fe=de.get();if(!oe||!fe||!p||r.readOnly)return;O.preventDefault();const N=oe.getBoundingClientRect(),G=(O.clientX-N.left)/fe.zoom,me=(O.clientY-N.top)/fe.zoom,pe=p.pinned,ke={x:O.clientX,y:O.clientY},Re=await v.run("editor.contextMenu",{x:G<pe.left?G:fe.x+G,y:me<pe.top?me:fe.y+me}),Pe=Re?JSON.parse(Re).target:null;(Pe==="cell"||Pe==="rows"||Pe==="cols"||Pe==="all")&&tB({at:ke,target:Pe})},He=O=>{var N,G;const oe=O.metaKey||O.ctrlKey,fe=O.key.toLowerCase();if(oe&&!O.shiftKey&&!O.altKey&&(O.key==="PageDown"||O.key==="PageUp"))return v.run(O.key==="PageDown"?"sheet.next":"sheet.previous",{}),!0;if(oe&&!O.shiftKey&&!O.altKey&&O.key==="5")return v.run("home.strikethrough",{}),!0;if(O.ctrlKey&&!O.metaKey&&!O.altKey&&(O.key===";"||O.key===":"||O.code==="Semicolon")){const me=new Date,pe=O.shiftKey?`${me.getHours()}:${String(me.getMinutes()).padStart(2,"0")}`:`${me.getFullYear()}/${me.getMonth()+1}/${me.getDate()}`;return v.run("editor.insertText",{text:pe}),!0}if(O.altKey&&!oe&&O.key==="ArrowDown"&&((N=m==null?void 0:m.validation)!=null&&N.list)&&!m.editing)return Zl(!0),!0;if(oe&&!O.shiftKey&&!O.altKey&&O.key==="1"&&m&&!m.editing)return Lg(),!0;if(O.key==="F4"&&!oe&&!O.altKey&&(m!=null&&m.editing)&&((G=m.editText)!=null&&G.startsWith("=")))return v.run("editor.cycleReference",{}),!0;if(O.ctrlKey&&!O.metaKey&&!O.altKey&&m&&!m.editing&&!(m.lines.wholeRows&&m.lines.wholeCols)){const me=m.lines.wholeCols;if(O.shiftKey&&(O.key==="="||O.key==="+"))return v.run(me?"home.insertColumns":"home.insertRows",{}),!0;if(!O.shiftKey&&(O.key==="-"||O.key==="_"))return v.run(me?"home.deleteColumns":"home.deleteRows",{}),!0}return oe&&!O.shiftKey&&!O.altKey&&(fe==="c"||fe==="x"||fe==="v")&&!(m!=null&&m.editing)?(Me(fe==="c"?"copy":fe==="x"?"cut":"paste"),!0):!1},$={file:s.jsxs(s.Fragment,{children:[s.jsx(Ga,{menu:"File",exclude:[...YL,...XL],primary:Hn.File}),s.jsx(pB,{sheet:(m==null?void 0:m.sheet)??"",sheets:(m==null?void 0:m.sheets)??[]})]}),home:m?s.jsx(oB,{info:m,onClipboard:O=>void Me(O)}):s.jsx(Ga,{menu:"Home"}),view:m?s.jsx(uB,{info:m,formulaBar:Z,onFormulaBar:I}):s.jsx(Ga,{menu:"View"}),formulas:s.jsxs(s.Fragment,{children:[s.jsx(nt,{label:i("Insert Function"),icon:ps,children:s.jsx(tt,{icon:ps,label:i("Insert Function"),size:"large",primary:!0,disabled:!v.enabled("formulas.insertFunction"),onClick:()=>B0({onChoose:async O=>{await v.run("formulas.insertFunction",{name:O}),Ie()},onCancel:Ie}),"data-testid":"sheet-insert-function-button"})}),s.jsx(Ga,{menu:"Formulas",exclude:["formulas.insertFunction"],primary:Hn.Formulas})]}),insert:s.jsxs(s.Fragment,{children:[s.jsx(zO,{testId:"sheet-drawing",merge:"Insert/Illustrations",exclude:["insert.shape"],primary:["insert.picture","insert.icons"]}),s.jsx(nt,{label:o("chartInsert"),icon:Wl,children:s.jsx(PO,{testId:"sheet-chart",primary:!0})}),s.jsx(Ga,{menu:"Insert",exclude:["insert.chart","insert.textBox","insert.symbol"],omit:["Illustrations"],primary:Hn.Insert}),s.jsx(zB,{})]}),data:s.jsxs(s.Fragment,{children:[s.jsx(Ga,{menu:"Data",exclude:["data.validation"],primary:Hn.Data}),s.jsx(nt,{label:i("Data Validation"),icon:v0,children:s.jsx(tt,{icon:v0,label:i("Data Validation"),size:"large",primary:!0,disabled:!v.enabled("data.validation"),onClick:Og,"data-testid":"sheet-data-validation-button"})})]}),draw:s.jsxs(s.Fragment,{children:[s.jsx(FO,{testId:"sheet-ink"}),s.jsx(Ga,{menu:"Draw",exclude:["draw.select","draw.pen","draw.pencil","draw.highlighter","draw.eraser","draw.state"],primary:Hn.Draw})]})};ae.creates&&($.review=s.jsxs(s.Fragment,{children:[s.jsx(xB,{onCreate:()=>void ae.create(),busy:ae.busy}),s.jsx(Ga,{menu:"Review",omit:["Comments"],primary:Hn.Review})]}));const te=[...DB.map(([O,oe])=>({id:O,label:i(oe),view:O==="file"||O==="review"||O==="view",ribbon:$[O]??s.jsx(Ga,{menu:oe,primary:Hn[oe]})})),...m!=null&&m.table?[{id:"tableDesign",label:o("tableTools"),ribbon:s.jsx($H,{info:m})}]:[],...m!=null&&m.shape?[{id:"shapeFormat",label:o("drawingShapeFormat"),ribbon:s.jsx(LO,{ids:m.shapes.length?m.shapes:[m.shape],testId:"sheet-drawing"})}]:[],...m!=null&&m.chart?[{id:"chartDesign",label:i("Chart Design"),ribbon:s.jsxs(s.Fragment,{children:[s.jsx(YO,{id:m.chart,testId:"sheet-chart",dataEditable:!1,formats:["axes","labelPosition","lineWidth","marker","smooth","trends","combo"]}),s.jsx(Ga,{menu:"Chart Design",exclude:["chart.set","chart.changeType","chart.addElement"],primary:Hn["Chart Design"]})]})}]:[]],Te=te.some(O=>O.id===L)?L:"home";return s.jsx(lO,{editor:v,tools:E,children:s.jsxs(zL,{tabs:te,tab:Te,onTab:K,canvas:w,zoom:S,onKeyDown:He,statusEnd:m?s.jsx(tS,{info:m,place:"status"}):null,status:m?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"sheet-status",children:o("sheetSelection",{sheet:m.sheet,selection:m.selection})}),s.jsx(LB,{stats:m.stats,t:o})]}):null,children:[m&&Z?s.jsx(xg,{children:s.jsx(uH,{info:m})}):null,s.jsx("div",{className:"kui-row",onContextMenu:O=>void Ce(O),children:s.jsxs(rO,{canvas:w,viewMemory:T,framed:!1,decorate:ae.decorate,onView:O=>{if(de.set(O),z(O.zoom),F.current&&ye.current.set(F.current.sheet,{x:O.x,y:O.y}),!p)return;X.current.doc!==p&&(X.current={doc:p,right:0,bottom:0});const oe=Math.max(0,O.x)+O.width/O.zoom,fe=Math.max(0,O.y)+O.height/O.zoom;(oe>X.current.right||fe>X.current.bottom)&&(X.current={doc:p,right:Math.max(oe+512,X.current.right),bottom:Math.max(fe+600,X.current.bottom)},v.run("editor.viewport",{right:X.current.right,bottom:X.current.bottom})),window.clearTimeout(re.current.timer);const N={x:Math.max(0,O.x),y:Math.max(0,O.y)};re.current.timer=window.setTimeout(()=>{N.x===re.current.x&&N.y===re.current.y||(re.current={...re.current,...N},v.run("editor.viewport",{right:X.current.right,bottom:X.current.bottom,...N}))},120)},children:[m!=null&&m.formulaHint&&p?s.jsx(lH,{hint:m.formulaHint,views:de,pins:p.pinned,onPick:O=>void v.run("editor.acceptFunction",{name:O})}):null,m&&p?s.jsx(SH,{info:m,views:de,pins:p.pinned}):null,p?s.jsx(MH,{views:de,pins:p.pinned}):null,ae.marks&&p?s.jsx(MB,{markers:ae.markers,views:de,pins:p.pinned,onActivate:r.activateComment,label:O=>o("commentThread",{count:O})}):null]})}),m?s.jsx(xg,{children:s.jsx(pH,{info:m})}):null,m?s.jsx(hH,{info:m}):null,m?s.jsx(aB,{info:m,onClipboard:O=>void Me(O)}):null,s.jsx(sH,{}),s.jsx(wH,{}),m?s.jsx(zH,{info:m}):null,s.jsx(NB,{}),m?s.jsx(BH,{info:m}):null,m?s.jsx(VH,{info:m}):null]})})}function $g(n){return String(Number(n.toPrecision(15)))}function LB({stats:n,t:i}){return!n||n.count<2?null:s.jsxs("span",{className:"sheet-figures","data-testid":"sheet-stats",children:[n.numeric>0?s.jsx("span",{"data-testid":"sheet-stat-sum",children:i("statSum",{value:$g(n.sum)})}):null,n.numeric>0&&n.average!=null?s.jsx("span",{"data-testid":"sheet-stat-average",children:i("statAverage",{value:$g(n.average)})}):null,s.jsx("span",{"data-testid":"sheet-stat-count",children:i("statCount",{value:n.count})})]})}const HB={display:"line",brand:{light:"#1a8641",dark:"#4fd17b"}},Gg={ui:HB};wD({"automate.allScripts":QT,"automate.runScript":YM,"draw.eraser":Fc,"draw.lasso":FM,"home.borders":tf,"home.conditionalFormat":r3,"home.doubleUnderline":df,"home.drawBorder":lr,"home.formatCells":Pc,"home.justify":cA,"home.manageRules":hk,"home.orientation":Vc,"home.unmergeCells":rA});const lS=cC.createRoot(document.getElementById("root")),BB=window.setTimeout(()=>{const n=Ex(_x,navigator.language);lS.render(s.jsx("div",{className:"kui-alone",children:n("noHost")}))},3e3),_B=Object.assign({"./i18n/upstream/ko.rs":()=>ns(()=>import("./ko-Fe7YrdBh.js"),[],import.meta.url).then(n=>n.default),"./i18n/upstream/pt.rs":()=>ns(()=>import("./pt-BK3ToRXt.js"),[],import.meta.url).then(n=>n.default),"./i18n/upstream/ru.rs":()=>ns(()=>import("./ru-Di_jxcA2.js"),[],import.meta.url).then(n=>n.default),"./i18n/upstream/zh.rs":()=>ns(()=>import("./zh-C0AkZS0b.js"),[],import.meta.url).then(n=>n.default)});tD({id:"kit.sheet",version:"0.1.4",capabilities:["ai","replica","comment-anchors"],brand:Gg.ui.brand,display:Gg.ui.display}).then(async n=>{window.clearTimeout(BB);const i=FL(await _L(_B,n.init.locale),$L,n.init.locale);lS.render(s.jsx(OB,{host:n,phrase:i}))});
|