astronaut-cms 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/THIRD_PARTY_LICENSES.md +88 -40
- package/dist/admin/assets/assistant-DTlSNidc.js +235 -0
- package/dist/admin/assets/badge-BfN73-be.js +1 -0
- package/dist/admin/assets/changes-h1lmD7AA.js +1 -0
- package/dist/admin/assets/client-B4PWCmC4.js +5 -0
- package/dist/admin/assets/{collapsible-item-UaoJaaPw.js → collapsible-item-zlnNAUdM.js} +1 -1
- package/dist/admin/assets/{collapsible-B6P_J0Bg.js → collapsible-mcJ6G3X4.js} +1 -1
- package/dist/admin/assets/{collections._collection-BE1enDCq.js → collections._collection-D-rC9E9v.js} +1 -1
- package/dist/admin/assets/{collections._collection._entry-D3UksnCo.js → collections._collection._entry-UD8hLmC1.js} +33 -33
- package/dist/admin/assets/collections._collection.index-Cgc93hCD.js +1 -0
- package/dist/admin/assets/component-lookup-8lVQh8pl.js +4 -0
- package/dist/admin/assets/{copy-DezZzPMV.js → copy-DxuErr3x.js} +1 -1
- package/dist/admin/assets/{dist-UbA1s2kM.js → dist-DVv3ALC7.js} +1 -1
- package/dist/admin/assets/{dist-DzkcSBZl.js → dist-Dpyc1riS.js} +1 -1
- package/dist/admin/assets/editor-BauN0yXd.js +2 -0
- package/dist/admin/assets/{empty-DSBYiI_7.js → empty-DAOUBpWb.js} +1 -1
- package/dist/admin/assets/{entry-link-CQLN2Zpf.js → entry-link-DhcL6M5c.js} +19 -19
- package/dist/admin/assets/{error-banner-yskeRXe8.js → error-banner-CNWZU5u_.js} +93 -91
- package/dist/admin/assets/{field-BDK5tt3J.js → field-CbbZZGxO.js} +2 -2
- package/dist/admin/assets/{file-text-BzBif8ui.js → file-text-Ciz5Mr4S.js} +1 -1
- package/dist/admin/assets/{highlighted-body-JLMTFACH-CIQujGv2.js → highlighted-body-JLMTFACH-D1bycIV3.js} +1 -1
- package/dist/admin/assets/{lib-CMURo-7A.js → lib-CC_S4yjQ.js} +9 -9
- package/dist/admin/assets/{library-Cr3f75Es.js → library-Da82FNwp.js} +1 -1
- package/dist/admin/assets/{list-skeleton-BdTNfVXs.js → list-skeleton-BXLP4Fak.js} +1 -1
- package/dist/admin/assets/matchContext-BjW1F-Cq.js +2 -0
- package/dist/admin/assets/media-browser-DeKpWCUD.js +1 -0
- package/dist/admin/assets/media._library-DGnXJc0I.js +1 -0
- package/dist/admin/assets/mermaid-WFAXDIZX-CqFnahFh.js +1 -0
- package/dist/admin/assets/page-header-C2Uwa_yv.js +1 -0
- package/dist/admin/assets/pdf-BSEX-sd8.js +106 -0
- package/dist/admin/assets/{react-kbcsfQYH.js → react-CXnqG51l.js} +1 -1
- package/dist/admin/assets/{routes-CBt04sNR.js → routes-Bx9rPcHA.js} +1 -1
- package/dist/admin/assets/save-actions-DrVgh3KH.js +32 -0
- package/dist/admin/assets/{select-Bv2EoLhN.js → select-CMV39q80.js} +1 -1
- package/dist/admin/assets/separator-C9bNKNSU.js +3 -0
- package/dist/admin/assets/{skeleton-CKiqTaRh.js → skeleton-DTwTUSqm.js} +1 -1
- package/dist/admin/assets/syntax-DDPd1mQn.js +8 -0
- package/dist/admin/assets/{toggle-Y2UpJZyU.js → toggle-B6ASf-kL.js} +1 -1
- package/dist/admin/assets/{ui.module.css-WaO_77ml.js → ui.module.css-BdAmwQeM.js} +29 -29
- package/dist/admin/assets/{use-entries-B2lsaiK9.js → use-entries-CrNqaMfa.js} +1 -1
- package/dist/admin/assets/useSelector-Cs39W18m.js +1 -0
- package/dist/admin/bootstrap.js +1 -1
- package/dist/admin/editor.d.ts +1009 -1
- package/dist/admin/editor.js +1 -1
- package/dist/server/THIRD_PARTY_LICENSES.md +49 -0
- package/dist/server/assets.d.ts +28 -0
- package/dist/server/chunks/config-BsOYly9a.d.ts +1210 -0
- package/dist/server/chunks/{digest-BYzWNJea.js → digest-tkKu_Wj5.js} +3 -3
- package/dist/server/chunks/{entry-checks-CKMag1G4.js → entry-checks-3SxhoHwH.js} +1 -1
- package/dist/server/chunks/{types-DOR5XaJO.js → types-DkkewFTT.js} +32 -11
- package/dist/server/chunks/{types-DwA-C6Br.d.ts → types-Jew_-Qpp.d.ts} +8 -1
- package/dist/server/chunks/{user-config-DoypbpQf.js → user-config-CqNK-Ebs.js} +13 -4
- package/dist/server/config.d.ts +3 -3
- package/dist/server/config.js +5 -1
- package/dist/server/content.d.ts +10 -0
- package/dist/server/content.js +2 -8
- package/dist/server/endpoint.d.ts +5 -0
- package/dist/server/endpoint.js +28 -14
- package/dist/server/integration.d.ts +2 -2
- package/dist/server/integration.js +29 -16
- package/dist/server/internal.d.ts +39 -4
- package/dist/server/internal.js +2 -2
- package/dist/server/server-local.d.ts +1 -1
- package/dist/server/server-local.js +2 -2
- package/dist/styles/THIRD_PARTY_LICENSES.md +2 -2
- package/dist/styles/styles.css +2 -2
- package/package.json +4 -4
- package/dist/admin/assets/assistant-DkS355co.js +0 -201
- package/dist/admin/assets/badge-BXsOvOPX.js +0 -1
- package/dist/admin/assets/changes-Ba0G_GN1.js +0 -1
- package/dist/admin/assets/client-VKp75fDU.js +0 -5
- package/dist/admin/assets/collections._collection.index-BN5d8UIY.js +0 -1
- package/dist/admin/assets/component-lookup-CUCiK8Xh.js +0 -4
- package/dist/admin/assets/editor-FGqMznBK.js +0 -2
- package/dist/admin/assets/matchContext-Bq5Es9aD.js +0 -2
- package/dist/admin/assets/media-browser-9-CPTCks.js +0 -1
- package/dist/admin/assets/media._library-BfFaEZLR.js +0 -1
- package/dist/admin/assets/mermaid-WFAXDIZX-CJ3hhA0i.js +0 -1
- package/dist/admin/assets/page-header-B4nvAsVA.js +0 -1
- package/dist/admin/assets/pdf-DgessaF0.js +0 -106
- package/dist/admin/assets/save-actions-Cz0TkpcP.js +0 -32
- package/dist/admin/assets/separator-DlYj_PoQ.js +0 -3
- package/dist/admin/assets/syntax-BAXqRKRO.js +0 -8
- package/dist/admin/assets/useSelector-CWr3iU9K.js +0 -1
- package/dist/server/chunks/config-WQqG4mNH.d.ts +0 -193
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./clsx-DB0hHKMi.js";import{D as t,S as n,b as r,g as i,i as a,r as o,t as s,w as c,x as l}from"./matchContext-Bq5Es9aD.js";import*as u from"react";import{createContext as d,createElement as f,forwardRef as p,useCallback as m,useContext as h,useEffect as g,useMemo as _,useRef as v,useState as y}from"react";import{jsx as b}from"react/jsx-runtime";import*as x from"react-dom";var S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0});function w(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}C(w,`setRef`);function T(...e){return t=>{let n=!1,r=e.map(e=>{let r=w(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():w(e[t],null)}}}}C(T,`composeRefs`);function E(...e){return u.useCallback(T(...e),e)}C(E,`useComposedRefs`);var D=Object.defineProperty,O=(e,t)=>D(e,`name`,{value:t,configurable:!0});// @__NO_SIDE_EFFECTS__
|
|
2
|
-
function k(e){let t=u.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=te(r),u.Children.forEach(r,e=>{if(I(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;L(n)&&typeof z==`function`;)n=z(n._payload);a=N(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=u.cloneElement(a,void 0,s):!o&&u.Children.count(r)===1&&u.isValidElement(r)&&(a=r);let c=a?F(a):void 0,l=E(n,c);if(!a){if(r||r===0)throw Error(o?ie(e):re(e));return r}let d=P(i,a.props??{});return a.type!==u.Fragment&&(d.ref=n?l:c),u.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}O(k,`createSlot`);var A=/* @__PURE__ */ k(`Slot`),j=Symbol.for(`radix.slottable`);// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function M(e){let t=/* @__PURE__ */ O(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=j,t}O(M,`createSlottable`);var N=/* @__PURE__ */ O((e,t)=>`child`in e.props?u.isValidElement(t)?u.cloneElement(t,void 0,e.props.children(t.props.children)):null:u.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function P(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=ne(a,i))}return{...e,...n}}O(P,`mergeProps`);function F(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}O(F,`getElementRef`);function I(e){return u.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===j}O(I,`isSlottable`);var ee=Symbol.for(`react.lazy`);function L(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ee&&`_payload`in e&&R(e._payload)}O(L,`isLazyComponent`);function R(e){return typeof e==`object`&&!!e&&`then`in e}O(R,`isPromiseLike`);function te(e){let t=e;for(;L(t)&&typeof z==`function`;)t=z(t._payload);return t}O(te,`useUnwrappedLazy`);function ne(...e){let t=/* @__PURE__ */ new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}O(ne,`concatAriaDescribedby`);var re=/* @__PURE__ */ O(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),ie=/* @__PURE__ */ O(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),z=u.use,ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0}),se=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=/* @__PURE__ */ k(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),/* @__PURE__ */ b(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ce(e,t){e&&x.flushSync(()=>e.dispatchEvent(t))}oe(ce,`dispatchDiscreteCustomEvent`);var le=Object.defineProperty,ue=(e,t)=>le(e,`name`,{value:t,configurable:!0}),de={Horizontal:`horizontal`,Vertical:`vertical`},fe=de.Horizontal,pe=Object.values(de),me=/* @__PURE__ */ u.forwardRef(/* @__PURE__ */ ue(function(e,t){let{decorative:n,orientation:r=fe,...i}=e,a=he(r)?r:fe,o=a===de.Vertical?a:void 0,s=n?{role:`none`}:{"aria-orientation":o,role:`separator`};return/* @__PURE__ */ b(se.div,{"data-orientation":a,...s,...i,ref:t})},`Separator`));function he(e){return pe.includes(e)}ue(he,`isValidOrientation`);var B=e=>typeof e==`string`,ge=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},_e=e=>e==null?``:String(e),ve=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ye=/###/g,be=e=>e&&e.includes(`###`)?e.replace(ye,`.`):e,xe=e=>!e||B(e),Se=(e,t,n)=>{let r=B(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(xe(e))return{};let t=be(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return xe(e)?{}:{obj:e,k:be(r[i])}},Ce=(e,t,n)=>{let{obj:r,k:i}=Se(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Se(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Se(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},we=(e,t,n,r)=>{let{obj:i,k:a}=Se(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Te=(e,t)=>{let{obj:n,k:r}=Se(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Ee=(e,t,n)=>{let r=Te(e,n);return r===void 0?Te(t,n):r},De=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):De(e[r],t[r],n):e[r]=t[r]);return e},V=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Oe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},ke=e=>B(e)?e.replace(/[&<>"'\/]/g,e=>Oe[e]):e,Ae=class{constructor(e){this.capacity=e,this.regExpMap=/* @__PURE__ */ new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},je=[` `,`,`,`?`,`!`,`;`],Me=new Ae(20),Ne=(e,t,n)=>{t||=``,n||=``;let r=je.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=Me.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Pe=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],typeof t!=`function`&&a!==`__proto__`||Object.prototype.hasOwnProperty.call(i,a)||(t=void 0),t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},H=e=>e?.replace(/_/g,`-`),Fe={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},U=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Fe,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>B(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),B(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ie=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=/* @__PURE__ */ new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},Le=/* @__PURE__ */ new WeakSet,Re=class extends Ie{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):B(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Te(this.data,o);return s==null&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s!=null||!a||!B(n)?s:Pe(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ce(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(B(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Te(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?De(s,n,i):s={...s,...n},Ce(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>{let n=t[e];return Le.has(n)?!0:!n||Object.keys(n).length===0?!1:(typeof n==`object`&&Le.add(n),!0)})}toJSON(){return this.data}},ze={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Be=Symbol(`i18next/PATH_KEY`);function Ve(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Be?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function W(e,t){let{[Be]:n}=e(Ve()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var He=e=>!B(e)&&typeof e!=`boolean`&&typeof e!=`number`,Ue=class e extends Ie{constructor(e,t={}){super(),ve([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=U.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=He(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ne(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:B(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:B(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=W(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?W(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!B(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=He(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(B(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:He(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&B(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,p,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=B(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!B(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=B(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=ze.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return B(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?W(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!B(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(B(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!B(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},We=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=U.create(`languageUtils`),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=H(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=H(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(B(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!(!e.includes(`-`)||r.includes(`-`)||e.slice(0,e.indexOf(`-`))!==r))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),B(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.options.fallbackLng,r=Array.isArray(n)?n.join(`|`):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let i=t===void 0||t===!1||B(t),a=t===void 0&&typeof this.options.fallbackLng==`function`,o=B(e)&&i&&!a,s=null;if(o){let n;n=t===void 0?`undefined`:t===!1?`boolean:false`:`string:${t}`,s=`${e.length}:${e}|${n}`}if(s!==null){let e=this.resolveHierarchyCache[s];if(e!==void 0)return e.slice()}let c=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),l=[],u=e=>{e&&(this.isSupportedCode(e)?l.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return B(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&u(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&u(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&u(this.getLanguagePartFromCode(e))):B(e)&&u(this.formatLanguageCode(e)),c.forEach(e=>{let t=this.formatLanguageCode(e);l.includes(t)||u(t)}),s===null?l:(this.resolveHierarchyCache[s]=l,l.slice())}},Ge={zero:0,one:1,two:2,few:3,many:4,other:5},Ke={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},qe=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=U.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=H(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Ke;if(!e.match(/-|_/))return Ke;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Ge[e]-Ge[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Je=(e,t,n,r=`.`,i=!0)=>{let a=Ee(e,t,n);return a==null&&i&&B(n)&&(a=Pe(e,n,r),a===void 0&&(a=Pe(t,n,r))),a},Ye=class{constructor(e={}){this.logger=U.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?ke:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?V(i):a||`{{`,this.suffix=o?V(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?V(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?V(l):``,this.nestingPrefix=d?V(d):f||V(`$t(`),this.nestingSuffix=p?V(p):m||V(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=Je(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Je(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}],f=[],p=0;return d.forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i.index-p,s=f.find(([e,t])=>n>=e&&n<t);if(s){t.regex.lastIndex=s[1]+p;continue}let d=i[1].trim();if(a=c(d),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=B(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,d))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${d} for interpolating ${e}`),a=``}else!B(a)&&!this.useRawValueToEscape&&(a=_e(a));let m=_e(t.safeValue(a));if(e=e.slice(0,i.index)+m+e.slice(i.index+i[0].length),u?(t.regex===this.regexpUnescape?f.push([i.index,i.index+m.length]):p+=m.length-i[0].length,t.regex.lastIndex+=m.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${V(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e},s=new RegExp(this.nestingRegexp),c=``,l=0;for(;r=s.exec(e);){let u=[];a={...n},a=a.replace&&!B(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let d=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(d!==-1&&(u=r[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,d)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!B(i))return i;B(i)||(i=_e(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),u.length&&(i=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),c+=e.slice(l,r.index)+_e(i),l=s.lastIndex,this.regexp.lastIndex=0}return l?c+e.slice(l):e}},Xe=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ze=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o;try{o=r+JSON.stringify(a)}catch{return e(H(r),i)(n)}let s=t[o];return s||(s=e(H(r),i),t[o]=s),s(n)}},Qe=e=>(t,n,r)=>e(H(n),r)(t),$e=class{constructor(e={}){this.logger=U.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ze:Qe;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ze(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Xe(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},G=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},et=class extends Ie{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=U.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{we(n.loaded,[i],a),G(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i):a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2)try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}else return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();B(e)&&(e=this.languageUtils.toResolveHierarchy(e)),B(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);else if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}},tt=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),nt=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),K=()=>{},rt=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},q=class e extends Ie{constructor(e={},t){if(super(),this.options=nt(e),this.services={},this.logger=U,this.modules={external:[]},rt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(B(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=tt();this.options={...n,...this.options,...nt(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?U.init(r(this.modules.logger),this.options):U.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:$e;let t=new We(this.options);this.store=new Re(this.options.resources,this.options);let n=this.services;n.logger=U,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new qe(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Ye(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new et(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Ue(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=K,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=ge(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=K){let n=t,r=B(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=ge();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=K,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&ze.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=ge();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=B(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(B(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=W(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=W(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=W(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return B(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}if(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;let{languageUtils:o}=this.services,s=t.lng?o.isSupportedCode(n)&&o.toResolveHierarchy(n,!1)[0]:n;return!(s&&!a(s,e)||r&&!a(i,e))}loadNamespaces(e,t){let n=ge();return this.options.ns?(B(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=ge();B(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=/* @__PURE__ */ `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new We(tt());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=K){let r=t.forkResourceStore;r&&(t={...t},delete t.forkResourceStore);let i={...this.options,preload:!1,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){let e=t=>{let n=Array.isArray(t)?[...t]:{...t};return Object.keys(n).forEach(t=>{n[t]&&typeof n[t]==`object`&&(n[t]=e(n[t]))}),n};a.store=new Re(e(this.store.data),i),a.services.resourceStore=a.store}if(t.interpolation){let e={...tt().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Ye(n)}return a.translator=new Ue(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages;var it=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Z(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},J={},Y=(e,t,n,r)=>{Z(n)&&J[n]||(Z(n)&&(J[n]=/* @__PURE__ */ new Date),it(e,t,n,r))},at=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},X=(e,t,n)=>{e.loadNamespaces(t,at(e,n))},ot=(e,t,n,r)=>{if(Z(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return X(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,at(e,r))},st=(e,t,n={})=>!t.languages||!t.languages.length?(Y(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Z=e=>typeof e==`string`,ct=e=>typeof e==`object`&&!!e,lt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ut={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":`\xA0`," ":`\xA0`,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},dt=e=>ut[e],ft={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(lt,dt),transDefaultProps:void 0},pt=(e={})=>{ft={...ft,...e}},mt=()=>ft,ht,gt=e=>{ht=e},_t=()=>ht,vt=d(),yt=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},bt=t(),xt={t:(e,t)=>{if(Z(t))return t;if(ct(t)&&Z(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},St=()=>()=>{},Ct=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=h(vt)||{},a=n||r||_t();a&&!a.reportNamespaces&&(a.reportNamespaces=new yt),a||Y(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=_(()=>({...mt(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c,bindI18n:l,bindI18nStore:u}=o,d=e||i||a?.options?.defaultNS,f=Z(d)?[d]:d||[`translation`],p=JSON.stringify(f),b=_(()=>f,[p]);a?.reportNamespaces?.addUsedNamespaces?.(b);let x=v(0),S=m(e=>{if(!a)return St;let t=()=>{x.current+=1,e()};return l&&a.on(l,t),u&&a.store.on(u,t),()=>{l&&l.split(` `).forEach(e=>a.off(e,t)),u&&u.split(` `).forEach(e=>a.store.off(e,t))}},[a,l,u]),C=v(),w=m(()=>{if(!a)return xt;let e=!!(a.isInitialized||a.initializedStoreOnce)&&b.every(e=>st(e,a,o)),n=t.lng||a.language,r=x.current,i=typeof c==`function`?W(c,{...a.options,ns:b}):c,s=C.current;if(s&&s.i18n===a&&s.ready===e&&s.lng===n&&s.namespaces===b&&s.keyPrefix===i&&s.revision===r)return s;let l={t:a.getFixedT(n,o.nsMode===`fallback`?b:b[0],c,{scopeNs:b}),i18n:a,ready:e,lng:n,namespaces:b,keyPrefix:i,revision:r};return C.current=l,l},[a,b,c,o,t.lng]),[T,E]=y(0),{t:D,ready:O}=(0,bt.useSyncExternalStore)(S,w,w),k;a&&s&&!O&&(k=new Promise(e=>{let n=()=>e();t.lng?ot(a,t.lng,b,n):X(a,b,n)}),{t:D,ready:O}=w()),g(()=>{if(a&&!O&&!s){let e=()=>E(e=>e+1);t.lng?ot(a,t.lng,b,e):X(a,b,e)}},[a,t.lng,b,O,s,T]);let A=a||{},j=v(null),M=v(),N=e=>`${e.language}|${e.resolvedLanguage}|${e.languages?.join(`,`)}`,P=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},F=_(()=>{let e=A,t=e&&N(e),n=e;e&&(j.current&&j.current.__original===e&&M.current===t?n=j.current:(n=P(e),j.current=n,M.current=t));let r=!O&&!s?(...e)=>(Y(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),D(...e)):D,i=[r,n,O];return i.t=r,i.i18n=n,i.ready=O,i},[D,A,O,A.resolvedLanguage,A.language,A.languages]);if(a&&s&&!O){let e=!1;try{e=process.env.NODE_ENV!==`production`}catch{}throw e&&Y(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),k}return F},wt=`Error preloading route! ☝️`;function Tt(...e){let t=u.useRef(e),n=t.current;return e.forEach((e,t)=>{r(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Et(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(wt)})}function Dt(e,t){let r=typeof e==`string`&&n(e);if(r)return t.has(r)?e:(process.env.NODE_ENV!==`production`&&console.warn(`Blocked Link with dangerous protocol: ${e}`),null)}function Ot(e,t,n,a){let o=i(e.pathname,a),s=i(t.pathname,a);return(n?.exact?o!==s:!o.startsWith(s)||o.length!==s.length&&o[s.length]!==`/`)||(n?.includeSearch??!0)&&!r(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function kt(e,t,r){let i=a(),c=u.useRef(null),l=u.useCallback(e=>{if(c.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:d,to:f,preload:p,preloadDelay:m,disabled:h,target:g,onClick:_,onBlur:v,onFocus:y,onMouseEnter:b,onMouseLeave:x,onTouchStart:S}=e,[C,w,T]=Tt(e.search,e.params,d),E=u.useContext(o),D=(i.stores._linkScopes??={})[E]??=s(i,E),[O,k,A]=u.useMemo(()=>{let t=Dt(f,i.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let r={...e},a,o,s,c=()=>{let e=D[0]();if(e!==a){r._fromLocation=e;let t=i.buildLocation(r),s=Lt(t,i,h),c=h||s&&!n(s)?Ot(e,t,T,i.basepath):void 0;o&&o[0]===s&&o[1]===c||(o=[s,c]),a=e}return o};return[r,c,T?.includeHash&&(()=>{let e=c();return e[1]?s??=[e[0],!1]:e})]},[i,D,e.from,e.hash,e.href,f,C,w,e.state,e.mask,e.unsafeRelative,T,h]),[j,M]=u.useSyncExternalStore(D[1],k,A||k),N=M===void 0&&j,P=h||j===void 0,F=u.useRef(!1),I=e.reloadDocument||N||P?!1:p??i.options.defaultPreload,ee=m??i.options.defaultPreloadDelay??0,L=u.useCallback(e=>{let t=e?.isIntersecting;t??I===`intent`?ee?c.t??=setTimeout(()=>{c.t=void 0,Et(i,O)},ee):Et(i,O):t===!1&&Ft(c)},[i,O,c,I,ee]);u.useEffect(()=>{if(!I)return;I===`render`&&!F.current&&(F.current=!0,Et(i,O));let e=!0,t;return I===`viewport`&&c.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&L(t.pop())},{rootMargin:`100px`}),t.observe(c.current)),()=>{e=!1,t?.disconnect(),Ft(c)}},[i,O,I,L,c]);let R=Nt(e,r);if(R.ref=t?l:c,N)return R.href=N,R;let te=t=>{let n=g??t.currentTarget.getAttribute(`target`);P||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Ft(c),i.navigate({...e,_fromLocation:O._fromLocation}))},ne=()=>{I===`intent`&&Et(i,O)},re=()=>{I===`intent`&&Ft(c)};return R.onClick=It(_,te),R.onBlur=It(v,re),R.onFocus=It(y,L),R.onMouseEnter=It(b,L),R.onMouseLeave=It(x,re),R.onTouchStart=It(S,ne),Pt(R,e,M,j,P,r)}var At={},jt={className:`active`},Mt=/* @__PURE__ */ new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Nt(e,t){let n={};for(let r in e)Mt.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Pt(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:u,target:d}=t,f=l(n?o:s,{})??(n?jt:At);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(c||m)&&(e.className=c?m?`${c} ${m}`:c:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Ft=e=>{clearTimeout(e.t),e.t=void 0},It=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Lt(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if((r.external||i!==r.publicHref)&&c(i,t.protocolAllowlist))process.env.NODE_ENV!==`production`&&console.warn(`Blocked Link with dangerous protocol: ${i}`);else return i}var Rt=u.memo(u.forwardRef((e,t)=>{let n=e._asChild||`a`,r=kt(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return u.createElement(n,r,i)}),zt);function zt(e,t){let n=0;for(let i in t)if(n++,e[i]!==t[i]&&(!Mt.has(i)||!r(e[i],t[i],!1,!0)))return!1;for(let t in e)n--;return n===0}var Bt=48,Q=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-Bt-t;return n},Vt=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Ht=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-Bt;n+=i>>>1^-(i&1),t[r]=n}return t},Ut=384,Wt=[],Gt=Vt(Q(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),Kt=Vt(Q(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),qt=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,Jt=(()=>{let e=Gt.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=Gt[n];i<Gt[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(Gt[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=Gt[i];a<Gt[i+1];a++)n[r++]=e,e+=t[e]}return n})(),Yt=Q(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),Xt=Vt(Q(`123333359346463635126536711576`)),Zt=Q(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032`),Qt=Q(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199`),$t=Ht(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),en=(()=>{let e=(/* @__PURE__ */ new Int32Array(319)).fill(-1),t=Ht(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=Ht(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),tn=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),nn=Ht(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),rn=Ht(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>6ʰ22ʷʺʷʺʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),an=Ht(`02222222222222222222222222222222222222222222222222222222222222222202021422222222CF2200GJ021042222WZ222IL0ad2c10h2222U00X202[^2w0000120zy|}22
:22z22222222222G000qOVI00000{2<40000@00000G¦§000ª00000000000000021K¬«00®000000000000000000000222HGH_1¸222½2¾2222ÇÊ000°2±`),on=/* @__PURE__ */ new Int32Array(987),sn=/* @__PURE__ */ new Int32Array(987),cn=/* @__PURE__ */ new Int32Array(987),ln=``,un=/* @__PURE__ */ new Int32Array(1022);{let e=/* @__PURE__ */ new Map,t=0,n=0;for(let r=0;r<nn.length;r++)for(let i of tn[an[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),un[a*2]=ln.length,un[a*2+1]=i.length,ln+=i),on[n]=nn[r],sn[n]=rn[r],cn[n]=a,n++}}var dn=Ht(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),fn=Vt(Q(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),pn=Ht(`24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222`),mn=Q(`ij`),hn=Q(``),gn=Q(`1`),_n={GROUP_COUNT:Ut,customValidatorNames:Wt,edgeStart:Gt,labelStart:Kt,labelText:qt,edgeTarget:Jt,nodeGroup:Yt,nodeVlist:en,vlistPat:Xt,vlistOps:Zt,vlistRef:Qt,vlistGroup:$t,litAnchor:on,litGroup:sn,litPool:cn,poolOffsets:un,poolText:ln,adjGid:dn,adjStart:fn,adjTgt:pn,patGid:mn,patTgt:hn,postfixLookupGroups:gn,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},vn=`line`in/* @__PURE__ */ Error(),$=-1,yn=-1,bn=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},xn=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Sn=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let O=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>O&&(O=t)}let k=32;for(;k<2*(1+O+S.length);)k<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let j=new Uint8Array(r);for(let e=0;e<w.length;e++)j[w[e]]=1;let M=i.length-1,N=new Uint8Array(M),P=0,F=!0;for(let e=0;e<m.length;e++){N[m[e]]=1;let t=_[g[e]*2+1];t>P&&(P=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(F=!1)}let I=1;for(;I<m.length*2;)I<<=1;let ee=new Int32Array(I).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(bn(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&I-1;for(;ee[n]!==-1;)n=n+1&I-1;ee[n]=e}let L=(e,t,n,r)=>{let i=(bn(t,n,r)^Math.imul(e,2654435761)|0)&I-1,a=r-n;for(;;){let r=ee[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&I-1}},R=n.cacheSize??8192,te=n.prefix??e.prefix??``,ne=te===``?``:te+`:`,re=ne.length,ie=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=0,le=-1,ue=-1,de=-1,fe=-1,pe=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,me=e=>/\s/.test(String.fromCharCode(e)),he=(e,t,n)=>{if(ce=0,le=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)ce=1;else if(r===40&&i===41)ce=2;else return;de=t+1,fe=n-1;let a=t+1;if(pe(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!pe(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(le=t+1,ue=a,de=a+1)}},B=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},ge=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ve=e=>!!e&&!Number.isNaN(Number(e)),ye=(e,t,n)=>{if(n-t<11||!B(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&B(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&B(e,t+10,t+18,`-normal/`)},be=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],xe=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Se=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Ce=(e,t,n,r)=>{if(e>=10){if(e>=25)return ie[e-25](t.slice(n,r));let i=e-10;if(ce!==be[i])return!1;if(le>=0){for(let e of xe[i])if(B(t,le,ue,e))return!0;return!1}switch(Se[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(de,fe);return z.test(e)&&!ae.test(e)}case 3:return ve(t.slice(de,fe));case 4:return se.test(t.slice(de,fe));default:return oe.test(t.slice(de,fe))}}switch(e){case 0:return!0;case 1:return ce===0;case 2:return ce===1;case 3:return ce===2;case 4:return ge.test(t.slice(n,r));case 5:return ve(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&ve(t.slice(n,r-1));case 8:return _e.test(t.slice(n,r));default:return ye(t,n,r)}},we=new Set(typeof E==`string`?E.split(` `):E),Te=(e,t,n,r,i,a)=>{let o=bn(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Ee=/* @__PURE__ */ new Map,De=/* @__PURE__ */ new Map,V=2,Oe=4096,ke=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||we.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=De.get(s);return c===void 0&&De.set(s,c=V++),c},Ae=/* @__PURE__ */ new Map,je=r,Me=r+4096,Ne=()=>je++,Pe=2097152,H=8192,Fe=new Int32Array(H),U=Array(H).fill(null),Ie=new Int32Array(H),Le=new Int32Array(H),Re=new Uint8Array(H),ze=0,Be=(e,t,n,r,i,a,o,s)=>{let c=e;if(U[e]!==null){if(U[e|1]===null)c=e|1;else if(!(ze++&3))c=e|ze>>2&1;else return}U[c]=t.slice(n,r),Fe[c]=i,Ie[c]=a,Le[c]=o,Re[c]=s},Ve=()=>U.fill(null),W=256,He=[new Int32Array(W),new Int32Array(W),new Int32Array(W),new Int32Array(W)],[Ue,We,Ge,Ke]=He,qe=new Uint8Array(W),Je=new Uint8Array(W),Ye=()=>{W*=2,He=He.map(e=>{let t=new Int32Array(W);return t.set(e),t}),[Ue,We,Ge,Ke]=He;let e=new Uint8Array(W);e.set(qe),qe=e,Je=new Uint8Array(W)},Xe=64,Ze=new Int32Array(Xe),Qe=new Int32Array(Xe),$e=new Int32Array(r),G=2048,et=21,tt=new Float64Array(G),nt=new Int32Array(G),K=0,rt=(e,t)=>{if(e===0&&t<r)return $e[t]===K?1:($e[t]=K,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>et;for(;nt[i]===K;){if(tt[i]===n)return 1;i=i+1&G-1}return tt[i]=n,nt[i]=K,0},q=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?$:Te(Ae,e,t+1,r,0,Ne)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=Qe[t];if(r>n)continue;let i=Ze[t],a=n-r;if(N[i]===1&&a>0&&a<=P){let t=e.charCodeAt(r);if(F===!1||t!==91&&t!==40){let t=L(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;he(e,r,n);let h=A[o]-c;for(let t=c;t<m;t++)if(Ce(d[t],e,r,n))return p[h+t]}return $},it=e=>{let t=e.length,n=0,c=0,u=!1;(V>Oe||Ee.size>Oe)&&(Ee=/* @__PURE__ */ new Map,De=/* @__PURE__ */ new Map,V=2,Ve()),je>Me&&(Ae=/* @__PURE__ */ new Map,je=r,Ve());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&me(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&me(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===W&&Ye();let _=n++;Ue[_]=p,We[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Fe[y]===v&&U[y]!==null&&U[y].length===g?t=y:Fe[y|1]===v&&U[y|1]!==null&&U[y|1].length===g&&(t=y|1),t>=0){let n=U[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){Ge[_]=Ie[t],Ke[_]=Le[t],qe[_]=Re[t];continue}}}let b=p;if(re!==0){if(h-p<=re||!e.startsWith(ne,p)){Ge[_]=$,Be(y,e,p,h,v,$,0,0);continue}b=p+re}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,O=!1,k=0;D>E&&e.charCodeAt(D-1)===33?(O=!0,D--):D>E&&e.charCodeAt(E)===33&&(O=!0,E++,k=1);let A=-1;w>T&&(A=w+k,A>=D&&(A=-1));let M=E;D-E>1&&e.charCodeAt(E)===45&&(M=E+1);let P=0,F=0,I=0,ee=-1,L=0;(l[0]>=0||N[0]===1)&&(Ze[0]=0,Qe[0]=M,L=1);let R=yn,te=0;for(let t=M;t<D;t++)if(t===A&&(R=F<I?yn:P,te=L),P!==yn){let n=e.charCodeAt(t),r=-1;if(F<I)o.charCodeAt(F)===n?(F++,F===I&&(r=P=ee)):P=yn;else{let e=i[P],t=i[P+1],c=yn;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(F=e+1,I=a[i+1],ee=s[i],c=P);break}}P=c}if(r>=0&&(l[r]>=0||N[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(L===Xe){Xe*=2;let e=new Int32Array(Xe);e.set(Ze),Ze=e;let t=new Int32Array(Xe);t.set(Qe),Qe=t}Ze[L]=r,Qe[L]=t+2,L++}}A===D&&(R=F<I?yn:P,te=L);let ie=F<I?yn:P,z,ae=!1;if(A>=0){if(ae=!0,z=q(e,E,A,R,te),z!==$&&z<r&&j[z]){let t=q(e,E,D,ie,L);t!==$&&t!==z&&(z=t,ae=!1)}else z===$&&(z=q(e,E,D,ie,L),ae=!1)}else z=q(e,E,D,ie,L);let oe=0,se=0;z===$?Ge[_]=$:(se=+!!ae,oe=b>=C?+!!O:Te(Ee,e,b,C,+!!O,e=>ke(e,O)),Ge[_]=z,qe[_]=se,Ke[_]=oe),Be(y,e,p,h,v,z,oe,se)}if(n===0)return``;if(n===1)return Ue[0]===0&&We[0]===t?e:e.slice(Ue[0],We[0]);if(n*k>G){for(;n*k>G;)G<<=1,et--;tt=new Float64Array(G),nt=new Int32Array(G)}if(V>=Pe||je>=Pe)throw Error(`cn: too many distinct classes in one merge`);K=K+1|0,K===0&&($e.fill(0),nt.fill(0),K=1);let f=!1;for(let e=n-1;e>=0;e--){let t=Ge[e];if(t===$){Je[e]=1;continue}let n=Ke[e];if(rt(n,t)===1)Je[e]=0,f=!0;else if(Je[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)rt(n,x[e]);if(qe[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&rt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!Je[m]){m++;continue}let t=Ue[m],r=We[m],i=m+1;for(;i<n&&Je[i]&&Ue[i]===r+1&&e.charCodeAt(r)===32;)r=We[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},J=16384,Y=new Int32Array(J*2),at=0,X=1,ot=Object.create(null),st=Object.create(null),Z=/* @__PURE__ */ new Map,ct=/* @__PURE__ */ new Map,lt=0,ut=0,dt=()=>{at^=J,X=X+1|0,ut=0},ft=e=>{let t=ot[e];if(t!==void 0)return t;let n=xn(e,0,e.length),r=(n&16383)+at,i=Y[r]===(n^X)||Y[r^J]===(n^X-1);return i&&(t=st[e],t!==void 0)?(ot[e]=t,t):(t=it(e),i?(ot[e]=t,++lt>R&&(lt=0,st=ot,ot=Object.create(null),dt())):(Y[r]=n^X,++ut>J&&dt()),t)},pt=e=>{let t=Z.get(e);if(t!==void 0)return t;let n=xn(e,0,e.length),r=(n&16383)+at,i=Y[r]===(n^X)||Y[r^J]===(n^X-1);return i&&(t=ct.get(e),t!==void 0)?(Z.set(e,t),t):(t=it(e),i?(Z.set(e,t),++lt>R&&(lt=0,ct=Z,Z=/* @__PURE__ */ new Map,dt())):(Y[r]=n^X,++ut>J&&dt()),t)},mt=e=>{let t=xn(e,0,e.length),n=(t&16383)+at;return Y[n]===(t^X)||Y[n^J]===(t^X-1)||(Y[n]=t^X,++ut>J&&dt(),!1)},ht=R===0?it:vn?e=>{let t=Z.get(e);return t===void 0?pt(e):t}:ft;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?ht(arguments[0]):ht(Tn.apply(null,arguments))},mergeString:ht,seenBefore:R===0?()=>!1:mt,mergeUncached:it}},Cn=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Cn(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},wn=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Cn(i,t);a&&(n&&(n+=` `),n+=a)}return n},Tn=function(){return wn(arguments,!1)},En=256,Dn=16,On=1024,kn=4096,An=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(kn).fill(``),l=Array(kn).fill(``),u=Array(kn).fill(``));let i=xn(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Cn(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>Dn&&(_.miss=Dn,_.skip=On,_.e.length=0,_.at=0);let u=_.e;u.length<En?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=/* @__PURE__ */ new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(Cn(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},jn=/* @__PURE__ */ Sn(_n),Mn=/* @__PURE__ */ An(jn.mergeString,jn);jn.merge;var Nn=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Pn(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Nn(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Fn=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},In=e=>{let t=Fn(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ln=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Rn={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function zn(e){return e!=null}function Bn(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Rn.width,a=e.size??e.height??Rn.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ln(...c):Ln(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Rn[`stroke-width`])*Number(e.size??e.width??Rn.width)/Number(t.size??t.width??Rn.width):t.strokeWidth??Rn[`stroke-width`];return[`svg`,{...Object.entries(Rn).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&zn(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&zn(t.width)&&{[r(`width`)]:t.width},...`height`in t&&zn(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Vn(e,t={}){return Bn(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Hn=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Un=d({}),Wn=()=>h(Un),Gn=p(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=Wn()??{},b=!!c||Hn(d),[x,S,C=[]]=Vn(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:Ln(y,s),hasA11yProp:b,attributes:d});return f(x,{ref:p,...S},[...C.map(([e,t])=>f(e,t)),...Array.isArray(c)?c:[c]])});function Kn(e,t=[],n=[]){let r=typeof e==`string`?Pn(e,t,n):e,i=p(({className:e,...t},n)=>f(Gn,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=In(r.name)),i}var qn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Jn=e,Yn=(e,t)=>n=>{if(t?.variants==null)return Jn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=qn(t)||qn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Jn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function Xn({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return/* @__PURE__ */ b(me,{"data-slot":`separator`,decorative:n,orientation:t,className:Mn(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...r})}export{T as _,Rt as a,gt as c,me as d,se as f,M as g,k as h,Mn as i,pt as l,A as m,Yn as n,Ct as o,ce as p,Kn as r,vt as s,Xn as t,q as u,E as v};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{F as e,I as t,L as n,o as r,y as i}from"./lib-CMURo-7A.js";var a={name:`tasklistCheck`,tokenize:s};function o(){return{text:{91:a}}}function s(r,i,a){let o=this;return s;function s(e){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?a(e):(r.enter(`taskListCheck`),r.enter(`taskListCheckMarker`),r.consume(e),r.exit(`taskListCheckMarker`),l)}function l(e){return t(e)?(r.enter(`taskListCheckValueUnchecked`),r.consume(e),r.exit(`taskListCheckValueUnchecked`),u):e===88||e===120?(r.enter(`taskListCheckValueChecked`),r.consume(e),r.exit(`taskListCheckValueChecked`),u):a(e)}function u(e){return e===93?(r.enter(`taskListCheckMarker`),r.consume(e),r.exit(`taskListCheckMarker`),r.exit(`taskListCheck`),d):a(e)}function d(t){return e(t)?i(t):n(t)?r.check({tokenize:c},i,a)(t):a(t)}}function c(e,t,n){return i(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function l(){return{exit:{taskListCheckValueChecked:d,taskListCheckValueUnchecked:d,paragraph:f}}}function u(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:p}}}function d(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function f(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function p(e,t,n,i){let a=e.children[0],o=typeof e.checked==`boolean`&&a&&a.type===`paragraph`,s=`[`+(e.checked?`x`:` `)+`] `,c=n.createTracker(i);o&&c.move(s);let l=r.listItem(e,t,n,{...i,...c.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(e){return e+s}}function m(e){return e.length}function h(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||m,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=g(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=_(r[d]);else{let e=_(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let h=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}h.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return h.join(`
|
|
2
|
-
`)}function g(e){return e==null?``:String(e)}function _(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function v(){return{enter:{table:y,tableData:C,tableHeader:C,tableRow:x},exit:{codeText:w,table:b,tableData:S,tableHeader:S,tableRow:S}}}function y(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function b(e){this.exit(e),this.data.inTable=void 0}function x(e){this.enter({type:`tableRow`,children:[]},e)}function S(e){this.exit(e)}function C(e){this.enter({type:`tableCell`,children:[]},e)}function w(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,T));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function T(e,t){return t===`|`?t:e}function E(e){let t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,o=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
3
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:c}};function s(e,t,n,r){return u(d(e,n,r),e.align)}function c(e,t,n,r){let i=u([f(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
4
|
-
`))}function l(e,t,n,r){let i=n.enter(`tableCell`),a=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function u(e,t){return h(e,{align:t,alignDelimiters:i,padding:n,stringLength:a})}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=f(r[i],t,n);return o(),a}function f(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=l(r[i],e,t,n);return o(),a}function p(e,t,n){let i=r.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(i=i.replace(/\|/g,`\\$&`)),i}}var D=class{constructor(){this.map=[],this.index=/* @__PURE__ */ new Map}add(e,t,n){O(this,e,t,n)}consume(e){
|
|
5
|
-
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
6
|
-
if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function O(e,t,n,r){
|
|
7
|
-
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
8
|
-
if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function k(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function A(){return{flow:{null:{name:`table`,tokenize:j,resolveAll:M}}}}function j(r,a,o){let s=this,c=0,l=0,u;return d;function d(e){let t=s.events.length-1;for(;t>-1;){let{type:e}=s.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let n=t>-1?s.events[t][1].type:null,r=n===`tableHead`||n===`tableRow`?E:f;return r===E&&s.parser.lazy[s.now().line]?o(e):r(e)}function f(e){return r.enter(`tableHead`),r.enter(`tableRow`),p(e)}function p(e){return e===124||(u=!0,l+=1),m(e)}function m(t){return t===null?o(t):e(t)?l>1?(l=0,s.interrupt=!0,r.exit(`tableRow`),r.enter(`lineEnding`),r.consume(t),r.exit(`lineEnding`),_):o(t):n(t)?i(r,m,`whitespace`)(t):(l+=1,u&&(u=!1,c+=1),t===124?(r.enter(`tableCellDivider`),r.consume(t),r.exit(`tableCellDivider`),u=!0,m):(r.enter(`data`),h(t)))}function h(e){return e===null||e===124||t(e)?(r.exit(`data`),m(e)):(r.consume(e),e===92?g:h)}function g(e){return e===92||e===124?(r.consume(e),h):h(e)}function _(e){return s.interrupt=!1,s.parser.lazy[s.now().line]?o(e):(r.enter(`tableDelimiterRow`),u=!1,n(e)?i(r,v,`linePrefix`,s.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(e):v(e))}function v(e){return e===45||e===58?b(e):e===124?(u=!0,r.enter(`tableCellDivider`),r.consume(e),r.exit(`tableCellDivider`),y):T(e)}function y(e){return n(e)?i(r,b,`whitespace`)(e):b(e)}function b(t){return t===58?(l+=1,u=!0,r.enter(`tableDelimiterMarker`),r.consume(t),r.exit(`tableDelimiterMarker`),x):t===45?(l+=1,x(t)):t===null||e(t)?w(t):T(t)}function x(e){return e===45?(r.enter(`tableDelimiterFiller`),S(e)):T(e)}function S(e){return e===45?(r.consume(e),S):e===58?(u=!0,r.exit(`tableDelimiterFiller`),r.enter(`tableDelimiterMarker`),r.consume(e),r.exit(`tableDelimiterMarker`),C):(r.exit(`tableDelimiterFiller`),C(e))}function C(e){return n(e)?i(r,w,`whitespace`)(e):w(e)}function w(t){return t===124?v(t):t===null||e(t)?!u||c!==l?T(t):(r.exit(`tableDelimiterRow`),r.exit(`tableHead`),a(t)):T(t)}function T(e){return o(e)}function E(e){return r.enter(`tableRow`),D(e)}function D(t){return t===124?(r.enter(`tableCellDivider`),r.consume(t),r.exit(`tableCellDivider`),D):t===null||e(t)?(r.exit(`tableRow`),a(t)):n(t)?i(r,D,`whitespace`)(t):(r.enter(`data`),O(t))}function O(e){return e===null||e===124||t(e)?(r.exit(`data`),D(e)):(r.consume(e),e===92?k:O)}function k(e){return e===92||e===124?(r.consume(e),O):O(e)}}function M(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new D;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(P(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=N(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=N(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=N(f,t,o,i,n,d)):(o[0]=o[1],d=N(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&P(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=k(t.events,n))}return e}function N(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},F(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=F(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=F(t.events,n[2]),a=F(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},F(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function P(e,t,n,r,i){let a=[],o=F(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function F(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}export{u as a,l as i,v as n,o,E as r,A as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-BWaJ3C7D.js";import{D as t,O as n}from"./matchContext-Bq5Es9aD.js";import{useCallback as r}from"react";var i=/* @__PURE__ */ e((e=>{var r=n(),i=t();function a(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var o=typeof Object.is==`function`?Object.is:a,s=i.useSyncExternalStore,c=r.useRef,l=r.useEffect,u=r.useMemo,d=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=c(null);if(a.current===null){var f={hasValue:!1,value:null};a.current=f}else f=a.current;a=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,o(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,a[0],a[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),a=/* @__PURE__ */ e((e=>{process.env.NODE_ENV!==`production`&&(function(){function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=n(),a=t(),o=typeof Object.is==`function`?Object.is:r,s=a.useSyncExternalStore,c=i.useRef,l=i.useEffect,u=i.useMemo,d=i.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=c(null);if(a.current===null){var f={hasValue:!1,value:null};a.current=f}else f=a.current;a=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,o(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,a[0],a[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),o=(/* @__PURE__ */ e(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?i():a()})))();function s(e,t){return e===t}function c(e,t=e=>e,n){let i=n?.compare??s,a=r(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),c=r(()=>e.get(),[e]);return(0,o.useSyncExternalStoreWithSelector)(a,c,c,t,i)}export{c as t};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { n as ResolvedImage } from "./index-CYbkNvu5.js";
|
|
2
|
-
import { i as CollectionSort } from "./types-DwA-C6Br.js";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { ReactElement, ReactNode } from "react";
|
|
5
|
-
import { RootContent } from "mdast";
|
|
6
|
-
/** `name="value"`, or `name={expression}` with the expression as source text. */
|
|
7
|
-
interface MdxJsxAttribute {
|
|
8
|
-
type: "mdxJsxAttribute";
|
|
9
|
-
name: string;
|
|
10
|
-
value?: string | {
|
|
11
|
-
type: "mdxJsxAttributeValueExpression";
|
|
12
|
-
value: string;
|
|
13
|
-
} | null;
|
|
14
|
-
}
|
|
15
|
-
/** `{...expression}`, as source text. */
|
|
16
|
-
interface MdxJsxExpressionAttribute {
|
|
17
|
-
type: "mdxJsxExpressionAttribute";
|
|
18
|
-
value: string;
|
|
19
|
-
}
|
|
20
|
-
/** The MDX element a component is written as. */
|
|
21
|
-
interface MdxJsxElement {
|
|
22
|
-
type: "mdxJsxFlowElement" | "mdxJsxTextElement";
|
|
23
|
-
name: string | null;
|
|
24
|
-
attributes: (MdxJsxAttribute | MdxJsxExpressionAttribute)[];
|
|
25
|
-
children: RootContent[];
|
|
26
|
-
}
|
|
27
|
-
/** The props a custom editor is rendered with. */
|
|
28
|
-
interface JsxEditorProps {
|
|
29
|
-
/** The element being edited. */
|
|
30
|
-
mdastNode: MdxJsxElement;
|
|
31
|
-
/** The component the element renders. */
|
|
32
|
-
descriptor: {
|
|
33
|
-
name: string | null;
|
|
34
|
-
kind: "flow" | "text";
|
|
35
|
-
hasChildren?: boolean;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/** A component's own editor in the admin, in place of the generated form. */
|
|
39
|
-
type JsxEditor = (props: JsxEditorProps) => ReactNode;
|
|
40
|
-
interface NestedLexicalEditorProps {
|
|
41
|
-
/** The part of the element to edit, usually its `children`. */
|
|
42
|
-
getContent: (node: MdxJsxElement) => RootContent[];
|
|
43
|
-
/** The element with the edited content put back. */
|
|
44
|
-
getUpdatedMdastNode: (node: MdxJsxElement, content: RootContent[]) => MdxJsxElement;
|
|
45
|
-
/** Whether the content is blocks (paragraphs, lists) rather than inline text. */
|
|
46
|
-
block?: boolean;
|
|
47
|
-
}
|
|
48
|
-
/** The runtime exports of `astronaut-cms/editor`. */
|
|
49
|
-
interface EditorExports {
|
|
50
|
-
/** A rich-text editor for content nested inside the element, such as its children. */
|
|
51
|
-
NestedLexicalEditor: (props: NestedLexicalEditorProps) => ReactElement;
|
|
52
|
-
/** Merges fields into the element being edited. */
|
|
53
|
-
useMdastNodeUpdater: () => (node: Partial<MdxJsxElement>) => void;
|
|
54
|
-
/** Removes the element being edited from the document. */
|
|
55
|
-
useLexicalNodeRemove: () => () => void;
|
|
56
|
-
}
|
|
57
|
-
/** What a component's `image()` prop is resolved with, `resolveImage` on the site. */
|
|
58
|
-
type ImageResolver = (path: string) => Promise<ResolvedImage>;
|
|
59
|
-
/**
|
|
60
|
-
* A collection image field that takes a file from either media library: an
|
|
61
|
-
* object-store URL as it is, or anything else through astro's own `image()`,
|
|
62
|
-
* which imports a repository file as ever. Typed as what arrives, so rendering a
|
|
63
|
-
* URL where only `ImageMetadata` is handled is a compile error rather than a
|
|
64
|
-
* failed build. The URL is left to astro, which optimizes it as a remote image,
|
|
65
|
-
* and whether it names a library file is checked when content is written.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* schema: ({ image }) => z.object({ cover: libraryImage(image) })
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
declare function libraryImage<T extends z.ZodType>(image: () => T): z.ZodUnion<readonly [z.ZodURL, T]>;
|
|
73
|
-
/** A Zod string naming a file in the media library, resolved to a bundled URL. */
|
|
74
|
-
declare const fileMarker: () => z.ZodString;
|
|
75
|
-
/**
|
|
76
|
-
* A Zod string holding a URL: relative, http, https, mailto or tel. The only
|
|
77
|
-
* field a URL may be written into, since plain text is refused as one. The check
|
|
78
|
-
* is part of the schema itself, so the site's own content validation enforces it
|
|
79
|
-
* too, not only the CMS.
|
|
80
|
-
*/
|
|
81
|
-
declare const linkMarker: () => z.ZodString;
|
|
82
|
-
/**
|
|
83
|
-
* A Zod string holding an element id that the component or layout renders, such
|
|
84
|
-
* as a section's `id`. Declaring it is what lets a `#id` link in the same entry
|
|
85
|
-
* be checked, since the CMS cannot tell which prop ends up as an id otherwise.
|
|
86
|
-
*/
|
|
87
|
-
declare const anchorMarker: () => z.ZodString;
|
|
88
|
-
/**
|
|
89
|
-
* One value per content language, such as a translated title in an otherwise
|
|
90
|
-
* language-neutral entry. Stored as `{ de: "…", en: "…" }` and read with
|
|
91
|
-
* `pickLocale` from `astronaut-cms/content`. The admin edits it in a tab per
|
|
92
|
-
* language, and the default language is required, which the build and every
|
|
93
|
-
* save check, since only the CMS knows the site's languages.
|
|
94
|
-
*/
|
|
95
|
-
declare const localizedMarker: <T extends z.ZodType>(schema: T) => z.ZodRecord<z.ZodString, T>;
|
|
96
|
-
/** A Zod string that references an entry id in another collection. */
|
|
97
|
-
declare const referenceMarker: (collection: string) => z.ZodString;
|
|
98
|
-
/**
|
|
99
|
-
* What a component's props function is handed, mirroring the `({ image })` bag
|
|
100
|
-
* astro gives a collection schema. Handing them in rather than exporting them is
|
|
101
|
-
* what keeps an `image()` meant for a component prop out of a `content.config.ts`,
|
|
102
|
-
* where astro's own helper is the only one that resolves.
|
|
103
|
-
*/
|
|
104
|
-
declare function schemaHelpers(resolveImage: ImageResolver): {
|
|
105
|
-
image: () => z.ZodPipe<z.ZodString, z.ZodTransform<string | import("astro").ImageMetadata, string>>;
|
|
106
|
-
file: typeof fileMarker;
|
|
107
|
-
link: typeof linkMarker;
|
|
108
|
-
anchor: typeof anchorMarker;
|
|
109
|
-
localized: typeof localizedMarker;
|
|
110
|
-
reference: typeof referenceMarker;
|
|
111
|
-
};
|
|
112
|
-
/** An icon for the admin, such as one of `lucide-react`'s. */
|
|
113
|
-
type ComponentIcon = (props: {
|
|
114
|
-
className?: string;
|
|
115
|
-
}) => ReactNode;
|
|
116
|
-
/**
|
|
117
|
-
* Filled in for each site by the types the integration generates, with the
|
|
118
|
-
* collection names of its content config. Empty where those types are not loaded.
|
|
119
|
-
*/
|
|
120
|
-
interface CollectionRegistry {}
|
|
121
|
-
/** A collection of the content config, or any string before `astro sync` names them. */
|
|
122
|
-
type CollectionName = CollectionRegistry extends {
|
|
123
|
-
name: infer N extends string;
|
|
124
|
-
} ? N : string;
|
|
125
|
-
type Helpers = ReturnType<typeof schemaHelpers>;
|
|
126
|
-
/**
|
|
127
|
-
* The asset, link, anchor and reference helpers a component's props function
|
|
128
|
-
* receives. An `image()` prop is written as a path and rendered as the image it
|
|
129
|
-
* resolves to, as a collection's `image()` field arrives.
|
|
130
|
-
*/
|
|
131
|
-
type SchemaHelpers = Omit<Helpers, "reference"> & {
|
|
132
|
-
reference: (collection: CollectionName) => ReturnType<Helpers["reference"]>;
|
|
133
|
-
};
|
|
134
|
-
type ChildrenConfig = "markdown" | Record<string, ComponentDefinition>;
|
|
135
|
-
interface ComponentDefinition<T extends z.ZodType<object> = z.ZodType<object>, C extends ChildrenConfig = ChildrenConfig> {
|
|
136
|
-
/**
|
|
137
|
-
* The component's props, either as a Zod object or as a function handed the
|
|
138
|
-
* schema helpers, exactly like astro's collection `schema`. Reach for the
|
|
139
|
-
* function form only when a prop names an asset, a link, an anchor or an entry.
|
|
140
|
-
* Left out, the component takes no props.
|
|
141
|
-
*/
|
|
142
|
-
props?: T | ((helpers: SchemaHelpers) => T);
|
|
143
|
-
/**
|
|
144
|
-
* The `.astro` component that renders it, imported as the site imports it,
|
|
145
|
-
* such as `"@/components/Hero.astro"`, or relative to `cms.config`.
|
|
146
|
-
* Every MDX body can use it by name, with the schema's defaults applied.
|
|
147
|
-
*/
|
|
148
|
-
component: string;
|
|
149
|
-
children?: C;
|
|
150
|
-
kind?: "flow" | "text";
|
|
151
|
-
label?: string;
|
|
152
|
-
/** What the component is for, shown when inserting and editing it. */
|
|
153
|
-
description?: string;
|
|
154
|
-
/**
|
|
155
|
-
* The collections whose entries the component renders, such as `["projects"]`.
|
|
156
|
-
* Selecting it in the admin links to them, since that is where its content is edited.
|
|
157
|
-
*/
|
|
158
|
-
collections?: CollectionName[];
|
|
159
|
-
/**
|
|
160
|
-
* The prop that names an instance in the admin, such as `"title"`. Defaults to
|
|
161
|
-
* the first required text prop with a value, then to any text prop with one.
|
|
162
|
-
*/
|
|
163
|
-
summary?: string;
|
|
164
|
-
icon?: ComponentIcon;
|
|
165
|
-
editor?: JsxEditor;
|
|
166
|
-
}
|
|
167
|
-
/** What `cms.config` adds to one collection of the content config. */
|
|
168
|
-
interface CollectionOptions {
|
|
169
|
-
/**
|
|
170
|
-
* How entries are ordered, both in the admin and for the site through
|
|
171
|
-
* `sortEntries` from `astronaut-cms/content` (default: "id", astro's own
|
|
172
|
-
* order). "file" keeps the order of a `file()` collection's file, which
|
|
173
|
-
* editors can then change.
|
|
174
|
-
*/
|
|
175
|
-
sort?: CollectionSort;
|
|
176
|
-
/** What the admin calls the collection (default: its name, title-cased). */
|
|
177
|
-
label?: string;
|
|
178
|
-
/** What the collection is for, shown in the admin and told to agents. */
|
|
179
|
-
description?: string;
|
|
180
|
-
icon?: ComponentIcon;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* One entry of the `collections` export of `cms.config`, keyed like the
|
|
184
|
-
* collections of `content.config`, as {@link defineComponent} is one entry of
|
|
185
|
-
* `components`.
|
|
186
|
-
*/
|
|
187
|
-
declare function defineCollection(options: CollectionOptions): CollectionOptions;
|
|
188
|
-
/**
|
|
189
|
-
* One entry of the `components` export of `cms.config`. The integration renders
|
|
190
|
-
* it in MDX through a generated wrapper, which `astronaut-cms:components` exports.
|
|
191
|
-
*/
|
|
192
|
-
declare function defineComponent<T extends z.ZodType<object> = z.ZodObject<{}>, C extends ChildrenConfig = never>(def: ComponentDefinition<T, C>): ComponentDefinition<T, C>;
|
|
193
|
-
export { EditorExports as _, ComponentDefinition as a, defineCollection as c, anchorMarker as d, fileMarker as f, referenceMarker as g, localizedMarker as h, CollectionRegistry as i, defineComponent as l, linkMarker as m, CollectionName as n, ComponentIcon as o, libraryImage as p, CollectionOptions as r, SchemaHelpers as s, ChildrenConfig as t, ImageResolver as u, JsxEditor as v, JsxEditorProps as y };
|