@yama-cms/theme-toolbar 0.1.2 → 0.2.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/README.md +9 -0
- package/dist/yama-toolbar.css +1 -1
- package/dist/yama-toolbar.es.js +3577 -2355
- package/dist/yama-toolbar.umd.js +106 -44
- package/package.json +6 -3
package/dist/yama-toolbar.umd.js
CHANGED
|
@@ -1,78 +1,140 @@
|
|
|
1
|
-
(function(p,
|
|
1
|
+
(function(p,Xe){typeof exports=="object"&&typeof module<"u"?Xe(require("react"),require("react-dom/client"),require("react-dom"),require("react-fontpicker-ts"),require("react-fontpicker-ts/dist/index.css")):typeof define=="function"&&define.amd?define(["react","react-dom/client","react-dom","react-fontpicker-ts","react-fontpicker-ts/dist/index.css"],Xe):(p=typeof globalThis<"u"?globalThis:p||self,Xe(p.React,p.client,p.ReactDOM,p.FontPicker))})(this,(function(p,Xe,kn,yn){"use strict";function zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ut={exports:{}},Ke={};var En;function Ts(){if(En)return Ke;En=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,o){var i=null;if(o!==void 0&&(i=""+o),s.key!==void 0&&(i=""+s.key),"key"in s){o={};for(var a in s)a!=="key"&&(o[a]=s[a])}else o=s;return s=o.ref,{$$typeof:e,type:r,key:i,ref:s!==void 0?s:null,props:o}}return Ke.Fragment=t,Ke.jsx=n,Ke.jsxs=n,Ke}var Qe={};var zn;function Ss(){return zn||(zn=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===lt?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case T:return"Fragment";case ce:return"Profiler";case E:return"StrictMode";case V:return"Suspense";case ge:return"SuspenseList";case Ve:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case C:return"Portal";case $:return g.displayName||"Context";case B:return(g._context.displayName||"Context")+".Consumer";case I:var x=g.render;return g=g.displayName,g||(g=x.displayName||x.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ue:return x=g.displayName||null,x!==null?x:e(g.type)||"Memo";case Pe:x=g._payload,g=g._init;try{return e(g(x))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var x=!1}catch{x=!0}if(x){x=console;var w=x.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return w.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),t(g)}}function r(g){if(g===T)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===Pe)return"<...>";try{var x=e(g);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function s(){var g=xe.A;return g===null?null:g.getOwner()}function o(){return Error("react-stack-top-frame")}function i(g){if(te.call(g,"key")){var x=Object.getOwnPropertyDescriptor(g,"key").get;if(x&&x.isReactWarning)return!1}return g.key!==void 0}function a(g,x){function w(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}w.isReactWarning=!0,Object.defineProperty(g,"key",{get:w,configurable:!0})}function u(){var g=e(this.type);return G[g]||(G[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function l(g,x,w,k,P,H){var A=w.ref;return g={$$typeof:_,type:g,key:x,props:w,_owner:k},(A!==void 0?A:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:u}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function h(g,x,w,k,P,H){var A=x.children;if(A!==void 0)if(k)if(Ge(A)){for(k=0;k<A.length;k++)c(A[k]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(A);if(te.call(x,"key")){A=e(g);var R=Object.keys(x).filter(function(Ye){return Ye!=="key"});k=0<R.length?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}",ee[A+k]||(R=0<R.length?"{"+R.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,_,A,S,A),W[A+_]=!0)}if(A=null,w!==void 0&&(n(w),A=""+w),a(k)&&(n(k.key),A=""+k.key),"key"in k){w={};for(var fe in k)fe!=="key"&&(w[fe]=k[fe])}else w=k;return A&&i(w,typeof f=="function"?f.displayName||f.name||"Unknown":f),c(f,A,w,s(),P,V)}function l(f){g(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===Se&&(f._payload.status==="fulfilled"?g(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function g(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var b=p,x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),Oe=Symbol.for("react.activity"),Ge=Symbol.for("react.client.reference"),xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,Ce=Array.isArray,we=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(f){return f()}};var $,I={},ae=b.react_stack_bottom_frame.bind(b,o)(),he=we(r(o)),W={};Ue.Fragment=j,Ue.jsx=function(f,k,w){var _=1e4>xe.recentlyCreatedOwnerStacks++;return h(f,k,w,!1,_?Error("react-stack-top-frame"):ae,_?we(r(f)):he)},Ue.jsxs=function(f,k,w){var _=1e4>xe.recentlyCreatedOwnerStacks++;return h(f,k,w,!0,_?Error("react-stack-top-frame"):ae,_?we(r(f)):he)}})()),Ue}var en;function yr(){return en||(en=1,process.env.NODE_ENV==="production"?Xe.exports=xr():Xe.exports=wr()),Xe.exports}var d=yr();function kr(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const vr=e=>{switch(e){case"success":return zr;case"info":return Sr;case"warning":return Rr;case"error":return $r;default:return null}},_r=Array(12).fill(0),Tr=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},_r.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),zr=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Rr=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Sr=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),$r=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Er=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jr=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let kt=1;class Pr{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...s}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:kt++,a=this.toasts.find(u=>u.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(u=>u.id===o?(this.publish({...u,...t,id:o,title:r}),{...u,...t,id:o,dismissible:i,title:r}):u):this.addToast({title:r,...s,dismissible:i,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,a;const i=s.then(async c=>{if(a=["resolve",c],p.isValidElement(c))o=!1,this.create({id:r,type:"default",message:c});else if(Ar(c)&&!c.ok){o=!1;const l=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,x=typeof l=="object"&&!p.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:g,...x})}else if(c instanceof Error){o=!1;const l=typeof n.error=="function"?await n.error(c):n.error,g=typeof n.description=="function"?await n.description(c):n.description,x=typeof l=="object"&&!p.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:g,...x})}else if(n.success!==void 0){o=!1;const l=typeof n.success=="function"?await n.success(c):n.success,g=typeof n.description=="function"?await n.description(c):n.description,x=typeof l=="object"&&!p.isValidElement(l)?l:{message:l};this.create({id:r,type:"success",description:g,...x})}}).catch(async c=>{if(a=["reject",c],n.error!==void 0){o=!1;const h=typeof n.error=="function"?await n.error(c):n.error,l=typeof n.description=="function"?await n.description(c):n.description,b=typeof h=="object"&&!p.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:l,...b})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),u=()=>new Promise((c,h)=>i.then(()=>a[0]==="reject"?h(a[1]):c(a[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,n)=>{const r=n?.id||kt++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Y=new Pr,Zr=(e,t)=>{const n=t?.id||kt++;return Y.addToast({title:e,...t,id:n}),n},Ar=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Or=Zr,Cr=()=>Y.toasts,Ir=()=>Y.getActiveToasts(),vt=Object.assign(Or,{success:Y.success,info:Y.info,warning:Y.warning,error:Y.error,custom:Y.custom,message:Y.message,promise:Y.promise,dismiss:Y.dismiss,loading:Y.loading},{getHistory:Cr,getToasts:Ir});kr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ke(e){return e.label!==void 0}const Nr=3,Dr="24px",Lr="16px",tn=4e3,Mr=356,Br=14,Fr=45,Ur=200;function ce(...e){return e.filter(Boolean).join(" ")}function qr(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Vr=e=>{var t,n,r,s,o,a,i,u,c;const{invert:h,toast:l,unstyled:g,interacting:b,setHeights:x,visibleToasts:E,heights:j,index:v,toasts:oe,expanded:G,removeToast:Q,defaultRichColors:ge,closeButton:M,style:Re,cancelButtonStyle:be,actionButtonStyle:Se,className:Oe="",descriptionClassName:Ge="",duration:xe,position:X,gap:Ce,expandByDefault:we,classNames:$,icons:I,closeButtonAriaLabel:ae="Close toast"}=e,[he,W]=p.useState(null),[f,k]=p.useState(null),[w,_]=p.useState(!1),[P,V]=p.useState(!1),[A,S]=p.useState(!1),[fe,Ie]=p.useState(!1),[bt,Ne]=p.useState(!1),[nc,Jt]=p.useState(0),[rc,lr]=p.useState(0),Qe=p.useRef(l.duration||xe||tn),cr=p.useRef(null),ye=p.useRef(null),sc=v===0,oc=v+1<=E,K=l.type,De=l.dismissible!==!1,ac=l.className||"",ic=l.descriptionClassName||"",xt=p.useMemo(()=>j.findIndex(T=>T.toastId===l.id)||0,[j,l.id]),lc=p.useMemo(()=>{var T;return(T=l.closeButton)!=null?T:M},[l.closeButton,M]),ur=p.useMemo(()=>l.duration||xe||tn,[l.duration,xe]),Ht=p.useRef(0),Le=p.useRef(0),dr=p.useRef(0),Me=p.useRef(null),[cc,uc]=X.split("-"),hr=p.useMemo(()=>j.reduce((T,L,J)=>J>=xt?T:T+L.height,0),[j,xt]),fr=jr(),dc=l.invert||h,Yt=K==="loading";Le.current=p.useMemo(()=>xt*Ce+hr,[xt,hr]),p.useEffect(()=>{Qe.current=ur},[ur]),p.useEffect(()=>{_(!0)},[]),p.useEffect(()=>{const T=ye.current;if(T){const L=T.getBoundingClientRect().height;return lr(L),x(J=>[{toastId:l.id,height:L,position:l.position},...J]),()=>x(J=>J.filter(ee=>ee.toastId!==l.id))}},[x,l.id]),p.useLayoutEffect(()=>{if(!w)return;const T=ye.current,L=T.style.height;T.style.height="auto";const J=T.getBoundingClientRect().height;T.style.height=L,lr(J),x(ee=>ee.find(B=>B.toastId===l.id)?ee.map(B=>B.toastId===l.id?{...B,height:J}:B):[{toastId:l.id,height:J,position:l.position},...ee])},[w,l.title,l.description,x,l.id,l.jsx,l.action,l.cancel]);const ve=p.useCallback(()=>{V(!0),Jt(Le.current),x(T=>T.filter(L=>L.toastId!==l.id)),setTimeout(()=>{Q(l)},Ur)},[l,Q,x,Le]);p.useEffect(()=>{if(l.promise&&K==="loading"||l.duration===1/0||l.type==="loading")return;let T;return G||b||fr?(()=>{if(dr.current<Ht.current){const ee=new Date().getTime()-Ht.current;Qe.current=Qe.current-ee}dr.current=new Date().getTime()})():Qe.current!==1/0&&(Ht.current=new Date().getTime(),T=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),ve()},Qe.current)),()=>clearTimeout(T)},[G,b,l,K,fr,ve]),p.useEffect(()=>{l.delete&&(ve(),l.onDismiss==null||l.onDismiss.call(l,l))},[ve,l.delete]);function hc(){var T;if(I?.loading){var L;return p.createElement("div",{className:ce($?.loader,l==null||(L=l.classNames)==null?void 0:L.loader,"sonner-loader"),"data-visible":K==="loading"},I.loading)}return p.createElement(Tr,{className:ce($?.loader,l==null||(T=l.classNames)==null?void 0:T.loader),visible:K==="loading"})}const fc=l.icon||I?.[K]||vr(K);var pr,mr;return p.createElement("li",{tabIndex:0,ref:ye,className:ce(Oe,ac,$?.toast,l==null||(t=l.classNames)==null?void 0:t.toast,$?.default,$?.[K],l==null||(n=l.classNames)==null?void 0:n[K]),"data-sonner-toast":"","data-rich-colors":(pr=l.richColors)!=null?pr:ge,"data-styled":!(l.jsx||l.unstyled||g),"data-mounted":w,"data-promise":!!l.promise,"data-swiped":bt,"data-removed":P,"data-visible":oc,"data-y-position":cc,"data-x-position":uc,"data-index":v,"data-front":sc,"data-swiping":A,"data-dismissible":De,"data-type":K,"data-invert":dc,"data-swipe-out":fe,"data-swipe-direction":f,"data-expanded":!!(G||we&&w),"data-testid":l.testId,style:{"--index":v,"--toasts-before":v,"--z-index":oe.length-v,"--offset":`${P?nc:Le.current}px`,"--initial-height":we?"auto":`${rc}px`,...Re,...l.style},onDragEnd:()=>{S(!1),W(null),Me.current=null},onPointerDown:T=>{T.button!==2&&(Yt||!De||(cr.current=new Date,Jt(Le.current),T.target.setPointerCapture(T.pointerId),T.target.tagName!=="BUTTON"&&(S(!0),Me.current={x:T.clientX,y:T.clientY})))},onPointerUp:()=>{var T,L,J;if(fe||!De)return;Me.current=null;const ee=Number(((T=ye.current)==null?void 0:T.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wt=Number(((L=ye.current)==null?void 0:L.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),B=new Date().getTime()-((J=cr.current)==null?void 0:J.getTime()),ne=he==="x"?ee:wt,yt=Math.abs(ne)/B;if(Math.abs(ne)>=Fr||yt>.11){Jt(Le.current),l.onDismiss==null||l.onDismiss.call(l,l),k(he==="x"?ee>0?"right":"left":wt>0?"down":"up"),ve(),Ie(!0);return}else{var ie,le;(ie=ye.current)==null||ie.style.setProperty("--swipe-amount-x","0px"),(le=ye.current)==null||le.style.setProperty("--swipe-amount-y","0px")}Ne(!1),S(!1),W(null)},onPointerMove:T=>{var L,J,ee;if(!Me.current||!De||((L=window.getSelection())==null?void 0:L.toString().length)>0)return;const B=T.clientY-Me.current.y,ne=T.clientX-Me.current.x;var yt;const ie=(yt=e.swipeDirections)!=null?yt:qr(X);!he&&(Math.abs(ne)>1||Math.abs(B)>1)&&W(Math.abs(ne)>Math.abs(B)?"x":"y");let le={x:0,y:0};const gr=$e=>1/(1.5+Math.abs($e)/20);if(he==="y"){if(ie.includes("top")||ie.includes("bottom"))if(ie.includes("top")&&B<0||ie.includes("bottom")&&B>0)le.y=B;else{const $e=B*gr(B);le.y=Math.abs($e)<Math.abs(B)?$e:B}}else if(he==="x"&&(ie.includes("left")||ie.includes("right")))if(ie.includes("left")&&ne<0||ie.includes("right")&&ne>0)le.x=ne;else{const $e=ne*gr(ne);le.x=Math.abs($e)<Math.abs(ne)?$e:ne}(Math.abs(le.x)>0||Math.abs(le.y)>0)&&Ne(!0),(J=ye.current)==null||J.style.setProperty("--swipe-amount-x",`${le.x}px`),(ee=ye.current)==null||ee.style.setProperty("--swipe-amount-y",`${le.y}px`)}},lc&&!l.jsx&&K!=="loading"?p.createElement("button",{"aria-label":ae,"data-disabled":Yt,"data-close-button":!0,onClick:Yt||!De?()=>{}:()=>{ve(),l.onDismiss==null||l.onDismiss.call(l,l)},className:ce($?.closeButton,l==null||(r=l.classNames)==null?void 0:r.closeButton)},(mr=I?.close)!=null?mr:Er):null,(K||l.icon||l.promise)&&l.icon!==null&&(I?.[K]!==null||l.icon)?p.createElement("div",{"data-icon":"",className:ce($?.icon,l==null||(s=l.classNames)==null?void 0:s.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||hc():null,l.type!=="loading"?fc:null):null,p.createElement("div",{"data-content":"",className:ce($?.content,l==null||(o=l.classNames)==null?void 0:o.content)},p.createElement("div",{"data-title":"",className:ce($?.title,l==null||(a=l.classNames)==null?void 0:a.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?p.createElement("div",{"data-description":"",className:ce(Ge,ic,$?.description,l==null||(i=l.classNames)==null?void 0:i.description)},typeof l.description=="function"?l.description():l.description):null),p.isValidElement(l.cancel)?l.cancel:l.cancel&&Ke(l.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||be,onClick:T=>{Ke(l.cancel)&&De&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,T),ve())},className:ce($?.cancelButton,l==null||(u=l.classNames)==null?void 0:u.cancelButton)},l.cancel.label):null,p.isValidElement(l.action)?l.action:l.action&&Ke(l.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||Se,onClick:T=>{Ke(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,T),!T.defaultPrevented&&ve())},className:ce($?.actionButton,l==null||(c=l.classNames)==null?void 0:c.actionButton)},l.action.label):null)};function nn(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Jr(e,t){const n={};return[e,t].forEach((r,s)=>{const o=s===1,a=o?"--mobile-offset":"--offset",i=o?Lr:Dr;function u(c){["top","right","bottom","left"].forEach(h=>{n[`${a}-${h}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${a}-${c}`]=i:n[`${a}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):u(i)}),n}const Hr=p.forwardRef(function(t,n){const{id:r,invert:s,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:u,className:c,offset:h,mobileOffset:l,theme:g="light",richColors:b,duration:x,style:E,visibleToasts:j=Nr,toastOptions:v,dir:oe=nn(),gap:G=Br,icons:Q,containerAriaLabel:ge="Notifications"}=t,[M,Re]=p.useState([]),be=p.useMemo(()=>r?M.filter(w=>w.toasterId===r):M.filter(w=>!w.toasterId),[M,r]),Se=p.useMemo(()=>Array.from(new Set([o].concat(be.filter(w=>w.position).map(w=>w.position)))),[be,o]),[Oe,Ge]=p.useState([]),[xe,X]=p.useState(!1),[Ce,we]=p.useState(!1),[$,I]=p.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ae=p.useRef(null),he=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=p.useRef(null),f=p.useRef(!1),k=p.useCallback(w=>{Re(_=>{var P;return(P=_.find(V=>V.id===w.id))!=null&&P.delete||Y.dismiss(w.id),_.filter(({id:V})=>V!==w.id)})},[]);return p.useEffect(()=>Y.subscribe(w=>{if(w.dismiss){requestAnimationFrame(()=>{Re(_=>_.map(P=>P.id===w.id?{...P,delete:!0}:P))});return}setTimeout(()=>{Qt.flushSync(()=>{Re(_=>{const P=_.findIndex(V=>V.id===w.id);return P!==-1?[..._.slice(0,P),{..._[P],...w},..._.slice(P+1)]:[w,..._]})})})}),[M]),p.useEffect(()=>{if(g!=="system"){I(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const w=window.matchMedia("(prefers-color-scheme: dark)");try{w.addEventListener("change",({matches:_})=>{I(_?"dark":"light")})}catch{w.addListener(({matches:P})=>{try{I(P?"dark":"light")}catch(V){console.error(V)}})}},[g]),p.useEffect(()=>{M.length<=1&&X(!1)},[M]),p.useEffect(()=>{const w=_=>{var P;if(a.every(S=>_[S]||_.code===S)){var A;X(!0),(A=ae.current)==null||A.focus()}_.code==="Escape"&&(document.activeElement===ae.current||(P=ae.current)!=null&&P.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[a]),p.useEffect(()=>{if(ae.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,f.current=!1)}},[ae.current]),p.createElement("section",{ref:n,"aria-label":`${ge} ${he}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Se.map((w,_)=>{var P;const[V,A]=w.split("-");return be.length?p.createElement("ol",{key:w,dir:oe==="auto"?nn():oe,tabIndex:-1,ref:ae,className:c,"data-sonner-toaster":!0,"data-sonner-theme":$,"data-y-position":V,"data-x-position":A,style:{"--front-toast-height":`${((P=Oe[0])==null?void 0:P.height)||0}px`,"--width":`${Mr}px`,"--gap":`${G}px`,...E,...Jr(h,l)},onBlur:S=>{f.current&&!S.currentTarget.contains(S.relatedTarget)&&(f.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:S=>{S.target instanceof HTMLElement&&S.target.dataset.dismissible==="false"||f.current||(f.current=!0,W.current=S.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{Ce||X(!1)},onDragEnd:()=>X(!1),onPointerDown:S=>{S.target instanceof HTMLElement&&S.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},be.filter(S=>!S.position&&_===0||S.position===w).map((S,fe)=>{var Ie,bt;return p.createElement(Vr,{key:S.id,icons:Q,index:fe,toast:S,defaultRichColors:b,duration:(Ie=v?.duration)!=null?Ie:x,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:s,visibleToasts:j,closeButton:(bt=v?.closeButton)!=null?bt:u,interacting:Ce,position:w,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:k,toasts:be.filter(Ne=>Ne.position==S.position),heights:Oe.filter(Ne=>Ne.position==S.position),setHeights:Ge,expandByDefault:i,gap:G,expanded:xe,swipeDirections:t.swipeDirections})})):null}))});var rn;function m(e,t,n){function r(i,u){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,u);const c=a.prototype,h=Object.keys(c);for(let l=0;l<h.length;l++){const g=h[l];g in i||(i[g]=c[g].bind(i))}}const s=n?.Parent??Object;class o extends s{}Object.defineProperty(o,"name",{value:e});function a(i){var u;const c=n?.Parent?new o:this;r(c,i),(u=c._zod).deferred??(u.deferred=[]);for(const h of c._zod.deferred)h();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:i=>n?.Parent&&i instanceof n.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class Ee extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class sn extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(rn=globalThis).__zod_globalConfig??(rn.__zod_globalConfig={});const Yr=globalThis.__zod_globalConfig;function pe(e){return Yr}function _t(e,t){return typeof t=="bigint"?t.toString():t}function Tt(e){return e==null}function zt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const on=Symbol("evaluating");function Z(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==on)return r===void 0&&(r=on,r=n()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Wr(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Gr(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const an="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ln(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function et(e){if(ln(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(ln(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function cn(e){return et(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Rt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qr(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function y(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function je(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Xr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function qe(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function tt(e){return typeof e=="string"?e:e?.message}function me(e,t,n){const r=e.message?e.message:tt(e.inst?._zod.def?.error?.(e))??tt(t?.error?.(e))??tt(n.customError?.(e))??tt(n.localeError?.(e))??"Invalid input",{inst:s,continue:o,input:a,...i}=e;return i.path??(i.path=[]),i.message=r,t?.reportInput&&(i.input=a),i}function St(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ve(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const un=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,_t,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dn=m("$ZodError",un),hn=m("$ZodError",un,{Parent:Error});function Kr(e,t=n=>n.message){const n={},r=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}function es(e,t=n=>n.message){const n={_errors:[]},r=(s,o=[])=>{for(const a of s.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(i=>r({issues:i},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{const i=[...o,...a.path];if(i.length===0)n._errors.push(t(a));else{let u=n,c=0;for(;c<i.length;){const h=i[c];c===i.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(a))):u[h]=u[h]||{_errors:[]},u=u[h],c++}}}};return r(e),n}const $t=e=>(t,n,r,s)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Ee;if(a.issues.length){const i=new(s?.Err??e)(a.issues.map(u=>me(u,o,pe())));throw an(i,s?.callee),i}return a.value},Et=e=>async(t,n,r,s)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const i=new(s?.Err??e)(a.issues.map(u=>me(u,o,pe())));throw an(i,s?.callee),i}return a.value},nt=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},s);if(o instanceof Promise)throw new Ee;return o.issues.length?{success:!1,error:new(e??dn)(o.issues.map(a=>me(a,s,pe())))}:{success:!0,data:o.value}},ts=nt(hn),rt=e=>async(t,n,r)=>{const s=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},s);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>me(a,s,pe())))}:{success:!0,data:o.value}},ns=rt(hn),rs=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return $t(e)(t,n,s)},ss=e=>(t,n,r)=>$t(e)(t,n,r),os=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Et(e)(t,n,s)},as=e=>async(t,n,r)=>Et(e)(t,n,r),is=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return nt(e)(t,n,s)},ls=e=>(t,n,r)=>nt(e)(t,n,r),cs=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return rt(e)(t,n,s)},us=e=>async(t,n,r)=>rt(e)(t,n,r),ds=/^[cC][0-9a-z]{6,}$/,hs=/^[0-9a-z]+$/,fs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ps=/^[0-9a-vA-V]{20}$/,ms=/^[A-Za-z0-9]{27}$/,gs=/^[a-zA-Z0-9_-]{21}$/,bs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xs=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ws=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ys="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ks(){return new RegExp(ys,"u")}const vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_s=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ts=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zs=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pn=/^[A-Za-z0-9_-]*$/,Ss=/^https?$/,$s=/^\+[1-9]\d{6,14}$/,mn="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Es=new RegExp(`^${mn}$`);function gn(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function js(e){return new RegExp(`^${gn(e)}$`)}function Ps(e){const t=gn({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${mn}T(?:${r})$`)}const Zs=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},As=/^-?\d+(?:\.\d+)?$/,Os=/^[^A-Z]*$/,Cs=/^[^a-z]*$/,ue=m("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Is=m("$ZodCheckMaxLength",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Tt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const a=St(s);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ns=m("$ZodCheckMinLength",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Tt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const a=St(s);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ds=m("$ZodCheckLengthEquals",(e,t)=>{var n;ue.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Tt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,o=s.length;if(o===t.length)return;const a=St(s),i=o>t.length;r.issues.push({origin:a,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),st=m("$ZodCheckStringFormat",(e,t)=>{var n,r;ue.init(e,t),e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ls=m("$ZodCheckRegex",(e,t)=>{st.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ms=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Os),st.init(e,t)}),Bs=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Cs),st.init(e,t)}),Fs=m("$ZodCheckIncludes",(e,t)=>{ue.init(e,t);const n=Rt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),Us=m("$ZodCheckStartsWith",(e,t)=>{ue.init(e,t);const n=new RegExp(`^${Rt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),qs=m("$ZodCheckEndsWith",(e,t)=>{ue.init(e,t);const n=new RegExp(`.*${Rt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Vs=m("$ZodCheckOverwrite",(e,t)=>{ue.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),Js={major:4,minor:4,patch:3},F=m("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Js;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const o of s._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,i,u)=>{let c=je(a),h;for(const l of i){if(l._zod.def.when){if(Xr(a)||!l._zod.def.when(a))continue}else if(c)continue;const g=a.issues.length,b=l._zod.check(a);if(b instanceof Promise&&u?.async===!1)throw new Ee;if(h||b instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await b,a.issues.length!==g&&(c||(c=je(a,g)))});else{if(a.issues.length===g)continue;c||(c=je(a,g))}}return h?h.then(()=>a):a},o=(a,i,u)=>{if(je(a))return a.aborted=!0,a;const c=s(i,r,u);if(c instanceof Promise){if(u.async===!1)throw new Ee;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(a,i)=>{if(i.skipChecks)return e._zod.parse(a,i);if(i.direction==="backward"){const c=e._zod.parse({value:a.value,issues:[]},{...i,skipChecks:!0});return c instanceof Promise?c.then(h=>o(h,a,i)):o(c,a,i)}const u=e._zod.parse(a,i);if(u instanceof Promise){if(i.async===!1)throw new Ee;return u.then(c=>s(c,r,i))}return s(u,r,i)}}Z(e,"~standard",()=>({validate:s=>{try{const o=ts(e,s);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ns(e,s).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),jt=m("$ZodString",(e,t)=>{F.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Zs(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),O=m("$ZodStringFormat",(e,t)=>{st.init(e,t),jt.init(e,t)}),Hs=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=xs),O.init(e,t)}),Ys=m("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=fn(r))}else t.pattern??(t.pattern=fn());O.init(e,t)}),Ws=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ws),O.init(e,t)}),Gs=m("$ZodURL",(e,t)=>{O.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Ss.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const s=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Qs=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ks()),O.init(e,t)}),Xs=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gs),O.init(e,t)}),Ks=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ds),O.init(e,t)}),eo=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=hs),O.init(e,t)}),to=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fs),O.init(e,t)}),no=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ps),O.init(e,t)}),ro=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ms),O.init(e,t)}),so=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ps(t)),O.init(e,t)}),oo=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Es),O.init(e,t)}),ao=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=js(t)),O.init(e,t)}),io=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bs),O.init(e,t)}),lo=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vs),O.init(e,t),e._zod.bag.format="ipv4"}),co=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_s),O.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),uo=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ts),O.init(e,t)}),ho=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zs),O.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function bn(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const fo=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Rs),O.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{bn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function po(e){if(!pn.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return bn(n)}const mo=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=pn),O.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{po(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),go=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$s),O.init(e,t)});function bo(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const s=JSON.parse(atob(r));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const xo=m("$ZodJWT",(e,t)=>{O.init(e,t),e._zod.check=n=>{bo(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}});function xn(e,t,n){e.issues.length&&t.issues.push(...qe(n,e.issues)),t.value[n]=e.value}const wo=m("$ZodArray",(e,t)=>{F.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const o=[];for(let a=0;a<s.length;a++){const i=s[a],u=t.element._zod.run({value:i,issues:[]},r);u instanceof Promise?o.push(u.then(c=>xn(c,n,a))):xn(u,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function wn(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const s=e.filter(o=>!je(o));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>me(a,r,pe())))}),t)}const yo=m("$ZodUnion",(e,t)=>{F.init(e,t),Z(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Z(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>zt(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(n)return n(r,s);let o=!1;const a=[];for(const i of t.options){const u=i._zod.run({value:r.value,issues:[]},s);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(i=>wn(i,r,e,s)):wn(a,r,e,s)}}),ko=m("$ZodIntersection",(e,t)=>{F.init(e,t),e._zod.parse=(n,r)=>{const s=n.value,o=t.left._zod.run({value:s,issues:[]},r),a=t.right._zod.run({value:s,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>yn(n,u,c)):yn(n,o,a)}});function Pt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(et(e)&&et(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),s={...e,...t};for(const o of r){const a=Pt(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};s[o]=a.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const s=e[r],o=t[r],a=Pt(s,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function yn(e,t,n){const r=new Map;let s;for(const i of t.issues)if(i.code==="unrecognized_keys"){s??(s=i);for(const u of i.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(i);for(const i of n.issues)if(i.code==="unrecognized_keys")for(const u of i.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(i);const o=[...r].filter(([,i])=>i.l&&i.r).map(([i])=>i);if(o.length&&s&&e.issues.push({...s,keys:o}),je(e))return e;const a=Pt(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const vo=m("$ZodRecord",(e,t)=>{F.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!et(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const o=[],a=t.keyType._zod.values;if(a){n.value={};const i=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){i.add(typeof c=="number"?c.toString():c);const h=t.keyType._zod.run({value:c,issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(h.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map(b=>me(b,r,pe())),input:c,path:[c],inst:e});continue}const l=h.value,g=t.valueType._zod.run({value:s[c],issues:[]},r);g instanceof Promise?o.push(g.then(b=>{b.issues.length&&n.issues.push(...qe(c,b.issues)),n.value[l]=b.value})):(g.issues.length&&n.issues.push(...qe(c,g.issues)),n.value[l]=g.value)}let u;for(const c in s)i.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:u})}else{n.value={};for(const i of Reflect.ownKeys(s)){if(i==="__proto__"||!Object.prototype.propertyIsEnumerable.call(s,i))continue;let u=t.keyType._zod.run({value:i,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof i=="string"&&As.test(i)&&u.issues.length){const l=t.keyType._zod.run({value:Number(i),issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(u=l)}if(u.issues.length){t.mode==="loose"?n.value[i]=s[i]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(l=>me(l,r,pe())),input:i,path:[i],inst:e});continue}const h=t.valueType._zod.run({value:s[i],issues:[]},r);h instanceof Promise?o.push(h.then(l=>{l.issues.length&&n.issues.push(...qe(i,l.issues)),n.value[u.value]=l.value})):(h.issues.length&&n.issues.push(...qe(i,h.issues)),n.value[u.value]=h.value)}}return o.length?Promise.all(o).then(()=>n):n}}),_o=m("$ZodTransform",(e,t)=>{F.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sn(e.constructor.name);const s=t.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(a=>(n.value=a,n.fallback=!0,n));if(s instanceof Promise)throw new Ee;return n.value=s,n.fallback=!0,n}});function kn(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const vn=m("$ZodOptional",(e,t)=>{F.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${zt(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>kn(a,s)):kn(o,s)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),To=m("$ZodExactOptional",(e,t)=>{vn.init(e,t),Z(e._zod,"values",()=>t.innerType._zod.values),Z(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),zo=m("$ZodNullable",(e,t)=>{F.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${zt(n.source)}|null)$`):void 0}),Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ro=m("$ZodDefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>_n(o,t)):_n(s,t)}});function _n(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const So=m("$ZodPrefault",(e,t)=>{F.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),$o=m("$ZodNonOptional",(e,t)=>{F.init(e,t),Z(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>Tn(o,e)):Tn(s,e)}});function Tn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Eo=m("$ZodCatch",(e,t)=>{F.init(e,t),e._zod.optin="optional",Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>me(a,r,pe()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(o=>me(o,r,pe()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),jo=m("$ZodPipe",(e,t)=>{F.init(e,t),Z(e._zod,"values",()=>t.in._zod.values),Z(e._zod,"optin",()=>t.in._zod.optin),Z(e._zod,"optout",()=>t.out._zod.optout),Z(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>ot(a,t.in,r)):ot(o,t.in,r)}const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(o=>ot(o,t.out,r)):ot(s,t.out,r)}});function ot(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Po=m("$ZodReadonly",(e,t)=>{F.init(e,t),Z(e._zod,"propValues",()=>t.innerType._zod.propValues),Z(e._zod,"values",()=>t.innerType._zod.values),Z(e._zod,"optin",()=>t.innerType?._zod?.optin),Z(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(zn):zn(s)}});function zn(e){return e.value=Object.freeze(e.value),e}const Zo=m("$ZodCustom",(e,t)=>{ue.init(e,t),F.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,s=t.fn(r);if(s instanceof Promise)return s.then(o=>Rn(o,n,r,e));Rn(s,n,r,e)}});function Rn(e,t,n,r){if(!e){const s={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(Ve(s))}}var Sn;class Ao{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Oo(){return new Ao}(Sn=globalThis).__zod_globalRegistry??(Sn.__zod_globalRegistry=Oo());const Je=globalThis.__zod_globalRegistry;function Co(e,t){return new e({type:"string",...y(t)})}function Io(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...y(t)})}function $n(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...y(t)})}function No(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...y(t)})}function Do(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...y(t)})}function Lo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...y(t)})}function Mo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...y(t)})}function Bo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...y(t)})}function Fo(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...y(t)})}function Uo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...y(t)})}function qo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...y(t)})}function Vo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...y(t)})}function Jo(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...y(t)})}function Ho(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...y(t)})}function Yo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...y(t)})}function Wo(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...y(t)})}function Go(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...y(t)})}function Qo(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...y(t)})}function Xo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...y(t)})}function Ko(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...y(t)})}function ea(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...y(t)})}function ta(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...y(t)})}function na(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...y(t)})}function ra(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...y(t)})}function sa(e,t){return new e({type:"string",format:"date",check:"string_format",...y(t)})}function oa(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...y(t)})}function aa(e,t){return new e({type:"string",format:"duration",check:"string_format",...y(t)})}function En(e,t){return new Is({check:"max_length",...y(t),maximum:e})}function at(e,t){return new Ns({check:"min_length",...y(t),minimum:e})}function jn(e,t){return new Ds({check:"length_equals",...y(t),length:e})}function ia(e,t){return new Ls({check:"string_format",format:"regex",...y(t),pattern:e})}function la(e){return new Ms({check:"string_format",format:"lowercase",...y(e)})}function ca(e){return new Bs({check:"string_format",format:"uppercase",...y(e)})}function ua(e,t){return new Fs({check:"string_format",format:"includes",...y(t),includes:e})}function da(e,t){return new Us({check:"string_format",format:"starts_with",...y(t),prefix:e})}function ha(e,t){return new qs({check:"string_format",format:"ends_with",...y(t),suffix:e})}function Pe(e){return new Vs({check:"overwrite",tx:e})}function fa(e){return Pe(t=>t.normalize(e))}function pa(){return Pe(e=>e.trim())}function ma(){return Pe(e=>e.toLowerCase())}function ga(){return Pe(e=>e.toUpperCase())}function ba(){return Pe(e=>Gr(e))}function xa(e,t,n){return new e({type:"array",element:t,...y(n)})}function wa(e,t,n){return new e({type:"custom",check:"custom",fn:t,...y(n)})}function ya(e,t){const n=ka(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(Ve(s,r.value,n._zod.def));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ve(o))}},e(r.value,r)),t);return n}function ka(e,t){const n=new ue({check:"custom",...y(t)});return n._zod.check=e,n}function Pn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Je,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function N(e,t,n={path:[],schemaPath:[]}){var r;const s=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const i=e._zod.toJSONSchema?.();if(i)a.schema=i;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,h);else{const g=a.schema,b=t.processors[s.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);b(e,t,g,h)}const l=e._zod.parent;l&&(a.ref||(a.ref=l),N(l,t,h),t.seen.get(l).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&H(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Zn(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const a of e.seen.entries()){const i=e.metadataRegistry.get(a[0])?.id;if(i){const u=r.get(i);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(i,a[0])}}const s=a=>{const i=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const l=e.external.registry.get(a[0])?.id,g=e.external.uri??(x=>x);if(l)return{ref:g(l)};const b=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=b,{defId:b,ref:`${g("__shared")}#/${i}/${b}`}}if(a[1]===n)return{ref:"#"};const c=`#/${i}/`,h=a[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:c+h}},o=a=>{if(a[1].schema.$ref)return;const i=a[1],{ref:u,defId:c}=s(a);i.def={...i.schema},c&&(i.defId=c);const h=i.schema;for(const l in h)delete h[l];h.$ref=u};if(e.cycles==="throw")for(const a of e.seen.entries()){const i=a[1];if(i.cycle)throw new Error(`Cycle detected: #/${i.cycle?.join("/")}/<root>
|
|
6
|
+
<%s key={someKey} {...props} />`,k,A,R,A),ee[A+k]=!0)}if(A=null,w!==void 0&&(n(w),A=""+w),i(x)&&(n(x.key),A=""+x.key),"key"in x){w={};for(var _e in x)_e!=="key"&&(w[_e]=x[_e])}else w=x;return A&&a(w,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,A,w,s(),P,H)}function c(g){f(g)?g._store&&(g._store.validated=1):typeof g=="object"&&g!==null&&g.$$typeof===Pe&&(g._payload.status==="fulfilled"?f(g._payload.value)&&g._payload.value._store&&(g._payload.value._store.validated=1):g._store&&(g._store.validated=1))}function f(g){return typeof g=="object"&&g!==null&&g.$$typeof===_}var b=p,_=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),$=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Ve=Symbol.for("react.activity"),lt=Symbol.for("react.client.reference"),xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,Ge=Array.isArray,ke=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(g){return g()}};var j,G={},de=b.react_stack_bottom_frame.bind(b,o)(),be=ke(r(o)),ee={};Qe.Fragment=T,Qe.jsx=function(g,x,w){var k=1e4>xe.recentlyCreatedOwnerStacks++;return h(g,x,w,!1,k?Error("react-stack-top-frame"):de,k?ke(r(g)):be)},Qe.jsxs=function(g,x,w){var k=1e4>xe.recentlyCreatedOwnerStacks++;return h(g,x,w,!0,k?Error("react-stack-top-frame"):de,k?ke(r(g)):be)}})()),Qe}var Tn;function $s(){return Tn||(Tn=1,process.env.NODE_ENV==="production"?ut.exports=Ts():ut.exports=Ss()),ut.exports}var d=$s();const Rs=180;function js(e){const[t,n]=p.useState(e),r=p.useRef(e);return r.current=t,p.useEffect(()=>{if(e===r.current)return;if(!(r.current!==O.NONE&&e!==O.NONE)){n(e);return}n(O.NONE);const o=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:Rs,i=window.setTimeout(()=>n(e),o);return()=>window.clearTimeout(i)},[e]),t}function Ns(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Os=e=>{switch(e){case"success":return As;case"info":return Cs;case"warning":return Zs;case"error":return Ds;default:return null}},Is=Array(12).fill(0),Ps=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},Is.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),As=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Zs=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Cs=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ds=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ms=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ls=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ft=1;class Fs{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...s}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ft++,i=this.toasts.find(u=>u.id===o),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(u=>u.id===o?(this.publish({...u,...t,id:o,title:r}),{...u,...t,id:o,dismissible:a,title:r}):u):this.addToast({title:r,...s,dismissible:a,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,i;const a=s.then(async l=>{if(i=["resolve",l],p.isValidElement(l))o=!1,this.create({id:r,type:"default",message:l});else if(Us(l)&&!l.ok){o=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${l.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${l.status}`):n.description,_=typeof c=="object"&&!p.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,..._})}else if(l instanceof Error){o=!1;const c=typeof n.error=="function"?await n.error(l):n.error,f=typeof n.description=="function"?await n.description(l):n.description,_=typeof c=="object"&&!p.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,..._})}else if(n.success!==void 0){o=!1;const c=typeof n.success=="function"?await n.success(l):n.success,f=typeof n.description=="function"?await n.description(l):n.description,_=typeof c=="object"&&!p.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,..._})}}).catch(async l=>{if(i=["reject",l],n.error!==void 0){o=!1;const h=typeof n.error=="function"?await n.error(l):n.error,c=typeof n.description=="function"?await n.description(l):n.description,b=typeof h=="object"&&!p.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:c,...b})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),u=()=>new Promise((l,h)=>a.then(()=>i[0]==="reject"?h(i[1]):l(i[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,n)=>{const r=n?.id||Ft++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const K=new Fs,Bs=(e,t)=>{const n=t?.id||Ft++;return K.addToast({title:e,...t,id:n}),n},Us=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Vs=Bs,Gs=()=>K.toasts,Ys=()=>K.getActiveToasts(),Sn=Object.assign(Vs,{success:K.success,info:K.info,warning:K.warning,error:K.error,custom:K.custom,message:K.message,promise:K.promise,dismiss:K.dismiss,loading:K.loading},{getHistory:Gs,getToasts:Ys});Ns("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function dt(e){return e.label!==void 0}const Js=3,qs="24px",Hs="16px",$n=4e3,Ws=356,Xs=14,Ks=45,Qs=200;function pe(...e){return e.filter(Boolean).join(" ")}function eo(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const to=e=>{var t,n,r,s,o,i,a,u,l;const{invert:h,toast:c,unstyled:f,interacting:b,setHeights:_,visibleToasts:C,heights:T,index:E,toasts:ce,expanded:B,removeToast:$,defaultRichColors:I,closeButton:V,style:ge,cancelButtonStyle:ue,actionButtonStyle:Pe,className:Ve="",descriptionClassName:lt="",duration:xe,position:te,gap:Ge,expandByDefault:ke,classNames:j,icons:G,closeButtonAriaLabel:de="Close toast"}=e,[be,ee]=p.useState(null),[g,x]=p.useState(null),[w,k]=p.useState(!1),[P,H]=p.useState(!1),[A,R]=p.useState(!1),[_e,Ye]=p.useState(!1),[Ct,Je]=p.useState(!1),[bd,bn]=p.useState(0),[_d,gs]=p.useState(0),ct=p.useRef(c.duration||xe||$n),bs=p.useRef(null),ye=p.useRef(null),vd=E===0,wd=E+1<=C,ne=c.type,qe=c.dismissible!==!1,xd=c.className||"",kd=c.descriptionClassName||"",Dt=p.useMemo(()=>T.findIndex(y=>y.toastId===c.id)||0,[T,c.id]),yd=p.useMemo(()=>{var y;return(y=c.closeButton)!=null?y:V},[c.closeButton,V]),_s=p.useMemo(()=>c.duration||xe||$n,[c.duration,xe]),_n=p.useRef(0),He=p.useRef(0),vs=p.useRef(0),We=p.useRef(null),[Ed,zd]=te.split("-"),ws=p.useMemo(()=>T.reduce((y,Y,W)=>W>=Dt?y:y+Y.height,0),[T,Dt]),xs=Ls(),Td=c.invert||h,vn=ne==="loading";He.current=p.useMemo(()=>Dt*Ge+ws,[Dt,ws]),p.useEffect(()=>{ct.current=_s},[_s]),p.useEffect(()=>{k(!0)},[]),p.useEffect(()=>{const y=ye.current;if(y){const Y=y.getBoundingClientRect().height;return gs(Y),_(W=>[{toastId:c.id,height:Y,position:c.position},...W]),()=>_(W=>W.filter(re=>re.toastId!==c.id))}},[_,c.id]),p.useLayoutEffect(()=>{if(!w)return;const y=ye.current,Y=y.style.height;y.style.height="auto";const W=y.getBoundingClientRect().height;y.style.height=Y,gs(W),_(re=>re.find(J=>J.toastId===c.id)?re.map(J=>J.toastId===c.id?{...J,height:W}:J):[{toastId:c.id,height:W,position:c.position},...re])},[w,c.title,c.description,_,c.id,c.jsx,c.action,c.cancel]);const Re=p.useCallback(()=>{H(!0),bn(He.current),_(y=>y.filter(Y=>Y.toastId!==c.id)),setTimeout(()=>{$(c)},Qs)},[c,$,_,He]);p.useEffect(()=>{if(c.promise&&ne==="loading"||c.duration===1/0||c.type==="loading")return;let y;return B||b||xs?(()=>{if(vs.current<_n.current){const re=new Date().getTime()-_n.current;ct.current=ct.current-re}vs.current=new Date().getTime()})():ct.current!==1/0&&(_n.current=new Date().getTime(),y=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Re()},ct.current)),()=>clearTimeout(y)},[B,b,c,ne,xs,Re]),p.useEffect(()=>{c.delete&&(Re(),c.onDismiss==null||c.onDismiss.call(c,c))},[Re,c.delete]);function Sd(){var y;if(G?.loading){var Y;return p.createElement("div",{className:pe(j?.loader,c==null||(Y=c.classNames)==null?void 0:Y.loader,"sonner-loader"),"data-visible":ne==="loading"},G.loading)}return p.createElement(Ps,{className:pe(j?.loader,c==null||(y=c.classNames)==null?void 0:y.loader),visible:ne==="loading"})}const $d=c.icon||G?.[ne]||Os(ne);var ks,ys;return p.createElement("li",{tabIndex:0,ref:ye,className:pe(Ve,xd,j?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,j?.default,j?.[ne],c==null||(n=c.classNames)==null?void 0:n[ne]),"data-sonner-toast":"","data-rich-colors":(ks=c.richColors)!=null?ks:I,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":w,"data-promise":!!c.promise,"data-swiped":Ct,"data-removed":P,"data-visible":wd,"data-y-position":Ed,"data-x-position":zd,"data-index":E,"data-front":vd,"data-swiping":A,"data-dismissible":qe,"data-type":ne,"data-invert":Td,"data-swipe-out":_e,"data-swipe-direction":g,"data-expanded":!!(B||ke&&w),"data-testid":c.testId,style:{"--index":E,"--toasts-before":E,"--z-index":ce.length-E,"--offset":`${P?bd:He.current}px`,"--initial-height":ke?"auto":`${_d}px`,...ge,...c.style},onDragEnd:()=>{R(!1),ee(null),We.current=null},onPointerDown:y=>{y.button!==2&&(vn||!qe||(bs.current=new Date,bn(He.current),y.target.setPointerCapture(y.pointerId),y.target.tagName!=="BUTTON"&&(R(!0),We.current={x:y.clientX,y:y.clientY})))},onPointerUp:()=>{var y,Y,W;if(_e||!qe)return;We.current=null;const re=Number(((y=ye.current)==null?void 0:y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mt=Number(((Y=ye.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),J=new Date().getTime()-((W=bs.current)==null?void 0:W.getTime()),oe=be==="x"?re:Mt,Lt=Math.abs(oe)/J;if(Math.abs(oe)>=Ks||Lt>.11){bn(He.current),c.onDismiss==null||c.onDismiss.call(c,c),x(be==="x"?re>0?"right":"left":Mt>0?"down":"up"),Re(),Ye(!0);return}else{var he,fe;(he=ye.current)==null||he.style.setProperty("--swipe-amount-x","0px"),(fe=ye.current)==null||fe.style.setProperty("--swipe-amount-y","0px")}Je(!1),R(!1),ee(null)},onPointerMove:y=>{var Y,W,re;if(!We.current||!qe||((Y=window.getSelection())==null?void 0:Y.toString().length)>0)return;const J=y.clientY-We.current.y,oe=y.clientX-We.current.x;var Lt;const he=(Lt=e.swipeDirections)!=null?Lt:eo(te);!be&&(Math.abs(oe)>1||Math.abs(J)>1)&&ee(Math.abs(oe)>Math.abs(J)?"x":"y");let fe={x:0,y:0};const Es=Ae=>1/(1.5+Math.abs(Ae)/20);if(be==="y"){if(he.includes("top")||he.includes("bottom"))if(he.includes("top")&&J<0||he.includes("bottom")&&J>0)fe.y=J;else{const Ae=J*Es(J);fe.y=Math.abs(Ae)<Math.abs(J)?Ae:J}}else if(be==="x"&&(he.includes("left")||he.includes("right")))if(he.includes("left")&&oe<0||he.includes("right")&&oe>0)fe.x=oe;else{const Ae=oe*Es(oe);fe.x=Math.abs(Ae)<Math.abs(oe)?Ae:oe}(Math.abs(fe.x)>0||Math.abs(fe.y)>0)&&Je(!0),(W=ye.current)==null||W.style.setProperty("--swipe-amount-x",`${fe.x}px`),(re=ye.current)==null||re.style.setProperty("--swipe-amount-y",`${fe.y}px`)}},yd&&!c.jsx&&ne!=="loading"?p.createElement("button",{"aria-label":de,"data-disabled":vn,"data-close-button":!0,onClick:vn||!qe?()=>{}:()=>{Re(),c.onDismiss==null||c.onDismiss.call(c,c)},className:pe(j?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(ys=G?.close)!=null?ys:Ms):null,(ne||c.icon||c.promise)&&c.icon!==null&&(G?.[ne]!==null||c.icon)?p.createElement("div",{"data-icon":"",className:pe(j?.icon,c==null||(s=c.classNames)==null?void 0:s.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Sd():null,c.type!=="loading"?$d:null):null,p.createElement("div",{"data-content":"",className:pe(j?.content,c==null||(o=c.classNames)==null?void 0:o.content)},p.createElement("div",{"data-title":"",className:pe(j?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?p.createElement("div",{"data-description":"",className:pe(lt,kd,j?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),p.isValidElement(c.cancel)?c.cancel:c.cancel&&dt(c.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||ue,onClick:y=>{dt(c.cancel)&&qe&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,y),Re())},className:pe(j?.cancelButton,c==null||(u=c.classNames)==null?void 0:u.cancelButton)},c.cancel.label):null,p.isValidElement(c.action)?c.action:c.action&&dt(c.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||Pe,onClick:y=>{dt(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,y),!y.defaultPrevented&&Re())},className:pe(j?.actionButton,c==null||(l=c.classNames)==null?void 0:l.actionButton)},c.action.label):null)};function Rn(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function no(e,t){const n={};return[e,t].forEach((r,s)=>{const o=s===1,i=o?"--mobile-offset":"--offset",a=o?Hs:qs;function u(l){["top","right","bottom","left"].forEach(h=>{n[`${i}-${h}`]=typeof l=="number"?`${l}px`:l})}typeof r=="number"||typeof r=="string"?u(r):typeof r=="object"?["top","right","bottom","left"].forEach(l=>{r[l]===void 0?n[`${i}-${l}`]=a:n[`${i}-${l}`]=typeof r[l]=="number"?`${r[l]}px`:r[l]}):u(a)}),n}const ro=p.forwardRef(function(t,n){const{id:r,invert:s,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:u,className:l,offset:h,mobileOffset:c,theme:f="light",richColors:b,duration:_,style:C,visibleToasts:T=Js,toastOptions:E,dir:ce=Rn(),gap:B=Xs,icons:$,containerAriaLabel:I="Notifications"}=t,[V,ge]=p.useState([]),ue=p.useMemo(()=>r?V.filter(w=>w.toasterId===r):V.filter(w=>!w.toasterId),[V,r]),Pe=p.useMemo(()=>Array.from(new Set([o].concat(ue.filter(w=>w.position).map(w=>w.position)))),[ue,o]),[Ve,lt]=p.useState([]),[xe,te]=p.useState(!1),[Ge,ke]=p.useState(!1),[j,G]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),de=p.useRef(null),be=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),ee=p.useRef(null),g=p.useRef(!1),x=p.useCallback(w=>{ge(k=>{var P;return(P=k.find(H=>H.id===w.id))!=null&&P.delete||K.dismiss(w.id),k.filter(({id:H})=>H!==w.id)})},[]);return p.useEffect(()=>K.subscribe(w=>{if(w.dismiss){requestAnimationFrame(()=>{ge(k=>k.map(P=>P.id===w.id?{...P,delete:!0}:P))});return}setTimeout(()=>{kn.flushSync(()=>{ge(k=>{const P=k.findIndex(H=>H.id===w.id);return P!==-1?[...k.slice(0,P),{...k[P],...w},...k.slice(P+1)]:[w,...k]})})})}),[V]),p.useEffect(()=>{if(f!=="system"){G(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const w=window.matchMedia("(prefers-color-scheme: dark)");try{w.addEventListener("change",({matches:k})=>{G(k?"dark":"light")})}catch{w.addListener(({matches:P})=>{try{G(P?"dark":"light")}catch(H){console.error(H)}})}},[f]),p.useEffect(()=>{V.length<=1&&te(!1)},[V]),p.useEffect(()=>{const w=k=>{var P;if(i.every(R=>k[R]||k.code===R)){var A;te(!0),(A=de.current)==null||A.focus()}k.code==="Escape"&&(document.activeElement===de.current||(P=de.current)!=null&&P.contains(document.activeElement))&&te(!1)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[i]),p.useEffect(()=>{if(de.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,g.current=!1)}},[de.current]),p.createElement("section",{ref:n,"aria-label":`${I} ${be}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Pe.map((w,k)=>{var P;const[H,A]=w.split("-");return ue.length?p.createElement("ol",{key:w,dir:ce==="auto"?Rn():ce,tabIndex:-1,ref:de,className:l,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":H,"data-x-position":A,style:{"--front-toast-height":`${((P=Ve[0])==null?void 0:P.height)||0}px`,"--width":`${Ws}px`,"--gap":`${B}px`,...C,...no(h,c)},onBlur:R=>{g.current&&!R.currentTarget.contains(R.relatedTarget)&&(g.current=!1,ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null))},onFocus:R=>{R.target instanceof HTMLElement&&R.target.dataset.dismissible==="false"||g.current||(g.current=!0,ee.current=R.relatedTarget)},onMouseEnter:()=>te(!0),onMouseMove:()=>te(!0),onMouseLeave:()=>{Ge||te(!1)},onDragEnd:()=>te(!1),onPointerDown:R=>{R.target instanceof HTMLElement&&R.target.dataset.dismissible==="false"||ke(!0)},onPointerUp:()=>ke(!1)},ue.filter(R=>!R.position&&k===0||R.position===w).map((R,_e)=>{var Ye,Ct;return p.createElement(to,{key:R.id,icons:$,index:_e,toast:R,defaultRichColors:b,duration:(Ye=E?.duration)!=null?Ye:_,className:E?.className,descriptionClassName:E?.descriptionClassName,invert:s,visibleToasts:T,closeButton:(Ct=E?.closeButton)!=null?Ct:u,interacting:Ge,position:w,style:E?.style,unstyled:E?.unstyled,classNames:E?.classNames,cancelButtonStyle:E?.cancelButtonStyle,actionButtonStyle:E?.actionButtonStyle,closeButtonAriaLabel:E?.closeButtonAriaLabel,removeToast:x,toasts:ue.filter(Je=>Je.position==R.position),heights:Ve.filter(Je=>Je.position==R.position),setHeights:lt,expandByDefault:a,gap:B,expanded:xe,swipeDirections:t.swipeDirections})})):null}))});var jn;function m(e,t,n){function r(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,u);const l=i.prototype,h=Object.keys(l);for(let c=0;c<h.length;c++){const f=h[c];f in a||(a[f]=l[f].bind(a))}}const s=n?.Parent??Object;class o extends s{}Object.defineProperty(o,"name",{value:e});function i(a){var u;const l=n?.Parent?new o:this;r(l,a),(u=l._zod).deferred??(u.deferred=[]);for(const h of l._zod.deferred)h();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class Ze extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Nn extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(jn=globalThis).__zod_globalConfig??(jn.__zod_globalConfig={});const Bt=globalThis.__zod_globalConfig;function ve(e){return Bt}function On(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,s])=>t.indexOf(+r)===-1).map(([r,s])=>s)}function Ut(e,t){return typeof t=="bigint"?t.toString():t}function Vt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Gt(e){return e==null}function Yt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function so(e,t){const n=e/t,r=Math.round(n),s=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<s?0:n-r}const In=Symbol("evaluating");function N(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==In)return r===void 0&&(r=In,r=n()),r},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function je(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ee(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Pn(e){return JSON.stringify(e)}function oo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const An="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const io=Vt(()=>{if(Bt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ce(e){if(ht(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(ht(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Zn(e){return Ce(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ao=new Set(["string","number","symbol"]);function ft(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ze(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function v(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function lo(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const co={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function uo(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=Ee(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return je(this,"shape",i),i},checks:[]});return ze(e,o)}function ho(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=Ee(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return je(this,"shape",i),i},checks:[]});return ze(e,o)}function fo(e,t){if(!Ce(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=Ee(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return je(this,"shape",o),o}});return ze(e,s)}function po(e,t){if(!Ce(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ee(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return je(this,"shape",r),r}});return ze(e,n)}function mo(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Ee(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return je(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ze(e,n)}function go(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ee(t._zod.def,{get shape(){const a=t._zod.def.shape,u={...a};if(n)for(const l in n){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(const l in a)u[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return je(this,"shape",u),u},checks:[]});return ze(t,i)}function bo(e,t,n){const r=Ee(t._zod.def,{get shape(){const s=t._zod.def.shape,o={...s};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=new e({type:"nonoptional",innerType:s[i]}))}else for(const i in s)o[i]=new e({type:"nonoptional",innerType:s[i]});return je(this,"shape",o),o}});return ze(t,r)}function De(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function _o(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Me(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function pt(e){return typeof e=="string"?e:e?.message}function we(e,t,n){const r=e.message?e.message:pt(e.inst?._zod.def?.error?.(e))??pt(t?.error?.(e))??pt(n.customError?.(e))??pt(n.localeError?.(e))??"Invalid input",{inst:s,continue:o,input:i,...a}=e;return a.path??(a.path=[]),a.message=r,t?.reportInput&&(a.input=i),a}function Jt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function et(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Cn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ut,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dn=m("$ZodError",Cn),Mn=m("$ZodError",Cn,{Parent:Error});function vo(e,t=n=>n.message){const n={},r=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}function wo(e,t=n=>n.message){const n={_errors:[]},r=(s,o=[])=>{for(const i of s.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a},[...o,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...o,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...o,...i.path]);else{const a=[...o,...i.path];if(a.length===0)n._errors.push(t(i));else{let u=n,l=0;for(;l<a.length;){const h=a[l];l===a.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(i))):u[h]=u[h]||{_errors:[]},u=u[h],l++}}}};return r(e),n}const qt=e=>(t,n,r,s)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new Ze;if(i.issues.length){const a=new(s?.Err??e)(i.issues.map(u=>we(u,o,ve())));throw An(a,s?.callee),a}return i.value},Ht=e=>async(t,n,r,s)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new(s?.Err??e)(i.issues.map(u=>we(u,o,ve())));throw An(a,s?.callee),a}return i.value},mt=e=>(t,n,r)=>{const s=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},s);if(o instanceof Promise)throw new Ze;return o.issues.length?{success:!1,error:new(e??Dn)(o.issues.map(i=>we(i,s,ve())))}:{success:!0,data:o.value}},xo=mt(Mn),gt=e=>async(t,n,r)=>{const s=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},s);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>we(i,s,ve())))}:{success:!0,data:o.value}},ko=gt(Mn),yo=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return qt(e)(t,n,s)},Eo=e=>(t,n,r)=>qt(e)(t,n,r),zo=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return Ht(e)(t,n,s)},To=e=>async(t,n,r)=>Ht(e)(t,n,r),So=e=>(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return mt(e)(t,n,s)},$o=e=>(t,n,r)=>mt(e)(t,n,r),Ro=e=>async(t,n,r)=>{const s=r?{...r,direction:"backward"}:{direction:"backward"};return gt(e)(t,n,s)},jo=e=>async(t,n,r)=>gt(e)(t,n,r),No=/^[cC][0-9a-z]{6,}$/,Oo=/^[0-9a-z]+$/,Io=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Po=/^[0-9a-vA-V]{20}$/,Ao=/^[A-Za-z0-9]{27}$/,Zo=/^[a-zA-Z0-9_-]{21}$/,Co=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Do=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ln=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Mo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Lo="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fo(){return new RegExp(Lo,"u")}const Bo=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Uo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Vo=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Go=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fn=/^[A-Za-z0-9_-]*$/,Jo=/^https?$/,qo=/^\+[1-9]\d{6,14}$/,Bn="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ho=new RegExp(`^${Bn}$`);function Un(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wo(e){return new RegExp(`^${Un(e)}$`)}function Xo(e){const t=Un({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Bn}T(?:${r})$`)}const Ko=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Qo=/^-?\d+$/,Vn=/^-?\d+(?:\.\d+)?$/,ei=/^[^A-Z]*$/,ti=/^[^a-z]*$/,Q=m("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Gn={number:"number",bigint:"bigint",object:"date"},Yn=m("$ZodCheckLessThan",(e,t)=>{Q.init(e,t);const n=Gn[typeof t.value];e._zod.onattach.push(r=>{const s=r._zod.bag,o=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jn=m("$ZodCheckGreaterThan",(e,t)=>{Q.init(e,t);const n=Gn[typeof t.value];e._zod.onattach.push(r=>{const s=r._zod.bag,o=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ni=m("$ZodCheckMultipleOf",(e,t)=>{Q.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):so(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ri=m("$ZodCheckNumberFormat",(e,t)=>{Q.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[s,o]=co[t.format];e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,a.minimum=s,a.maximum=o,n&&(a.pattern=Qo)}),e._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<s&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),a>o&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),si=m("$ZodCheckMaxLength",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Gt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const s=r.value;if(s.length<=t.maximum)return;const i=Jt(s);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),oi=m("$ZodCheckMinLength",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Gt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const s=r.value;if(s.length>=t.minimum)return;const i=Jt(s);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ii=m("$ZodCheckLengthEquals",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const s=r.value;return!Gt(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{const s=r.value,o=s.length;if(o===t.length)return;const i=Jt(s),a=o>t.length;r.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),bt=m("$ZodCheckStringFormat",(e,t)=>{var n,r;Q.init(e,t),e._zod.onattach.push(s=>{const o=s._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ai=m("$ZodCheckRegex",(e,t)=>{bt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),li=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ei),bt.init(e,t)}),ci=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ti),bt.init(e,t)}),ui=m("$ZodCheckIncludes",(e,t)=>{Q.init(e,t);const n=ft(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),di=m("$ZodCheckStartsWith",(e,t)=>{Q.init(e,t);const n=new RegExp(`^${ft(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),hi=m("$ZodCheckEndsWith",(e,t)=>{Q.init(e,t);const n=new RegExp(`.*${ft(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),fi=m("$ZodCheckOverwrite",(e,t)=>{Q.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class pi{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
7
|
+
`).filter(i=>i),s=Math.min(...r.map(i=>i.length-i.trimStart().length)),o=r.map(i=>i.slice(s)).map(i=>" ".repeat(this.indent*2)+i);for(const i of o)this.content.push(i)}compile(){const t=Function,n=this?.args,s=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,s.join(`
|
|
8
|
+
`))}}const mi={major:4,minor:4,patch:3},L=m("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=mi;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const o of s._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(i,a,u)=>{let l=De(i),h;for(const c of a){if(c._zod.def.when){if(_o(i)||!c._zod.def.when(i))continue}else if(l)continue;const f=i.issues.length,b=c._zod.check(i);if(b instanceof Promise&&u?.async===!1)throw new Ze;if(h||b instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await b,i.issues.length!==f&&(l||(l=De(i,f)))});else{if(i.issues.length===f)continue;l||(l=De(i,f))}}return h?h.then(()=>i):i},o=(i,a,u)=>{if(De(i))return i.aborted=!0,i;const l=s(a,r,u);if(l instanceof Promise){if(u.async===!1)throw new Ze;return l.then(h=>e._zod.parse(h,u))}return e._zod.parse(l,u)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(h=>o(h,i,a)):o(l,i,a)}const u=e._zod.parse(i,a);if(u instanceof Promise){if(a.async===!1)throw new Ze;return u.then(l=>s(l,r,a))}return s(u,r,a)}}N(e,"~standard",()=>({validate:s=>{try{const o=xo(e,s);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return ko(e,s).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Wt=m("$ZodString",(e,t)=>{L.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ko(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Z=m("$ZodStringFormat",(e,t)=>{bt.init(e,t),Wt.init(e,t)}),gi=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Do),Z.init(e,t)}),bi=m("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ln(r))}else t.pattern??(t.pattern=Ln());Z.init(e,t)}),_i=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Mo),Z.init(e,t)}),vi=m("$ZodURL",(e,t)=>{Z.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Jo.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const s=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wi=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fo()),Z.init(e,t)}),xi=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Zo),Z.init(e,t)}),ki=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=No),Z.init(e,t)}),yi=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Oo),Z.init(e,t)}),Ei=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Io),Z.init(e,t)}),zi=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Po),Z.init(e,t)}),Ti=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ao),Z.init(e,t)}),Si=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xo(t)),Z.init(e,t)}),$i=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ho),Z.init(e,t)}),Ri=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Wo(t)),Z.init(e,t)}),ji=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Co),Z.init(e,t)}),Ni=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Bo),Z.init(e,t),e._zod.bag.format="ipv4"}),Oi=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Uo),Z.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ii=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Vo),Z.init(e,t)}),Pi=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Go),Z.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function qn(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ai=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Yo),Z.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{qn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Zi(e){if(!Fn.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return qn(n)}const Ci=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Fn),Z.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Zi(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Di=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qo),Z.init(e,t)});function Mi(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const s=JSON.parse(atob(r));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const Li=m("$ZodJWT",(e,t)=>{Z.init(e,t),e._zod.check=n=>{Mi(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Hn=m("$ZodNumber",(e,t)=>{L.init(e,t),e._zod.pattern=e._zod.bag.pattern??Vn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...o?{received:o}:{}}),n}}),Fi=m("$ZodNumberFormat",(e,t)=>{ri.init(e,t),Hn.init(e,t)}),Bi=m("$ZodUnknown",(e,t)=>{L.init(e,t),e._zod.parse=n=>n}),Ui=m("$ZodNever",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Wn(e,t,n){e.issues.length&&t.issues.push(...Me(n,e.issues)),t.value[n]=e.value}const Vi=m("$ZodArray",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const o=[];for(let i=0;i<s.length;i++){const a=s[i],u=t.element._zod.run({value:a,issues:[]},r);u instanceof Promise?o.push(u.then(l=>Wn(l,n,i))):Wn(u,n,i)}return o.length?Promise.all(o).then(()=>n):n}});function _t(e,t,n,r,s,o){const i=n in r;if(e.issues.length){if(s&&o&&!i)return;t.issues.push(...Me(n,e.issues))}if(!i&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Xn(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=lo(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Kn(e,t,n,r,s,o){const i=[],a=s.keySet,u=s.catchall._zod,l=u.def.type,h=u.optin==="optional",c=u.optout==="optional";for(const f in t){if(f==="__proto__"||a.has(f))continue;if(l==="never"){i.push(f);continue}const b=u.run({value:t[f],issues:[]},r);b instanceof Promise?e.push(b.then(_=>_t(_,n,f,t,h,c))):_t(b,n,f,t,h,c)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Gi=m("$ZodObject",(e,t)=>{if(L.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...a};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=Vt(()=>Xn(t));N(e._zod,"propValues",()=>{const a=t.shape,u={};for(const l in a){const h=a[l]._zod;if(h.values){u[l]??(u[l]=new Set);for(const c of h.values)u[l].add(c)}}return u});const s=ht,o=t.catchall;let i;e._zod.parse=(a,u)=>{i??(i=r.value);const l=a.value;if(!s(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};const h=[],c=i.shape;for(const f of i.keys){const b=c[f],_=b._zod.optin==="optional",C=b._zod.optout==="optional",T=b._zod.run({value:l[f],issues:[]},u);T instanceof Promise?h.push(T.then(E=>_t(E,a,f,l,_,C))):_t(T,a,f,l,_,C)}return o?Kn(h,l,a,u,r.value,e):h.length?Promise.all(h).then(()=>a):a}}),Yi=m("$ZodObjectJIT",(e,t)=>{Gi.init(e,t);const n=e._zod.parse,r=Vt(()=>Xn(t)),s=f=>{const b=new pi(["shape","payload","ctx"]),_=r.value,C=B=>{const $=Pn(B);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};b.write("const input = payload.value;");const T=Object.create(null);let E=0;for(const B of _.keys)T[B]=`key_${E++}`;b.write("const newResult = {};");for(const B of _.keys){const $=T[B],I=Pn(B),V=f[B],ge=V?._zod?.optin==="optional",ue=V?._zod?.optout==="optional";b.write(`const ${$} = ${C(B)};`),ge&&ue?b.write(`
|
|
9
|
+
if (${$}.issues.length) {
|
|
10
|
+
if (${I} in input) {
|
|
11
|
+
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
12
|
+
...iss,
|
|
13
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
14
|
+
})));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (${$}.value === undefined) {
|
|
19
|
+
if (${I} in input) {
|
|
20
|
+
newResult[${I}] = undefined;
|
|
21
|
+
}
|
|
22
|
+
} else {
|
|
23
|
+
newResult[${I}] = ${$}.value;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
`):ge?b.write(`
|
|
27
|
+
if (${$}.issues.length) {
|
|
28
|
+
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
29
|
+
...iss,
|
|
30
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (${$}.value === undefined) {
|
|
35
|
+
if (${I} in input) {
|
|
36
|
+
newResult[${I}] = undefined;
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
newResult[${I}] = ${$}.value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
`):b.write(`
|
|
43
|
+
const ${$}_present = ${I} in input;
|
|
44
|
+
if (${$}.issues.length) {
|
|
45
|
+
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
46
|
+
...iss,
|
|
47
|
+
path: iss.path ? [${I}, ...iss.path] : [${I}]
|
|
48
|
+
})));
|
|
49
|
+
}
|
|
50
|
+
if (!${$}_present && !${$}.issues.length) {
|
|
51
|
+
payload.issues.push({
|
|
52
|
+
code: "invalid_type",
|
|
53
|
+
expected: "nonoptional",
|
|
54
|
+
input: undefined,
|
|
55
|
+
path: [${I}]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
7
58
|
|
|
8
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const i=a[1];if(t===a[0]){o(a);continue}if(e.external){const c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(i.cycle){o(a);continue}if(i.count>1&&e.reused==="ref"){o(a);continue}}}function An(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=i=>{const u=e.seen.get(i);if(u.ref===null)return;const c=u.def??u.schema,h={...c},l=u.ref;if(u.ref=null,l){r(l);const b=e.seen.get(l),x=b.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,h),i._zod.parent===l)for(const j in c)j==="$ref"||j==="allOf"||j in h||delete c[j];if(x.$ref&&b.def)for(const j in c)j==="$ref"||j==="allOf"||j in b.def&&JSON.stringify(c[j])===JSON.stringify(b.def[j])&&delete c[j]}const g=i._zod.parent;if(g&&g!==l){r(g);const b=e.seen.get(g);if(b?.schema.$ref&&(c.$ref=b.schema.$ref,b.def))for(const x in c)x==="$ref"||x==="allOf"||x in b.def&&JSON.stringify(c[x])===JSON.stringify(b.def[x])&&delete c[x]}e.override({zodSchema:i,jsonSchema:c,path:u.path??[]})};for(const i of[...e.seen.entries()].reverse())r(i[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(i)}Object.assign(s,n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&s.id===o&&delete s.id;const a=e.external?.defs??{};for(const i of e.seen.entries()){const u=i[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?s.$defs=a:s.definitions=a);try{const i=JSON.parse(JSON.stringify(s));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:it(t,"input",e.processors),output:it(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function H(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return H(r.element,n);if(r.type==="set")return H(r.valueType,n);if(r.type==="lazy")return H(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return H(r.innerType,n);if(r.type==="intersection")return H(r.left,n)||H(r.right,n);if(r.type==="record"||r.type==="map")return H(r.keyType,n)||H(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:H(r.in,n)||H(r.out,n);if(r.type==="object"){for(const s in r.shape)if(H(r.shape[s],n))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(H(s,n))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(H(s,n))return!0;return!!(r.rest&&H(r.rest,n))}return!1}const va=(e,t={})=>n=>{const r=Pn({...n,processors:t});return N(e,r),Zn(r,e),An(r,e)},it=(e,t,n={})=>r=>{const{libraryOptions:s,target:o}=r??{},a=Pn({...s??{},target:o,io:t,processors:n});return N(e,a),Zn(a,e),An(a,e)},_a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ta=(e,t,n,r)=>{const s=n;s.type="string";const{minimum:o,maximum:a,format:i,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(s.minLength=o),typeof a=="number"&&(s.maxLength=a),i&&(s.format=_a[i]??i,s.format===""&&delete s.format,i==="time"&&delete s.format),c&&(s.contentEncoding=c),u&&u.size>0){const h=[...u];h.length===1?s.pattern=h[0].source:h.length>1&&(s.allOf=[...h.map(l=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:l.source}))])}},za=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Ra=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Sa=(e,t,n,r)=>{const s=n,o=e._zod.def,{minimum:a,maximum:i}=e._zod.bag;typeof a=="number"&&(s.minItems=a),typeof i=="number"&&(s.maxItems=i),s.type="array",s.items=N(o.element,t,{...r,path:[...r.path,"items"]})},$a=(e,t,n,r)=>{const s=e._zod.def,o=s.inclusive===!1,a=s.options.map((i,u)=>N(i,t,{...r,path:[...r.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=a:n.anyOf=a},Ea=(e,t,n,r)=>{const s=e._zod.def,o=N(s.left,t,{...r,path:[...r.path,"allOf",0]}),a=N(s.right,t,{...r,path:[...r.path,"allOf",1]}),i=c=>"allOf"in c&&Object.keys(c).length===1,u=[...i(o)?o.allOf:[o],...i(a)?a.allOf:[a]];n.allOf=u},ja=(e,t,n,r)=>{const s=n,o=e._zod.def;s.type="object";const a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){const h=N(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});s.patternProperties={};for(const l of u)s.patternProperties[l.source]=h}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=N(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),s.additionalProperties=N(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=a._zod.values;if(c){const h=[...c].filter(l=>typeof l=="string"||typeof l=="number");h.length>0&&(s.required=h)}},Pa=(e,t,n,r)=>{const s=e._zod.def,o=N(s.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=s.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Za=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType},Aa=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},Oa=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},Ca=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType;let a;try{a=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Ia=(e,t,n,r)=>{const s=e._zod.def,o=s.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?s.out:s.in:s.out;N(a,t,r);const i=t.seen.get(e);i.ref=a},Na=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,n.readOnly=!0},On=(e,t,n,r)=>{const s=e._zod.def;N(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType},Da=m("ZodISODateTime",(e,t)=>{so.init(e,t),C.init(e,t)});function La(e){return ra(Da,e)}const Ma=m("ZodISODate",(e,t)=>{oo.init(e,t),C.init(e,t)});function Ba(e){return sa(Ma,e)}const Fa=m("ZodISOTime",(e,t)=>{ao.init(e,t),C.init(e,t)});function Ua(e){return oa(Fa,e)}const qa=m("ZodISODuration",(e,t)=>{io.init(e,t),C.init(e,t)});function Va(e){return aa(qa,e)}const te=m("ZodError",(e,t)=>{dn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>es(e,n)},flatten:{value:n=>Kr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,_t,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,_t,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Ja=$t(te),Ha=Et(te),Ya=nt(te),Wa=rt(te),Ga=rs(te),Qa=ss(te),Xa=os(te),Ka=as(te),ei=is(te),ti=ls(te),ni=cs(te),ri=us(te),Cn=new WeakMap;function Zt(e,t,n){const r=Object.getPrototypeOf(e);let s=Cn.get(r);if(s||(s=new Set,Cn.set(r,s)),!s.has(t)){s.add(t);for(const o in n){const a=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){const i=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:i}),i},set(i){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:i})}})}}}const U=m("ZodType",(e,t)=>(F.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:it(e,"input"),output:it(e,"output")}}),e.toJSONSchema=va(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Ja(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Ya(e,n,r),e.parseAsync=async(n,r)=>Ha(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Wa(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ga(e,n,r),e.decode=(n,r)=>Qa(e,n,r),e.encodeAsync=async(n,r)=>Xa(e,n,r),e.decodeAsync=async(n,r)=>Ka(e,n,r),e.safeEncode=(n,r)=>ei(e,n,r),e.safeDecode=(n,r)=>ti(e,n,r),e.safeEncodeAsync=async(n,r)=>ni(e,n,r),e.safeDecodeAsync=async(n,r)=>ri(e,n,r),Zt(e,"ZodType",{check(...n){const r=this.def;return this.clone(Wr(r,{checks:[...r.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Qr(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Ji(n,r))},superRefine(n,r){return this.check(Hi(n,r))},overwrite(n){return this.check(Pe(n))},optional(){return Mn(this)},exactOptional(){return Zi(this)},nullable(){return Bn(this)},nullish(){return Mn(Bn(this))},nonoptional(n){return Li(this,n)},array(){return _i(this)},or(n){return zi([this,n])},and(n){return Si(this,n)},transform(n){return Fn(this,Ei(n))},default(n){return Ci(this,n)},prefault(n){return Ni(this,n)},catch(n){return Bi(this,n)},pipe(n){return Fn(this,n)},readonly(){return qi(this)},describe(n){const r=this.clone();return Je.add(r,{description:n}),r},meta(...n){if(n.length===0)return Je.get(this);const r=this.clone();return Je.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Je.get(e)?.description},configurable:!0}),e)),In=m("_ZodString",(e,t)=>{jt.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,s,o)=>Ta(e,r,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Zt(e,"_ZodString",{regex(...r){return this.check(ia(...r))},includes(...r){return this.check(ua(...r))},startsWith(...r){return this.check(da(...r))},endsWith(...r){return this.check(ha(...r))},min(...r){return this.check(at(...r))},max(...r){return this.check(En(...r))},length(...r){return this.check(jn(...r))},nonempty(...r){return this.check(at(1,...r))},lowercase(r){return this.check(la(r))},uppercase(r){return this.check(ca(r))},trim(){return this.check(pa())},normalize(...r){return this.check(fa(...r))},toLowerCase(){return this.check(ma())},toUpperCase(){return this.check(ga())},slugify(){return this.check(ba())}})}),si=m("ZodString",(e,t)=>{jt.init(e,t),In.init(e,t),e.email=n=>e.check(Io(oi,n)),e.url=n=>e.check(Bo(ai,n)),e.jwt=n=>e.check(na(ki,n)),e.emoji=n=>e.check(Fo(ii,n)),e.guid=n=>e.check($n(Nn,n)),e.uuid=n=>e.check(No(ct,n)),e.uuidv4=n=>e.check(Do(ct,n)),e.uuidv6=n=>e.check(Lo(ct,n)),e.uuidv7=n=>e.check(Mo(ct,n)),e.nanoid=n=>e.check(Uo(li,n)),e.guid=n=>e.check($n(Nn,n)),e.cuid=n=>e.check(qo(ci,n)),e.cuid2=n=>e.check(Vo(ui,n)),e.ulid=n=>e.check(Jo(di,n)),e.base64=n=>e.check(Ko(xi,n)),e.base64url=n=>e.check(ea(wi,n)),e.xid=n=>e.check(Ho(hi,n)),e.ksuid=n=>e.check(Yo(fi,n)),e.ipv4=n=>e.check(Wo(pi,n)),e.ipv6=n=>e.check(Go(mi,n)),e.cidrv4=n=>e.check(Qo(gi,n)),e.cidrv6=n=>e.check(Xo(bi,n)),e.e164=n=>e.check(ta(yi,n)),e.datetime=n=>e.check(La(n)),e.date=n=>e.check(Ba(n)),e.time=n=>e.check(Ua(n)),e.duration=n=>e.check(Va(n))});function lt(e){return Co(si,e)}const C=m("ZodStringFormat",(e,t)=>{O.init(e,t),In.init(e,t)}),oi=m("ZodEmail",(e,t)=>{Ws.init(e,t),C.init(e,t)}),Nn=m("ZodGUID",(e,t)=>{Hs.init(e,t),C.init(e,t)}),ct=m("ZodUUID",(e,t)=>{Ys.init(e,t),C.init(e,t)}),ai=m("ZodURL",(e,t)=>{Gs.init(e,t),C.init(e,t)}),ii=m("ZodEmoji",(e,t)=>{Qs.init(e,t),C.init(e,t)}),li=m("ZodNanoID",(e,t)=>{Xs.init(e,t),C.init(e,t)}),ci=m("ZodCUID",(e,t)=>{Ks.init(e,t),C.init(e,t)}),ui=m("ZodCUID2",(e,t)=>{eo.init(e,t),C.init(e,t)}),di=m("ZodULID",(e,t)=>{to.init(e,t),C.init(e,t)}),hi=m("ZodXID",(e,t)=>{no.init(e,t),C.init(e,t)}),fi=m("ZodKSUID",(e,t)=>{ro.init(e,t),C.init(e,t)}),pi=m("ZodIPv4",(e,t)=>{lo.init(e,t),C.init(e,t)}),mi=m("ZodIPv6",(e,t)=>{co.init(e,t),C.init(e,t)}),gi=m("ZodCIDRv4",(e,t)=>{uo.init(e,t),C.init(e,t)}),bi=m("ZodCIDRv6",(e,t)=>{ho.init(e,t),C.init(e,t)}),xi=m("ZodBase64",(e,t)=>{fo.init(e,t),C.init(e,t)}),wi=m("ZodBase64URL",(e,t)=>{mo.init(e,t),C.init(e,t)}),yi=m("ZodE164",(e,t)=>{go.init(e,t),C.init(e,t)}),ki=m("ZodJWT",(e,t)=>{xo.init(e,t),C.init(e,t)}),vi=m("ZodArray",(e,t)=>{wo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Sa(e,n,r,s),e.element=t.element,Zt(e,"ZodArray",{min(n,r){return this.check(at(n,r))},nonempty(n){return this.check(at(1,n))},max(n,r){return this.check(En(n,r))},length(n,r){return this.check(jn(n,r))},unwrap(){return this.element}})});function _i(e,t){return xa(vi,e,t)}const Ti=m("ZodUnion",(e,t)=>{yo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>$a(e,n,r,s),e.options=t.options});function zi(e,t){return new Ti({type:"union",options:e,...y(t)})}const Ri=m("ZodIntersection",(e,t)=>{ko.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Ea(e,n,r,s)});function Si(e,t){return new Ri({type:"intersection",left:e,right:t})}const Dn=m("ZodRecord",(e,t)=>{vo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ja(e,n,r,s),e.keyType=t.keyType,e.valueType=t.valueType});function Ln(e,t,n){return!t||!t._zod?new Dn({type:"record",keyType:lt(),valueType:e,...y(t)}):new Dn({type:"record",keyType:e,valueType:t,...y(n)})}const $i=m("ZodTransform",(e,t)=>{_o.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Ra(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sn(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ve(o,n.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Ve(a))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function Ei(e){return new $i({type:"transform",transform:e})}const ji=m("ZodOptional",(e,t)=>{vn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>On(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Mn(e){return new ji({type:"optional",innerType:e})}const Pi=m("ZodExactOptional",(e,t)=>{To.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>On(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Zi(e){return new Pi({type:"optional",innerType:e})}const Ai=m("ZodNullable",(e,t)=>{zo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Pa(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Bn(e){return new Ai({type:"nullable",innerType:e})}const Oi=m("ZodDefault",(e,t)=>{Ro.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Aa(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ci(e,t){return new Oi({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():cn(t)}})}const Ii=m("ZodPrefault",(e,t)=>{So.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Oa(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Ni(e,t){return new Ii({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():cn(t)}})}const Di=m("ZodNonOptional",(e,t)=>{$o.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Za(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Li(e,t){return new Di({type:"nonoptional",innerType:e,...y(t)})}const Mi=m("ZodCatch",(e,t)=>{Eo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Ca(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bi(e,t){return new Mi({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Fi=m("ZodPipe",(e,t)=>{jo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Ia(e,n,r,s),e.in=t.in,e.out=t.out});function Fn(e,t){return new Fi({type:"pipe",in:e,out:t})}const Ui=m("ZodReadonly",(e,t)=>{Po.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>Na(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function qi(e){return new Ui({type:"readonly",innerType:e})}const Vi=m("ZodCustom",(e,t)=>{Zo.init(e,t),U.init(e,t),e._zod.processJSONSchema=(n,r,s)=>za(e,n)});function Ji(e,t={}){return wa(Vi,e,t)}function Hi(e,t){return ya(e,t)}var ut={exports:{}},Un;function Yi(){if(Un)return ut.exports;Un=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof r=="boolean"?{immediate:r}:r;let o,a,i,u,c;function h(){const b=o,x=a;return o=void 0,a=void 0,c=t.apply(b,x),c}function l(){const b=Date.now()-u;b<n&&b>=0?i=setTimeout(l,n-b):(i=void 0,s||(c=h()))}const g=function(...b){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,a=b,u=Date.now();const x=s&&!i;return i||(i=setTimeout(l,n)),x&&(c=h()),c};return Object.defineProperty(g,"isPending",{get(){return i!==void 0}}),g.clear=()=>{i&&(clearTimeout(i),i=void 0)},g.flush=()=>{i&&g.trigger()},g.trigger=()=>{c=h(),g.clear()},g}return ut.exports.debounce=e,ut.exports=e,ut.exports}var Wi=Yi();const Gi=br(Wi),Qi=Ln(lt(),lt()),Xi=Ln(lt(),Qi);function Ki(e){const t=Object.entries(e);if(t.length===0)return"";const n=s=>Object.entries(s).map(([o,a])=>` --color-${o}: ${a};`).join(`
|
|
59
|
+
if (${$}_present) {
|
|
60
|
+
if (${$}.value === undefined) {
|
|
61
|
+
newResult[${I}] = undefined;
|
|
62
|
+
} else {
|
|
63
|
+
newResult[${I}] = ${$}.value;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
`)}b.write("payload.value = newResult;"),b.write("return payload;");const ce=b.compile();return(B,$)=>ce(f,B,$)};let o;const i=ht,a=!Bt.jitless,l=a&&io.value,h=t.catchall;let c;e._zod.parse=(f,b)=>{c??(c=r.value);const _=f.value;return i(_)?a&&l&&b?.async===!1&&b.jitless!==!0?(o||(o=s(t.shape)),f=o(f,b),h?Kn([],_,f,b,c,e):f):n(f,b):(f.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),f)}});function Qn(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const s=e.filter(o=>!De(o));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(i=>we(i,r,ve())))}),t)}const Ji=m("$ZodUnion",(e,t)=>{L.init(e,t),N(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),N(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Yt(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,s)=>{if(n)return n(r,s);let o=!1;const i=[];for(const a of t.options){const u=a._zod.run({value:r.value,issues:[]},s);if(u instanceof Promise)i.push(u),o=!0;else{if(u.issues.length===0)return u;i.push(u)}}return o?Promise.all(i).then(a=>Qn(a,r,e,s)):Qn(i,r,e,s)}}),qi=m("$ZodIntersection",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>{const s=n.value,o=t.left._zod.run({value:s,issues:[]},r),i=t.right._zod.run({value:s,issues:[]},r);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([u,l])=>er(n,u,l)):er(n,o,i)}});function Xt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ce(e)&&Ce(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),s={...e,...t};for(const o of r){const i=Xt(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};s[o]=i.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const s=e[r],o=t[r],i=Xt(s,o);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function er(e,t,n){const r=new Map;let s;for(const a of t.issues)if(a.code==="unrecognized_keys"){s??(s=a);for(const u of a.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const u of a.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(a);const o=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&s&&e.issues.push({...s,keys:o}),De(e))return e;const i=Xt(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Hi=m("$ZodRecord",(e,t)=>{L.init(e,t),e._zod.parse=(n,r)=>{const s=n.value;if(!Ce(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const o=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);const h=t.keyType._zod.run({value:l,issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(h.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map(b=>we(b,r,ve())),input:l,path:[l],inst:e});continue}const c=h.value,f=t.valueType._zod.run({value:s[l],issues:[]},r);f instanceof Promise?o.push(f.then(b=>{b.issues.length&&n.issues.push(...Me(l,b.issues)),n.value[c]=b.value})):(f.issues.length&&n.issues.push(...Me(l,f.issues)),n.value[c]=f.value)}let u;for(const l in s)a.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:u})}else{n.value={};for(const a of Reflect.ownKeys(s)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(s,a))continue;let u=t.keyType._zod.run({value:a,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Vn.test(a)&&u.issues.length){const c=t.keyType._zod.run({value:Number(a),issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");c.issues.length===0&&(u=c)}if(u.issues.length){t.mode==="loose"?n.value[a]=s[a]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(c=>we(c,r,ve())),input:a,path:[a],inst:e});continue}const h=t.valueType._zod.run({value:s[a],issues:[]},r);h instanceof Promise?o.push(h.then(c=>{c.issues.length&&n.issues.push(...Me(a,c.issues)),n.value[u.value]=c.value})):(h.issues.length&&n.issues.push(...Me(a,h.issues)),n.value[u.value]=h.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Wi=m("$ZodEnum",(e,t)=>{L.init(e,t);const n=On(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(s=>ao.has(typeof s)).map(s=>typeof s=="string"?ft(s):s.toString()).join("|")})$`),e._zod.parse=(s,o)=>{const i=s.value;return r.has(i)||s.issues.push({code:"invalid_value",values:n,input:i,inst:e}),s}}),Xi=m("$ZodTransform",(e,t)=>{L.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Nn(e.constructor.name);const s=t.transform(n.value,n);if(r.async)return(s instanceof Promise?s:Promise.resolve(s)).then(i=>(n.value=i,n.fallback=!0,n));if(s instanceof Promise)throw new Ze;return n.value=s,n.fallback=!0,n}});function tr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const nr=m("$ZodOptional",(e,t)=>{L.init(e,t),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yt(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>tr(i,s)):tr(o,s)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Ki=m("$ZodExactOptional",(e,t)=>{nr.init(e,t),N(e._zod,"values",()=>t.innerType._zod.values),N(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Qi=m("$ZodNullable",(e,t)=>{L.init(e,t),N(e._zod,"optin",()=>t.innerType._zod.optin),N(e._zod,"optout",()=>t.innerType._zod.optout),N(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yt(n.source)}|null)$`):void 0}),N(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ea=m("$ZodDefault",(e,t)=>{L.init(e,t),e._zod.optin="optional",N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>rr(o,t)):rr(s,t)}});function rr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ta=m("$ZodPrefault",(e,t)=>{L.init(e,t),e._zod.optin="optional",N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),na=m("$ZodNonOptional",(e,t)=>{L.init(e,t),N(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>sr(o,e)):sr(s,e)}});function sr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const ra=m("$ZodCatch",(e,t)=>{L.init(e,t),e._zod.optin="optional",N(e._zod,"optout",()=>t.innerType._zod.optout),N(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>we(i,r,ve()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(o=>we(o,r,ve()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),sa=m("$ZodPipe",(e,t)=>{L.init(e,t),N(e._zod,"values",()=>t.in._zod.values),N(e._zod,"optin",()=>t.in._zod.optin),N(e._zod,"optout",()=>t.out._zod.optout),N(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(i=>vt(i,t.in,r)):vt(o,t.in,r)}const s=t.in._zod.run(n,r);return s instanceof Promise?s.then(o=>vt(o,t.out,r)):vt(s,t.out,r)}});function vt(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const oa=m("$ZodReadonly",(e,t)=>{L.init(e,t),N(e._zod,"propValues",()=>t.innerType._zod.propValues),N(e._zod,"values",()=>t.innerType._zod.values),N(e._zod,"optin",()=>t.innerType?._zod?.optin),N(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const s=t.innerType._zod.run(n,r);return s instanceof Promise?s.then(or):or(s)}});function or(e){return e.value=Object.freeze(e.value),e}const ia=m("$ZodCustom",(e,t)=>{Q.init(e,t),L.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,s=t.fn(r);if(s instanceof Promise)return s.then(o=>ir(o,n,r,e));ir(s,n,r,e)}});function ir(e,t,n,r){if(!e){const s={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(s.params=r._zod.def.params),t.issues.push(et(s))}}var ar;class aa{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const s={...r,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function la(){return new aa}(ar=globalThis).__zod_globalRegistry??(ar.__zod_globalRegistry=la());const tt=globalThis.__zod_globalRegistry;function ca(e,t){return new e({type:"string",...v(t)})}function ua(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...v(t)})}function lr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...v(t)})}function da(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...v(t)})}function ha(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...v(t)})}function fa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...v(t)})}function pa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...v(t)})}function ma(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...v(t)})}function ga(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...v(t)})}function ba(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...v(t)})}function _a(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...v(t)})}function va(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...v(t)})}function wa(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...v(t)})}function xa(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...v(t)})}function ka(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...v(t)})}function ya(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...v(t)})}function Ea(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...v(t)})}function za(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...v(t)})}function Ta(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...v(t)})}function Sa(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...v(t)})}function $a(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...v(t)})}function Ra(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...v(t)})}function ja(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...v(t)})}function Na(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...v(t)})}function Oa(e,t){return new e({type:"string",format:"date",check:"string_format",...v(t)})}function Ia(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...v(t)})}function Pa(e,t){return new e({type:"string",format:"duration",check:"string_format",...v(t)})}function Aa(e,t){return new e({type:"number",checks:[],...v(t)})}function Za(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...v(t)})}function Ca(e){return new e({type:"unknown"})}function Da(e,t){return new e({type:"never",...v(t)})}function cr(e,t){return new Yn({check:"less_than",...v(t),value:e,inclusive:!1})}function Kt(e,t){return new Yn({check:"less_than",...v(t),value:e,inclusive:!0})}function ur(e,t){return new Jn({check:"greater_than",...v(t),value:e,inclusive:!1})}function Qt(e,t){return new Jn({check:"greater_than",...v(t),value:e,inclusive:!0})}function dr(e,t){return new ni({check:"multiple_of",...v(t),value:e})}function hr(e,t){return new si({check:"max_length",...v(t),maximum:e})}function wt(e,t){return new oi({check:"min_length",...v(t),minimum:e})}function fr(e,t){return new ii({check:"length_equals",...v(t),length:e})}function Ma(e,t){return new ai({check:"string_format",format:"regex",...v(t),pattern:e})}function La(e){return new li({check:"string_format",format:"lowercase",...v(e)})}function Fa(e){return new ci({check:"string_format",format:"uppercase",...v(e)})}function Ba(e,t){return new ui({check:"string_format",format:"includes",...v(t),includes:e})}function Ua(e,t){return new di({check:"string_format",format:"starts_with",...v(t),prefix:e})}function Va(e,t){return new hi({check:"string_format",format:"ends_with",...v(t),suffix:e})}function Le(e){return new fi({check:"overwrite",tx:e})}function Ga(e){return Le(t=>t.normalize(e))}function Ya(){return Le(e=>e.trim())}function Ja(){return Le(e=>e.toLowerCase())}function qa(){return Le(e=>e.toUpperCase())}function Ha(){return Le(e=>oo(e))}function Wa(e,t,n){return new e({type:"array",element:t,...v(n)})}function Xa(e,t,n){return new e({type:"custom",check:"custom",fn:t,...v(n)})}function Ka(e,t){const n=Qa(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(et(s,r.value,n._zod.def));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(et(o))}},e(r.value,r)),t);return n}function Qa(e,t){const n=new Q({check:"custom",...v(t)});return n._zod.check=e,n}function pr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function U(e,t,n={path:[],schemaPath:[]}){var r;const s=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=e._zod.toJSONSchema?.();if(a)i.schema=a;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,h);else{const f=i.schema,b=t.processors[s.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);b(e,t,f,h)}const c=e._zod.parent;c&&(i.ref||(i.ref=c),U(c,t,h),t.seen.get(c).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&X(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function mr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const a=e.metadataRegistry.get(i[0])?.id;if(a){const u=r.get(a);if(u&&u!==i[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,i[0])}}const s=i=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const c=e.external.registry.get(i[0])?.id,f=e.external.uri??(_=>_);if(c)return{ref:f(c)};const b=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=b,{defId:b,ref:`${f("__shared")}#/${a}/${b}`}}if(i[1]===n)return{ref:"#"};const l=`#/${a}/`,h=i[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:l+h}},o=i=>{if(i[1].schema.$ref)return;const a=i[1],{ref:u,defId:l}=s(i);a.def={...a.schema},l&&(a.defId=l);const h=a.schema;for(const c in h)delete h[c];h.$ref=u};if(e.cycles==="throw")for(const i of e.seen.entries()){const a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
68
|
+
|
|
69
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const a=i[1];if(t===i[0]){o(i);continue}if(e.external){const l=e.external.registry.get(i[0])?.id;if(t!==i[0]&&l){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function gr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=a=>{const u=e.seen.get(a);if(u.ref===null)return;const l=u.def??u.schema,h={...l},c=u.ref;if(u.ref=null,c){r(c);const b=e.seen.get(c),_=b.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(_)):Object.assign(l,_),Object.assign(l,h),a._zod.parent===c)for(const T in l)T==="$ref"||T==="allOf"||T in h||delete l[T];if(_.$ref&&b.def)for(const T in l)T==="$ref"||T==="allOf"||T in b.def&&JSON.stringify(l[T])===JSON.stringify(b.def[T])&&delete l[T]}const f=a._zod.parent;if(f&&f!==c){r(f);const b=e.seen.get(f);if(b?.schema.$ref&&(l.$ref=b.schema.$ref,b.def))for(const _ in l)_==="$ref"||_==="allOf"||_ in b.def&&JSON.stringify(l[_])===JSON.stringify(b.def[_])&&delete l[_]}e.override({zodSchema:a,jsonSchema:l,path:u.path??[]})};for(const a of[...e.seen.entries()].reverse())r(a[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(a)}Object.assign(s,n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&s.id===o&&delete s.id;const i=e.external?.defs??{};for(const a of e.seen.entries()){const u=a[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?s.$defs=i:s.definitions=i);try{const a=JSON.parse(JSON.stringify(s));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:xt(t,"input",e.processors),output:xt(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function X(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return X(r.element,n);if(r.type==="set")return X(r.valueType,n);if(r.type==="lazy")return X(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return X(r.innerType,n);if(r.type==="intersection")return X(r.left,n)||X(r.right,n);if(r.type==="record"||r.type==="map")return X(r.keyType,n)||X(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:X(r.in,n)||X(r.out,n);if(r.type==="object"){for(const s in r.shape)if(X(r.shape[s],n))return!0;return!1}if(r.type==="union"){for(const s of r.options)if(X(s,n))return!0;return!1}if(r.type==="tuple"){for(const s of r.items)if(X(s,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}const el=(e,t={})=>n=>{const r=pr({...n,processors:t});return U(e,r),mr(r,e),gr(r,e)},xt=(e,t,n={})=>r=>{const{libraryOptions:s,target:o}=r??{},i=pr({...s??{},target:o,io:t,processors:n});return U(e,i),mr(i,e),gr(i,e)},tl={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},nl=(e,t,n,r)=>{const s=n;s.type="string";const{minimum:o,maximum:i,format:a,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof o=="number"&&(s.minLength=o),typeof i=="number"&&(s.maxLength=i),a&&(s.format=tl[a]??a,s.format===""&&delete s.format,a==="time"&&delete s.format),l&&(s.contentEncoding=l),u&&u.size>0){const h=[...u];h.length===1?s.pattern=h[0].source:h.length>1&&(s.allOf=[...h.map(c=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:c.source}))])}},rl=(e,t,n,r)=>{const s=n,{minimum:o,maximum:i,format:a,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:h}=e._zod.bag;typeof a=="string"&&a.includes("int")?s.type="integer":s.type="number";const c=typeof h=="number"&&h>=(o??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(i??Number.POSITIVE_INFINITY),b=t.target==="draft-04"||t.target==="openapi-3.0";c?b?(s.minimum=h,s.exclusiveMinimum=!0):s.exclusiveMinimum=h:typeof o=="number"&&(s.minimum=o),f?b?(s.maximum=l,s.exclusiveMaximum=!0):s.exclusiveMaximum=l:typeof i=="number"&&(s.maximum=i),typeof u=="number"&&(s.multipleOf=u)},sl=(e,t,n,r)=>{n.not={}},ol=(e,t,n,r)=>{},il=(e,t,n,r)=>{const s=e._zod.def,o=On(s.entries);o.every(i=>typeof i=="number")&&(n.type="number"),o.every(i=>typeof i=="string")&&(n.type="string"),n.enum=o},al=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ll=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cl=(e,t,n,r)=>{const s=n,o=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(s.minItems=i),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=U(o.element,t,{...r,path:[...r.path,"items"]})},ul=(e,t,n,r)=>{const s=n,o=e._zod.def;s.type="object",s.properties={};const i=o.shape;for(const l in i)s.properties[l]=U(i[l],t,{...r,path:[...r.path,"properties",l]});const a=new Set(Object.keys(i)),u=new Set([...a].filter(l=>{const h=o.shape[l]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));u.size>0&&(s.required=Array.from(u)),o.catchall?._zod.def.type==="never"?s.additionalProperties=!1:o.catchall?o.catchall&&(s.additionalProperties=U(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},dl=(e,t,n,r)=>{const s=e._zod.def,o=s.inclusive===!1,i=s.options.map((a,u)=>U(a,t,{...r,path:[...r.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=i:n.anyOf=i},hl=(e,t,n,r)=>{const s=e._zod.def,o=U(s.left,t,{...r,path:[...r.path,"allOf",0]}),i=U(s.right,t,{...r,path:[...r.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,u=[...a(o)?o.allOf:[o],...a(i)?i.allOf:[i]];n.allOf=u},fl=(e,t,n,r)=>{const s=n,o=e._zod.def;s.type="object";const i=o.keyType,u=i._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){const h=U(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});s.patternProperties={};for(const c of u)s.patternProperties[c.source]=h}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=U(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),s.additionalProperties=U(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const l=i._zod.values;if(l){const h=[...l].filter(c=>typeof c=="string"||typeof c=="number");h.length>0&&(s.required=h)}},pl=(e,t,n,r)=>{const s=e._zod.def,o=U(s.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=s.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},ml=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType},gl=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},bl=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},_l=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType;let i;try{i=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},vl=(e,t,n,r)=>{const s=e._zod.def,o=s.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?o?s.out:s.in:s.out;U(i,t,r);const a=t.seen.get(e);a.ref=i},wl=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType,n.readOnly=!0},br=(e,t,n,r)=>{const s=e._zod.def;U(s.innerType,t,r);const o=t.seen.get(e);o.ref=s.innerType},xl=m("ZodISODateTime",(e,t)=>{Si.init(e,t),D.init(e,t)});function kl(e){return Na(xl,e)}const yl=m("ZodISODate",(e,t)=>{$i.init(e,t),D.init(e,t)});function El(e){return Oa(yl,e)}const zl=m("ZodISOTime",(e,t)=>{Ri.init(e,t),D.init(e,t)});function Tl(e){return Ia(zl,e)}const Sl=m("ZodISODuration",(e,t)=>{ji.init(e,t),D.init(e,t)});function $l(e){return Pa(Sl,e)}const se=m("ZodError",(e,t)=>{Dn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>wo(e,n)},flatten:{value:n=>vo(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ut,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ut,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Rl=qt(se),jl=Ht(se),Nl=mt(se),Ol=gt(se),Il=yo(se),Pl=Eo(se),Al=zo(se),Zl=To(se),Cl=So(se),Dl=$o(se),Ml=Ro(se),Ll=jo(se),_r=new WeakMap;function nt(e,t,n){const r=Object.getPrototypeOf(e);let s=_r.get(r);if(s||(s=new Set,_r.set(r,s)),!s.has(t)){s.add(t);for(const o in n){const i=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){const a=i.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}const F=m("ZodType",(e,t)=>(L.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:xt(e,"input"),output:xt(e,"output")}}),e.toJSONSchema=el(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Rl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Nl(e,n,r),e.parseAsync=async(n,r)=>jl(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Ol(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Il(e,n,r),e.decode=(n,r)=>Pl(e,n,r),e.encodeAsync=async(n,r)=>Al(e,n,r),e.decodeAsync=async(n,r)=>Zl(e,n,r),e.safeEncode=(n,r)=>Cl(e,n,r),e.safeDecode=(n,r)=>Dl(e,n,r),e.safeEncodeAsync=async(n,r)=>Ml(e,n,r),e.safeDecodeAsync=async(n,r)=>Ll(e,n,r),nt(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ee(r,{checks:[...r.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return ze(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Rc(n,r))},superRefine(n,r){return this.check(jc(n,r))},overwrite(n){return this.check(Le(n))},optional(){return Ir(this)},exactOptional(){return gc(this)},nullable(){return Pr(this)},nullish(){return Ir(Pr(this))},nonoptional(n){return kc(this,n)},array(){return cc(this)},or(n){return $r([this,n])},and(n){return hc(this,n)},transform(n){return Zr(this,pc(n))},default(n){return vc(this,n)},prefault(n){return xc(this,n)},catch(n){return Ec(this,n)},pipe(n){return Zr(this,n)},readonly(){return Sc(this)},describe(n){const r=this.clone();return tt.add(r,{description:n}),r},meta(...n){if(n.length===0)return tt.get(this);const r=this.clone();return tt.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return tt.get(e)?.description},configurable:!0}),e)),vr=m("_ZodString",(e,t)=>{Wt.init(e,t),F.init(e,t),e._zod.processJSONSchema=(r,s,o)=>nl(e,r,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,nt(e,"_ZodString",{regex(...r){return this.check(Ma(...r))},includes(...r){return this.check(Ba(...r))},startsWith(...r){return this.check(Ua(...r))},endsWith(...r){return this.check(Va(...r))},min(...r){return this.check(wt(...r))},max(...r){return this.check(hr(...r))},length(...r){return this.check(fr(...r))},nonempty(...r){return this.check(wt(1,...r))},lowercase(r){return this.check(La(r))},uppercase(r){return this.check(Fa(r))},trim(){return this.check(Ya())},normalize(...r){return this.check(Ga(...r))},toLowerCase(){return this.check(Ja())},toUpperCase(){return this.check(qa())},slugify(){return this.check(Ha())}})}),Fl=m("ZodString",(e,t)=>{Wt.init(e,t),vr.init(e,t),e.email=n=>e.check(ua(Bl,n)),e.url=n=>e.check(ma(Ul,n)),e.jwt=n=>e.check(ja(sc,n)),e.emoji=n=>e.check(ga(Vl,n)),e.guid=n=>e.check(lr(wr,n)),e.uuid=n=>e.check(da(kt,n)),e.uuidv4=n=>e.check(ha(kt,n)),e.uuidv6=n=>e.check(fa(kt,n)),e.uuidv7=n=>e.check(pa(kt,n)),e.nanoid=n=>e.check(ba(Gl,n)),e.guid=n=>e.check(lr(wr,n)),e.cuid=n=>e.check(_a(Yl,n)),e.cuid2=n=>e.check(va(Jl,n)),e.ulid=n=>e.check(wa(ql,n)),e.base64=n=>e.check(Sa(tc,n)),e.base64url=n=>e.check($a(nc,n)),e.xid=n=>e.check(xa(Hl,n)),e.ksuid=n=>e.check(ka(Wl,n)),e.ipv4=n=>e.check(ya(Xl,n)),e.ipv6=n=>e.check(Ea(Kl,n)),e.cidrv4=n=>e.check(za(Ql,n)),e.cidrv6=n=>e.check(Ta(ec,n)),e.e164=n=>e.check(Ra(rc,n)),e.datetime=n=>e.check(kl(n)),e.date=n=>e.check(El(n)),e.time=n=>e.check(Tl(n)),e.duration=n=>e.check($l(n))});function Te(e){return ca(Fl,e)}const D=m("ZodStringFormat",(e,t)=>{Z.init(e,t),vr.init(e,t)}),Bl=m("ZodEmail",(e,t)=>{_i.init(e,t),D.init(e,t)}),wr=m("ZodGUID",(e,t)=>{gi.init(e,t),D.init(e,t)}),kt=m("ZodUUID",(e,t)=>{bi.init(e,t),D.init(e,t)}),Ul=m("ZodURL",(e,t)=>{vi.init(e,t),D.init(e,t)}),Vl=m("ZodEmoji",(e,t)=>{wi.init(e,t),D.init(e,t)}),Gl=m("ZodNanoID",(e,t)=>{xi.init(e,t),D.init(e,t)}),Yl=m("ZodCUID",(e,t)=>{ki.init(e,t),D.init(e,t)}),Jl=m("ZodCUID2",(e,t)=>{yi.init(e,t),D.init(e,t)}),ql=m("ZodULID",(e,t)=>{Ei.init(e,t),D.init(e,t)}),Hl=m("ZodXID",(e,t)=>{zi.init(e,t),D.init(e,t)}),Wl=m("ZodKSUID",(e,t)=>{Ti.init(e,t),D.init(e,t)}),Xl=m("ZodIPv4",(e,t)=>{Ni.init(e,t),D.init(e,t)}),Kl=m("ZodIPv6",(e,t)=>{Oi.init(e,t),D.init(e,t)}),Ql=m("ZodCIDRv4",(e,t)=>{Ii.init(e,t),D.init(e,t)}),ec=m("ZodCIDRv6",(e,t)=>{Pi.init(e,t),D.init(e,t)}),tc=m("ZodBase64",(e,t)=>{Ai.init(e,t),D.init(e,t)}),nc=m("ZodBase64URL",(e,t)=>{Ci.init(e,t),D.init(e,t)}),rc=m("ZodE164",(e,t)=>{Di.init(e,t),D.init(e,t)}),sc=m("ZodJWT",(e,t)=>{Li.init(e,t),D.init(e,t)}),xr=m("ZodNumber",(e,t)=>{Hn.init(e,t),F.init(e,t),e._zod.processJSONSchema=(r,s,o)=>rl(e,r,s),nt(e,"ZodNumber",{gt(r,s){return this.check(ur(r,s))},gte(r,s){return this.check(Qt(r,s))},min(r,s){return this.check(Qt(r,s))},lt(r,s){return this.check(cr(r,s))},lte(r,s){return this.check(Kt(r,s))},max(r,s){return this.check(Kt(r,s))},int(r){return this.check(yr(r))},safe(r){return this.check(yr(r))},positive(r){return this.check(ur(0,r))},nonnegative(r){return this.check(Qt(0,r))},negative(r){return this.check(cr(0,r))},nonpositive(r){return this.check(Kt(0,r))},multipleOf(r,s){return this.check(dr(r,s))},step(r,s){return this.check(dr(r,s))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function kr(e){return Aa(xr,e)}const oc=m("ZodNumberFormat",(e,t)=>{Fi.init(e,t),xr.init(e,t)});function yr(e){return Za(oc,e)}const ic=m("ZodUnknown",(e,t)=>{Bi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ol()});function Er(){return Ca(ic)}const ac=m("ZodNever",(e,t)=>{Ui.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>sl(e,n,r)});function zr(e){return Da(ac,e)}const lc=m("ZodArray",(e,t)=>{Vi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>cl(e,n,r,s),e.element=t.element,nt(e,"ZodArray",{min(n,r){return this.check(wt(n,r))},nonempty(n){return this.check(wt(1,n))},max(n,r){return this.check(hr(n,r))},length(n,r){return this.check(fr(n,r))},unwrap(){return this.element}})});function cc(e,t){return Wa(lc,e,t)}const Tr=m("ZodObject",(e,t)=>{Yi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ul(e,n,r,s),N(e,"shape",()=>t.shape),nt(e,"ZodObject",{keyof(){return Nr(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Er()})},loose(){return this.clone({...this._zod.def,catchall:Er()})},strict(){return this.clone({...this._zod.def,catchall:zr()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return fo(this,n)},safeExtend(n){return po(this,n)},merge(n){return mo(this,n)},pick(n){return uo(this,n)},omit(n){return ho(this,n)},partial(...n){return go(Or,this,n[0])},required(...n){return bo(Ar,this,n[0])}})});function Sr(e,t){const n={type:"object",shape:e??{},...v(t)};return new Tr(n)}function en(e,t){return new Tr({type:"object",shape:e,catchall:zr(),...v(t)})}const uc=m("ZodUnion",(e,t)=>{Ji.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>dl(e,n,r,s),e.options=t.options});function $r(e,t){return new uc({type:"union",options:e,...v(t)})}const dc=m("ZodIntersection",(e,t)=>{qi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>hl(e,n,r,s)});function hc(e,t){return new dc({type:"intersection",left:e,right:t})}const Rr=m("ZodRecord",(e,t)=>{Hi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>fl(e,n,r,s),e.keyType=t.keyType,e.valueType=t.valueType});function jr(e,t,n){return!t||!t._zod?new Rr({type:"record",keyType:Te(),valueType:e,...v(t)}):new Rr({type:"record",keyType:e,valueType:t,...v(n)})}const tn=m("ZodEnum",(e,t)=>{Wi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(r,s,o)=>il(e,r,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,s)=>{const o={};for(const i of r)if(n.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new tn({...t,checks:[],...v(s),entries:o})},e.exclude=(r,s)=>{const o={...t.entries};for(const i of r)if(n.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new tn({...t,checks:[],...v(s),entries:o})}});function Nr(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new tn({type:"enum",entries:n,...v(t)})}const fc=m("ZodTransform",(e,t)=>{Xi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ll(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Nn(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(et(o,n.value,t));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(et(i))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function pc(e){return new fc({type:"transform",transform:e})}const Or=m("ZodOptional",(e,t)=>{nr.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>br(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Ir(e){return new Or({type:"optional",innerType:e})}const mc=m("ZodExactOptional",(e,t)=>{Ki.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>br(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function gc(e){return new mc({type:"optional",innerType:e})}const bc=m("ZodNullable",(e,t)=>{Qi.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>pl(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Pr(e){return new bc({type:"nullable",innerType:e})}const _c=m("ZodDefault",(e,t)=>{ea.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>gl(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vc(e,t){return new _c({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Zn(t)}})}const wc=m("ZodPrefault",(e,t)=>{ta.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>bl(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function xc(e,t){return new wc({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Zn(t)}})}const Ar=m("ZodNonOptional",(e,t)=>{na.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>ml(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function kc(e,t){return new Ar({type:"nonoptional",innerType:e,...v(t)})}const yc=m("ZodCatch",(e,t)=>{ra.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>_l(e,n,r,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ec(e,t){return new yc({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const zc=m("ZodPipe",(e,t)=>{sa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>vl(e,n,r,s),e.in=t.in,e.out=t.out});function Zr(e,t){return new zc({type:"pipe",in:e,out:t})}const Tc=m("ZodReadonly",(e,t)=>{oa.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>wl(e,n,r,s),e.unwrap=()=>e._zod.def.innerType});function Sc(e){return new Tc({type:"readonly",innerType:e})}const $c=m("ZodCustom",(e,t)=>{ia.init(e,t),F.init(e,t),e._zod.processJSONSchema=(n,r,s)=>al(e,n)});function Rc(e,t={}){return Xa($c,e,t)}function jc(e,t){return Ka(e,t)}const Nc=Nr(["color","radius","width","number"]),Oc=en({value:$r([Te(),kr()]),widget:Nc}),Ic=jr(Te(),Oc),Pc=jr(Te(),Ic);function Ac(e){const t=Object.entries(e);if(t.length===0)return"";const n=s=>Object.entries(s).map(([o,i])=>` --${o}: ${i.value};`).join(`
|
|
9
70
|
`);let r="";for(const[s,o]of t){if(s==="default"){r+=`:root {
|
|
10
71
|
${n(o)}
|
|
11
72
|
}
|
|
12
73
|
`;continue}r+=`[data-theme="${s}"] {
|
|
13
74
|
${n(o)}
|
|
14
75
|
}
|
|
15
|
-
`}return r}function el(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e.trim())}function tl(e,t="yama-toolbar-overrides"){const n=p.useRef(null);p.useEffect(()=>{let r=n.current;r||(r=document.createElement("style"),r.id=t,document.head.appendChild(r),n.current=r),r.textContent=e},[e,t])}function nl(e,t={}){const{onThemeChanged:n}=t,r=p.useRef(n);r.current=n;const[s,o]=p.useState(e),[a,i]=p.useState(Object.keys(s)[0]),u=Object.keys(s),c=s[a]??{};p.useEffect(()=>{i(b=>b)},[s]),p.useEffect(()=>{a==="default"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",a)},[a]);const h=Ki(s);tl(h);const l=b=>{if(u.length<=1)return;const x=u.indexOf(a),E=u[(x+1)%u.length];i(E),r.current?.(E)},g=Gi((b,x)=>{o(E=>({...E,[a]:{...E[a]??{},[b]:x}}))},50);return{themes:s,activeTheme:a,themeNames:u,activeVars:c,changeTheme:l,updateVar:g}}function At(...e){return e.filter(Boolean).join(" ")}const rl={fr:{"guide.open":"Guide","guide.close":"Fermer le guide","guide.empty":"Ce thème ne dispose pour l'instant d'aucun guide utilisateur.","guide.fullscreen.enter":"Plein écran","guide.fullscreen.exit":"Quitter le plein écran","toolbar.label":"Barre d'outils Yama","theme.label":"Thème :","theme.changed":"Thème :","colors.open":"Palette","colors.close":"Fermer la palette","colors.active_theme":"Thème actif","colors.copy_theme":"Copier la palette","copy.success":"Copié dans le presse-papiers","copy.error":"Impossible de copier"},en:{"guide.open":"Guide","guide.close":"Close guide","guide.empty":"This theme does not have a user guide yet.","guide.fullscreen.enter":"Full screen","guide.fullscreen.exit":"Exit full screen","toolbar.label":"Yama Toolbar","theme.label":"Theme:","theme.changed":"Theme:","colors.open":"Palette","colors.close":"Close palette","colors.active_theme":"Active theme","colors.copy_theme":"Copy palette","copy.success":"Copied to clipboard","copy.error":"Unable to copy"},es:{"guide.open":"Guide","guide.close":"Cerrar la guía","guide.empty":"Este tema aún no tiene guía de usuario.","guide.fullscreen.enter":"Pantalla completa","guide.fullscreen.exit":"Salir de pantalla completa","toolbar.label":"Barra de herramientas Yama","theme.label":"Tema:","theme.changed":"Tema:","colors.open":"Paleta","colors.close":"Cerrar la paleta","colors.active_theme":"Tema activo","colors.copy_theme":"Copiar la paleta","copy.success":"Copiado al portapapeles","copy.error":"No se puede copiar"},it:{"guide.open":"Guide","guide.close":"Chiudi la guida","guide.empty":"Questo tema non dispone ancora di una guida utente.","guide.fullscreen.enter":"Schermo intero","guide.fullscreen.exit":"Esci dallo schermo intero","toolbar.label":"Barra degli strumenti Yama","theme.label":"Tema:","theme.changed":"Tema:","colors.open":"Tavolozza","colors.close":"Chiudi la tavolozza","colors.active_theme":"Tema attivo","colors.copy_theme":"Copia la palette","copy.success":"Copiato negli appunti","copy.error":"Impossibile copiare"},de:{"guide.open":"Guide","guide.close":"Guide schließen","guide.empty":"Für dieses Theme gibt es noch keinen Benutzerleitfaden.","guide.fullscreen.enter":"Vollbild","guide.fullscreen.exit":"Vollbild beenden","toolbar.label":"Yama-Werkzeugleiste","theme.label":"Theme:","theme.changed":"Theme:","colors.open":"Palette","colors.close":"Palette schließen","colors.active_theme":"Aktives Theme","colors.copy_theme":"Palette kopieren","copy.success":"In die Zwischenablage kopiert","copy.error":"Kopieren nicht möglich"}},D=(e,t,n)=>rl[t]?.[e]??n??e;function sl(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24","aria-hidden":!0,children:d.jsxs("g",{fill:"none",children:[d.jsx("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),d.jsx("path",{fill:"currentColor",d:"M19 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2V4a2 2 0 0 1 2-2zm-4 6H5v12h10zm-5 7a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zm9-11H9v2h6a2 2 0 0 1 2 2v8h2zm-7 7a1 1 0 0 1 .117 1.993L12 13H8a1 1 0 0 1-.117-1.993L8 11z"})]})})}function Ot({label:e,placement:t="top",className:n,children:r}){return d.jsxs("div",{className:At("yama-tooltip",`yama-tooltip--${t}`,n),children:[r,d.jsx("span",{className:"yama-tooltip__bubble",role:"tooltip",children:e})]})}function ol(e){const{activeTheme:t,activeVars:n,isOpen:r,onCopyExport:s,onUpdateVar:o,lang:a}=e;return d.jsxs("div",{className:At("panel","color-panel",r?"panel--open":"panel--closed"),"aria-hidden":!r,inert:r?void 0:!0,style:{background:"linear-gradient(180deg, #13151A 0%, rgba(19, 21, 26, 0.88) 100%)"},children:[d.jsxs("div",{className:"panel__header",children:[d.jsxs("p",{className:"panel__title",children:[D("colors.active_theme",a)," ",d.jsx("span",{className:"color-panel__active-theme",children:t})]}),d.jsx("div",{className:"panel__spacer"}),d.jsx(Ot,{label:D("colors.copy_theme",a),placement:"top",children:d.jsx("button",{type:"button",onClick:s,className:"color-panel__copy-button",children:d.jsx(sl,{})})})]}),d.jsx("div",{className:"panel__body color-panel__grid",children:Object.keys(n).map(i=>{const u=n[i]??"";return d.jsxs("div",{className:"color-row",children:[d.jsx("div",{className:"color-row__label",children:i}),d.jsxs("div",{className:"color-row__inputs",children:[d.jsx("input",{"aria-label":i,type:"color",value:el(u)?u:"#000000",onChange:c=>o(i,c.target.value),className:"color-row__swatch"}),d.jsx("input",{value:u,onChange:c=>o(i,c.target.value),className:"color-row__text"})]},i)]},i)})})]})}function al(){return d.jsxs("svg",{id:"Groupe_113","data-name":"Groupe 113",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"42.933",height:"49.48",viewBox:"0 0 42.933 49.48",className:"",children:[d.jsxs("defs",{children:[d.jsxs("radialGradient",{id:"radial-gradient",cx:"0.087",cy:"0.573",r:"1.574",gradientUnits:"objectBoundingBox",children:[d.jsx("stop",{offset:"0",stopColor:"#30a484"}),d.jsx("stop",{offset:"0.537",stopColor:"#0885a0"}),d.jsx("stop",{offset:"1",stopColor:"#00519e"})]}),d.jsx("clipPath",{id:"clipPath",children:d.jsx("path",{id:"Tracé_22","data-name":"Tracé 22",d:"M225.747,118.38l1.034-.593.025-9.36-8.094-4.7-.966.555-4.123-2.381,0-1.21-8.216-4.772-8.241,4.729,0,1.242L193,104.3l-.981-.57-8.119,4.659-.024,9.36,1.149.667v4.652l-1.124.645-.024,9.36,8.094,4.7,1.17-.671,4.011,2.316,0,1.211,8.216,4.772,8.241-4.729,0-1.244,3.966-2.29,1.093.635,8.118-4.659.025-9.36-1.058-.615Zm-2.21,12.831-18.28,10.553-18.28-10.553V110.1l18.28-10.554,18.28,10.554Z",transform:"translate(-183.872 -95.917)",fill:"none"})}),d.jsx("radialGradient",{id:"radial-gradient-2",cx:"-1.203",cy:"0.581",r:"1.539",xlinkHref:"#radial-gradient"}),d.jsx("radialGradient",{id:"radial-gradient-3",cx:"-0.029",cy:"1.899",r:"3.575",xlinkHref:"#radial-gradient"})]}),d.jsx("path",{id:"Tracé_19","data-name":"Tracé 19",d:"M201.981,152.243l.058,4.585,5.535,3.1,4,2.242.139,11.013,4,2.243-.2-15.6Z",transform:"translate(-196.072 -133.864)",fill:"url(#radial-gradient)"}),d.jsx("path",{id:"Tracé_20","data-name":"Tracé 20",d:"M280.224,188.7l5.615-3.337-.082-6.532-5.615,3.337Z",transform:"translate(-248.73 -151.778)",fill:"#006da3"}),d.jsx("path",{id:"Tracé_21","data-name":"Tracé 21",d:"M202.335,180.346l.081,6.428,5.535,3.1-.081-6.428Z",transform:"translate(-196.311 -152.798)",fill:"#2aa287"}),d.jsx("g",{id:"Groupe_8","data-name":"Groupe 8",children:d.jsx("g",{id:"Groupe_7","data-name":"Groupe 7",clipPath:"url(#clipPath)",children:d.jsxs("g",{id:"Groupe_6","data-name":"Groupe 6",transform:"translate(-10.442 -9.059)",children:[d.jsx("rect",{id:"Rectangle_3","data-name":"Rectangle 3",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 0, 14.522)",fill:"#2aa387"}),d.jsx("rect",{id:"Rectangle_4","data-name":"Rectangle 4",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 0.565, 14.348)",fill:"#29a288"}),d.jsx("rect",{id:"Rectangle_5","data-name":"Rectangle 5",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 1.13, 14.174)",fill:"#28a189"}),d.jsx("rect",{id:"Rectangle_6","data-name":"Rectangle 6",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 1.695, 14)",fill:"#27a08a"}),d.jsx("rect",{id:"Rectangle_7","data-name":"Rectangle 7",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 2.261, 13.826)",fill:"#279f8b"}),d.jsx("rect",{id:"Rectangle_8","data-name":"Rectangle 8",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 2.826, 13.653)",fill:"#269e8c"}),d.jsx("rect",{id:"Rectangle_9","data-name":"Rectangle 9",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 3.391, 13.479)",fill:"#259e8d"}),d.jsx("rect",{id:"Rectangle_10","data-name":"Rectangle 10",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 3.956, 13.305)",fill:"#249d8e"}),d.jsx("rect",{id:"Rectangle_11","data-name":"Rectangle 11",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 4.521, 13.131)",fill:"#249c8f"}),d.jsx("rect",{id:"Rectangle_12","data-name":"Rectangle 12",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 5.086, 12.957)",fill:"#239b90"}),d.jsx("rect",{id:"Rectangle_13","data-name":"Rectangle 13",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 5.651, 12.783)",fill:"#229a90"}),d.jsx("rect",{id:"Rectangle_14","data-name":"Rectangle 14",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 6.217, 12.609)",fill:"#229991"}),d.jsx("rect",{id:"Rectangle_15","data-name":"Rectangle 15",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 6.782, 12.436)",fill:"#219892"}),d.jsx("rect",{id:"Rectangle_16","data-name":"Rectangle 16",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 7.347, 12.262)",fill:"#209793"}),d.jsx("rect",{id:"Rectangle_17","data-name":"Rectangle 17",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 7.912, 12.088)",fill:"#1f9694"}),d.jsx("rect",{id:"Rectangle_18","data-name":"Rectangle 18",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 8.477, 11.914)",fill:"#1f9594"}),d.jsx("rect",{id:"Rectangle_19","data-name":"Rectangle 19",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 9.042, 11.74)",fill:"#1e9495"}),d.jsx("rect",{id:"Rectangle_20","data-name":"Rectangle 20",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 9.608, 11.566)",fill:"#1d9396"}),d.jsx("rect",{id:"Rectangle_21","data-name":"Rectangle 21",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 10.173, 11.393)",fill:"#1c9397"}),d.jsx("rect",{id:"Rectangle_22","data-name":"Rectangle 22",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 10.738, 11.219)",fill:"#1c9297"}),d.jsx("rect",{id:"Rectangle_23","data-name":"Rectangle 23",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 11.303, 11.045)",fill:"#1b9198"}),d.jsx("rect",{id:"Rectangle_24","data-name":"Rectangle 24",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 11.868, 10.871)",fill:"#1a9099"}),d.jsx("rect",{id:"Rectangle_25","data-name":"Rectangle 25",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 12.433, 10.697)",fill:"#198f99"}),d.jsx("rect",{id:"Rectangle_26","data-name":"Rectangle 26",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 12.998, 10.523)",fill:"#198e9a"}),d.jsx("rect",{id:"Rectangle_27","data-name":"Rectangle 27",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 13.564, 10.35)",fill:"#188d9b"}),d.jsx("rect",{id:"Rectangle_28","data-name":"Rectangle 28",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 14.129, 10.176)",fill:"#178c9b"}),d.jsx("rect",{id:"Rectangle_29","data-name":"Rectangle 29",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 14.694, 10.002)",fill:"#178b9c"}),d.jsx("rect",{id:"Rectangle_30","data-name":"Rectangle 30",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 15.259, 9.828)",fill:"#168a9c"}),d.jsx("rect",{id:"Rectangle_31","data-name":"Rectangle 31",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 15.824, 9.654)",fill:"#15899d"}),d.jsx("rect",{id:"Rectangle_32","data-name":"Rectangle 32",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 16.389, 9.48)",fill:"#14899e"}),d.jsx("rect",{id:"Rectangle_33","data-name":"Rectangle 33",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 16.954, 9.307)",fill:"#14889e"}),d.jsx("rect",{id:"Rectangle_34","data-name":"Rectangle 34",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 17.52, 9.133)",fill:"#13879f"}),d.jsx("rect",{id:"Rectangle_35","data-name":"Rectangle 35",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 18.085, 8.959)",fill:"#12869f"}),d.jsx("rect",{id:"Rectangle_36","data-name":"Rectangle 36",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 18.65, 8.785)",fill:"#1185a0"}),d.jsx("rect",{id:"Rectangle_37","data-name":"Rectangle 37",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 19.215, 8.611)",fill:"#1084a0"}),d.jsx("rect",{id:"Rectangle_38","data-name":"Rectangle 38",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 19.78, 8.437)",fill:"#1083a1"}),d.jsx("rect",{id:"Rectangle_39","data-name":"Rectangle 39",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 20.345, 8.264)",fill:"#0f82a1"}),d.jsx("rect",{id:"Rectangle_40","data-name":"Rectangle 40",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 20.91, 8.09)",fill:"#0e81a2"}),d.jsx("rect",{id:"Rectangle_41","data-name":"Rectangle 41",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 21.476, 7.916)",fill:"#0e80a2"}),d.jsx("rect",{id:"Rectangle_42","data-name":"Rectangle 42",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 22.041, 7.742)",fill:"#0d7fa2"}),d.jsx("rect",{id:"Rectangle_43","data-name":"Rectangle 43",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 22.606, 7.568)",fill:"#0c7ea3"}),d.jsx("rect",{id:"Rectangle_44","data-name":"Rectangle 44",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 23.171, 7.394)",fill:"#0c7da3"}),d.jsx("rect",{id:"Rectangle_45","data-name":"Rectangle 45",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 23.736, 7.22)",fill:"#0a7ca3"}),d.jsx("rect",{id:"Rectangle_46","data-name":"Rectangle 46",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 24.301, 7.047)",fill:"#087ba3"}),d.jsx("rect",{id:"Rectangle_47","data-name":"Rectangle 47",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 24.867, 6.873)",fill:"#077aa4"}),d.jsx("rect",{id:"Rectangle_48","data-name":"Rectangle 48",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 25.432, 6.699)",fill:"#0479a4"}),d.jsx("rect",{id:"Rectangle_49","data-name":"Rectangle 49",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 25.997, 6.525)",fill:"#0078a4"}),d.jsx("rect",{id:"Rectangle_50","data-name":"Rectangle 50",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 26.562, 6.351)",fill:"#0077a4"}),d.jsx("rect",{id:"Rectangle_51","data-name":"Rectangle 51",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 27.127, 6.177)",fill:"#0076a4"}),d.jsx("rect",{id:"Rectangle_52","data-name":"Rectangle 52",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 27.692, 6.004)",fill:"#0075a4"}),d.jsx("rect",{id:"Rectangle_53","data-name":"Rectangle 53",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 28.257, 5.83)",fill:"#0074a4"}),d.jsx("rect",{id:"Rectangle_54","data-name":"Rectangle 54",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 28.823, 5.656)",fill:"#0073a4"}),d.jsx("rect",{id:"Rectangle_55","data-name":"Rectangle 55",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 29.388, 5.482)",fill:"#0072a4"}),d.jsx("rect",{id:"Rectangle_56","data-name":"Rectangle 56",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 29.953, 5.308)",fill:"#0071a3"}),d.jsx("rect",{id:"Rectangle_57","data-name":"Rectangle 57",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 30.518, 5.134)",fill:"#0070a3"}),d.jsx("rect",{id:"Rectangle_58","data-name":"Rectangle 58",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 31.083, 4.961)",fill:"#006fa3"}),d.jsx("rect",{id:"Rectangle_59","data-name":"Rectangle 59",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 31.648, 4.787)",fill:"#006ea3"}),d.jsx("rect",{id:"Rectangle_60","data-name":"Rectangle 60",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 32.213, 4.613)",fill:"#006da3"}),d.jsx("rect",{id:"Rectangle_61","data-name":"Rectangle 61",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 32.779, 4.439)",fill:"#006ca3"}),d.jsx("rect",{id:"Rectangle_62","data-name":"Rectangle 62",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 33.344, 4.265)",fill:"#006aa3"}),d.jsx("rect",{id:"Rectangle_63","data-name":"Rectangle 63",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 33.909, 4.091)",fill:"#0069a3"}),d.jsx("rect",{id:"Rectangle_64","data-name":"Rectangle 64",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 34.474, 3.918)",fill:"#0068a3"}),d.jsx("rect",{id:"Rectangle_65","data-name":"Rectangle 65",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 35.039, 3.744)",fill:"#0067a3"}),d.jsx("rect",{id:"Rectangle_66","data-name":"Rectangle 66",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 35.604, 3.57)",fill:"#0066a2"}),d.jsx("rect",{id:"Rectangle_67","data-name":"Rectangle 67",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 36.169, 3.396)",fill:"#0065a2"}),d.jsx("rect",{id:"Rectangle_68","data-name":"Rectangle 68",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 36.735, 3.222)",fill:"#0064a2"}),d.jsx("rect",{id:"Rectangle_69","data-name":"Rectangle 69",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 37.3, 3.048)",fill:"#0063a2"}),d.jsx("rect",{id:"Rectangle_70","data-name":"Rectangle 70",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 37.865, 2.875)",fill:"#0062a2"}),d.jsx("rect",{id:"Rectangle_71","data-name":"Rectangle 71",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 38.43, 2.701)",fill:"#0061a2"}),d.jsx("rect",{id:"Rectangle_72","data-name":"Rectangle 72",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 38.995, 2.527)",fill:"#0060a2"}),d.jsx("rect",{id:"Rectangle_73","data-name":"Rectangle 73",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 39.56, 2.353)",fill:"#005fa1"}),d.jsx("rect",{id:"Rectangle_74","data-name":"Rectangle 74",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 40.126, 2.179)",fill:"#005ea1"}),d.jsx("rect",{id:"Rectangle_75","data-name":"Rectangle 75",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 40.691, 2.005)",fill:"#005da1"}),d.jsx("rect",{id:"Rectangle_76","data-name":"Rectangle 76",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 41.256, 1.831)",fill:"#005ca1"}),d.jsx("rect",{id:"Rectangle_77","data-name":"Rectangle 77",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 41.821, 1.658)",fill:"#005ba0"}),d.jsx("rect",{id:"Rectangle_78","data-name":"Rectangle 78",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 42.386, 1.484)",fill:"#005aa0"}),d.jsx("rect",{id:"Rectangle_79","data-name":"Rectangle 79",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 42.951, 1.31)",fill:"#0058a0"}),d.jsx("rect",{id:"Rectangle_80","data-name":"Rectangle 80",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 43.516, 1.136)",fill:"#00579f"}),d.jsx("rect",{id:"Rectangle_81","data-name":"Rectangle 81",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 44.082, 0.962)",fill:"#00569f"}),d.jsx("rect",{id:"Rectangle_82","data-name":"Rectangle 82",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 44.647, 0.788)",fill:"#00559f"}),d.jsx("rect",{id:"Rectangle_83","data-name":"Rectangle 83",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 45.212, 0.615)",fill:"#00549e"}),d.jsx("rect",{id:"Rectangle_84","data-name":"Rectangle 84",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 45.777, 0.441)",fill:"#00539e"}),d.jsx("rect",{id:"Rectangle_85","data-name":"Rectangle 85",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 46.342, 0.267)",fill:"#00529e"})]})})}),d.jsx("path",{id:"Tracé_23","data-name":"Tracé 23",d:"M255.825,174.453l3.942-2.342-.14-11.116,9.557-5.679-.058-4.585-13.5,8.022Z",transform:"translate(-232.215 -132.845)",fill:"url(#radial-gradient-2)"}),d.jsx("path",{id:"Tracé_24","data-name":"Tracé 24",d:"M231.994,120.436l5.664,3.255,5.65-3.278-5.663-3.255Z",transform:"translate(-216.292 -110.228)",fill:"#0072a2"}),d.jsx("path",{id:"Tracé_25","data-name":"Tracé 25",d:"M217.519,136.926l-5.535-3.1-3.942,2.342,13.534,7.588,13.41-7.969-4-2.242-9.468,5.627Z",transform:"translate(-200.156 -121.265)",fill:"url(#radial-gradient-3)"}),d.jsx("path",{id:"Tracé_26","data-name":"Tracé 26",d:"M193.392,117.6V138.71l18.28,10.553,18.28-10.553V117.6l-18.28-10.554Zm3,19.79-.081-6.428,5.535,3.1.081,6.428Zm9.534,5.346-.139-11.013-4-2.242-5.535-3.1-.058-4.585,13.534,7.588.2,15.6ZM227.4,137l-5.615,3.337-.082-6.532,5.615-3.337Zm-.14-11.116-9.557,5.679.14,11.116-3.942,2.342-.2-15.7,13.5-8.022Zm-2.139-7.951-13.41,7.969-13.534-7.588,3.942-2.342,5.535,3.1,4,2.243,9.468-5.627Zm-13.465-1.056-5.663-3.255,5.65-3.278L217.3,113.6Z",transform:"translate(-190.286 -103.417)",fill:"#fff"}),d.jsxs("g",{id:"Groupe_9","data-name":"Groupe 9",transform:"translate(5.909 12.276)",children:[d.jsx("path",{id:"Tracé_27","data-name":"Tracé 27",d:"M230.987,133.542l-9.468,5.627-4-2.242-5.535-3.1-3.942,2.342,13.534,7.588,13.41-7.969Z",transform:"translate(-206.065 -133.542)",fill:"#1e1e1f",fillRule:"evenodd"}),d.jsx("path",{id:"Tracé_28","data-name":"Tracé 28",d:"M269.184,155.315l-.058-4.585-13.5,8.022.2,15.7,3.942-2.342-.14-11.116Z",transform:"translate(-238.124 -145.122)",fill:"#1e1e1f",fillRule:"evenodd"}),d.jsx("path",{id:"Tracé_29","data-name":"Tracé 29",d:"M201.981,152.243l.058,4.585,5.535,3.1,4,2.242.139,11.013,4,2.243-.2-15.6Z",transform:"translate(-201.981 -146.141)",fill:"#1e1e1f",fillRule:"evenodd"})]})]})}function il(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24","aria-hidden":!0,children:d.jsx("path",{fill:"currentColor",d:"M7.5 2c-1.79 1.15-3 3.18-3 5.5s1.21 4.35 3.03 5.5C4.46 13 2 10.54 2 7.5A5.5 5.5 0 0 1 7.5 2m11.57 1.5l1.43 1.43L4.93 20.5L3.5 19.07zm-6.18 2.43L11.41 5L9.97 6l.42-1.7L9 3.24l1.75-.12l.58-1.65L12 3.1l1.73.03l-1.35 1.13zm-3.3 3.61l-1.16-.73l-1.12.78l.34-1.32l-1.09-.83l1.36-.09l.45-1.29l.51 1.27l1.36.03l-1.05.87zM19 13.5a5.5 5.5 0 0 1-5.5 5.5c-1.22 0-2.35-.4-3.26-1.07l7.69-7.69c.67.91 1.07 2.04 1.07 3.26m-4.4 6.58l2.77-1.15l-.24 3.35zm4.33-2.7l1.15-2.77l2.2 2.54zm1.15-4.96l-1.14-2.78l3.34.24zM9.63 18.93l2.77 1.15l-2.53 2.19z"})})}function ll(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24","aria-hidden":!0,children:d.jsx("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175T8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9t2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.312.125t-.088.275q0 .3.375.863t.375 1.287q0 1.25-.687 1.85T12 22m-4.425-9.425Q8 12.15 8 11.5t-.425-1.075T6.5 10t-1.075.425T5 11.5t.425 1.075T6.5 13t1.075-.425m3-4Q11 8.15 11 7.5t-.425-1.075T9.5 6t-1.075.425T8 7.5t.425 1.075T9.5 9t1.075-.425m5 0Q16 8.15 16 7.5t-.425-1.075T14.5 6t-1.075.425T13 7.5t.425 1.075T14.5 9t1.075-.425m3 4Q19 12.15 19 11.5t-.425-1.075T17.5 10t-1.075.425T16 11.5t.425 1.075T17.5 13t1.075-.425"})})}function Ct({label:e,onClick:t,disabled:n,children:r}){return d.jsx(Ot,{label:e,className:"yama-toolbar__item",children:d.jsx("button",{type:"button",onClick:t,disabled:n,"aria-label":e,className:"yama-toolbar__button",children:d.jsx("span",{className:"yama-toolbar__icon",children:r})})})}function cl({activePanel:e,onToggleGuidePanel:t,onToggleColorsPanel:n,activeTheme:r,themeCount:s,onThemeChanged:o,lang:a}){const i=e==="guide",u=e==="colors";return d.jsxs("div",{className:"yama-toolbar__toolbar",id:"dev-bar",tabIndex:0,role:"toolbar","aria-label":D("toolbar.label",a),style:{background:"linear-gradient(180deg, #13151A 0%, rgba(19, 21, 26, 0.88) 100%)"},children:[d.jsx(Ct,{label:D(i?"guide.close":"guide.open",a),onClick:t,children:d.jsx(al,{})}),d.jsx(Ct,{label:`${D("theme.label",a)} ${r}`,onClick:o,disabled:s<=1,children:d.jsx(il,{})}),d.jsx(Ct,{label:D(u?"colors.close":"colors.open",a),onClick:n,children:d.jsx(ll,{})})]})}function It(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _e=It();function qn(e){_e=e}var Te={exec:()=>null};function Ze(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=t[r];return s||(s=e(r),t[r]=s),s}}function z(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(q.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,t)};return r}var ul=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ze(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ze(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ze(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ze(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ze(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ze(e=>new RegExp(`^ {0,${e}}>`))},dl=/^(?:[ \t]*(?:\n|$))+/,hl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fl=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,He=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pl=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Nt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Vn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Jn=z(Vn).replace(/bull/g,Nt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ml=z(Vn).replace(/bull/g,Nt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Dt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gl=/^[^\n]+/,Lt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bl=z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xl=z(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Nt).getRegex(),dt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Mt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wl=z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Mt).replace("tag",dt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hn=z(Dt).replace("hr",He).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),yl=z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Hn).getRegex(),Bt={blockquote:yl,code:hl,def:bl,fences:fl,heading:pl,hr:He,html:wl,lheading:Jn,list:xl,newline:dl,paragraph:Hn,table:Te,text:gl},Yn=z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",He).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex(),kl={...Bt,lheading:ml,table:Yn,paragraph:z(Dt).replace("hr",He).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dt).getRegex()},vl={...Bt,html:z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(Dt).replace("hr",He).replace("heading",` *#{1,6} *[^
|
|
16
|
-
]`).replace("lheading",Jn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_l=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Tl=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wn=/^( {2,}|\\)\n(?!\s*$)/,zl=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ae=/[\p{P}\p{S}]/u,ht=/[\s\p{P}\p{S}]/u,Ft=/[^\s\p{P}\p{S}]/u,Rl=z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ht).getRegex(),Gn=/(?!~)[\p{P}\p{S}]/u,Sl=/(?!~)[\s\p{P}\p{S}]/u,$l=/(?:[^\s\p{P}\p{S}]|~)/u,El=z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ul?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Qn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,jl=z(Qn,"u").replace(/punct/g,Ae).getRegex(),Pl=z(Qn,"u").replace(/punct/g,Gn).getRegex(),Xn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zl=z(Xn,"gu").replace(/notPunctSpace/g,Ft).replace(/punctSpace/g,ht).replace(/punct/g,Ae).getRegex(),Al=z(Xn,"gu").replace(/notPunctSpace/g,$l).replace(/punctSpace/g,Sl).replace(/punct/g,Gn).getRegex(),Ol=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ft).replace(/punctSpace/g,ht).replace(/punct/g,Ae).getRegex(),Cl=z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ae).getRegex(),Il="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Nl=z(Il,"gu").replace(/notPunctSpace/g,Ft).replace(/punctSpace/g,ht).replace(/punct/g,Ae).getRegex(),Dl=z(/\\(punct)/,"gu").replace(/punct/g,Ae).getRegex(),Ll=z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ml=z(Mt).replace("(?:-->|$)","-->").getRegex(),Bl=z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ml).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ft=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Fl=z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ft).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Kn=z(/^!?\[(label)\]\[(ref)\]/).replace("label",ft).replace("ref",Lt).getRegex(),er=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lt).getRegex(),Ul=z("reflink|nolink(?!\\()","g").replace("reflink",Kn).replace("nolink",er).getRegex(),tr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ut={_backpedal:Te,anyPunctuation:Dl,autolink:Ll,blockSkip:El,br:Wn,code:Tl,del:Te,delLDelim:Te,delRDelim:Te,emStrongLDelim:jl,emStrongRDelimAst:Zl,emStrongRDelimUnd:Ol,escape:_l,link:Fl,nolink:er,punctuation:Rl,reflink:Kn,reflinkSearch:Ul,tag:Bl,text:zl,url:Te},ql={...Ut,link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",ft).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ft).getRegex()},qt={...Ut,emStrongRDelimAst:Al,emStrongLDelim:Pl,delLDelim:Cl,delRDelim:Nl,url:z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tr).getRegex()},Vl={...qt,br:z(Wn).replace("{2,}","*").getRegex(),text:z(qt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pt={normal:Bt,gfm:kl,pedantic:vl},Ye={normal:Ut,gfm:qt,breaks:Vl,pedantic:ql},Jl={"&":"&","<":"<",">":">",'"':""","'":"'"},nr=e=>Jl[e];function de(e,t){if(t){if(q.escapeTest.test(e))return e.replace(q.escapeReplace,nr)}else if(q.escapeTestNoEncode.test(e))return e.replace(q.escapeReplaceNoEncode,nr);return e}function rr(e){try{e=encodeURI(e).replace(q.percentDecode,"%")}catch{return null}return e}function sr(e,t){let n=e.replace(q.findPipe,(o,a,i)=>{let u=!1,c=a;for(;--c>=0&&i[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(q.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(q.slashPipe,"|");return r}function ke(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function or(e){let t=e.split(`
|
|
76
|
+
`}return r}function Zc(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e.trim())}function Cr(e){if(typeof e=="number"&&Number.isFinite(e))return{amount:e,unit:"px"};const t=String(e).trim().match(/^(-?\d*\.?\d+)\s*([a-z%]*)/i);return t?{amount:Number(t[1]),unit:t[2]||"px"}:{amount:0,unit:"px"}}const Cc={fr:{"guide.open":"Guide","guide.empty":"Ce thème ne dispose pour l'instant d'aucun guide utilisateur.","guide.fullscreen.enter":"Plein écran","guide.fullscreen.exit":"Quitter le plein écran","toolbar.label":"Barre d'outils Yama","panel.close":"Fermer le panneau","themes.open":"Apparence","themes.active_theme":"Thème actif","themes.switch_theme":"Changer de thème","themes.copy_theme":"Copier l'apparence","themes.copy_theme.success":"Apparence copiée","themes.copy_theme.success.description":"Vous pouvez maintenant coller l'apparence sauvegardée au niveau de l'édition de votre site sur Yama CMS","themes.copy_theme.error":"Impossible de copier l'apparence","fonts.open":"Polices","fonts.title":"Polices","fonts.no_matches":"Aucune police"},en:{"guide.open":"Guide","guide.empty":"This theme does not have a user guide yet.","guide.fullscreen.enter":"Full screen","guide.fullscreen.exit":"Exit full screen","toolbar.label":"Yama Toolbar","panel.close":"Close panel","themes.open":"Appearance","themes.active_theme":"Active theme","themes.switch_theme":"Switch theme","themes.copy_theme":"Copy appearance","themes.copy_theme.success":"Appearance copied","themes.copy_theme.success.description":"You can now paste the saved appearance when editing your site on Yama CMS","themes.copy_theme.error":"Unable to copy appearance","fonts.open":"Fonts","fonts.title":"Fonts","fonts.no_matches":"No fonts found"},es:{"guide.open":"Guide","guide.empty":"Este tema aún no tiene guía de usuario.","guide.fullscreen.enter":"Pantalla completa","guide.fullscreen.exit":"Salir de pantalla completa","toolbar.label":"Barra de herramientas Yama","panel.close":"Cerrar el panel","themes.open":"Apariencia","themes.active_theme":"Tema activo","themes.switch_theme":"Cambiar de tema","themes.copy_theme":"Copiar la apariencia","themes.copy_theme.success":"Apariencia copiada","themes.copy_theme.success.description":"Ahora puede pegar la apariencia guardada al editar su sitio en Yama CMS","themes.copy_theme.error":"No se puede copiar la apariencia","fonts.open":"Fuentes","fonts.title":"Fuentes","fonts.no_matches":"Ninguna fuente"},it:{"guide.open":"Guide","guide.empty":"Questo tema non dispone ancora di una guida utente.","guide.fullscreen.enter":"Schermo intero","guide.fullscreen.exit":"Esci dallo schermo intero","toolbar.label":"Barra degli strumenti Yama","panel.close":"Chiudi il pannello","themes.open":"Aspetto","themes.active_theme":"Tema attivo","themes.switch_theme":"Cambia tema","themes.copy_theme":"Copia l'aspetto","themes.copy_theme.success":"Aspetto copiato","themes.copy_theme.success.description":"Ora puoi incollare l'aspetto salvato durante la modifica del tuo sito su Yama CMS","themes.copy_theme.error":"Impossibile copiare l'aspetto","fonts.open":"Caratteri","fonts.title":"Caratteri","fonts.no_matches":"Nessun carattere"},de:{"guide.open":"Guide","guide.empty":"Für dieses Theme gibt es noch keinen Benutzerleitfaden.","guide.fullscreen.enter":"Vollbild","guide.fullscreen.exit":"Vollbild beenden","toolbar.label":"Yama-Werkzeugleiste","panel.close":"Panel schließen","themes.open":"Erscheinungsbild","themes.active_theme":"Aktives Theme","themes.switch_theme":"Theme wechseln","themes.copy_theme":"Erscheinungsbild kopieren","themes.copy_theme.success":"Erscheinungsbild kopiert","themes.copy_theme.success.description":"Sie können das gespeicherte Erscheinungsbild jetzt in der Bearbeitung Ihrer Website auf Yama CMS einfügen","themes.copy_theme.error":"Erscheinungsbild nicht kopierbar","fonts.open":"Schriften","fonts.title":"Schriften","fonts.no_matches":"Keine Schrift gefunden"}},M=(e,t,n)=>Cc[t]?.[e]??n??e;var yt={exports:{}},Dr;function Dc(){if(Dr)return yt.exports;Dr=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof r=="boolean"?{immediate:r}:r;let o,i,a,u,l;function h(){const b=o,_=i;return o=void 0,i=void 0,l=t.apply(b,_),l}function c(){const b=Date.now()-u;b<n&&b>=0?a=setTimeout(c,n-b):(a=void 0,s||(l=h()))}const f=function(...b){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,i=b,u=Date.now();const _=s&&!a;return a||(a=setTimeout(c,n)),_&&(l=h()),l};return Object.defineProperty(f,"isPending",{get(){return a!==void 0}}),f.clear=()=>{a&&(clearTimeout(a),a=void 0)},f.flush=()=>{a&&f.trigger()},f.trigger=()=>{l=h(),f.clear()},f}return yt.exports.debounce=e,yt.exports=e,yt.exports}var Mc=Dc();const Lc=zs(Mc),rt=Symbol("clean");let ie=[],Se=0;const Et=4,zt=globalThis.nanostoresGlobal||={epoch:0};let Fc=()=>{let e;for(Se=0;Se<ie.length;Se+=Et)try{ie[Se](ie[Se+1].value,ie[Se+2],ie[Se+3])}catch(t){e=t}if(ie.length=0,e)throw e};const Tt=e=>{let t=[],n={eq:Object.is,get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let o=Se+Et;o<ie.length;)ie[o]===r?ie.splice(o,Et):o+=Et;let s=t.indexOf(r);~s&&(t.splice(s,1),--n.lc||n.off())}},notify(r,s){zt.epoch++;let o=!ie.length&&!0;for(let i of t)ie.push(i,n,r,s);o&&Fc()},off(){},set(r){let s=n.value;n.eq(s,r)||(n.value=r,n.notify(s))},subscribe(r){let s=n.listen(r);return r(n.value),s},value:e};return process.env.NODE_ENV!=="production"&&(n[rt]=()=>{t=[],n.lc=0,n.off()}),n},Bc=5,Fe=6,St=10;let Uc=(e,t,n,r)=>(e.events=e.events||{},e.events[n+St]||(e.events[n+St]=r(s=>{e.events[n].reduceRight((o,i)=>(i(o),o),{shared:{},...s})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let s=e.events[n],o=s.indexOf(t);s.splice(o,1),s.length||(delete e.events[n],e.events[n+St](),delete e.events[n+St])});const Vc=1e3;let Gc=(e,t)=>Uc(e,r=>{let s=t(r);s&&e.events[Fe].push(s)},Bc,r=>{let s=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),s(...i));let o=e.off;if(e.events[Fe]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[Fe])i();e.events[Fe]=[]}},Vc)},process.env.NODE_ENV!=="production"){let i=e[rt];e[rt]=()=>{for(let a of e.events[Fe])a();e.events[Fe]=[],e.active=!1,i()}}return()=>{e.listen=s,e.off=o}}),Mr={};function Yc(e){Mr[e]||(Mr[e]=!0,typeof console<"u"&&console.warn&&(console.groupCollapsed("Nano Stores: "+e),console.trace("Source of deprecated call"),console.groupEnd()))}let Jc=(e,t,n)=>{Array.isArray(e)||(e=[e]);let r,s,o=()=>{if(s===zt.epoch)return;s=zt.epoch;let l=e.map(h=>h.get());if(!r||l.some((h,c)=>h!==r[c])){r=l;let h=t(...l);h&&h.then&&h.t?(process.env.NODE_ENV!=="production"&&Yc("Use @nanostores/async for async computed. We will remove Promise support in computed() in Nano Stores 2.0"),h.then(c=>{r===l&&i.set(c)})):(i.set(h),s=zt.epoch)}},i=Tt(void 0),a=i.get;if(i.get=()=>(o(),a()),process.env.NODE_ENV!=="production"){let l=i[rt];i[rt]=()=>{r=void 0,s=void 0,i.value=void 0,l()}}let u=o;return Gc(i,()=>{let l=e.map(h=>h.listen(u));return o(),()=>{for(let h of l)h()}}),i};const qc=(e,t)=>Jc(e,t);function Lr(e,t){let n=Hc(t),r=e;for(let s of n){if(r==null)return;r=r[s]}return r}const Fr=/(.*)\[(\d+)\]/;function Hc(e){return e.split(".").flatMap(t=>Br(t))}function Br(e){if(Fr.test(e)){let[,t,n]=e.match(Fr);return[...Br(t),n]}return[e]}function Wc(e,t,n){let r=new Set(t);return e.listen((s,o,i)=>{(i===void 0?t.some(a=>o===void 0||s[a]!==o[a]||Lr(s,a)!==Lr(o,a)):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(s,o,i)})}let nn=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function Ur(e,{keys:t,deps:n=[e,t],ssr:r}={}){let s=p.useRef();s.current=e.get();let o=p.useCallback(u=>(nn(s,u)(e.value),t?.length>0?Wc(e,t,nn(s,u)):e.listen(nn(s,u))),n),i=()=>s.current,a=i;return r&&"init"in e&&(a=r==="initial"?()=>e.init:r),p.useSyncExternalStore(o,i,a)}const Xc=Sr({favicon:Te().optional(),main:en({filename:Te(),height:kr().optional()}).optional()}),Kc=Sr({embeddedCode:Te().optional()}).catchall(Te()),Qc=en({logo:Xc.optional(),fonts:Kc.optional(),themes:Pc.optional()}),eu=['<link rel="preconnect" href="https://fonts.googleapis.com">','<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>'],Vr="data-yama-fonts";function rn(e={}){return Object.entries(e).filter(t=>t[0]!=="embeddedCode"&&!!t[1])}function tu(e,t){const n=e.replaceAll(" ","+"),r=t.map(yn.toString).sort();return r.length?`family=${n}:ital,wght@${r.join(";")}`:`family=${n}`}function nu(e,t){const n=rn(e).map(([s,o])=>{const i=t[s];return tu(i?.fontName??o,i?.variants??[])});if(!n.length)return e.embeddedCode??"";const r=`https://fonts.googleapis.com/css2?${n.join("&")}&display=swap`;return[...eu,`<link href="${r}" rel="stylesheet">`].join(`
|
|
77
|
+
`)}function ru(e){for(const[n,r]of rn(e))document.body.style.setProperty(`--font-${n}`,`"${r}", sans-serif`);if(document.querySelectorAll(`link[${Vr}]`).forEach(n=>n.remove()),!e.embeddedCode)return;const t=document.createElement("template");t.innerHTML=e.embeddedCode;for(const n of t.content.querySelectorAll("link"))n.setAttribute(Vr,""),document.head.append(n)}const Gr=Tt(void 0),$t=Tt(void 0),st=Tt({}),Yr={},su=qc([Gr,$t,st],(e,t,n)=>({logo:e,fonts:t,themes:n}));function ou(e){const t=Qc.safeParse(e);return t.success?(Gr.set(t.data.logo),Jr(t.data.fonts),st.set(t.data.themes??{}),!0):(console.error("[yama-toolbar] invalid config",t.error),!1)}function Jr(e){$t.set(e),e&&ru(e)}function iu(e,t,n){const r=st.get(),s=r[e]?.[t];s&&st.set({...r,[e]:{...r[e],[t]:{...s,value:n}}})}function au(e,t){const n=$t.get();if(!n)return;const r=n[e]!==t.fontName;if(Yr[e]=t,!r)return;const s={...n,[e]:t.fontName};s.embeddedCode=nu(s,Yr),Jr(s)}function lu(){return JSON.stringify(su.get(),null,2)}const qr="yama-toolbar-overrides";function cu(e={}){const t=Ur(st),n=Object.keys(t),[r,s]=p.useState(()=>n[0]??"default"),o=p.useRef(r);o.current=r;const i=t[r]??{};p.useEffect(()=>{const l=Object.keys(t);l.length!==0&&(l.includes(r)||s(l[0]))},[t,r]),p.useEffect(()=>{r==="default"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",r)},[r]),p.useEffect(()=>{let l=document.getElementById(qr);l||(l=document.createElement("style"),l.id=qr,document.head.appendChild(l)),l.textContent=Ac(t)},[t]);const a=p.useMemo(()=>Lc((l,h)=>{iu(o.current,l,h)},50),[]);return p.useEffect(()=>()=>a.clear(),[a]),{themes:t,activeTheme:r,themeNames:n,activeVars:i,changeTheme:l=>{if(n.length<=1)return;const h=l&&n.includes(l)?l:n[(n.indexOf(r)+1)%n.length];s(h),e.onThemeChanged?.(h)},updateVar:a}}function sn(...e){return e.filter(Boolean).join(" ")}function Rt(e){const{isOpen:t,title:n,titleAdditional:r,children:s,headerButtons:o,className:i,...a}=e;return d.jsxs("div",{...a,className:sn("panel",t?"panel--open":"panel--closed",i),"aria-hidden":!t,inert:!t,children:[d.jsxs("div",{className:"panel__header",children:[d.jsxs("p",{className:"panel__title",children:[n,r&&r]}),d.jsx("div",{className:"panel__spacer"}),o&&d.jsx("div",{className:"panel__buttons",children:o})]}),d.jsx("div",{className:"panel__body",children:s})]})}function on({label:e,placement:t="top",className:n,children:r}){return d.jsxs("div",{className:sn("tooltip",`tooltip--${t}`,n),children:[r,d.jsx("span",{className:"tooltip__bubble",role:"tooltip",children:e})]})}function Hr(e){const{children:t,onClick:n,className:r,icon:s,iconPosition:o,...i}=e;return d.jsxs("button",{className:sn("button",r),onClick:n,...i,children:[s&&o==="left"&&s,t,s&&o==="right"&&s]})}function uu(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24","aria-hidden":!0,children:d.jsx("path",{fill:"currentColor",d:"M7.5 2c-1.79 1.15-3 3.18-3 5.5s1.21 4.35 3.03 5.5C4.46 13 2 10.54 2 7.5A5.5 5.5 0 0 1 7.5 2m11.57 1.5l1.43 1.43L4.93 20.5L3.5 19.07zm-6.18 2.43L11.41 5L9.97 6l.42-1.7L9 3.24l1.75-.12l.58-1.65L12 3.1l1.73.03l-1.35 1.13zm-3.3 3.61l-1.16-.73l-1.12.78l.34-1.32l-1.09-.83l1.36-.09l.45-1.29l.51 1.27l1.36.03l-1.05.87zM19 13.5a5.5 5.5 0 0 1-5.5 5.5c-1.22 0-2.35-.4-3.26-1.07l7.69-7.69c.67.91 1.07 2.04 1.07 3.26m-4.4 6.58l2.77-1.15l-.24 3.35zm4.33-2.7l1.15-2.77l2.2 2.54zm1.15-4.96l-1.14-2.78l3.34.24zM9.63 18.93l2.77 1.15l-2.53 2.19z"})})}const Wr={width:{min:0,max:16,step:1},radius:{min:0,max:48,step:1}};function du(e){return e in Wr}function hu({name:e,entry:t,onUpdateVar:n}){const r=t.widget,s=Cr(t.value),o=Wr[r],i=Math.max(o.max,s.amount),a=p.useRef(!1),[u,l]=p.useState(s.amount);p.useEffect(()=>{a.current||l(Cr(t.value).amount)},[t.value]);const h=f=>{l(f),n(e,`${f}${s.unit}`)},c=i===o.min?0:(u-o.min)/(i-o.min)*100;return d.jsxs("div",{className:"theme-var__inputs theme-var__inputs--range",children:[d.jsx("input",{"aria-label":e,"aria-valuetext":`${u}${s.unit}`,type:"range",min:o.min,max:i,step:o.step,value:u,onChange:f=>h(f.target.valueAsNumber),onPointerDown:f=>{f.currentTarget.setPointerCapture(f.pointerId),a.current=!0},onLostPointerCapture:()=>{a.current=!1},className:"theme-var__range",style:{"--theme-range-progress":`${c}%`}}),d.jsxs("span",{className:"theme-var__value",children:[u,s.unit]})]})}function fu({name:e,entry:t,onUpdateVar:n}){const r=String(t.value);return d.jsxs("div",{className:"theme-var",children:[d.jsxs("div",{className:"theme-var__header",children:[d.jsx("div",{className:"theme-var__label",children:e}),d.jsx("div",{className:"theme-var__type",children:t.widget})]}),du(t.widget)?d.jsx(hu,{name:e,entry:t,onUpdateVar:n}):d.jsxs("div",{className:"theme-var__inputs",children:[t.widget==="color"&&d.jsx("input",{"aria-label":e,type:"color",value:Zc(r)?r:"#000000",onChange:s=>n(e,s.target.value),className:"theme-var__swatch"}),d.jsx("input",{"aria-label":e,type:t.widget==="number"?"number":"text",value:r,onChange:s=>n(e,t.widget==="number"?s.target.valueAsNumber:s.target.value),className:"theme-var__text"})]})]})}function pu({isOpen:e,lang:t}){const{activeTheme:n,themeNames:r,activeVars:s,changeTheme:o,updateVar:i}=cu(),a=r.length;return d.jsx(Rt,{className:"themes-panel",isOpen:e,title:M("themes.active_theme",t),titleAdditional:d.jsx("span",{className:"themes-panel__active-theme",children:n}),headerButtons:a>1&&d.jsx(on,{label:M("themes.switch_theme",t),placement:"top-right",children:d.jsx(Hr,{onClick:()=>o(),disabled:a<=1,"aria-label":M("themes.switch_theme",t),children:d.jsx(uu,{})})}),children:d.jsx("div",{className:"themes-panel__grid",children:Object.entries(s).map(([u,l])=>d.jsx(fu,{name:u,entry:l,onUpdateVar:i},u))})})}function mu(){return d.jsxs("svg",{id:"Groupe_113","data-name":"Groupe 113",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"42.933",height:"49.48",viewBox:"0 0 42.933 49.48",className:"",children:[d.jsxs("defs",{children:[d.jsxs("radialGradient",{id:"radial-gradient",cx:"0.087",cy:"0.573",r:"1.574",gradientUnits:"objectBoundingBox",children:[d.jsx("stop",{offset:"0",stopColor:"#30a484"}),d.jsx("stop",{offset:"0.537",stopColor:"#0885a0"}),d.jsx("stop",{offset:"1",stopColor:"#00519e"})]}),d.jsx("clipPath",{id:"clipPath",children:d.jsx("path",{id:"Tracé_22","data-name":"Tracé 22",d:"M225.747,118.38l1.034-.593.025-9.36-8.094-4.7-.966.555-4.123-2.381,0-1.21-8.216-4.772-8.241,4.729,0,1.242L193,104.3l-.981-.57-8.119,4.659-.024,9.36,1.149.667v4.652l-1.124.645-.024,9.36,8.094,4.7,1.17-.671,4.011,2.316,0,1.211,8.216,4.772,8.241-4.729,0-1.244,3.966-2.29,1.093.635,8.118-4.659.025-9.36-1.058-.615Zm-2.21,12.831-18.28,10.553-18.28-10.553V110.1l18.28-10.554,18.28,10.554Z",transform:"translate(-183.872 -95.917)",fill:"none"})}),d.jsx("radialGradient",{id:"radial-gradient-2",cx:"-1.203",cy:"0.581",r:"1.539",xlinkHref:"#radial-gradient"}),d.jsx("radialGradient",{id:"radial-gradient-3",cx:"-0.029",cy:"1.899",r:"3.575",xlinkHref:"#radial-gradient"})]}),d.jsx("path",{id:"Tracé_19","data-name":"Tracé 19",d:"M201.981,152.243l.058,4.585,5.535,3.1,4,2.242.139,11.013,4,2.243-.2-15.6Z",transform:"translate(-196.072 -133.864)",fill:"url(#radial-gradient)"}),d.jsx("path",{id:"Tracé_20","data-name":"Tracé 20",d:"M280.224,188.7l5.615-3.337-.082-6.532-5.615,3.337Z",transform:"translate(-248.73 -151.778)",fill:"#006da3"}),d.jsx("path",{id:"Tracé_21","data-name":"Tracé 21",d:"M202.335,180.346l.081,6.428,5.535,3.1-.081-6.428Z",transform:"translate(-196.311 -152.798)",fill:"#2aa287"}),d.jsx("g",{id:"Groupe_8","data-name":"Groupe 8",children:d.jsx("g",{id:"Groupe_7","data-name":"Groupe 7",clipPath:"url(#clipPath)",children:d.jsxs("g",{id:"Groupe_6","data-name":"Groupe 6",transform:"translate(-10.442 -9.059)",children:[d.jsx("rect",{id:"Rectangle_3","data-name":"Rectangle 3",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 0, 14.522)",fill:"#2aa387"}),d.jsx("rect",{id:"Rectangle_4","data-name":"Rectangle 4",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 0.565, 14.348)",fill:"#29a288"}),d.jsx("rect",{id:"Rectangle_5","data-name":"Rectangle 5",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 1.13, 14.174)",fill:"#28a189"}),d.jsx("rect",{id:"Rectangle_6","data-name":"Rectangle 6",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 1.695, 14)",fill:"#27a08a"}),d.jsx("rect",{id:"Rectangle_7","data-name":"Rectangle 7",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 2.261, 13.826)",fill:"#279f8b"}),d.jsx("rect",{id:"Rectangle_8","data-name":"Rectangle 8",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 2.826, 13.653)",fill:"#269e8c"}),d.jsx("rect",{id:"Rectangle_9","data-name":"Rectangle 9",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 3.391, 13.479)",fill:"#259e8d"}),d.jsx("rect",{id:"Rectangle_10","data-name":"Rectangle 10",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 3.956, 13.305)",fill:"#249d8e"}),d.jsx("rect",{id:"Rectangle_11","data-name":"Rectangle 11",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 4.521, 13.131)",fill:"#249c8f"}),d.jsx("rect",{id:"Rectangle_12","data-name":"Rectangle 12",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 5.086, 12.957)",fill:"#239b90"}),d.jsx("rect",{id:"Rectangle_13","data-name":"Rectangle 13",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 5.651, 12.783)",fill:"#229a90"}),d.jsx("rect",{id:"Rectangle_14","data-name":"Rectangle 14",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 6.217, 12.609)",fill:"#229991"}),d.jsx("rect",{id:"Rectangle_15","data-name":"Rectangle 15",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 6.782, 12.436)",fill:"#219892"}),d.jsx("rect",{id:"Rectangle_16","data-name":"Rectangle 16",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 7.347, 12.262)",fill:"#209793"}),d.jsx("rect",{id:"Rectangle_17","data-name":"Rectangle 17",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 7.912, 12.088)",fill:"#1f9694"}),d.jsx("rect",{id:"Rectangle_18","data-name":"Rectangle 18",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 8.477, 11.914)",fill:"#1f9594"}),d.jsx("rect",{id:"Rectangle_19","data-name":"Rectangle 19",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 9.042, 11.74)",fill:"#1e9495"}),d.jsx("rect",{id:"Rectangle_20","data-name":"Rectangle 20",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 9.608, 11.566)",fill:"#1d9396"}),d.jsx("rect",{id:"Rectangle_21","data-name":"Rectangle 21",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 10.173, 11.393)",fill:"#1c9397"}),d.jsx("rect",{id:"Rectangle_22","data-name":"Rectangle 22",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 10.738, 11.219)",fill:"#1c9297"}),d.jsx("rect",{id:"Rectangle_23","data-name":"Rectangle 23",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 11.303, 11.045)",fill:"#1b9198"}),d.jsx("rect",{id:"Rectangle_24","data-name":"Rectangle 24",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 11.868, 10.871)",fill:"#1a9099"}),d.jsx("rect",{id:"Rectangle_25","data-name":"Rectangle 25",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 12.433, 10.697)",fill:"#198f99"}),d.jsx("rect",{id:"Rectangle_26","data-name":"Rectangle 26",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 12.998, 10.523)",fill:"#198e9a"}),d.jsx("rect",{id:"Rectangle_27","data-name":"Rectangle 27",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 13.564, 10.35)",fill:"#188d9b"}),d.jsx("rect",{id:"Rectangle_28","data-name":"Rectangle 28",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 14.129, 10.176)",fill:"#178c9b"}),d.jsx("rect",{id:"Rectangle_29","data-name":"Rectangle 29",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 14.694, 10.002)",fill:"#178b9c"}),d.jsx("rect",{id:"Rectangle_30","data-name":"Rectangle 30",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 15.259, 9.828)",fill:"#168a9c"}),d.jsx("rect",{id:"Rectangle_31","data-name":"Rectangle 31",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 15.824, 9.654)",fill:"#15899d"}),d.jsx("rect",{id:"Rectangle_32","data-name":"Rectangle 32",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 16.389, 9.48)",fill:"#14899e"}),d.jsx("rect",{id:"Rectangle_33","data-name":"Rectangle 33",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 16.954, 9.307)",fill:"#14889e"}),d.jsx("rect",{id:"Rectangle_34","data-name":"Rectangle 34",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 17.52, 9.133)",fill:"#13879f"}),d.jsx("rect",{id:"Rectangle_35","data-name":"Rectangle 35",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 18.085, 8.959)",fill:"#12869f"}),d.jsx("rect",{id:"Rectangle_36","data-name":"Rectangle 36",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 18.65, 8.785)",fill:"#1185a0"}),d.jsx("rect",{id:"Rectangle_37","data-name":"Rectangle 37",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 19.215, 8.611)",fill:"#1084a0"}),d.jsx("rect",{id:"Rectangle_38","data-name":"Rectangle 38",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 19.78, 8.437)",fill:"#1083a1"}),d.jsx("rect",{id:"Rectangle_39","data-name":"Rectangle 39",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 20.345, 8.264)",fill:"#0f82a1"}),d.jsx("rect",{id:"Rectangle_40","data-name":"Rectangle 40",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 20.91, 8.09)",fill:"#0e81a2"}),d.jsx("rect",{id:"Rectangle_41","data-name":"Rectangle 41",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 21.476, 7.916)",fill:"#0e80a2"}),d.jsx("rect",{id:"Rectangle_42","data-name":"Rectangle 42",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 22.041, 7.742)",fill:"#0d7fa2"}),d.jsx("rect",{id:"Rectangle_43","data-name":"Rectangle 43",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 22.606, 7.568)",fill:"#0c7ea3"}),d.jsx("rect",{id:"Rectangle_44","data-name":"Rectangle 44",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 23.171, 7.394)",fill:"#0c7da3"}),d.jsx("rect",{id:"Rectangle_45","data-name":"Rectangle 45",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 23.736, 7.22)",fill:"#0a7ca3"}),d.jsx("rect",{id:"Rectangle_46","data-name":"Rectangle 46",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 24.301, 7.047)",fill:"#087ba3"}),d.jsx("rect",{id:"Rectangle_47","data-name":"Rectangle 47",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 24.867, 6.873)",fill:"#077aa4"}),d.jsx("rect",{id:"Rectangle_48","data-name":"Rectangle 48",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 25.432, 6.699)",fill:"#0479a4"}),d.jsx("rect",{id:"Rectangle_49","data-name":"Rectangle 49",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 25.997, 6.525)",fill:"#0078a4"}),d.jsx("rect",{id:"Rectangle_50","data-name":"Rectangle 50",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 26.562, 6.351)",fill:"#0077a4"}),d.jsx("rect",{id:"Rectangle_51","data-name":"Rectangle 51",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 27.127, 6.177)",fill:"#0076a4"}),d.jsx("rect",{id:"Rectangle_52","data-name":"Rectangle 52",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 27.692, 6.004)",fill:"#0075a4"}),d.jsx("rect",{id:"Rectangle_53","data-name":"Rectangle 53",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 28.257, 5.83)",fill:"#0074a4"}),d.jsx("rect",{id:"Rectangle_54","data-name":"Rectangle 54",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 28.823, 5.656)",fill:"#0073a4"}),d.jsx("rect",{id:"Rectangle_55","data-name":"Rectangle 55",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 29.388, 5.482)",fill:"#0072a4"}),d.jsx("rect",{id:"Rectangle_56","data-name":"Rectangle 56",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 29.953, 5.308)",fill:"#0071a3"}),d.jsx("rect",{id:"Rectangle_57","data-name":"Rectangle 57",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 30.518, 5.134)",fill:"#0070a3"}),d.jsx("rect",{id:"Rectangle_58","data-name":"Rectangle 58",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 31.083, 4.961)",fill:"#006fa3"}),d.jsx("rect",{id:"Rectangle_59","data-name":"Rectangle 59",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 31.648, 4.787)",fill:"#006ea3"}),d.jsx("rect",{id:"Rectangle_60","data-name":"Rectangle 60",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 32.213, 4.613)",fill:"#006da3"}),d.jsx("rect",{id:"Rectangle_61","data-name":"Rectangle 61",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 32.779, 4.439)",fill:"#006ca3"}),d.jsx("rect",{id:"Rectangle_62","data-name":"Rectangle 62",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 33.344, 4.265)",fill:"#006aa3"}),d.jsx("rect",{id:"Rectangle_63","data-name":"Rectangle 63",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 33.909, 4.091)",fill:"#0069a3"}),d.jsx("rect",{id:"Rectangle_64","data-name":"Rectangle 64",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 34.474, 3.918)",fill:"#0068a3"}),d.jsx("rect",{id:"Rectangle_65","data-name":"Rectangle 65",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 35.039, 3.744)",fill:"#0067a3"}),d.jsx("rect",{id:"Rectangle_66","data-name":"Rectangle 66",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 35.604, 3.57)",fill:"#0066a2"}),d.jsx("rect",{id:"Rectangle_67","data-name":"Rectangle 67",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 36.169, 3.396)",fill:"#0065a2"}),d.jsx("rect",{id:"Rectangle_68","data-name":"Rectangle 68",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 36.735, 3.222)",fill:"#0064a2"}),d.jsx("rect",{id:"Rectangle_69","data-name":"Rectangle 69",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 37.3, 3.048)",fill:"#0063a2"}),d.jsx("rect",{id:"Rectangle_70","data-name":"Rectangle 70",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 37.865, 2.875)",fill:"#0062a2"}),d.jsx("rect",{id:"Rectangle_71","data-name":"Rectangle 71",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 38.43, 2.701)",fill:"#0061a2"}),d.jsx("rect",{id:"Rectangle_72","data-name":"Rectangle 72",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 38.995, 2.527)",fill:"#0060a2"}),d.jsx("rect",{id:"Rectangle_73","data-name":"Rectangle 73",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 39.56, 2.353)",fill:"#005fa1"}),d.jsx("rect",{id:"Rectangle_74","data-name":"Rectangle 74",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 40.126, 2.179)",fill:"#005ea1"}),d.jsx("rect",{id:"Rectangle_75","data-name":"Rectangle 75",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 40.691, 2.005)",fill:"#005da1"}),d.jsx("rect",{id:"Rectangle_76","data-name":"Rectangle 76",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 41.256, 1.831)",fill:"#005ca1"}),d.jsx("rect",{id:"Rectangle_77","data-name":"Rectangle 77",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 41.821, 1.658)",fill:"#005ba0"}),d.jsx("rect",{id:"Rectangle_78","data-name":"Rectangle 78",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 42.386, 1.484)",fill:"#005aa0"}),d.jsx("rect",{id:"Rectangle_79","data-name":"Rectangle 79",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 42.951, 1.31)",fill:"#0058a0"}),d.jsx("rect",{id:"Rectangle_80","data-name":"Rectangle 80",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 43.516, 1.136)",fill:"#00579f"}),d.jsx("rect",{id:"Rectangle_81","data-name":"Rectangle 81",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 44.082, 0.962)",fill:"#00569f"}),d.jsx("rect",{id:"Rectangle_82","data-name":"Rectangle 82",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 44.647, 0.788)",fill:"#00559f"}),d.jsx("rect",{id:"Rectangle_83","data-name":"Rectangle 83",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 45.212, 0.615)",fill:"#00549e"}),d.jsx("rect",{id:"Rectangle_84","data-name":"Rectangle 84",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 45.777, 0.441)",fill:"#00539e"}),d.jsx("rect",{id:"Rectangle_85","data-name":"Rectangle 85",width:"0.908",height:"53.205",transform:"matrix(0.956, -0.294, 0.294, 0.956, 46.342, 0.267)",fill:"#00529e"})]})})}),d.jsx("path",{id:"Tracé_23","data-name":"Tracé 23",d:"M255.825,174.453l3.942-2.342-.14-11.116,9.557-5.679-.058-4.585-13.5,8.022Z",transform:"translate(-232.215 -132.845)",fill:"url(#radial-gradient-2)"}),d.jsx("path",{id:"Tracé_24","data-name":"Tracé 24",d:"M231.994,120.436l5.664,3.255,5.65-3.278-5.663-3.255Z",transform:"translate(-216.292 -110.228)",fill:"#0072a2"}),d.jsx("path",{id:"Tracé_25","data-name":"Tracé 25",d:"M217.519,136.926l-5.535-3.1-3.942,2.342,13.534,7.588,13.41-7.969-4-2.242-9.468,5.627Z",transform:"translate(-200.156 -121.265)",fill:"url(#radial-gradient-3)"}),d.jsx("path",{id:"Tracé_26","data-name":"Tracé 26",d:"M193.392,117.6V138.71l18.28,10.553,18.28-10.553V117.6l-18.28-10.554Zm3,19.79-.081-6.428,5.535,3.1.081,6.428Zm9.534,5.346-.139-11.013-4-2.242-5.535-3.1-.058-4.585,13.534,7.588.2,15.6ZM227.4,137l-5.615,3.337-.082-6.532,5.615-3.337Zm-.14-11.116-9.557,5.679.14,11.116-3.942,2.342-.2-15.7,13.5-8.022Zm-2.139-7.951-13.41,7.969-13.534-7.588,3.942-2.342,5.535,3.1,4,2.243,9.468-5.627Zm-13.465-1.056-5.663-3.255,5.65-3.278L217.3,113.6Z",transform:"translate(-190.286 -103.417)",fill:"#fff"}),d.jsxs("g",{id:"Groupe_9","data-name":"Groupe 9",transform:"translate(5.909 12.276)",children:[d.jsx("path",{id:"Tracé_27","data-name":"Tracé 27",d:"M230.987,133.542l-9.468,5.627-4-2.242-5.535-3.1-3.942,2.342,13.534,7.588,13.41-7.969Z",transform:"translate(-206.065 -133.542)",fill:"#1e1e1f",fillRule:"evenodd"}),d.jsx("path",{id:"Tracé_28","data-name":"Tracé 28",d:"M269.184,155.315l-.058-4.585-13.5,8.022.2,15.7,3.942-2.342-.14-11.116Z",transform:"translate(-238.124 -145.122)",fill:"#1e1e1f",fillRule:"evenodd"}),d.jsx("path",{id:"Tracé_29","data-name":"Tracé 29",d:"M201.981,152.243l.058,4.585,5.535,3.1,4,2.242.139,11.013,4,2.243-.2-15.6Z",transform:"translate(-201.981 -146.141)",fill:"#1e1e1f",fillRule:"evenodd"})]})]})}function gu(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:d.jsxs("g",{fill:"none",children:[d.jsx("path",{fill:"currentColor",d:"M8.6 1.418a.64.64 0 0 0-1.2 0l-.167.45a4 4 0 0 1-2.366 2.365l-.449.166a.64.64 0 0 0 0 1.202l.45.166a4 4 0 0 1 2.365 2.366l.166.449a.64.64 0 0 0 1.202 0l.166-.45a4 4 0 0 1 2.366-2.365l.449-.166a.64.64 0 0 0 0-1.202l-.45-.166a4 4 0 0 1-2.365-2.366zM3.876 7.261a.4.4 0 0 0-.752 0l-.103.281a2.5 2.5 0 0 1-1.479 1.479l-.28.103a.4.4 0 0 0 0 .752l.28.103a2.5 2.5 0 0 1 1.479 1.479l.103.28a.4.4 0 0 0 .752 0l.103-.28a2.5 2.5 0 0 1 1.479-1.479l.28-.103a.4.4 0 0 0 0-.752l-.28-.103a2.5 2.5 0 0 1-1.479-1.479z"}),d.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.781 11.832A4.795 4.795 0 0 0 4.75 16.46v3.79a1 1 0 0 0 1 1h3.79a4.79 4.79 0 0 0 4.628-6.03m-3.387-3.388a4.8 4.8 0 0 1 3.387 3.387m-3.387-3.387l3.19-3.19m.197 6.577l3.19-3.19m-3.387-3.387l3.19-3.19a2.395 2.395 0 0 1 3.387 3.387l-3.19 3.19m-3.387-3.387l3.387 3.387"})]})})}function bu(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:d.jsx("path",{fill:"currentColor",d:"M10.414 15H3.586l-1.631 4.505a.75.75 0 1 1-1.41-.51l5.08-14.03a1.463 1.463 0 0 1 2.75 0l5.08 14.03a.75.75 0 1 1-1.411.51Zm4.532-5.098c.913-1.683 2.703-2.205 4.284-2.205c1.047 0 2.084.312 2.878.885c.801.577 1.392 1.455 1.392 2.548v8.12a.75.75 0 0 1-1.5 0v-.06l-.044.025c-.893.52-2.096.785-3.451.785c-1.051 0-2.048-.315-2.795-.948c-.76-.643-1.217-1.578-1.217-2.702c0-.919.349-1.861 1.168-2.563c.81-.694 2-1.087 3.569-1.087H22v-1.57c0-.503-.263-.967-.769-1.332c-.513-.37-1.235-.6-2.001-.6c-1.319 0-2.429.43-2.966 1.42a.75.75 0 0 1-1.318-.716M9.87 13.5L7 5.572L4.13 13.5Zm12.13.7h-2.77c-1.331 0-2.134.333-2.593.726a1.82 1.82 0 0 0-.644 1.424c0 .689.267 1.203.686 1.557c.43.365 1.065.593 1.826.593c1.183 0 2.102-.235 2.697-.581c.582-.34.798-.74.798-1.134Z"})})}function _u(){return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:d.jsx("path",{fill:"currentColor",d:"M7 7h3v3h12V7h3v11h2V7a2.006 2.006 0 0 0-2-2h-3V4a2.006 2.006 0 0 0-2-2h-8a2.006 2.006 0 0 0-2 2v1H7a2.006 2.006 0 0 0-2 2v21a2.006 2.006 0 0 0 2 2h9v-2H7zm5-3h8v4h-8zm18 20h-8.172l2.586-2.586L23 20l-5 5l5 5l1.414-1.414L21.828 26H30zM12 13h-2v2h2zm10 0h-8v2h8zm-10 5h-2v2h2zm-2 7h2v-2h-2zm4-5h4v-2h-4z"})})}function jt({label:e,onClick:t,disabled:n,children:r}){return d.jsx(on,{label:e,className:"toolbar__item",children:d.jsx("button",{type:"button",onClick:t,disabled:n,"aria-label":e,className:"toolbar__button",children:d.jsx("span",{className:"toolbar__icon",children:r})})})}function vu({activePanel:e,onToggleGuidePanel:t,onToggleThemesPanel:n,onToggleLiveEditingPanel:r,onToggleFontsPanel:s,lang:o}){return d.jsxs("div",{className:"toolbar__toolbar",id:"dev-bar",tabIndex:0,role:"toolbar","aria-label":M("toolbar.label",o),children:[d.jsx(jt,{label:e===O.GUIDE?M("panel.close",o):M("guide.open",o),onClick:t,children:d.jsx(mu,{})}),d.jsx(jt,{label:e===O.THEMES?M("panel.close",o):M("themes.open",o),onClick:n,children:d.jsx(gu,{})}),d.jsx(jt,{label:e===O.FONTS?M("panel.close",o):M("fonts.open",o),onClick:s,children:d.jsx(bu,{})}),d.jsx(jt,{label:M("themes.copy_theme",o),onClick:async()=>{try{await navigator.clipboard.writeText(lu()),Sn.success(M("themes.copy_theme.success",o),{description:M("themes.copy_theme.success.description",o),duration:6e3})}catch{Sn.error(M("themes.copy_theme.error",o))}},children:d.jsx(_u,{})})]})}function an(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=an();function Xr(e){Ne=e}var Oe={exec:()=>null};function Be(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=t[r];return s||(s=e(r),t[r]=s),s}}function z(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,o)=>{let i=typeof o=="string"?o:o.source;return i=i.replace(q.caret,"$1"),n=n.replace(s,i),r},getRegex:()=>new RegExp(n,t)};return r}var wu=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Be(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Be(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Be(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Be(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Be(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Be(e=>new RegExp(`^ {0,${e}}>`))},xu=/^(?:[ \t]*(?:\n|$))+/,ku=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ot=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Eu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ln=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Kr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qr=z(Kr).replace(/bull/g,ln).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),zu=z(Kr).replace(/bull/g,ln).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),cn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Tu=/^[^\n]+/,un=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Su=z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",un).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$u=z(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ln).getRegex(),Nt="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ru=z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",dn).replace("tag",Nt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),es=z(cn).replace("hr",ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nt).getRegex(),ju=z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",es).getRegex(),hn={blockquote:ju,code:ku,def:Su,fences:yu,heading:Eu,hr:ot,html:Ru,lheading:Qr,list:$u,newline:xu,paragraph:es,table:Oe,text:Tu},ts=z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nt).getRegex(),Nu={...hn,lheading:zu,table:ts,paragraph:z(cn).replace("hr",ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ts).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nt).getRegex()},Ou={...hn,html:z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",dn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Oe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(cn).replace("hr",ot).replace("heading",` *#{1,6} *[^
|
|
78
|
+
]`).replace("lheading",Qr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Iu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ns=/^( {2,}|\\)\n(?!\s*$)/,Au=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ue=/[\p{P}\p{S}]/u,Ot=/[\s\p{P}\p{S}]/u,fn=/[^\s\p{P}\p{S}]/u,Zu=z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ot).getRegex(),rs=/(?!~)[\p{P}\p{S}]/u,Cu=/(?!~)[\s\p{P}\p{S}]/u,Du=/(?:[^\s\p{P}\p{S}]|~)/u,Mu=z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",wu?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ss=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Lu=z(ss,"u").replace(/punct/g,Ue).getRegex(),Fu=z(ss,"u").replace(/punct/g,rs).getRegex(),os="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Bu=z(os,"gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Ot).replace(/punct/g,Ue).getRegex(),Uu=z(os,"gu").replace(/notPunctSpace/g,Du).replace(/punctSpace/g,Cu).replace(/punct/g,rs).getRegex(),Vu=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Ot).replace(/punct/g,Ue).getRegex(),Gu=z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ue).getRegex(),Yu="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ju=z(Yu,"gu").replace(/notPunctSpace/g,fn).replace(/punctSpace/g,Ot).replace(/punct/g,Ue).getRegex(),qu=z(/\\(punct)/,"gu").replace(/punct/g,Ue).getRegex(),Hu=z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wu=z(dn).replace("(?:-->|$)","-->").getRegex(),Xu=z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),It=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Ku=z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",It).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),is=z(/^!?\[(label)\]\[(ref)\]/).replace("label",It).replace("ref",un).getRegex(),as=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",un).getRegex(),Qu=z("reflink|nolink(?!\\()","g").replace("reflink",is).replace("nolink",as).getRegex(),ls=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,pn={_backpedal:Oe,anyPunctuation:qu,autolink:Hu,blockSkip:Mu,br:ns,code:Pu,del:Oe,delLDelim:Oe,delRDelim:Oe,emStrongLDelim:Lu,emStrongRDelimAst:Bu,emStrongRDelimUnd:Vu,escape:Iu,link:Ku,nolink:as,punctuation:Zu,reflink:is,reflinkSearch:Qu,tag:Xu,text:Au,url:Oe},ed={...pn,link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",It).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",It).getRegex()},mn={...pn,emStrongRDelimAst:Uu,emStrongLDelim:Fu,delLDelim:Gu,delRDelim:Ju,url:z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ls).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ls).getRegex()},td={...mn,br:z(ns).replace("{2,}","*").getRegex(),text:z(mn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pt={normal:hn,gfm:Nu,pedantic:Ou},it={normal:pn,gfm:mn,breaks:td,pedantic:ed},nd={"&":"&","<":"<",">":">",'"':""","'":"'"},cs=e=>nd[e];function me(e,t){if(t){if(q.escapeTest.test(e))return e.replace(q.escapeReplace,cs)}else if(q.escapeTestNoEncode.test(e))return e.replace(q.escapeReplaceNoEncode,cs);return e}function us(e){try{e=encodeURI(e).replace(q.percentDecode,"%")}catch{return null}return e}function ds(e,t){let n=e.replace(q.findPipe,(o,i,a)=>{let u=!1,l=i;for(;--l>=0&&a[l]==="\\";)u=!u;return u?"|":" |"}),r=n.split(q.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(q.slashPipe,"|");return r}function $e(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function hs(e){let t=e.split(`
|
|
17
79
|
`),n=t.length-1;for(;n>=0&&q.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
18
|
-
`)}function
|
|
19
|
-
`).map(o=>{let
|
|
20
|
-
`)}var
|
|
21
|
-
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw
|
|
22
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n
|
|
80
|
+
`)}function rd(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function sd(e,t=0){let n=t,r="";for(let s of e)if(s===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=s,n++;return r}function fs(e,t,n,r,s){let o=t.href,i=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,u}function od(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
|
|
81
|
+
`).map(o=>{let i=o.match(n.other.beginningSpace);if(i===null)return o;let[a]=i;return a.length>=s.length?o.slice(s.length):o}).join(`
|
|
82
|
+
`)}var At=class{options;rules;lexer;constructor(e){this.options=e||Ne}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:hs(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=od(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=$e(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:$e(t[0],`
|
|
83
|
+
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:$e(t[0],`
|
|
84
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=$e(t[0],`
|
|
23
85
|
`).split(`
|
|
24
|
-
`),r="",s="",o=[];for(;n.length>0;){let
|
|
25
|
-
`),h=
|
|
86
|
+
`),r="",s="",o=[];for(;n.length>0;){let i=!1,a=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))a.push(n[u]),i=!0;else if(!i)a.push(n[u]);else break;n=n.slice(u);let l=a.join(`
|
|
87
|
+
`),h=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
26
88
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
27
|
-
${
|
|
28
|
-
${h}`:h;let
|
|
89
|
+
${l}`:l,s=s?`${s}
|
|
90
|
+
${h}`:h;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,o,!0),this.lexer.state.top=c,n.length===0)break;let f=o.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let b=f,_=b.raw+`
|
|
29
91
|
`+n.join(`
|
|
30
|
-
`),
|
|
92
|
+
`),C=this.blockquote(_);o[o.length-1]=C,r=r.substring(0,r.length-b.raw.length)+C.raw,s=s.substring(0,s.length-b.text.length)+C.text;break}else if(f?.type==="list"){let b=f,_=b.raw+`
|
|
31
93
|
`+n.join(`
|
|
32
|
-
`),
|
|
33
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:o,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),
|
|
34
|
-
`,1)[0],t[1].length),
|
|
35
|
-
`,1)[0],b=!
|
|
36
|
-
`,e=e.substring(
|
|
37
|
-
`,1)[0],
|
|
38
|
-
`+
|
|
39
|
-
`+
|
|
40
|
-
`,e=e.substring(
|
|
41
|
-
`),href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=
|
|
42
|
-
`):[],o={type:"table",raw
|
|
43
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let
|
|
94
|
+
`),C=this.list(_);o[o.length-1]=C,r=r.substring(0,r.length-f.raw.length)+C.raw,s=s.substring(0,s.length-b.raw.length)+C.raw,n=_.substring(o.at(-1).raw.length).split(`
|
|
95
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:o,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),i=!1;for(;e;){let u=!1,l="",h="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let c=sd(t[2].split(`
|
|
96
|
+
`,1)[0],t[1].length),f=e.split(`
|
|
97
|
+
`,1)[0],b=!c.trim(),_=0;if(this.options.pedantic?(_=2,h=c.trimStart()):b?_=t[1].length+1:(_=c.search(this.rules.other.nonSpaceChar),_=_>4?1:_,h=c.slice(_),_+=t[1].length),b&&this.rules.other.blankLine.test(f)&&(l+=f+`
|
|
98
|
+
`,e=e.substring(f.length+1),u=!0),!u){let C=this.rules.other.nextBulletRegex(_),T=this.rules.other.hrRegex(_),E=this.rules.other.fencesBeginRegex(_),ce=this.rules.other.headingBeginRegex(_),B=this.rules.other.htmlBeginRegex(_),$=this.rules.other.blockquoteBeginRegex(_);for(;e;){let I=e.split(`
|
|
99
|
+
`,1)[0],V;if(f=I,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),V=f):V=f.replace(this.rules.other.tabCharGlobal," "),E.test(f)||ce.test(f)||B.test(f)||$.test(f)||C.test(f)||T.test(f))break;if(V.search(this.rules.other.nonSpaceChar)>=_||!f.trim())h+=`
|
|
100
|
+
`+V.slice(_);else{if(b||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(c)||ce.test(c)||T.test(c))break;h+=`
|
|
101
|
+
`+f}b=!f.trim(),l+=I+`
|
|
102
|
+
`,e=e.substring(I.length+1),c=V.slice(_)}}s.loose||(i?s.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(i=!0)),s.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),s.raw+=l}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let u of s.items){this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]);let l=u.tokens[0];if(u.task&&(l?.type==="text"||l?.type==="paragraph")){u.text=u.text.replace(this.rules.other.listReplaceTask,""),l.raw=l.raw.replace(this.rules.other.listReplaceTask,""),l.text=l.text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}let h=this.rules.other.listTaskCheckbox.exec(u.raw);if(h){let c={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=c.checked,s.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=c.raw+u.tokens[0].raw,u.tokens[0].text=c.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(c)):u.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):u.tokens.unshift(c)}}else u.task&&(u.task=!1);if(!s.loose){let h=u.tokens.filter(f=>f.type==="space"),c=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=c}}if(s.loose)for(let u of s.items){u.loose=!0;for(let l of u.tokens)l.type==="text"&&(l.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=hs(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:$e(t[0],`
|
|
103
|
+
`),href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ds(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
104
|
+
`):[],o={type:"table",raw:$e(t[0],`
|
|
105
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let i of r)this.rules.other.tableAlignRight.test(i)?o.align.push("right"):this.rules.other.tableAlignCenter.test(i)?o.align.push("center"):this.rules.other.tableAlignLeft.test(i)?o.align.push("left"):o.align.push(null);for(let i=0;i<n.length;i++)o.header.push({text:n[i],tokens:this.lexer.inline(n[i]),header:!0,align:o.align[i]});for(let i of s)o.rows.push(ds(i,o.header.length).map((a,u)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:o.align[u]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:$e(t[0],`
|
|
44
106
|
`),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
45
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o
|
|
46
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(q.tabCharGlobal," ").replace(q.spaceLine,""));let s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(
|
|
47
|
-
`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let
|
|
107
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=$e(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=rd(t[2],"()");if(o===-2)return;if(o>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),fs(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return fs(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,o,i,a=s,u=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+s);(r=l.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=[...o].length,r[3]||r[4]){a+=i;continue}else if((r[5]||r[6])&&s%3&&!((s+i)%3)){u+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+u);let h=[...r[0]][0].length,c=e.slice(0,s+r.index+h+i);if(Math.min(s,i)%2){let b=c.slice(1,-1);return{type:"em",raw:c,text:b,tokens:this.lexer.inlineTokens(b)}}let f=c.slice(2,-2);return{type:"strong",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,o,i,a=s,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(r=u.exec(t))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(i=[...o].length,i!==s))continue;if(r[3]||r[4]){a+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a);let l=[...r[0]][0].length,h=e.slice(0,s+r.index+l+i),c=h.slice(s,-s);return{type:"del",raw:h,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ae=class wn{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ne,this.options.tokenizer=this.options.tokenizer||new At,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:q,block:Pt.normal,inline:it.normal};this.options.pedantic?(n.block=Pt.pedantic,n.inline=it.pedantic):this.options.gfm&&(n.block=Pt.gfm,this.options.breaks?n.inline=it.breaks:n.inline=it.gfm),this.tokenizer.rules=n}static get rules(){return{block:Pt,inline:it}}static lex(t,n){return new wn(n).lex(t)}static lexInline(t,n){return new wn(n).inlineTokens(t)}lex(t){t=t.replace(q.carriageReturn,`
|
|
108
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(q.tabCharGlobal," ").replace(q.spaceLine,""));let s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=n.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
|
|
109
|
+
`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
48
110
|
`)?"":`
|
|
49
|
-
`)+o.raw,
|
|
50
|
-
`+o.text,this.inlineQueue.at(-1).src=
|
|
111
|
+
`)+o.raw,a.text+=`
|
|
112
|
+
`+o.text,this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
51
113
|
`)?"":`
|
|
52
|
-
`)+o.raw,
|
|
53
|
-
`+o.raw,this.inlineQueue.at(-1).src=
|
|
114
|
+
`)+o.raw,a.text+=`
|
|
115
|
+
`+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let i=t;if(this.options.extensions?.startBlock){let a=1/0,u=t.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},u),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let a=n.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
54
116
|
`)?"":`
|
|
55
|
-
`)+o.raw,
|
|
56
|
-
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
117
|
+
`)+o.raw,a.text+=`
|
|
118
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o),r=i.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
57
119
|
`)?"":`
|
|
58
|
-
`)+o.raw,
|
|
59
|
-
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
60
|
-
`;return r?'<pre><code class="language-'+
|
|
61
|
-
`:"<pre><code>"+(n?s:
|
|
120
|
+
`)+o.raw,a.text+=`
|
|
121
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let r=t,s=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)o=s[2]?s[2].length:0,r=r.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="",u=1/0;for(;t;){if(t.length<u)u=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(a=""),i=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let c=n.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(t,r,a)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(t,r,a)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),n.push(l);continue}let h=t;if(this.options.extensions?.startInline){let c=1/0,f=t.slice(1),b;this.options.extensions.startInline.forEach(_=>{b=_.call({lexer:this},f),typeof b=="number"&&b>=0&&(c=Math.min(c,b))}),c<1/0&&c>=0&&(h=t.substring(0,c+1))}if(l=this.tokenizer.inlineText(h)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(a=l.raw.slice(-1)),i=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):n.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},Zt=class{options;parser;constructor(e){this.options=e||Ne}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(q.notSpaceStart)?.[0],s=e.replace(q.endingNewline,"")+`
|
|
122
|
+
`;return r?'<pre><code class="language-'+me(r)+'">'+(n?s:me(s,!0))+`</code></pre>
|
|
123
|
+
`:"<pre><code>"+(n?s:me(s,!0))+`</code></pre>
|
|
62
124
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
63
125
|
${this.parser.parse(e)}</blockquote>
|
|
64
126
|
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
65
127
|
`}hr(e){return`<hr>
|
|
66
|
-
`}list(e){let t=e.ordered,n=e.start,r="";for(let
|
|
128
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let i=0;i<e.items.length;i++){let a=e.items[i];r+=this.listitem(a)}let s=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+s+o+`>
|
|
67
129
|
`+r+"</"+s+`>
|
|
68
130
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
69
131
|
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
70
|
-
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){let o=e.rows[s];n="";for(let
|
|
132
|
+
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){let o=e.rows[s];n="";for(let i=0;i<o.length;i++)n+=this.tablecell(o[i]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
71
133
|
<thead>
|
|
72
134
|
`+t+`</thead>
|
|
73
135
|
`+r+`</table>
|
|
74
136
|
`}tablerow({text:e}){return`<tr>
|
|
75
137
|
${e}</tr>
|
|
76
138
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
77
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${
|
|
78
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+
|
|
139
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${me(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=us(e);if(s===null)return r;e=s;let o='<a href="'+e+'"';return t&&(o+=' title="'+me(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=us(e);if(s===null)return me(n);e=s;let o=`<img src="${e}" alt="${me(n)}"`;return t&&(o+=` title="${me(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:me(e.text)}},gn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},le=class xn{options;renderer;textRenderer;constructor(t){this.options=t||Ne,this.options.renderer=this.options.renderer||new Zt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new gn}static parse(t,n){return new xn(n).parse(t)}static parseInline(t,n){return new xn(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let i=s,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){n+=a||"";continue}}let o=s;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let i='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=a||"";continue}}let i=o;switch(i.type){case"escape":{r+=n.text(i);break}case"html":{r+=n.html(i);break}case"link":{r+=n.link(i);break}case"image":{r+=n.image(i);break}case"checkbox":{r+=n.checkbox(i);break}case"strong":{r+=n.strong(i);break}case"em":{r+=n.em(i);break}case"codespan":{r+=n.codespan(i);break}case"br":{r+=n.br(i);break}case"del":{r+=n.del(i);break}case"text":{r+=n.text(i);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},at=class{options;block;constructor(e){this.options=e||Ne}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ae.lex:ae.lexInline}provideParser(e=this.block){return e?le.parse:le.parseInline}},id=class{defaults=an();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=le;Renderer=Zt;TextRenderer=gn;Lexer=ae;Tokenizer=At;Hooks=at;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let s=r;for(let o of s.header)n=n.concat(this.walkTokens(o.tokens,t));for(let o of s.rows)for(let i of o)n=n.concat(this.walkTokens(i.tokens,t));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{let i=s[o].flat(1/0);n=n.concat(this.walkTokens(i,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=t.renderers[s.name];o?t.renderers[s.name]=function(...i){let a=s.renderer.apply(this,i);return a===!1&&(a=o.apply(this,i)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Zt(this.defaults);for(let o in n.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let i=o,a=n.renderer[i],u=s[i];s[i]=(...l)=>{let h=a.apply(s,l);return h===!1&&(h=u.apply(s,l)),h||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new At(this.defaults);for(let o in n.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let i=o,a=n.tokenizer[i],u=s[i];s[i]=(...l)=>{let h=a.apply(s,l);return h===!1&&(h=u.apply(s,l)),h}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new at;for(let o in n.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let i=o,a=n.hooks[i],u=s[i];at.passThroughHooks.has(o)?s[i]=l=>{if(this.defaults.async&&at.passThroughHooksRespectAsync.has(o))return(async()=>{let c=await a.call(s,l);return u.call(s,c)})();let h=a.call(s,l);return u.call(s,h)}:s[i]=(...l)=>{if(this.defaults.async)return(async()=>{let c=await a.apply(s,l);return c===!1&&(c=await u.apply(s,l)),c})();let h=a.apply(s,l);return h===!1&&(h=u.apply(s,l)),h}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(i){let a=[];return a.push(o.call(this,i)),s&&(a=a.concat(s.call(this,i))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ae.lex(e,t??this.defaults)}parser(e,t){return le.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let i=s.hooks?await s.hooks.preprocess(t):t,a=await(s.hooks?await s.hooks.provideLexer(e):e?ae.lex:ae.lexInline)(i,s),u=s.hooks?await s.hooks.processAllTokens(a):a;s.walkTokens&&await Promise.all(this.walkTokens(u,s.walkTokens));let l=await(s.hooks?await s.hooks.provideParser(e):e?le.parse:le.parseInline)(u,s);return s.hooks?await s.hooks.postprocess(l):l})().catch(o);try{s.hooks&&(t=s.hooks.preprocess(t));let i=(s.hooks?s.hooks.provideLexer(e):e?ae.lex:ae.lexInline)(t,s);s.hooks&&(i=s.hooks.processAllTokens(i)),s.walkTokens&&this.walkTokens(i,s.walkTokens);let a=(s.hooks?s.hooks.provideParser(e):e?le.parse:le.parseInline)(i,s);return s.hooks&&(a=s.hooks.postprocess(a)),a}catch(i){return o(i)}}}onError(e,t){return n=>{if(n.message+=`
|
|
140
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+me(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ie=new id;function S(e,t){return Ie.parse(e,t)}S.options=S.setOptions=function(e){return Ie.setOptions(e),S.defaults=Ie.defaults,Xr(S.defaults),S},S.getDefaults=an,S.defaults=Ne,S.use=function(...e){return Ie.use(...e),S.defaults=Ie.defaults,Xr(S.defaults),S},S.walkTokens=function(e,t){return Ie.walkTokens(e,t)},S.parseInline=Ie.parseInline,S.Parser=le,S.parser=le.parse,S.Renderer=Zt,S.TextRenderer=gn,S.Lexer=ae,S.lexer=ae.lex,S.Tokenizer=At,S.Hooks=at,S.parse=S,S.options,S.setOptions,S.use,S.walkTokens,S.parseInline,le.parse,ae.lex;function ad(){const e={fill:"none",stroke:"currentColor",strokeWidth:1.5};return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":!0,...e,children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}function ld(){const e={fill:"none",stroke:"currentColor",strokeWidth:1.5};return d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":!0,...e,children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})})}const cd="[data-yama-guide-fullscreen]",ud=p.memo(function({isOpen:t,guideFallbackLang:n,lang:r}){const[s,o]=p.useState(""),[i,a]=p.useState(!1),u=p.useMemo(()=>({__html:s}),[s]);p.useEffect(()=>{t||a(!1)},[t]),p.useEffect(()=>{if(!t||!i)return;const h=c=>{c.key==="Escape"&&a(!1)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[t,i]),p.useEffect(()=>{if(!i||!t)return;const h=document.documentElement,c=h.style.overflow;return h.style.overflow="hidden",()=>{h.style.overflow=c}},[i,t]),p.useEffect(()=>{if(!t||s)return;let h=!1;return(async()=>{try{let c="";const f=[document.documentElement.lang,n].filter(b=>!!b);for(const b of f){const _=await fetch(`/guide/guide.${b}.md`);if(_.ok){let C=await _.text();if(C.startsWith("<!doctype html>")){console.info("No guide found for language",b);continue}c=C;break}}if(!c){o(S.parse(M("guide.empty",r)));return}h||o(S.parse(c))}catch{h||o(S.parse(M("guide.empty",r)))}})(),()=>{h=!0}},[t,s,n,r]);const l=d.jsx(Rt,{isOpen:t,title:M("guide.open",r),className:"main-panel","data-yama-guide-fullscreen":i?"":void 0,headerButtons:d.jsxs(on,{label:M(i?"guide.fullscreen.exit":"guide.fullscreen.enter",r),placement:i?"bottom-right":"top-right",children:[" ",d.jsx(Hr,{onClick:()=>a(h=>!h),"aria-pressed":i,"aria-label":M(i?"guide.fullscreen.exit":"guide.fullscreen.enter",r),children:i?d.jsx(ld,{}):d.jsx(ad,{})})]}),children:s&&d.jsx("div",{className:"main-panel__prose-container",children:d.jsx("div",{className:"main-panel__prose",dangerouslySetInnerHTML:u})})});if(t&&i){const h=document.getElementById("yama-toolbar");if(h)return kn.createPortal(l,h)}return l});function dd({isOpen:e,lang:t}){return e?d.jsx(Rt,{isOpen:e,title:"Live Editing",children:d.jsx("div",{children:"one"})}):null}const ps="Lorem ipsum dolor sit amet",hd="Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.";function fd(e){return`"${e}", var(--font-sans)`}function pd({area:e,family:t,lang:n}){const r=fd(t);return d.jsxs("div",{className:"font-family",children:[d.jsxs("div",{className:"font-family__header",children:[d.jsx("div",{className:"font-family__label",children:e}),d.jsx("div",{className:"font-family__name",children:t})]}),d.jsxs("div",{className:"font-family__inputs",children:[d.jsx("span",{className:"font-family__specimen",style:{fontFamily:r},"aria-hidden":!0,children:"Aa"}),d.jsx(yn,{autoLoad:!0,defaultValue:t,inputId:`yama-font-${e}`,noMatches:M("fonts.no_matches",n),fontVariants:s=>au(e,s)})]}),d.jsxs("div",{className:"font-family__sample",style:{fontFamily:r},children:[d.jsx("p",{className:"font-family__sample-title",children:ps}),d.jsx("p",{className:"font-family__sample-subtitle",children:ps}),d.jsx("p",{className:"font-family__sample-body",children:hd})]})]})}function md({isOpen:e,lang:t}){const n=Ur($t),r=rn(n);return d.jsx(Rt,{className:"fonts-panel",isOpen:e,title:M("fonts.title",t),children:d.jsx("div",{className:"fonts-panel__grid",children:r.map(([s,o])=>d.jsx(pd,{area:s,family:o,lang:t},s))})})}const O={NONE:"none",LIVE_EDITING:"live_editing",GUIDE:"guide",THEMES:"themes",FONTS:"fonts"};function gd({guideDisplayOnMount:e,guideFallbackLang:t}){const[n,r]=p.useState(()=>e?O.GUIDE:O.NONE),s=js(n),o=p.useRef(null),i=document.documentElement.lang;p.useEffect(()=>{if(n===O.NONE)return;const c=f=>{const b=o.current,_=f.target;!b||!(_ instanceof Node)||_ instanceof Element&&_.closest(cd)||b.contains(_)||r(O.NONE)};return document.addEventListener("pointerdown",c,!0),()=>document.removeEventListener("pointerdown",c,!0)},[n]);const a=()=>r(c=>c===O.GUIDE?O.NONE:O.GUIDE),u=()=>r(c=>c===O.THEMES?O.NONE:O.THEMES),l=()=>r(c=>c===O.LIVE_EDITING?O.NONE:O.LIVE_EDITING),h=()=>r(c=>c===O.FONTS?O.NONE:O.FONTS);return d.jsxs(d.Fragment,{children:[d.jsx(ro,{position:"top-center",richColors:!0}),d.jsx("div",{className:"toolbar","data-placement":"bottom-center","data-panel-open":n!==O.NONE?"":void 0,children:d.jsxs("div",{className:"toolbar__content",children:[d.jsxs("div",{className:"toolbar__inner",ref:o,children:[d.jsx(vu,{activePanel:n,onToggleGuidePanel:a,onToggleThemesPanel:u,onToggleLiveEditingPanel:l,onToggleFontsPanel:h,lang:i}),d.jsx(ud,{isOpen:s===O.GUIDE,guideFallbackLang:t,lang:i}),d.jsx(pu,{isOpen:s===O.THEMES,lang:i}),d.jsx(dd,{isOpen:s===O.LIVE_EDITING,lang:i}),d.jsx(md,{isOpen:s===O.FONTS,lang:i})]}),d.jsx("div",{className:"toolbar__spacer","aria-hidden":!0})]})})]})}const ms=()=>{try{const t=JSON.parse(document.body.dataset.yttConfig??"{}");if(!ou(t))return}catch(t){console.error("[yama-toolbar] invalid data-ytt-config",t);return}const e=document.createElement("div");e.id="yama-toolbar",document.body.appendChild(e),Xe.createRoot(e).render(d.jsx(gd,{guideDisplayOnMount:document.body.dataset.yttDisplayGuide==="true",guideFallbackLang:document.body.dataset.yttGuideFallbackLang}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ms):ms()}));
|