"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6297],{6260:(e,t,r)=>{r.d(t,{default:()=>u});var a,n=r(7821),o=r(7796),l=r(2726),i=r(8078),s=r(2565);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let m=function(e){return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),a||(a=i.createElement("path",{fill:"currentColor",d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M8 19h12c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1m0-6h12c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1M7 6c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1"})))};function u(e){let{items:t,className:r=""}=e,[a,o]=(0,i.useState)(!1);if(!t.length)return console.error("Useless TOC. `tree` is empty."),(0,n.jsx)(s.p,{});let{items:l=[],...c}=1===t.length?t[0]:{items:t};return(0,n.jsxs)("aside",{className:"\n        fixed z-20 flex max-h-[calc(100vh-var(--appbar-height))] transform-gpu flex-row bg-base-100 motion-reduce:transform-none\n        max-md:h-[calc(100vh-var(--appbar-height))] max-md:w-full max-md:bg-base-200 max-md:shadow-2xl max-md:transition-all\n        max-md:duration-500 max-md:ease-in-out md:sticky md:top-[var(--appbar-height)] md:w-64 md:shrink-0\n        md:self-start md:ltr:left-0 md:rtl:right-0 print:hidden ".concat(a?"max-md:[transform:translate3d(0,0,0)]":"ltr:max-md:[transform:translate3d(100%,0,0)] rtl:max-md:[transform:translate3d(-100%,0,0)]"),children:[(0,n.jsx)("button",{onClick:()=>o(!0),className:"absolute top-2 z-50 h-10 w-10 cursor-pointer bg-primary p-2 text-primary-content md:hidden ltr:-left-10 ltr:rounded-l-full rtl:-right-10 rtl:rounded-r-full",children:(0,n.jsx)(m,{focusable:"false","aria-hidden":"true",className:"rtl:-scale-x-100"})}),(0,n.jsx)("div",{className:"grow overflow-y-auto overflow-x-hidden py-4",children:(0,n.jsxs)("ul",{className:"flex flex-col gap-1 p-1 ".concat(r),children:[!Object.keys(c).length||(0,n.jsx)(d,{item:c,onClose:()=>o(!1)}),l.map(e=>(0,n.jsx)(d,{item:e,onClose:()=>o(!1)},e.key))]})})]})}function d(e){var t,r;let{item:a,onClose:s}=e,[c,m]=(0,i.useState)(!1),u=(0,l.Z)();return(0,n.jsxs)("li",{children:[(0,n.jsxs)("div",{className:"join w-full",children:[(0,n.jsx)(o.Z,{onClick:()=>{m(!0),s()},className:"join-item flex-grow cursor-pointer p-2 text-sm hover:bg-gray-100 dark:hover:bg-primary/5 ".concat(u===a.href?"bg-primary/10 font-medium text-primary":""),href:a.href,children:a.title}),(null===(t=a.items)||void 0===t?void 0:t.length)&&(0,n.jsx)("span",{onClick:()=>m(!c),className:"join-item relative grid cursor-pointer items-center p-2 pl-3 pr-4 text-sm hover:bg-gray-100 dark:hover:bg-primary/5 ".concat(c?"after:mt-[0rem] after:rotate-[225deg]":"after:mt-[-0.5rem] after:rotate-[45deg]"," ").concat(u===a.href?"bg-primary/10 font-medium text-primary":""," after:pointer-events-none after:block after:h-[0.5rem] after:w-[0.5rem] after:origin-[75%_75%] after:justify-self-end after:shadow-[2px_2px] after:transition-[margin-top,transform] after:duration-300 after:ease-out")})]}),(null===(r=a.items)||void 0===r?void 0:r.length)&&(0,n.jsx)("ul",{className:"flex transform-gpu flex-col gap-1 overflow-hidden transition-all duration-300 ease-in-out motion-reduce:transition-none ".concat(c?"mt-1 max-h-96":"max-h-0"," relative ms-2 ps-2 before:pointer-events-none before:absolute before:bottom-3 before:top-3 before:w-px before:origin-[75%_75%] before:bg-base-content/10 ltr:before:left-0 rtl:before:right-0"),children:a.items.map((e,t)=>(0,n.jsx)(d,{item:e,onClose:s},t))})]})}},2028:(e,t,r)=>{r.d(t,{C:()=>l,DocsTocTreeProvider:()=>i});var a=r(7821),n=r(8078);let o=(0,n.createContext)({}),l=()=>(0,n.useContext)(o);function i(e){let{items:t,children:r}=e;return(0,a.jsx)(o.Provider,{value:t,children:r})}},4442:(e,t,r)=>{r.d(t,{OU:()=>o,a2:()=>l,go:()=>s});class a extends Intl.Locale{constructor(e,t){super(e,t);let r=this.code=this.baseName;this.isRtl=a.RTL_LANGUAGES.some(e=>e===this.language),this.isRtl?(this.direction="rtl",this.dirAdjustmentChar="‏",this.start="right",this.end="left"):(this.direction="ltr",this.dirAdjustmentChar="‎",this.start="left",this.end="right"),this.number=new Intl.NumberFormat(r),this.date=new Intl.DateTimeFormat(r),this.time=new Intl.DateTimeFormat(r,{timeStyle:"medium"}),this.dateTime=new Intl.DateTimeFormat(r,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),this.collator=new Intl.Collator(r),this.list=new Intl.ListFormat(r),this.plural=new Intl.PluralRules(r),this.relativeTime=new Intl.RelativeTimeFormat(r)}}a.RTL_LANGUAGES=["fa","ar"];var n=r(6770);let o={fa:{localeCodes:["fa-IR","fa-AF"],name:"فارسی",label:"فا"},en:{localeCodes:["en-US"],name:"English",label:"EN"},ar:{localeCodes:["ar-001"],name:"العربية",label:"عر"}},l=Object.keys(o),i=(0,n.Hb)(o);class s extends a{}[...l,...i]},7796:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(7821),n=r(4233),o=r(3601);function l(e){let{href:t,locale:r,...l}=e,{localeParam:i}=(0,o.C)();return(0,a.jsx)(n.default,{...l,href:t.startsWith("/")?"/".concat(null!=r?r:i)+t:t})}},3601:(e,t,r)=>{r.d(t,{Z:()=>d,C:()=>u});var a=r(7821),n=r(4442),o=r(168),l=r(8078),i=r(6770),s=r(5492);let c=/\{\{([1-9]\d*)}}/,m=(0,l.createContext)({}),u=()=>(0,l.useContext)(m);function d(e){let{dictionary:t,fallbackLocaleParam:r,children:u}=e,d=(0,o.usePathname)(),f=(0,i.JS)(d),h=(0,l.useMemo)(()=>{var e,t;return new n.go(null!==(t=null===(e=n.OU[f])||void 0===e?void 0:e.localeCodes[0])&&void 0!==t?t:f)},[f]),{dictionary:p,t:x}=(0,l.useMemo)(()=>{var e;let r=(0,i.cU)(t,h);return{dictionary:r,t:(e=h.code,new Proxy(function(t){for(var a=arguments.length,n=Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];if(!(t instanceof Array))return r[t];let l=t.reduce((e,t,r)=>e+"{{".concat(r,"}}")+t),i="{{1}}"===l?l:r[l],s=[],m=0,u=[];for(let e of i.matchAll(RegExp(c,"g")))s.push(i.slice(m,e.index)),m=e.index+e[0].length,u.push(n[+e[1]-1]);return s.push(i.slice(m)),s.reduce((t,a,n)=>{let o=u[n-1],[l,i]=o instanceof Array?o:[o,{}];return t+("number"==typeof l?new Intl.NumberFormat(e,i).format(l):l instanceof Date?new Intl.DateTimeFormat(e,i).format(l):r[l])+a})},{get:(e,t)=>r[t]}))}},[h,t]);return(0,l.useLayoutEffect)(()=>{if(f===r){s.Q.localeParam&&delete s.Q.localeParam;return}s.Q.localeParam!==f&&(s.Q.localeParam=f)},[f,h.code,r]),(0,a.jsx)(m.Provider,{value:{locale:h,dictionary:p,t:x,localeParam:f},children:u})}},7471:(e,t,r)=>{r.d(t,{C8:()=>n.C,Ky:()=>n.Z,rU:()=>a.Z});var a=r(7796),n=r(3601)},2726:(e,t,r)=>{r.d(t,{Z:()=>o});var a=r(168),n=r(7471);function o(){let{localeParam:e}=(0,n.C8)();return(0,a.usePathname)().replace(new RegExp("^/".concat(e,"(?:/|$)")),"/")}},6770:(e,t,r)=>{function a(e,t){return new Proxy(e,{get(e,t){if("symbol"==typeof t||["toJSON","$$typeof","@@iterator"].includes(t))return Reflect.get(...arguments);let r=e[t];return null!=r&&r||t}})}r.d(t,{Hb:()=>n,JS:()=>o,cU:()=>a}),r(8078),r(4442);let n=e=>Object.values(e).flatMap(e=>{let{localeCodes:t}=e;return t}),o=e=>e.split("/",2)[1]},5492:(e,t,r)=>{r.d(t,{Q:()=>a});let a=new Proxy({},{get(e,t){var r,a;return null===(a=document.cookie.split(";").find(e=>e.trimStart().startsWith("".concat(t,"="))))||void 0===a?void 0:null===(r=a.split("=")[1])||void 0===r?void 0:r.trim()},set:(e,t,r)=>(document.cookie="".concat(t,"=").concat(r,";path=/"),!0),deleteProperty:(e,t)=>(document.cookie="".concat(t,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;"),!0)})},2565:(e,t,r)=>{r.d(t,{p:()=>n});var a=r(7821);function n(){return(0,a.jsx)(a.Fragment,{})}},4233:(e,t,r)=>{r.d(t,{default:()=>n.a});var a=r(7498),n=r.n(a)},168:(e,t,r)=>{var a=r(7462);r.o(a,"notFound")&&r.d(t,{notFound:function(){return a.notFound}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}})}}]);