PageSourceSearch

https://dimmib.com/_next/static/chunks/f1a8938109cd1bc5.js

js dimmib.com collected 2026-10-02 01:28:45 UTC 42,173 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,967927,e=>{"use strict";var t=e.i(74058);let i=(0,t.createServerReference)("7f66dcda4ddfc199fafbf9f39129415e8bee11d30b",t.callServer,void 0,t.findSourceMapURL,"getCurrentPlanAction");var r=e.i(945228),a=e.i(99004);let n={all:["payment"],currentPlan:e=>[...n.all,"currentPlan",e]};function o(e){return(0,a.useQuery)({queryKey:n.currentPlan(e||""),queryFn:async()=>{if(!e)throw Error("User ID is required");console.log(">>> Check current plan start for userId:",e);let t=await i({userId:e});if(!t?.data?.success)throw console.log("<<< Check current plan failed:",t?.data?.error),Error(t?.data?.error||"Failed to fetch current plan");return console.log("<<< Check current plan success"),t.data.data||{currentPlan:Object.values(r.websiteConfig.price.plans).find(e=>e.isFree)||null,subscription:null}},enabled:!!e,refetchOnWindowFocus:!0})}e.s(["useCurrentPlan",()=>o],967927)},133713,e=>{"use strict";var t=e.i(578938);e.s(["useCurrentUser",0,()=>{let{data:e,error:i}=t.authClient.useSession();return i?(console.error("useCurrentUser, error:",i),null):e?.user}])},441211,e=>{"use strict";var t=e.i(862667),i=e.i(780600),r=e.i(482430),a=e.i(226099),n=e.i(291967),o=e.i(254856),s=e.i(83812),l=e.i(297651),d=e.i(450021),c=e.i(62799),h=e.i(413274),u="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[f,p,g]=(0,r.createCollection)(u),[v,y]=(0,i.createContextScope)(u,[g,l.createCollapsibleScope]),b=(0,l.createCollapsibleScope)(),w=t.default.forwardRef((e,t)=>{let{type:i,...r}=e;return(0,h.jsx)(f.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,h.jsx)(S,{...r,ref:t}):(0,h.jsx)(L,{...r,ref:t})})});w.displayName=u;var[x,k]=v(u),[E,C]=v(u,{collapsible:!1}),L=t.default.forwardRef((e,i)=>{let{value:r,defaultValue:a,onValueChange:n=()=>{},collapsible:s=!1,...l}=e,[d,c]=(0,o.useControllableState)({prop:r,defaultProp:a??"",onChange:n,caller:u});return(0,h.jsx)(x,{scope:e.__scopeAccordion,value:t.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:t.default.useCallback(()=>s&&c(""),[s,c]),children:(0,h.jsx)(E,{scope:e.__scopeAccordion,collapsible:s,children:(0,h.jsx)(T,{...l,ref:i})})})}),S=t.default.forwardRef((e,i)=>{let{value:r,defaultValue:a,onValueChange:n=()=>{},...s}=e,[l,d]=(0,o.useControllableState)({prop:r,defaultProp:a??[],onChange:n,caller:u}),c=t.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),m=t.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,h.jsx)(x,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:m,children:(0,h.jsx)(E,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(T,{...s,ref:i})})})}),[M,I]=v(u),T=t.default.forwardRef((e,i)=>{let{__scopeAccordion:r,disabled:o,dir:l,orientation:d="vertical",...u}=e,g=t.default.useRef(null),v=(0,a.useComposedRefs)(g,i),y=p(r),b="ltr"===(0,c.useDirection)(l),w=(0,n.composeEventHandlers)(e.onKeyDown,e=>{if(!m.includes(e.key))return;let t=e.target,i=y().filter(e=>!e.ref.current?.disabled),r=i.findIndex(e=>e.ref.current===t),a=i.length;if(-1===r)return;e.preventDefault();let n=r,o=a-1,s=()=>{(n=r+1)>o&&(n=0)},l=()=>{(n=r-1)<0&&(n=o)};switch(e.key){case"Home":n=0;break;case"End":n=o;break;case"ArrowRight":"horizontal"===d&&(b?s():l());break;case"ArrowDown":"vertical"===d&&s();break;case"ArrowLeft":"horizontal"===d&&(b?l():s());break;case"ArrowUp":"vertical"===d&&l()}let c=n%a;i[c].ref.current?.focus()});return(0,h.jsx)(M,{scope:r,disabled:o,direction:l,orientation:d,children:(0,h.jsx)(f.Slot,{scope:r,children:(0,h.jsx)(s.Primitive.div,{...u,"data-orientation":d,ref:v,onKeyDown:o?void 0:w})})})}),j="AccordionItem",[z,N]=v(j),A=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,value:r,...a}=e,n=I(j,i),o=k(j,i),s=b(i),c=(0,d.useId)(),u=r&&o.value.includes(r)||!1,m=n.disabled||e.disabled;return(0,h.jsx)(z,{scope:i,open:u,disabled:m,triggerId:c,children:(0,h.jsx)(l.Root,{"data-orientation":n.orientation,"data-state":F(u),...s,...a,ref:t,disabled:m,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});A.displayName=j;var D="AccordionHeader",R=t.default.forwardRef((e,t)=>
1{let{__scopeAccordion:i,...r}=e,a=I(u,i),n=N(D,i);return(0,h.jsx)(s.Primitive.h3,{"data-orientation":a.orientation,"data-state":F(n.open),"data-disabled":n.disabled?"":void 0,...r,ref:t})});R.displayName=D;var O="AccordionTrigger",P=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...r}=e,a=I(u,i),n=N(O,i),o=C(O,i),s=b(i);return(0,h.jsx)(f.ItemSlot,{scope:i,children:(0,h.jsx)(l.Trigger,{"aria-disabled":n.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:n.triggerId,...s,...r,ref:t})})});P.displayName=O;var H="AccordionContent",U=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...r}=e,a=I(u,i),n=N(H,i),o=b(i);return(0,h.jsx)(l.Content,{role:"region","aria-labelledby":n.triggerId,"data-orientation":a.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function F(e){return e?"open":"closed"}U.displayName=H,e.s(["Accordion",()=>w,"AccordionContent",()=>U,"AccordionHeader",()=>R,"AccordionItem",()=>A,"AccordionTrigger",()=>P,"Content",()=>U,"Header",()=>R,"Item",()=>A,"Root",()=>w,"Trigger",()=>P,"createAccordionScope",()=>y])},641612,e=>{"use strict";var t=e.i(413274),i=e.i(294237),r=e.i(135378),a=e.i(862667);e.i(453226);var n=e.i(983137),o=e.i(957364);let s=(0,i.cva)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");function l({className:e,...i}){return(0,t.jsx)("div",{className:(0,n.cn)("not-prose rounded-md border bg-fd-card p-2",e),...i,children:i.children})}function d({name:e,icon:i=(0,t.jsx)(r.File,{}),className:a,...o}){return(0,t.jsxs)("div",{className:(0,n.cn)(s({className:a})),...o,children:[i,e]})}function c({name:e,defaultOpen:i=!1,...l}){let[d,c]=(0,a.useState)(i);return(0,t.jsxs)(o.Collapsible,{open:d,onOpenChange:c,...l,children:[(0,t.jsxs)(o.CollapsibleTrigger,{className:(0,n.cn)(s({className:"w-full"})),children:[d?(0,t.jsx)(r.FolderOpen,{}):(0,t.jsx)(r.Folder,{}),e]}),(0,t.jsx)(o.CollapsibleContent,{children:(0,t.jsx)("div",{className:"ms-2 flex flex-col border-l ps-2",children:l.children})})]})}e.s(["File",()=>d,"Files",()=>l,"Folder",()=>c])},329308,295658,e=>{"use strict";var t=e.i(202484),i=e.i(862667),r=e.i(413274),a=(0,i.forwardRef)(({href:e="#",external:i=e.match(/^\w+:/)||e.startsWith("//"),prefetch:a,children:n,...o},s)=>i?(0,r.jsx)("a",{ref:s,href:e,rel:"noreferrer noopener",target:"_blank",...o,children:n}):(0,r.jsx)(t.Link,{ref:s,href:e,prefetch:a,...o,children:n}));a.displayName="Link",e.s(["Link",()=>a],295658),e.i(953322),e.s([],329308)},631925,e=>{"use strict";var t=e.i(295658);e.s(["default",()=>t.Link])},441818,e=>{"use strict";e.i(329308);var t=e.i(295658);e.s(["default",()=>t.Link])},957364,e=>{"use strict";var t=e.i(413274),i=e.i(297651),r=e.i(862667);e.i(453226);var a=e.i(983137);let n=i.Root,o=i.CollapsibleTrigger,s=(0,r.forwardRef)(({children:e,...n},o)=>{let[s,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>
1{l(!0)},[]),(0,t.jsx)(i.CollapsibleContent,{ref:o,...n,className:(0,a.cn)("overflow-hidden",s&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",n.className),children:e})});s.displayName=i.CollapsibleContent.displayName,e.s(["Collapsible",()=>n,"CollapsibleContent",()=>s,"CollapsibleTrigger",()=>o])},953322,e=>{"use strict";var t=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,n=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,s,l)=>(l=null!=e?t(n(e)):{},((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(s=r(t,l))||s.enumerable});return e})(!s&&e&&e.__esModule?l:i(l,"default",{value:e,enumerable:!0}),e));e.s(["__commonJS",()=>s,"__toESM",()=>l])},202484,e=>{"use strict";var t=e.i(862667),i=e.i(413274),r=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},a=(0,t.createContext)({useParams:r,useRouter:r,usePathname:r});function n({Link:e,useRouter:r,useParams:n,usePathname:o,Image:s,children:l}){let d=(0,t.useMemo)(()=>({usePathname:o,useRouter:r,Link:e,Image:s,useParams:n}),[e,o,r,n,s]);return(0,i.jsx)(a,{value:d,children:l})}function o(){return(0,t.use)(a).usePathname()}function s(){return(0,t.use)(a).useRouter()}function l(){return(0,t.use)(a).useParams()}function d(e){let{Image:r}=(0,t.use)(a);if(!r){let{src:t,alt:r,priority:a,...n}=e;return(0,i.jsx)("img",{alt:r,src:t,fetchPriority:a?"high":"auto",...n})}return(0,i.jsx)(r,{...e})}function c(e){let{Link:r}=(0,t.use)(a);if(!r){let{href:t,prefetch:r,...a}=e;return(0,i.jsx)("a",{href:t,...a})}return(0,i.jsx)(r,{...e})}e.s(["FrameworkProvider",()=>n,"Image",()=>d,"Link",()=>c,"useParams",()=>l,"usePathname",()=>o,"useRouter",()=>s])},746141,e=>{"use strict";e.i(202484),e.i(953322),e.s([])},453226,983137,e=>{"use strict";e.s([],453226);var t=e.i(923191);e.s(["cn",()=>t.twMerge],983137)},135378,e=>{"use strict";var t=e.i(413274),i=e.i(862667);e.i(453226);var r=e.i(983137);let a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=(e,n)=>{let o=(0,i.forwardRef)(({className:e,size:o=24,color:s="currentColor",children:l,...d},c)=>(0,t.jsxs)("svg",{ref:c,...a,width:o,height:o,stroke:s,className:(0,r.cn)("lucide",e),...d,children:[n.map(([e,t])=>(0,i.createElement)(e,t)),l]}));return o.displayName=e,o},o=n("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);n("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);let s=n("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),l=n("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),d=n("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),c=n("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),h=n("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),u=n("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),m=n("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);n("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);let f=n("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);n("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),n("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),n("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);let p=n("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);n("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),n("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),n("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);let g=n("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"2"}]]);n("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);let v=n("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),y=n("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]]),b=n("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),w=n("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),x=n("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);n("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);let k=n("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),E=n("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),C=n("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),L=n("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);n("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),n("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),n("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),e.s(["Airplay",0,m,"Check",0,p,"ChevronDown",0,o,"ChevronLeft",0,L,"ChevronRight",0,C,"ChevronsUpDown",0,l,"Clipboard",0,g,"Edit",0,E,"ExternalLink",0,c,"File",0,b,"Folder",0,w,"FolderOpen",0,x,"Hash",0,v,"Link",0,k,"Moon",0,h,"Search",0,d,"Sidebar",0,s,"Sun",0,u,"Text",0,y,"X",0,f])},223464,e=>{"use strict";var t=e.i(294237);let i={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},r=(0,t.cva)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:i,color:i,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});e.s(["buttonVariants",0,r])},610445,e=>{"use strict";function t(...e){return t=>
1{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}e.s(["mergeRefs",()=>t])},224423,e=>{"use strict";var t=e.i(862667),i=e.i(291967),r=e.i(780600),a=e.i(166738),n=e.i(238716),o=e.i(83812),s=e.i(62799),l=e.i(254856),d=e.i(450021),c=e.i(413274),h="Tabs",[u,m]=(0,r.createContextScope)(h,[a.createRovingFocusGroupScope]),f=(0,a.createRovingFocusGroupScope)(),[p,g]=u(h),v=t.forwardRef((e,t)=>{let{__scopeTabs:i,value:r,onValueChange:a,defaultValue:n,orientation:u="horizontal",dir:m,activationMode:f="automatic",...g}=e,v=(0,s.useDirection)(m),[y,b]=(0,l.useControllableState)({prop:r,onChange:a,defaultProp:n??"",caller:h});return(0,c.jsx)(p,{scope:i,baseId:(0,d.useId)(),value:y,onValueChange:b,orientation:u,dir:v,activationMode:f,children:(0,c.jsx)(o.Primitive.div,{dir:v,"data-orientation":u,...g,ref:t})})});v.displayName=h;var y="TabsList",b=t.forwardRef((e,t)=>{let{__scopeTabs:i,loop:r=!0,...n}=e,s=g(y,i),l=f(i);return(0,c.jsx)(a.Root,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:(0,c.jsx)(o.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:t})})});b.displayName=y;var w="TabsTrigger",x=t.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:s=!1,...l}=e,d=g(w,r),h=f(r),u=C(d.baseId,n),m=L(d.baseId,n),p=n===d.value;return(0,c.jsx)(a.Item,{asChild:!0,...h,focusable:!s,active:p,children:(0,c.jsx)(o.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...l,ref:t,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(n)}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(n)}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==d.activationMode;p||s||!e||d.onValueChange(n)})})})});x.displayName=w;var k="TabsContent",E=t.forwardRef((e,i)=>{let{__scopeTabs:r,value:a,forceMount:s,children:l,...d}=e,h=g(k,r),u=C(h.baseId,a),m=L(h.baseId,a),f=a===h.value,p=t.useRef(f);return t.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(n.Presence,{present:s||f,children:({present:t})=>(0,c.jsx)(o.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":u,hidden:!t,id:m,tabIndex:0,...d,ref:i,style:{...e.style,animationDuration:p.current?"0s":void 0},children:t&&l})})});function C(e,t){return`${e}-trigger-${t}`}function L(e,t){return`${e}-content-${t}`}E.displayName=k,e.s(["Content",()=>E,"List",()=>b,"Root",()=>v,"Tabs",()=>v,"TabsContent",()=>E,"TabsList",()=>b,"TabsTrigger",()=>x,"Trigger",()=>x,"createTabsScope",()=>m])},594571,e=>{"use strict";var t=e.i(862667);function i(e){let[i,r]=(0,t.useState)(!1),a=(0,t.useRef)(e),n=(0,t.useRef)(null);a.current=e;let o=(0,t.useCallback)(()=>{n.current&&window.clearTimeout(n.current),Promise.resolve(a.current()).then(()=>{r(!0),n.current=window.setTimeout(()=>{r(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{n.current&&window.clearTimeout(n.current)},[]),[i,o]}e.s(["useCopyButton",()=>i])},500223,e=>{"use strict";var t=e.i(413274),i=e.i(862667),r=e.i(224423),a=e.i(610445);let n=new Map,o=(0,i.createContext)(null),s=r.TabsList,l=r.TabsTrigger;function d({ref:e,groupId:s,persist:l=!1,updateAnchor:d=!1,defaultValue:c,value:h,onValueChange:u,...m}){let f=(0,i.useRef)(null),p=(0,i.useMemo)(()=>new Map,[]),[g,v]=void 0===h?(0,i.useState)(c):[h,(0,i.useEffectEvent)(e=>u?.(e))];return(0,i.useLayoutEffect)(()=>{if(!s)return;let e=sessionStorage.getItem(s);l&&(e??(e=localStorage.getItem(s))),e&&v(e);let t=n.get(s)??new Set;return t.add(v),n.set(s,t),()=>{t.delete(v)}},[s,l,v]),(0,i.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,i]of p.entries())if(i===e){v(t),f.current?.scrollIntoView();break}}},[v,p]),(0,t.jsx)(r.Tabs,{ref:(0,a.mergeRefs)(e,f),value:g,onValueChange:e=>{if(d){let t=p.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(s){let t=n.get(s);if(t)for(let i of t)i(e);sessionStorage.setItem(s,e),l&&localStorage.setItem(s,e)}else v(e)},...m,children:(0,t.jsx)(o,{value:(0,i.useMemo)(()=>({valueToIdMap:p}),[p]),children:m.children})})}function c({value:e,...a}){let{valueToIdMap:n}=function(){let e=(0,i.use)(o);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return a.id&&n.set(e,a.id),(0,t.jsx)(r.TabsContent,{value:e,...a,children:a.children})}e.s(["Tabs",()=>d,"TabsContent",()=>c,"TabsList",0,s,"TabsTrigger",0,l])},573138,e=>{"use strict";var t=e.i(413274),i=e.i(135378),r=e.i(862667);e.i(453226);var a=e.i(983137),n=e.i(594571),o=e.i(223464),s=e.i(500223),l=e.i(610445);let d=(0,r.createContext)(null);function c(e){return(0,t.jsx)("pre",{...e,className:(0,a.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}
1function h({ref:e,title:i,allowCopy:n=!0,keepBackground:o=!1,icon:s,viewportProps:l={},children:c,Actions:h=e=>(0,t.jsx)("div",{...e,className:(0,a.cn)("empty:hidden",e.className)}),...m}){let f=null!==(0,r.use)(d),p=(0,r.useRef)(null);return(0,t.jsxs)("figure",{ref:e,dir:"ltr",...m,tabIndex:-1,className:(0,a.cn)(f?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",o&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",m.className),children:[i?(0,t.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof s?(0,t.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:s}}):s,(0,t.jsx)("figcaption",{className:"flex-1 truncate",children:i}),h({className:"-me-2",children:n&&(0,t.jsx)(u,{containerRef:p})})]}):h({className:"absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,t.jsx)(u,{containerRef:p})}),(0,t.jsx)("div",{ref:p,...l,role:"region",tabIndex:0,className:(0,a.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",l.className),style:{"--padding-right":i?void 0:"calc(var(--spacing) * 8)",counterSet:m["data-line-numbers"]?`line ${Number(m["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:c})]})}function u({className:e,containerRef:r,...s}){let[l,d]=(0,n.useCopyButton)(()=>{let e=r.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,t.jsx)("button",{type:"button","data-checked":l||void 0,className:(0,a.cn)((0,o.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":l?"Copied Text":"Copy Text",onClick:d,...s,children:l?(0,t.jsx)(i.Check,{}):(0,t.jsx)(i.Clipboard,{})})}function m({ref:e,...i}){let n=(0,r.useRef)(null),o=null!==(0,r.use)(d);return(0,t.jsx)(s.Tabs,{ref:(0,l.mergeRefs)(n,e),...i,className:(0,a.cn)("bg-fd-card rounded-xl border",!o&&"my-4",i.className),children:(0,t.jsx)(d,{value:(0,r.useMemo)(()=>({containerRef:n,nested:o}),[o]),children:i.children})})}function f(e){return(0,t.jsx)(s.TabsList,{...e,className:(0,a.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})}function p({children:e,...i}){return(0,t.jsxs)(s.TabsTrigger,{...i,className:(0,a.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",i.className),children:[(0,t.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})}function g(e){return(0,t.jsx)(s.TabsContent,{...e})}e.s(["CodeBlock",()=>h,"CodeBlockTab",()=>g,"CodeBlockTabs",()=>m,"CodeBlockTabsList",()=>f,"CodeBlockTabsTrigger",()=>p,"Pre",()=>c])},227663,e=>{"use strict";var t=e.i(413274);e.i(746141);var i=e.i(202484),r=e.i(862667),a=e.i(794030);let n=(e,t)=>e===t?.tagName?.toUpperCase?.(),o=e=>n("DIV",e)||n("SPAN",e),s=e=>e.complete&&0!==e.naturalHeight,l=({height:e,offset:t,width:i})=>Math.min((window.innerWidth-2*t)/i,(window.innerHeight-2*t)/e),d=({containerHeight:e,containerWidth:t,hasScalableSrc:i,offset:r,targetHeight:a,targetWidth:n})=>e&&t?!i&&a&&n?(({containerHeight:e,containerWidth:t,offset:i,targetHeight:r,targetWidth:a})=>{let n=l({height:r,offset:i,width:a}),o=a>r?a/t:r/e;return n>1?o:n*o})({containerHeight:e,containerWidth:t,offset:r,targetHeight:a,targetWidth:n}):l({height:e,offset:r,width:t}):1,c=/url(?:\(['"]?)(.*?)(?:['"]?\))/,h=e=>{if(e){if(n("IMG",e))return e.currentSrc;else if(o(e)){let t=window.getComputedStyle(e).backgroundImage;if(t)return c.exec(t)?.[1]}}},u=({position:e,relativeNum:t})=>{let i=parseFloat(e);return e.endsWith("%")?t*i/100:i},m=/\.svg$/i,f=e=>{if(!e)return{};if(!n("SVG",e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let t=e.parentElement,i=e.getBoundingClientRect();if(!t)return{height:i.height,left:i.left,width:i.width,top:i.top};{let e=t.getBoundingClientRect();return{height:i.height,left:e.left-i.left,top:e.top-i.top,width:i.width}}}},p=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),g={overflow:"",width:""};function v(e){return r.default.createElement(y,{...e})}class y extends r.default.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=r.default.createRef(),this.refDialog=r.default.createRef(),this.refModalContent=r.default.createRef(),this.refModalImg=r.default.createRef(),this.refWrap=r.default.createRef(),this.img
1El=null,this.isScaling=!1,this.prevBodyAttrs=g,this.styleModalImg={},this.handleModalStateChange=e=>{let{modalState:t}=this.state;"LOADING"!==e&&"LOADING"===t?(this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close?.())},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&((e=document.createElement("div")).setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let e=this.refContent.current;e&&(this.imgEl=e.querySelector(p),this.imgEl?(this.contentNotFoundChangeObserver?.disconnect?.(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let t=e[0];t?.target&&(this.imgEl=t.target,this.setState({styleGhost:f(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:f(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=h(this.imgEl);if(!e)return;let t=new Image;n("IMG",this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset,t.crossOrigin=this.imgEl.crossOrigin),t.src=e;let i=()=>{this.setState({loadedImgEl:t,styleGhost:f(this.imgEl)})};t.decode().then(i).catch(()=>{s(t)?i():t.onload=i})},this.handleZoom=e=>{!this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{this.props.isDisabled||this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{("Escape"===e.key||27===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1;this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&e.changedTouches[0]&&(this.touchYEnd=e.changedTouches[0].screenY,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e)))},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>
1this.imgEl&&(this.state.loadedImgEl||n("SVG",this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal?.(),this.refModalImg.current?.addEventListener?.("transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current){let e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){let i=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,i)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=g},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this,t=e?.src;if(t){let i=new Image;i.sizes=e?.sizes??"",i.srcset=e?.srcSet??"",i.crossOrigin=e?.crossOrigin??void 0,i.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};i.decode().then(r).catch(()=>{s(i)?r():i.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:i}=this;if(n("SVG",e)){let r=e.cloneNode(!0);(e=>{let t="-zoom",i=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let i=e.id,a=i+t;r.set(i,a),e.id=a}e.querySelectorAll("[id]").forEach(e=>{let i=e.id,a=i+t;r.set(i,a),e.id=a}),r.forEach((t,r)=>{let a=`url(#${r})`,n=`url(#${t})`,o=i.map(e=>`[${e}="${a}"]`).join(", ");e.querySelectorAll(o).forEach(e=>{i.forEach(t=>{e.getAttribute(t)===a&&e.setAttribute(t,n)})})}),e.querySelectorAll("style").forEach(e=>{r.forEach((t,i)=>{e.textContent&&(e.textContent=e.textContent.replaceAll(`#${i}`,`#${t}`))})})})(r),r.style.width=`${i.width||0}px`,r.style.height=`${i.height||0}px`,r.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove?.(),t.current?.appendChild?.(r)}}}render(){let{handleBtnUnzoomClick:e,handleDialogCancel:t,handleDialogClick:i,handleDialogClose:s,handleUnzoom:l,handleZoom:c,imgEl:f,props:{a11yNameButtonUnzoom:p,a11yNameButtonZoom:g,children:v,classDialog:y,IconUnzoom:b,IconZoom:w,isZoomed:x,wrapElement:k,ZoomContent:E,zoomImg:C,zoomMargin:L},refContent:S,refDialog:M,refModalContent:I,refModalImg:T,refWrap:j,state:{id:z,isZoomImgLoaded:N,loadedImgEl:A,modalState:D,shouldRefresh:R,styleGhost:O}}=this,P=`rmiz-modal-${z}`,H=`rmiz-modal-img-${z}`,U=o(f),F=n("IMG",f),q=n("SVG",f),W=(e=>{if(e)if(n("IMG",e))return e.alt??void 0;else return e.getAttribute("aria-label")??void 0})(f),$=h(f),_=F?f.sizes:void 0,Z=F?f.srcset:void 0,V=F?f.crossOrigin:void 0,B=!!C?.src,G=this.hasImage(),Y=W?`${g}: ${W}`:g,K="LOADING"===D||"LOADED"===D,J=G?"found":"not-found",Q="UNLOADED"===D||"UNLOADING"===D?"hidden":"visible";this.styleModalImg=G?(({hasZoomImg:e,imgSrc:t,isSvg:i,isZoomed:r,loadedImgEl:a,offset:n,shouldRefresh:s,targetEl:l})=>{let c=i||t?.slice?.(0,18)==="data:image/svg+xml"||e||!!(t&&m.test(t)),h=l.getBoundingClientRect(),f=window.getComputedStyle(l),p=null!=a&&o(l),g=null!=a&&!p,v=Object.assign({},(({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:r,hasScalableSrc:a,offset:n,targetHeight:o,targetWidth:s})=>{let l=d({containerHeight:e,containerWidth:r,hasScalableSrc:a,offset:n,targetHeight:o,targetWidth:s});return{top:i,left:t,width:r*l,height:e*l,transform:`translate(0,0) scale(${1/l})`}})({containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:c,offset:n,targetHeight:a?.naturalHeight||h.height,targetWidth:a?.naturalWidth||h.width}),g?(({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:r,hasScalableSrc:a,objectFit:n,objectPosition:o,offset:s,targetHeight:l,targetWidth:c})=>{if("scale-down"===n&&(n=c<=r&&l<=e?"none":"contain"),"cover"===n||"contain"===n){let h=r/c,m=e/l,f="cover"===n?Math.max(h,m):Math.min(h,m),[p="50%",g="50%"]=o.split(" "),v=u({position:p,relativeNum:r-c*f}),y=u({position:g,relativeNum:e-l*f}),b=d({containerHeight:l*f,containerWidth:c*f,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:c});return{top:i+y,left:t+v,width:c*f*b,height:l*f*b,transform:`translate(0,0) scale(${1/b})`}}if("none"===n){let[n="50%",h="50%"]=o.split(" "),m=u({position:n,relativeNum:r-c}),f=u({position:h,relativeNum:e-l}),p=d({containerHeight:l,containerWidth:c,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:c});return{top:i+f,left:t+m,width:c*p,height:l*p,transform:`translate(0,0) scale(${1/p})`}}if("fill"!==n)return{};{let t=Math.max(r/c,e/l),i=d({containerHeight:l*t,containerWidth:c*t,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:c});return{width:r*i,height:e*i,transform:`translate(0,0) scale(${1/i})`}}})({containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:c,objectFit:f.objectFit,objectPosition:f.objectPosition,offset:n,targetHeight:a?.naturalHeight||h.height,targetWidth:a?.naturalWi
1dth||h.width}):void 0,p?(({backgroundPosition:e,backgroundSize:t,containerHeight:i,containerLeft:r,containerTop:a,containerWidth:n,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c})=>{if("cover"===t||"contain"===t){let h=n/c,m=i/l,f="cover"===t?Math.max(h,m):Math.min(h,m),[p="50%",g="50%"]=e.split(" "),v=u({position:p,relativeNum:n-c*f}),y=u({position:g,relativeNum:i-l*f}),b=d({containerHeight:l*f,containerWidth:c*f,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{top:a+y,left:r+v,width:c*f*b,height:l*f*b,transform:`translate(0,0) scale(${1/b})`}}if("auto"===t){let[t="50%",h="50%"]=e.split(" "),m=u({position:t,relativeNum:n-c}),f=u({position:h,relativeNum:i-l}),p=d({containerHeight:l,containerWidth:c,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{top:a+f,left:r+m,width:c*p,height:l*p,transform:`translate(0,0) scale(${1/p})`}}{let[h="50%",m="50%"]=t.split(" "),f=Math.min(u({position:h,relativeNum:n})/c,u({position:m,relativeNum:i})/l),[p="50%",g="50%"]=e.split(" "),v=u({position:p,relativeNum:n-c*f}),y=u({position:g,relativeNum:i-l*f}),b=d({containerHeight:l*f,containerWidth:c*f,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:c});return{top:a+y,left:r+v,width:c*f*b,height:l*f*b,transform:`translate(0,0) scale(${1/b})`}}})({backgroundPosition:f.backgroundPosition,backgroundSize:f.backgroundSize,containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:c,offset:n,targetHeight:a?.naturalHeight||h.height,targetWidth:a?.naturalWidth||h.width}):void 0);if(r){let e=window.innerWidth/2,t=window.innerHeight/2,i=parseFloat(String(v.left||0))+parseFloat(String(v.width||0))/2,r=parseFloat(String(v.top||0))+parseFloat(String(v.height||0))/2;s&&(v.transitionDuration="0.01ms"),v.transform=`translate(${e-i}px,${t-r}px) scale(1)`}return v})({hasZoomImg:B,imgSrc:$,isSvg:q,isZoomed:x&&K,loadedImgEl:A,offset:L,shouldRefresh:R,targetEl:f}):{};let X=null;if(G){let t=F||U?r.default.createElement("img",{alt:W,crossOrigin:V,sizes:_,src:$,srcSet:Z,...N&&"LOADED"===D?C:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:H,ref:T,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):q?r.default.createElement("div",{"data-rmiz-modal-img":!0,ref:T,style:this.styleModalImg}):null,i=r.default.createElement("button",{"aria-label":p,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},r.default.createElement(b,null));X=E?r.default.createElement(E,{buttonUnzoom:i,modalState:D,img:t,isZoomImgLoaded:N,onUnzoom:l}):r.default.createElement(r.default.Fragment,null,t,i)}return r.default.createElement(k,{"aria-owns":P,"data-rmiz":"",ref:j},r.default.createElement(k,{"data-rmiz-content":J,ref:S,style:{visibility:"UNLOADED"===D?"visible":"hidden"}},v),G&&r.default.createElement(k,{"data-rmiz-ghost":"",style:O},r.default.createElement("button",{"aria-label":Y,"data-rmiz-btn-zoom":"",onClick:c,type:"button"},r.default.createElement(w,null))),G&&a.default.createPortal(r.default.createElement("dialog",{"aria-labelledby":H,"aria-modal":"true",className:y,"data-rmiz-modal":"",id:P,onClick:i,onClose:s,onCancel:t,ref:M,role:"dialog"},r.default.createElement("div",{"data-rmiz-modal-overlay":Q}),r.default.createElement("div",{"data-rmiz-modal-content":"",ref:I},X)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect?.(),this.contentNotFoundChangeObserver?.disconnect?.(),this.imgElResizeObserver?.disconnect?.(),this.imgEl?.removeEventListener?.("load",this.handleImgLoad),this.imgEl?.removeEventListener?.("click",this.handleZoom),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function b({onZoomChange:e,...t}){let[i,a]=r.default.useState(!1),n=r.default.useCallback((t,{event:i})=>{a(t),e?.(t,{event:i})},[e]);return r.default.createElement(v,{...t,isZoomed:i,onZoomChange:n})}function w({zoomInProps:e,children:r,rmiz:a,...n}){var o;return(0,t.jsx)(b,{zoomMargin:20,wrapElement:"span",...a,zoomImg:{src:"string"==typeof(o=n.src)?o:"object"==typeof o?"default"in o?o.default.src:o.src:"",sizes:void 0,...e},children:r??(0,t.jsx)(i.Image,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...n})})}y.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return r.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return r.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0},e.s(["ImageZoom",()=>w],227663)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.