티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[67071],{4038:(e,t,a)=>{a.d(t,{$T:()=>d,It:()=>l,Oe:()=>o,QG:()=>c,oT:()=>u,wV:()=>s});var r=a(96540);let n=new Set([” “,`
`]),i=new Set([“.”,`
`]),o=(e,t,a)=>{let r=e.sort((e,t)=>t.triggerChar.length-e.triggerChar.length);for(let e=a-1,o=””,s=r;e>=0&&s.length>0;e–){let a=t[e]??””;for(let r of(o=a+o,n.has(a)&&(s=s.filter(e=>e.multiWord)),i.has(a)&&(s=s.filter(e=>!e.multiWord)),s.filter(e=>o.startsWith(e.triggerChar)))){let a=t[e-1]??””,n=o[1]??””;if((!a||/[\s([]/.test(a))&&(!n||!/\s/.test(n)))return{trigger:r,query:o.slice(r.triggerChar.length),caretLocation:e};s=s.filter(e=>e!==r)}}return null},s=e=>”object”==typeof e&&null===e.value,l=e=>”string”==typeof e?e:e.value,c=e=>”string”==typeof e?e:null===e.value?e.key:e.key??e.value;function d(e,t){if(r.Children.only(e),t.current&&!(t.current instanceof HTMLInputElement)&&!(t.current instanceof HTMLTextAreaElement))throw TypeError(“AutocompleteTextarea child must be a component that forwards a ref and props to an or