PageSourceSearch

https://smry.ai/_next/static/chunks/27s3rcu-q3w7f.js?dpl=5cb6504fd3cb

js smry.ai collected 2026-09-24 10:05:43 UTC 23,817 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d2c8-6b7d-0000-f70a-d8c4c3e4bcf2";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="554ac416-1e34-5997-91ce-1bda8b003d46")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,809700,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var n=e.i(271645),r=e.i(17989),i=e.i(46420),o=e.i(733332);let a=n.createContext(void 0);function s(e){let t=n.useContext(a);if(void 0===t&&!e)throw Error((0,o.default)(47));return t}var l=e.i(174080),u=e.i(301252),p=e.i(439957),c=e.i(956789),d=e.i(56434),f=e.i(18478),g=e.i(264111),h=e.i(116786),S=e.i(990627),m=e.i(638396);let v={...h.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class b extends u.ReactStore{constructor(e,t,n){const r=new S.PopupTriggerMap;super(y(e,r,t,n),C(r),v)}setOpen=(e,t)=>{let n,r=t.reason===d.REASONS.triggerHover,i=t.reason===d.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===d.REASONS.escapeKey||null==t.reason),a=(0,g.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==d.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let u=()=>{let n={open:e,openChangeReason:t.reason};(0,g.setPopupOpenState)(n,e,t.trigger,a()),this.update(n)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(m.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),l.flushSync(u)):u(),i?n="click":o?n="dismiss":t.reason===d.REASONS.focusOut&&(n="focus"),this.set("instantType",n)}}function y(e,t,n,r=!1){let i={...(0,h.createInitialPopupStoreState)(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i.floatingRootContext=(0,h.createPopupFloatingRootContext)(t,n,r),i}function C(e){return{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:n.createRef(),beforeContentFocusGuardRef:n.createRef(),stickIfOpenTimeout:new p.Timeout,triggerElements:e}}var R=e.i(675606);function O({props:e}){var r;let i,{children:o,open:s,defaultOpen:l=!1,onOpenChange:u,onOpenChangeComplete:p,modal:c=!1,handle:f,triggerId:h,defaultTriggerId:S=null}=e,m=(r={modal:c,open:l,openProp:s,activeTriggerId:S,triggerIdProp:h},i=(0,g.usePopupRootStore)((e,t)=>new b(r,e,t)),n.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);m.useControlledProp("openProp",s),m.useControlledProp("triggerIdProp",h);let v=m.useState("open"),y=m.useState("mounted"),C=m.useState("payload");m.useContextCallback("onOpenChange",u),m.useContextCallback("onOpenChangeComplete",p),(0,g.usePopupRootSync)(m,v),(0,g.useImplicitActiveTrigger)(m);let{forceUnmount:E}=(0,g.useOpenStateTransitions)(v,m,()=>{m.update({stickIfOpen:!0,openChangeReason:null})});m.useSyncedValues({modal:c}),n.useEffect(()=>{v||m.context.stickIfOpenTimeout.clear()},[m,v]),n.useImperativeHandle(e.actionsRef,()=>({unmount:E,close:()=>m.setOpen(!1,(0,R.createChangeEventDetails)(d.REASONS.imperativeAction))}),[E,m]);let P=v||y;return(0,t.jsxs)(a.Provider,{value:m,children:[f&&(0,t.jsx)(g.PopupHandleAttachment,{handle:f,store:m}),P&&(0,t.jsx)(x,{store:m,modal:c}),"function"==typeof o?o({payload:C}):o]})}function x({store:e,modal:t}){let n=e.useState("floatingRootContext"),i=(0,r.useDismiss)(n,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=i.reference,a=i.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:a}),null}
1var E=e.i(540886),P=e.i(405005),T=e.i(552245),w=e.i(650316),I=e.i(385689),A=e.i(872135),z=e.i(788015),M=e.i(152535),j=e.i(459636),F=e.i(346570),H=e.i(32199);let N=n.forwardRef(function(e,r){let{render:i,className:a,style:l,disabled:u=!1,nativeButton:p=!0,handle:c,payload:f,openOnHover:h=!1,delay:S=300,closeDelay:v=0,id:b,...y}=e,C=s(!0),R=(0,j.usePopupHandleStore)(c)??C;if(!R)throw Error((0,o.default)(74));let O=(0,z.useBaseUiId)(b),x=R.useState("isTriggerActive",O),N=R.useState("floatingRootContext"),k=R.useState("isOpenedByTrigger",O),U=R.useState("triggerPopupId",O),B=n.useRef(null),{registerTrigger:D,isMountedByThisTrigger:$}=(0,g.useTriggerDataForwarding)(O,B,R,{payload:f,disabled:u,openOnHover:h,closeDelay:v}),L=R.useState("openChangeReason"),_=R.useState("stickIfOpen"),G=R.useState("openMethod"),V=R.useState("focusManagerModal"),W=(0,A.useHoverReferenceInteraction)(N,{enabled:!u&&h&&("touch"!==G||L!==d.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,w.safePolygon)(),restMs:S,delay:{close:v},triggerElementRef:B,isActiveTrigger:x,isClosing:()=>"ending"===R.select("transitionStatus")}),K=(0,I.useClick)(N,{stickIfOpen:_}),Q=(0,H.useOpenMethodTriggerProps)(()=>R.select("open"),e=>{R.set("openMethod",e)}),J=R.useState("triggerProps",$),{getButtonProps:q,buttonRef:X}=(0,E.useButton)({disabled:u,native:p}),{preFocusGuardRef:Y,handlePreFocusGuardFocus:Z,handleFocusTargetFocus:ee}=(0,F.useTriggerFocusGuards)(R,B),et=(0,T.useRenderElement)("button",e,{state:{disabled:u,open:k},ref:[X,r,D,B],props:[K.reference,W,J,Q,{[m.CLICK_TRIGGER_IDENTIFIER]:"",id:O,"aria-haspopup":"dialog","aria-expanded":k,"aria-controls":U},y,q],stateAttributesMapping:{open:e=>e&&L===d.REASONS.triggerPress?P.pressableTriggerOpenStateMapping.open(e):P.triggerOpenStateMapping.open(e)}}),en=(0,t.jsx)(n.Fragment,{children:et},O);return $&&!V?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(M.FocusGuard,{ref:Y,onFocus:Z}),en,(0,t.jsx)(M.FocusGuard,{ref:R.context.triggerFocusTargetRef,onFocus:ee})]}):en});var k=e.i(726674);let U=n.createContext(void 0),B=n.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e;return s().useState("mounted")||r?(0,t.jsx)(U.Provider,{value:r,children:(0,t.jsx)(k.FloatingPortal,{ref:n,...i})}):null});var D=e.i(144394),$=e.i(146376);let L=n.createContext(void 0);function _(){let e=n.useContext(L);if(!e)throw Error((0,o.default)(46));return e}var G=e.i(923706),V=e.i(426),W=e.i(222640),K=e.i(789579),Q=e.i(33383);let J=n.forwardRef(function(e,r){let{render:a,className:l,style:u,anchor:p,positionMethod:c,side:f,align:g,sideOffset:h,alignOffset:S,collisionBoundary:v="clipping-ancestors",collisionPadding:b,arrowPadding:y,sticky:C,disableAnchorTracking:R=!1,collisionAvoidance:O=m.POPUP_COLLISION_AVOIDANCE,...x}=e,E=s(),P=function(){let e=n.useContext(U);if(void 0===e)throw Error((0,o.default)(45));return e}(),T=(0,i.useFloatingNodeId)(),w=E.useState("floatingRootContext"),I=E.useState("mounted"),A=E.useState("open"),z=E.useState("openChangeReason"),M=E.useState("activeTriggerElement"),j=E.useState("modal"),F=E.useState("openMethod"),H=E.useState("positionerElement"),N=E.useState("instantType"),k=E.useState("transitionStatus"),B=E.useState("adaptiveOrigin"),_=n.useRef(null),J=(0,W.useAnimationsFinished)(H),q=(0,G.useAnchorPositioning)({anchor:p,floatingRootContext:w,positionMethod:c,mounted:I,side:f,sideOffset:h,align:g,alignOffset:S,arrowPadding:y,collisionBoundary:v,collisionPadding:b,sticky:C,disableAnchorTracking:R,keepMounted:P,nodeId:T,collisionAvoidance:O,adaptiveOrigin:B}),X=w.useState("domReferenceElement");(0,$.useIsoLayoutEffect)(()=>{let e=_.current;if(X&&(_.current=X),e&&X&&X!==e){E.set("instantType",void 0);let e=new AbortController;return J(()=>{E.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[X,J,E]);let Y=!0===j&&z!==d.REASONS.triggerHover;(0,Q.useAnchoredPopupScrollLock)(A&&Y,"touch"===F,H,M);let Z=E.useStateSetter("positionerElement"),ee={open:A,side:q.side,align:q.align,anchorHidden:q.anchorHidden,instant:N},et=(0,K.usePositioner)(e,ee,{styles:q.positionerStyles,transitionStatus:k,props:x,refs:[r,Z],hidden:!I,inert:!A});return(0,t.jsxs)(L.Provider,{value:q,children:[I&&Y&&(0,t.jsx)(V.InternalBackdrop,{inert:(0,D.inertValue)(!A),cutout:M}),(0,t.jsx)(i.FloatingNode,{id:T,children:et})]})});var q=e.i(229315),X=e.i(61487),Y=e.i(431157),Z=e.i(137584),ee=e.i(673327),et=e.i(96533),en=e.i(253984),er=e.i(667865);let ei=n.createContext(void 0),eo=n.forwardRef(function(e,r){let{render:i,className:o,style:a,initialFocus:l,finalFocus:u,...p}=e,c=s(),f=_(),h=null!=(0,et.useToolbarRootContext)(!0),{context:S,hasClosePart:m}=function(){let[e,t]=n.useState(0),r=(0,er.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:n.useMemo(()=>({register:r}),[r]),hasClosePart:e>0}
1}(),v=c.useState("open"),b=c.useState("openMethod"),y=c.useState("instantType"),C=c.useState("transitionStatus"),R=c.useState("popupProps"),O=c.useState("titleElementId"),x=c.useState("descriptionElementId"),E=c.useState("modal"),w=c.useState("mounted"),I=c.useState("openChangeReason"),A=c.useState("activeTriggerElement"),z=c.useState("floatingRootContext"),M=z.useState("floatingId"),j=c.useState("disabled"),F=c.useState("openOnHover"),H=c.useState("closeDelay");(0,Z.useOpenChangeComplete)({open:v,ref:c.context.popupRef,onComplete(){v&&c.context.onOpenChangeComplete?.(!0)}}),(0,Y.useHoverFloatingInteraction)(z,{enabled:F&&!j,closeDelay:H});let N=void 0===l?(0,g.createDefaultInitialFocus)(c.context.popupRef):l,k=!1!==E&&m;c.useSyncedValue("focusManagerModal",k);let U=c.useStateSetter("popupElement"),B={open:v,side:f.side,align:f.align,instant:y,transitionStatus:C},D=(0,T.useRenderElement)("div",e,{state:B,ref:[r,c.context.popupRef,U],props:[R,{id:M,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":O,"aria-describedby":x,onKeyDown(e){h&&ee.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(C),p],stateAttributesMapping:P.popupTransitionStateMapping});return(0,t.jsx)(X.FloatingFocusManager,{context:z,openInteractionType:b,modal:k,disabled:!w||I===d.REASONS.triggerHover,initialFocus:N,returnFocus:u,restoreFocus:"popup",previousFocusableElement:(0,q.isHTMLElement)(A)?A:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,t.jsx)(ei.Provider,{value:S,children:D})})}),ea=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=s().useState("open"),{arrowRef:l,side:u,align:p,arrowUncentered:c,arrowStyles:d}=_();return(0,T.useRenderElement)("div",e,{state:{open:a,side:u,align:p,uncentered:c},ref:[t,l],props:[{style:d,"aria-hidden":!0},o],stateAttributesMapping:P.popupStateMapping})}),es=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=s(),l=a.useState("open"),u=a.useState("mounted"),p=a.useState("transitionStatus"),c=a.use
1State("openChangeReason");return(0,T.useRenderElement)("div",e,{state:{open:l,transitionStatus:p},ref:t,props:[{role:"presentation",hidden:!u,style:{pointerEvents:c===d.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:P.popupTransitionStateMapping})}),el=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=s(),l=(0,z.useBaseUiId)(o.id);return a.useSyncedValueWithCleanup("titleElementId",l),(0,T.useRenderElement)("h2",e,{ref:t,props:[{id:l},o]})}),eu=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=s(),l=(0,z.useBaseUiId)(o.id);return a.useSyncedValueWithCleanup("descriptionElementId",l),(0,T.useRenderElement)("p",e,{ref:t,props:[{id:l},o]})}),ep=n.forwardRef(function(e,t){let r,{render:i,className:o,style:a,disabled:l=!1,nativeButton:u=!0,...p}=e,{buttonRef:c,getButtonProps:f}=(0,E.useButton)({disabled:l,focusableWhenDisabled:!1,native:u}),g=s();return r=n.useContext(ei),(0,$.useIsoLayoutEffect)(()=>r?.register(),[r]),(0,T.useRenderElement)("button",e,{ref:[t,c],props:[{onClick(e){g.setOpen(!1,(0,R.createChangeEventDetails)(d.REASONS.closePress,e.nativeEvent))}},p,f]})});var ec=e.i(818390);let ed=n.forwardRef(function(e,t){let{render:n,className:r,style:i,children:o,...a}=e,l=s(),{side:u}=_(),p=l.useState("instantType"),{children:c,state:d}=(0,ec.usePopupViewport)({store:l,side:u,children:o}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:p};return(0,T.useRenderElement)("div",e,{state:f,ref:t,props:[a,{children:c}],stateAttributesMapping:ec.popupViewportStateMapping})});var ef=e.i(564170);class eg extends ef.BasePopupHandle{constructor(){super(function(){let e=new S.PopupTriggerMap;return Object.assign(new f.NullStore(Object.freeze(y(void 0,e)),Object.freeze(C(e)),v),{setOpen:c.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,ea,"Backdrop",0,es,"Close",0,ep,"Description",0,eu,"Handle",0,eg,"Popup",0,eo,"Portal",0,B,"Positioner",0,J,"Root",0,function(e){return s(!0)?(0,t.jsx)(O,{props:e}):(0,t.jsx)(i.FloatingTree,{children:(0,t.jsx)(O,{props:e})})},"Title",0,el,"Trigger",0,N,"Viewport",0,ed,"createHandle",0,function(){return new eg}],466914);var eh=e.i(466914);e.s(["Popover",0,eh],809700);var eh=eh,eS=e.i(95244),em=e.i(647163);let ev=eh.Root;e.s(["Popover",0,ev,"PopoverClose",0,function({...e}){return(0,t.jsx)(eh.Close,{"data-slot":"popover-close",...e})},"PopoverDescription",0,function({className:e,...n}){return(0,t.jsx)(eh.Description,{className:(0,em.cn)("break-words text-pretty text-sm text-muted-foreground",e),"data-slot":"popover-description",...n})},"PopoverPopup",0,function({children:e,className:n,contentClassName:r,side:i="bottom",align:o="center",sideOffset:a=4,alignOffset:s=0,anchor:l,tooltipStyle:u=!1,positionerClassName:p,...c}){return(0,t.jsx)(eh.Portal,{children:(0,t.jsx)(eh.Positioner,{align:o,alignOffset:s,anchor:l,className:(0,em.cn)(eS.dropdownPositionerClassName,p),"data-slot":"popover-positioner",side:i,sideOffset:a,children:(0,t.jsx)(eh.Popup,{className:(0,em.cn)(eS.dropdownSurfaceClassName,eS.dropdownMotionClassName,"max-h-(--available-height) overflow-y-auto text-sm outline-none",u?"w-fit rounded-md px-2 py-1 text-balance text-xs":"p-0",n,r),"data-slot":"popover-content",...c,children:e})})})},"PopoverTitle",0,function({className:e,...n}){return(0,t.jsx)(eh.Title,{className:(0,em.cn)("text-balance text-sm font-medium",e),"data-slot":"popover-title",...n})},"PopoverTrigger",0,function(e){return(0,t.jsx)(eh.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},184762,e=>{"use strict";var t=e.i(843476),n=e.i(647163);e.s(["Textarea",0,function({className:e,rows:r,...i}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:r,className:(0,n.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",void 0!==r&&"field-sizing-fixed",e),...i})}])},652749,e=>{"use strict";var t=e.i(760516);let n=!1;function r(e){let t=e.startsWith("/")?e:`/${e}`,r="https://api.smry.ai".replace(/\/+$/,"")??null;if("/api"===t||t.startsWith("/api/"))return t;if(r)return r.endsWith("/api")&&t.startsWith("/api/")?`${r}${t.slice(4)}`:`${r}${t}`;return n||(console.warn("NEXT_PUBLIC_API_URL is not set; falling back to relative /api routes."),n=!0),t}function i(e){return`${window.location.origin}/s/${e}`}async function o(e){let n=await e.json().catch(()=>null);if(!e.ok)throw Error(n&&"string"==typeof n.error?n.error:"Unable to load your public profile.");let r=t.publicReaderProfileOwnerStateSchema.safeParse(n);if(!r.success)throw Error("Unable to load your public profile.");return r.data}async function a(e,t){return o(await fetch(r("/api/public-profiles/me"),{headers:{Authorization:`Bearer ${e}`},signal:t}))}async function s(e,t){return o(await fetch(r("/api/public-profiles/me"),{method:"PUT",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"},body:JSON.stringify({handle:e})}))}async function l(e){let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t&&"string"==typeof t.error?t.error:"Unable to update your public profile.");if(!t||"boolean"!=typeof t.published||"boolean"!=typeof t.canManage)throw Error("Unable to update your public profile.");return{published:t.published,canManage:t.canManage,profileHandle:"string"==typeof t.profileHandle?t.profileHandle:null}}async function u(e,t,n){return l(await fetch(r(`/api/share/${e}/profile`),{headers:{Authorization:`Bearer ${t}`},signal:n}))}async function p(e,t,n,i){return l(await fetch(r(`/api/share/${e}/profile`),{method:"PATCH",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:JSON.stringify({published:t}),signal:i}))}async function c(e,t){try{let n=await fetch(r(`/api/snippets/${e}/share-state`),{headers:t?{Authorization:`Bearer ${t}`}:void 0});if(404===n.status)return{status:"missing"};if(!n.ok)return null;let i=await n.json();return{status:"found",visibility:"public"===i.visibility?"public":"unlisted",canManage:!0===i.canManage,profileHandle:"string"==typeof i.profileHandle?i.profileHandle:null}}catch{return null}}async function d(e,t,n){let o=await fetch(r(`/api/snippets/${e}`),{method:"PATCH",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:JSON.stringify({visibility:t})});if(!o.ok)throw Error("Failed to update snippet visibility");let a=await o.json();return{id:a.id,url:i(a.id),visibility:"public"===a.visibility?"public":"unlisted",canManage:!0,profileHandle:"string"==typeof a.profileHandle?a.profileHandle:null}}async function f(e){let{token:t,...n}=e,o=await fetch(r("/api/snippets"),{method:"POST",headers:{"Content-Type":"application/json",...t?{Authorization:`Bearer ${t}`}:{}},body:JSON.stringify(n)});if(!o.ok)throw Error("Failed to create snippet");let a=await o.json();return{id:a.id,url:i(a.id),visibility:a.visibility??"unlisted",canManage:!0===a.canManage,profileHandle:"string"==typeof a.profileHandle?a.profileHandle:null}}async function g(e,t){try{return(await fetch(r(`/api/snippets/${e}`),{method:"DELETE",headers:t?{Authorization:`Bearer ${t}`}:void 0})).ok}catch{return!1}}e.s(["createSnippet",0,f,"deleteSnippet",0,g,"getApiUrl",0,r,"getArticleProfileShareState",0,u,"getPublicProfileOwnerState",0,a,"getSnippetShareState",0,c,"getSnippetShareUrl",0,i,"savePublicProfile",0,s,"updateArticleProfileVisibility",0,p,"updateSnippetVisibility",0,d])},760516,e=>{"use strict";var t=e.i(50270);let n=t.z.object({handle:t.z.string().min(1).max(64),name:t.z.string().min(1),imageUrl:t.z.string().url().nullable()}),r=/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$/,i=new Set(["admin","help","smry","supp
1ort","team"]),o=t.z.object({profile:n.nullable(),suggestedHandle:t.z.string().min(1).max(30),publicDocumentCount:t.z.number().int().nonnegative().default(0),publicNoteCount:t.z.number().int().nonnegative()}),a=t.z.object({id:t.z.string().min(1),articleUrl:t.z.string().nullable(),articleTitle:t.z.string().nullable(),snippet:t.z.string(),note:t.z.string().nullable(),contextBefore:t.z.string().nullable().optional(),contextAfter:t.z.string().nullable().optional(),visibility:t.z.enum(["unlisted","public"]),authorName:t.z.string().nullable(),authorHandle:t.z.string().nullable(),authorImageUrl:t.z.string().url().nullable(),viewCount:t.z.number().int().nonnegative(),createdAt:t.z.string().datetime(),publishedAt:t.z.string().datetime().nullable()}),s=t.z.object({id:t.z.string().min(1),url:t.z.string().url(),title:t.z.string().min(1),siteName:t.z.string().nullable(),createdAt:t.z.string().datetime(),profilePublishedAt:t.z.string().datetime()});function l(e){return e.trim().replace(/^@+/,"").toLowerCase()}t.z.object({profile:n,documents:t.z.array(s).default([]),notes:t.z.array(a)}),e.s(["getPublicSourceUrl",0,function(e){if(!e||/^[a-z][a-z\d+.-]*:/i.test(e)&&!/^https?:\/\//i.test(e))return null;try{let t=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`);return"http:"===t.protocol||"https:"===t.protocol?t.toString():null}catch{return null}},"getReaderHandleError",0,function(e){let t=l(e);return t.length<3?"Use at least 3 characters.":t.length>30?"Use 30 characters or fewer.":r.test(t)?i.has(t)?"Choose a different handle.":null:"Use letters, numbers, hyphens, or underscores. Start and end with a letter or number."},"normalizeReaderHandle",0,l,"publicReaderProfileOwnerStateSchema",0,o])},346570,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(647554),i=e.i(383976),o=e.i(675606),a=e.i(56434);e.s(["useTriggerFocusGuards",0,function(e,s){let l=t.useRef(null);return{preFocusGuardRef:l,handlePreFocusGuardFocus:function(t){n.flushSync(()=>{e.setOpen(!1,(0,o.createChangeEventDetails)(a.REASONS.focusOut,t.nativeEvent,t.currentTarget))});let r=(0,i.getTabbableBeforeElement)(l.current);r?.focus()},handleFocusTargetFocus:function(t){let l=e.select("positionerElement");if(l&&(0,i.isOutsideEvent)(t,l))e.context.beforeContentFocusGuardRef.current?.focus();else{n.flushSync(()=>{e.setOpen(!1,(0,o.createChangeEventDetails)(a.REASONS.focusOut,t.nativeEvent,t.currentTarget))});let u=(0,i.getTabbableAfterElement)(e.context.triggerFocusTargetRef.current||s.current);for(;null!==u&&(0,r.contains)(l,u);){let e=u;if((u=(0,i.getNextTabbable)(u))===e)break}u?.focus()}}}}])},266027,469637,e=>{"use strict";let t;var n=e.i(912598),r=e.i(271645);let i=r.createContext(!1);i.Provider,e.i(843476);let o=r.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}));var a=e.i(619273),s=e.i(540143);function l(e,t,l){let u,p=r.useContext(i),c=r.useContext(o),d=(0,n.useQueryClient)(l),f=d.defaultQueryOptions(e),g=d.getQueryCache().get(f.queryHash),h=!1!==e.subscribed;if(f._optimisticResults=p?"isRestoring":h?"optimistic":void 0,f.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=f.staleTime;f.staleTime="function"==typeof t?(...n)=>e(t(...n)):e(t),"number"==typeof f.gcTime&&(f.gcTime=Math.max(f.gcTime,1e3))}u=g?.state.error&&"function"==typeof f.throwOnError?(0,a.shouldThrowError)(f.throwOnError,[g.state.error,g]):f.throwOnError,(f.suspense||u)&&!c.isReset()&&(f.retryOnMount=!1),r.useEffect(()=>{c.clearReset()},[c]);let[S]=r.useState(()=>new t(d,f)),m=S.getOptimisticResult(f),v=!p&&h;if(r.useSyncExternalStore(r.useCallback(e=>{let t=v?S.subscribe(s.notifyManager.batchCalls(e)):a.noop;return S.updateResult(),t},[S,v]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),r.useEffect(()=>{S.setOptions(f)},[f,S]),f?.suspense&&m.isPending)throw S.fetchOptimistic(f).catch(()=>{c.clearReset()});if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,a.shouldThrowError)(n,[e.error,r])))({result:m,errorResetBoundary:c,throwOnError:f.throwOnError,query:g,suspense:f.suspense}))throw m.error;return f.notifyOnChangeProps?m:S.trackResult(m)}e.s(["useBaseQuery",0,l],469637);var u=e.i(869230);e.s(["useQuery",0,function(e,t){return l(e,u.QueryObserver,t)}],266027)}]);
2
3//# chunkId=554ac416-1e34-5997-91ce-1bda8b003d46

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.