1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[199],{60855:function(e,t,r){"use strict";r.d(t,{M:function(){return x}});var n=r(2784),l=r(41657),s=r(75673),i=(0,r(41319).k)((e,{inline:t})=>({root:{display:t?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}})),o=r(69558),a=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&f(e,r,t[r]);if(c)for(var r of c(t))d.call(t,r)&&f(e,r,t[r]);return e},p=(e,t)=>{var r={};for(var n in e)u.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&c)for(var n of c(e))0>t.indexOf(n)&&d.call(e,n)&&(r[n]=e[n]);return r};let m=(0,n.forwardRef)((e,t)=>{let r=(0,l.N4)("Center",{},e),{inline:s,className:a,unstyled:c,variant:u}=r,d=p(r,["inline","className","unstyled","variant"]),{classes:f,cx:m}=i({inline:s},{name:"Center",unstyled:c,variant:u});return n.createElement(o.x,h({ref:t,className:m(f.root,a)},d))});m.displayName="@mantine/core/Center";let x=(0,s.F)(m)},4065:function(e,t,r){"use strict";r.d(t,{P:function(){return f}});var n=r(2784),l=Object.defineProperty,s=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&a(e,r,t[r]);if(s)for(var r of s(t))o.call(t,r)&&a(e,r,t[r]);return e},u=(e,t)=>
1{var r={};for(var n in e)i.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))0>t.indexOf(n)&&o.call(e,n)&&(r[n]=e[n]);return r};function d(e){return n.createElement("svg",c({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n.createElement("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function f(e){var{indeterminate:t}=e,r=u(e,["indeterminate"]);return t?n.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6"},r),n.createElement("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})):n.createElement(d,c({},r))}},31436:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n=r(2784),l=r(33712),s=r(41319),i=r(43071),o=Object.defineProperty,a=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&h(e,r,t[r]);if(u)for(var r of u(t))f.call(t,r)&&h(e,r,t[r]);return e},m=(e,t)=>a(e,c(t));let x={xs:(0,l.h)(16),sm:(0,l.h)(20),md:(0,l.h)(24),lg:(0,l.h)(30),xl:(0,l.h)(36)};var v=(0,s.k)((e,{labelPosition:t},{size:r})=>({root:{},body:{display:"flex","&:has(input:disabled) label":{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}},labelWrapper:m(p({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:r in x?(0,i.a)({size:r,sizes:e.fontSizes}):void 0,lineHeight:r in x?(0,i.a)({size:r,sizes:x}):void 0,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,cursor:e.cursorType,order:"left"===t?1:2}),description:{marginTop:`calc(${e.spacing.xs} / 2)`,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs} / 2)`,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm,"&:disabled, &[data-disabled]":{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}}})),g=r(69558),b=r(94282),w=Object.defineProperty,y=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,E=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N=(e,t)=>{for(var r in t||(t={}))j.call(t,r)&&E(e,r,t[r]);if(y)for(var r of y(t))O.call(t,r)&&E(e,r,t[r]);return e},k=(e,t)=>{var r={};for(var n in e)j.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&y)for(var n of y(e))0>t.indexOf(n)&&O.call(e,n)&&(r[n]=e[n]);return r};let z=(0,n.forwardRef)((e,t)=>{var{__staticSelector:r,className:l,classNames:s,styles:i,unstyled:o,children:a,label:c,description:u,id:d,disabled:f,error:h,size:p,labelPosition:m,variant:x}=e,w=k(e,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition","variant"]);let{classes:y,cx:j}=v({labelPosition:m},{name:r,styles:i,classNames:s,unstyled:o,variant:x,size:p});return n.createElement(g.x,N({className:j(y.root,l),ref:t},w),n.createElement("div",{className:j(y.body)},a,n.createElement("div",{className:y.labelWrapper},c&&n.createElement("label",{className:y.label,"data-disabled":f||void 0,htmlFor:d},c),u&&n.createElement(b.I.Description,{className:y.description},u),h&&"boolean"!==h&&n.createElement(b.I.Error,{className:y.error},h))))});z.displayName="@mantine/core/InlineInput"},36386:function(e){function t(e,t,r){function n(){var c=Date.now()-o;c<t&&c>=0?l=setTimeout(n,t-c):(l=null,r||(a=e.apply(i,s),i=s=null))}null==t&&(t=100);var l,s,i,o,a,c=function(){i=this,s=arguments,o=Date.now();var c=r&&!l;return l||(l=setTimeout(n,t)),c&&(a=e.apply(i,s),i=s=null),a};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(a=e.apply(i,s),i=s=null,clearTimeout(l),l=null)},c}t.debounce=t,e.exports=t},392:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/editor/[id]",function(){return r(13965)}])},13965:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return en}});var n=r(52322),l=r(2784),s=r(97729),i=r.n(s),o=r(39097),a=r.n(o),c=r(5632),u=r(3178),d=r
1(41696),f=r(58835),h=r(89685),p=r(41079),m=(0,p.Z)("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]),x=(0,p.Z)("mail-filled","IconMailFilled",[["path",{d:"M22 7.535v9.465a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-9.465l9.445 6.297l.116 .066a1 1 0 0 0 .878 0l.116 -.066l9.445 -6.297z",fill:"currentColor",key:"svg-0",strokeWidth:"0"}],["path",{d:"M19 4c1.08 0 2.027 .57 2.555 1.427l-9.555 6.37l-9.555 -6.37a2.999 2.999 0 0 1 2.354 -1.42l.201 -.007h14z",fill:"currentColor",key:"svg-1",strokeWidth:"0"}]]),v=r(1207),g=r(752),b=r(48512),w=r(27729),y=r(63476),j=r(10184),O=r(73760),E=r(49556),N=r(27548),k=r(88883),z=r(63955),S=r(16444),C=r(94482),I=r(82067),P=r(88492),R=r(85522),_=r(65333);function M(){let e=O.h.document.index.useQuery(),{documentId:t}=(0,_._i)();return(0,n.jsx)(P.z,{query:e,success:e=>{let{data:r}=e;return(0,n.jsx)("div",{children:r.map(e=>(0,n.jsx)(a(),{href:y.Z.documents.view(e.id),className:(0,R.cn)(["block px-3 py-3 font-normal no-underline hover:bg-gray-100",{"bg-gray-100 font-medium":t===e.id}]),children:(0,n.jsx)("span",{className:"line-clamp-1 text-sm",children:e.title})},e.id))})}})}var L=r(51261),T=r(87532),F=r(94875),Z=r(1848),D=r(87857),W=r(16055);let H={passive:!0};var B=r(78784),Y=(0,p.Z)("chevrons-right","IconChevronsRight",[["path",{d:"M7 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M13 7l5 5l-5 5",key:"svg-1"}]]),A=r(15041),K=r(731);let X={ease:"anticipate",duration:.6},q={type:"spring",duration:.8};function J(e){let{children:t,position:r,width:s=300,classNames:i,scrollHeight:o}=e,a=(0,D.a)("(min-width: 1280px)",void 0,{getInitialValueInEffect:!1}),[c,u]=(0,l.useState)(!1);(0,l.useEffect)(()=>{u(!0)},[]);let{width:d}=function(){let[e,t]=(0,l.useState)({width:0,height:0}),r=(0,l.useCallback)(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return(0,W.s)("resize",r,H),(0,W.s)("orientationchange",r,H),(0,l.useEffect)(r,[]),e}(),[f,h]=(0,B.q)(a),p="left"===r,m="right"===r;return c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A.E.div,{className:(0,R.cn)(["absolute inset-0 block h-screen w-screen bg-black/20 xl:!hidden",{"z-[15]":p,"z-20":m}]),onClick:()=>h.close(),initial:a?"open":"closed",animate:f?"open":"closed",variants:{open:{opacity:1,display:"block",pointerEvents:"auto"},closed:{opacity:0,pointerEvents:"none",transitionEnd:{display:"none"}}}}),(0,n.jsxs)(A.E.div,{className:(0,R.cn)(["absolute z-10 h-full flex-shrink-0 self-stretch justify-self-stretch overflow-visible xl:relative xl:h-auto",{"left-0":p,"z-20":f&&p,"z-[25]":f&&m,"right-0":m}]),initial:a?"open":"closed",animate:f?"open":"closed",transition:X,variants:{open:{x:"0px",width:"".concat(Math.min(s,d),"px"),zIndex:p?20:25,transition:{width:q}},closed:{x:p?"-200px":"200px",width:"0px",transitionEnd:{zIndex:10}}},children:[(0,n.jsx)(Q,{position:r,open:f,toggle:h.toggle}),(0,n.jsx)(A.E.div,{className:(0,R.cn)(["left-0 z-30 flex h-full flex-shrink-0 justify-self-stretch overflow-hidden bg-white transition-all xl:relative xl:h-full xl:w-full",{"shadow-inner-right":p,"shadow-inner-left":m}]),initial:a?"open":"closed",animate:f?"open":"closed",transition:{type:"tween",duration:.61},variants:{open:{opacity:1,display:"flex"},closed:{opacity:.99,display:"flex",transitionEnd:{display:"none"}}},children:(0,n.jsx)(F.x,{className:"w-full",classNames:{viewport:"h-full flex flex-col justify-stretch items-stretch"},styles:{root:{height:o}},type:"scroll",children:t})})]})]}):null}function Q(e){let{position:t,open:r,toggle:l}=e,s="left"===t,i="right"===t;return(0,n.jsx)("div",{className:(0,R.cn)(["absolute top-[18px] z-[35]",{"right-4":s,"left-4":i}]),children:(0,n.jsx)(Z.A,{onClick:()=>l(),component:A.E.button,animate:r?"open":"closed",className:(0,R.cn)(["bg-white",{"md:bg-transparent":!r,"bg-white":r}]),variants:{open:{x:"0px",transition:q},closed:{x:s?"250px":"-250px",transition:X}},children:(0,n.jsx)(Y,{className:(0,R.cn)(["duration-300",{"rotate-360":r&&i||!r&&s,"rotate-180":!r&&i||r&&s}])})})})}function U(e){let{children:t,className:r,position:l}=e;return(0,n.jsx)("div",{className:(0,R.cn)(["sticky top-0 z-10 flex h-16 w-full flex-col items-center justify-center border-b bg-white",{"shadow-inner-right":"left"===l,"shadow-inner-left":"r
1ight"===l},r]),children:t})}function $(e){let{children:t,className:r,position:l}=e,[s,i]=(0,K.Z)({debounce:100});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:s,className:(0,R.cn)(["absolute bottom-0 z-10 flex w-full flex-col items-center justify-center border-t bg-white",{"shadow-inner-right":"left"===l,"shadow-inner-left":"right"===l},r]),children:t}),(0,n.jsx)("div",{style:{height:i.height}})]})}function V(e){let{children:t,leftSidebar:r,rightSidebar:l}=e;return(0,n.jsx)("div",{className:"flex h-[calc(100dvh-53px-86px)] w-full flex-grow flex-col bg-white",children:(0,n.jsx)("div",{className:"h-full border border-t-0 border-transparent bg-white",children:(0,n.jsxs)("div",{className:"relative z-[1] flex h-full w-full items-stretch justify-between overflow-hidden xl:gap-4",children:[r?(0,n.jsx)(J,{position:"left",scrollHeight:"calc(100dvh - 53px)",children:r}):null,(0,n.jsx)("div",{className:"relative w-full",children:t}),l?(0,n.jsx)(J,{position:"right",width:450,scrollHeight:"calc(100dvh - 53px)",children:l}):null]})})})}var G=r(12362),ee=r(71536),et=r(97493),er=r(75988),en=(0,b.ve)(function(){var e;let t=(0,c.useRouter)(),r=t.query.id,{query:s}=(0,_.ky)(r,{refetchOnWindowFocus:!1,onSuccess(e){e&&(R({type:"system",payload:e.title}),p.current!==r&&b&&(p.current=r,b.commands.setContent(e.content)))}}),{set:o}=(0,N.sX)(),p=(0,l.useRef)("");O.h.conversation.index.useQuery({docId:r},{enabled:!!r,refetchOnWindowFocus:!1,onSuccess(e){o(e)}});let{editor:b,setDocumentId:w}=(0,T._i)(),[P,R]=(0,g.KO)(er.Ju),[F]=(0,g.KO)(er.p3),Z=(0,l.useRef)(async()=>{}),D=O.h.useContext(),{updateDocument:W,lastSaveRef:H,updateDocumentAsync:B}=(0,_.Li)({onSuccess(){D.document.index.invalidate()},onError(e){console.error("Couldn't update the document.",e)}});(0,ee.G)(()=>{H.current<F.current&&Z.current()},15e3,[r]),(0,l.useEffect)(()=>{let e=()=>{H.current<F.current&&Z.current()};return t.events.on("routeChangeStart",e),()=>{t.events.off("routeChangeStart",e)}},[t.asPath]),(0,l.useEffect)(()=>{r&&w(r)},[r,w]),Z.current=async e=>{if(b){let t={id:r,...P.trim().length>0?{title:P}:{},content:b.getJSON()};e?await B(t):W(t)}else console.error("Editor is not defined, can't save document.")},(0,l.useEffect)(()=>(window.onbeforeunload=()=>{if(H.current<F.current)return"You have unsaved changes. Are you sure you want to leave?"},()=>{window.onbeforeunload=null,H.current<F.current&&Z.current()}),[F,H]),(0,h.A)([["mod+K",()=>{if(b){let{selection:e}=b.state,{selection:t}=(0,G.NY)(e).getFullSentences();t.from===e.from&&t.to===e.to&&(t=(0,G.NY)(e).getFullParagraphs().selection),b.commands.focusOnSelection(t)}}],["mod+S",async()=>{if(b&&H.current<F.current){let e=j.h.loading({message:"Saving..."});await Z.current(!0),j.h.send({id:e,title:"Saved",message:"Your document was saved"})}else j.h.send({id:"up-to-date",title:"Saved!",message:"Your document is already up to date \uD83D\uDE04"})}]],[],!0);let{createDocument:Y,creatingDocument:A,newDocForm:K,opened:X,setOpened:q}=function(){let e=(0,c.useRouter)(),t=(0,C.z$)(),r=O.h.useContext(),{mutate:n,isLoading:s}=O.h.document.create.useMutation({onSuccess:(n,l)=>{let{id:s}=n,{writeForMe:o}=l;t.track(C.U3.DOCUMENT,{action:"create",type:o?"ai-assisted-draft":"blank"}),r.document.index.invalidate(),a(!1),i.reset(),e.push(y.Z.documents.view(s))},onError(e){(0,I.g_)(i,e)}}),i=(0,z.cI)({resolver:(0,k.F)(S.Xh.new),defaultValues:{content:{type:"doc"},writeForMe:!0}}),[o,a]=(0,l.useState)(!1);return{createDocument:n,creatingDocument:s,newDocForm:i,opened:o,setOpened:a}}(),J=(0,et.Zo)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:P||"Txt Muse"})}),(0,n.jsxs)("div",{className:"prose flex max-w-none flex-grow flex-col overflow-hidden",children:[(0,n.jsx)(V,{leftSidebar:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{position:"left",className:"items-start",children:(0,n.jsx)(u.z,{loading:A,color:"blue",classNames:{root:"flex-grow w-full text-sky-550",inner:"justify-start"},radius:"none",variant:"subtle",leftIcon:(0,n.jsx)(m,{size:18}),onClick:()=>{q(!0)},children:"New document"})}),(0,n.jsx)(M,{}),(0,n.jsxs)($,{position:"left",className:"flex flex-col items-stretch",children:[(0,n.jsxs)(d.k,{className:"hover:text-sky-550 mt-2 flex flex-shrink-0 items-center space-x-2 px-2 py-2 font-medium hover:bg-gray-100",onClick:()=>J.toggleOpen(),children:[(0,n.jsx)(x,{size:20}),(0,n.jsx)("span",{children:"Share feedback"})]}),(0,n.jsxs)(a(),{href:y.Z.external.discord,target:"_blank",rel:"noopener noreferrer",className:"mb-2 flex flex-shrink-0 items-center space-x-2 px-2 py-2 no-underline hover:bg-gray-100 hover:text-indigo-500",children:[(0,n.jsx)(v.Z,{size:20}),(0,n.jsx)("span",{children:"Join us on Discord"})]})]})]}),rightSidebar:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{position:"right",children:(0,n.jsx)("span",{className:"text-lg font-semibold leading-[1em]",children:"Messages"})}),(0,n.jsx)(E.Rz,{documentId:r})]}),children:(null===(e=s.data)||void 0===e?void 0:e.content)?(0,n.jsx)(_.ML,{documentId:r,document:s.data.content,metadata:s.data.metadata}):(0,n.jsx)("div",{className:"flex w-full flex-col items-start justify-center px-4 pt-8",children:(0,n.jsxs)("div",{className:"w-full flex-grow",children:[(0,n.jsx)(f.O,{h:60}),(0,n.jsxs)("div",{className:"mt-8 w-full space-y-4",children:[(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20})]}),(0,n.jsxs)("div",{className:"mt-8 w-full space-y-4",children:[(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20,w:"60%"})]}),(0,n.jsxs)("div",{className:"mt-8 space-y-4",children:[(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20}),(0,n.jsx)(f.O,{h:20})]})]})})}),(0,n.jsx)(L.Q,{form:K,onSubmit:e=>Y(e),loading:A,opened:X,setOpened:q}),(0,n.jsx)(et.rK,{...J})]})]})},{accessRules:w.ov.USER_ONLY})},70689:function(e,t,r){e.exports=r(86220)},731:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2784),l=r(36386),s=r.n(l);function i(e){var t;let{debounce:r,scroll:l,polyfill:i,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e,c=i||("undefined"==typeof window?class{}:window.ResizeObserver);if(!c)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");
1let[u,d]=(0,n.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,n.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:u}),h=r?"number"==typeof r?r:r.scroll:null,p=r?"number"==typeof r?r:r.resize:null,m=(0,n.useRef)(!1);(0,n.useEffect)(()=>(m.current=!0,()=>void(m.current=!1)));let[x,v,g]=(0,n.useMemo)(()=>{let e=()=>{if(!f.current.element)return;let{left:e,top:t,width:r,height:n,bottom:l,right:s,x:i,y:c}=f.current.element.getBoundingClientRect(),u={left:e,top:t,width:r,height:n,bottom:l,right:s,x:i,y:c};f.current.element instanceof HTMLElement&&o&&(u.height=f.current.element.offsetHeight,u.width=f.current.element.offsetWidth),Object.freeze(u),m.current&&!a(f.current.lastBounds,u)&&d(f.current.lastBounds=u)};return[e,p?s()(e,p):e,h?s()(e,h):e]},[d,o,h,p]);function b(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",g,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function w(){f.current.element&&(f.current.resizeObserver=new c(g),f.current.resizeObserver.observe(f.current.element),l&&f.current.scrollContainers&&f.current.scrollContainers.forEach(e=>e.addEventListener("scroll",g,{capture:!0,passive:!0})))}return t=!!l,(0,n.useEffect)(()=>{if(t)return window.addEventListener("scroll",g,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",g,!0)},[g,t]),(0,n.useEffect)(()=>(window.addEventListener("resize",v),()=>void window.removeEventListener("resize",v)),[v]),(0,n.useEffect)(()=>{b(),w()},[l,g,v]),(0,n.useEffect)(()=>b,[]),[e=>{e&&e!==f.current.element&&(b(),f.current.element=e,f.current.scrollContainers=function e(t){let r=[];if(!t||t===document.body)return r;let{overflow:n,overflowX:l,overflowY:s}=window.getComputedStyle(t);return[n,l,s].some(e=>"auto"===e||"scroll"===e)&&r.push(t),[...r,...e(t.parentElement)]}(e),w())},u,x]}let o=["x","y","top","bottom","left","right","width","height"],a=(e,t)=>o.every(r=>e[r]===t[r])}},function(e){e.O(0,[812,529,512,591,888,774,179],function(){return e(e.s=392)}),_N_E=e.O()}]);
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.