PageSourceSearch

https://x.gd/_next/static/chunks/4430-23c6b6aeab1c5ede.js

js x.gd collected 2026-09-24 06:41:57 UTC 30,247 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4430],{4430:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ts});var r=n(5155),i=n(2115),o=n(7652),a=n(482),s=n(4505),l=n(8962),c=n(1542),d=n(7716),u=n(6874),p=n.n(u),h=n(4615),f=n(6821),x=n(8294),g=n(9960),m=n(9067),b=n(447),v=n(6847),j=n(5636),w=n(8001),y=n(8734),k=n(3385),I=n(6572),C=n(9620),T=n(4302),_=n(723),S=n(2984),A=n(2861),$=n(1449),D=n(8406),z=n(7522),M=n(1756),E=n(7804),N=n(5933),H=n(4987),F=n(4695),K=n(6411),W=n(3817),L=n(7115),O=n(7434);function R(){let e=(0,N._)(["\n    font-size: 1.8rem;\n  "]);return R=function(){return e},e}function U(){let e=(0,N._)(["\n    font-size: 1.8rem;\n  "]);return U=function(){return e},e}function q(){let e=(0,N._)(["\n    margin: 30px auto 0;\n  "]);return q=function(){return e},e}function P(){let e=(0,N._)(["\n    margin-top: 80px;\n  "]);return P=function(){return e},e}function Z(){let e=(0,N._)(["\n    width: 31.2%;\n  "]);return Z=function(){return e},e}function J(){let e=(0,N._)(["\n    margin: 36px auto 0;\n  "]);return J=function(){return e},e}function Y(){let e=(0,N._)(["\n      /* spはOption全幅なので下両角とも角なし */\n      border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;\n    "]);return Y=function(){return e},e}function B(){let e=(0,N._)(["\n    font-size: 1.6rem;\n  "]);return B=function(){return e},e}function X(){let e=(0,N._)(["\n    background: var(--background-color-highlight);\n  "]);return X=function(){return e},e}function G(){let e=(0,N._)(["\n    &:hover:not(:disabled) {\n      filter: brightness(1.08);\n    }\n    &:disabled {\n      cursor: not-allowed;\n    }\n  "]);return G=function(){return e},e}function V(){let e=(0,N._)(["\n    min-width: auto;\n    padding: 0 16px;\n    font-size: 1.5rem;\n    font-weight: 500;\n  "]);return V=function(){return e},e}function Q(){let e=(0,N._)(["\n    grid-column: 1 / -1;\n  "]);return Q=function(){return e},e}function ee(){let e=(0,N._)(["\n    display: flex;\n    flex-direction: column;\n    gap: 4px;\n  "]);return ee=function(){return e},e}function et(){let e=(0,N._)(["\n    display: flex;\n    flex-direction: column;\n    gap: 0px;\n  "]);return et=function(){return e},e}function en(){let e=(0,N._)(["\n    border-top: 1px solid var(--border-color-lightgray);\n    padding-top: 8px;\n  "]);return en=function(){return e},e}function er(){let e=(0,N._)(["\n    border-top: 1px solid var(--border-color-lightgray);\n    padding-top: 8px;\n  "]);return er=function(){return e},e}function ei(){let e=(0,N._)(["\n    margin-top: 8px;\n    width: 100%;\n    text-align: left;\n    font-size: 1.4rem;\n  "]);return ei=function(){return e},e}function eo(){let e=(0,N._)(["\n    margin: 8px 0 4px;\n    width: 100%;\n    text-align: left;\n    font-size: 1.4rem;\n  "]);return eo=function(){return e},e}function ea(){let e=(0,N._)(["\n    border-top: 1px solid var(--border-color-lightgray);\n    padding-top: 8px;\n  "]);return ea=function(){return e},e}function es(){let e=(0,N._)(["\n    border-top: 1px solid var(--border-color-lightgray);\n    padding-top: 8px;\n  "]);return es=function(){return e},e}function el(){let e=(0,N._)(["\n    width: 100%;\n    flex: auto;\n  "]);return el=function(){return e},e}function ec(){let e=(0,N._)(["\n    width: 100%;\n    flex: auto;\n  "]);return ec=function(){return e},e}function ed(){let e=(0,N._)(["\n    height: 26px;\n    width: 50px;\n  "]);return ed=function(){return e},e}function eu(){let e=(0,N._)(["\n      width: 22px;\n      height: 22px;\n    "]);return eu=function(){return e},e}function ep(){let e=(0,N._)(["\n    height: 28px;\n  "]);return ep=function(){return e},e}function eh(){let e=(0,N._)(["\n    height: 28px;\n  "]);return eh=function(){return e},e}function ef(){let e=(0,N._)(["\n    height: 100%;\n    padding: 4px 0;\n  "]);return ef=function(){return e},e}function ex(){let e=(0,N._)(["\n    height: 100%;\n    font-weight: 500;\n    padding: 4px 0;\n  "]);return ex=function(){return e},e}function eg(){let e=(0,N._)(["\n    border-radius: var(--border-radius-small);\n  "]);return eg=function(){return e},e}function em(){let e=(0,N._)(["\n    padding: 12px 0;\n    font-size: 1.5rem;\n  "]);return em=function(){return e},e}function eb(){let e=(0,N._)(["\n    margin-top: 44px;\n  "]);return eb=function(){return e},e}function ev(){let e=(0,N._)(["min-height: ","px;"]);return ev=function(){return e},e}function ej(){let e=(0,N._)(["\n    min-height: 368px;\n  "]);return ej=function(){return e},e}function ew(){let e=(0,N._)(["\n    min-height: 368px;\n  "]);return ew=function(){return e},e}function ey(){let e=(0,N._)(["\n    margin-top: 26px;\n    // margin-bottom: 30px;\n  "]);return ey=function(){return e},e}function ek(){let e=(0,N._)(["\n    font-size: 1.6rem;\n  "]);return ek=function(){return e},e}function eI(){let e=(0,N._)(["\n    font-size: 1.4rem;\n  "]);return eI=function(){return e},e}let eC=(0,H.I4)(L.A).withConfig({componentId:"sc-dc6b3068-0"})(["font-size:1.6rem;padding:0.4rem;cursor:pointer;margin-left:4px;color:var(--font-color-gray);"]),eT=(0,H.I4)(L.A).withConfig({componentId:"sc-dc6b3068-1"})(["font-size:1.6rem;padding-right:0.3rem;",""],(0,I.sp)(R())),e_=(0,H.I4)(L.A).withConfig({componentId:"sc-dc6b3068-2"})(["font-size:2rem;color:",";padding:0.2rem;cursor:",";",";"],e=>{let{$active:t}=e;return t?"var(--font-color-gray)":"var(--font-color-lightgray)"},e=>{let{$active:t}=e;return t?"pointer":"default"},e=>{let{$active:t}=e;return t?O.r:""}),eS=(0,H.I4)(L.A).withConfig({componentId:"sc-dc6b3068-3"})(["font-size:1.6rem;padding-right:0.3rem;",""],(0,I.sp)(U())),eA=H.I4.div.withConfig({componentId:"sc-dc6b3068-4"})(["margin:48px auto 0;max-width:800px;",""],(0,I.sp)(q())),e$=H.I4.div.withConfig({componentId:"sc-dc6b3068-5"})(["margin-top:120px;
1",""],(0,I.sp)(P())),eD=H.I4.h1.withConfig({componentId:"sc-dc6b3068-6"})(["text-align:center;"]),ez=(0,H.I4)(W.A).withConfig({componentId:"sc-dc6b3068-7"})(["width:23.8%;"," height:auto;"],(0,I.sp)(Z())),eM=H.I4.div.withConfig({componentId:"sc-dc6b3068-8"})(["margin:48px auto 0;width:100%;display:grid;grid-template-columns:1fr auto;",""],(0,I.sp)(J())),eE=H.I4.div.withConfig({componentId:"sc-dc6b3068-9"})(["grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:center;background:var(--background-color-light);border-radius:var(--border-radius-medium);padding:4px;gap:4px;transition:border-radius 0.1s ease;&.opened{border-radius:var(--border-radius-medium) var(--border-radius-medium) var(--border-radius-medium) 0;","}"],(0,I.sp)(Y())),eN=H.I4.div.withConfig({componentId:"sc-dc6b3068-10"})(["display:flex;align-items:center;min-width:0;"]),eH=H.I4.input.withConfig({componentId:"sc-dc6b3068-11"})(["background:transparent;flex:1;min-width:0;height:40px;padding:0 4px 0 12px;font-size:1.5rem;color:",";&::placeholder{color:",";}",""],e=>e.$error?"var(--status-color-danger)":"var(--font-color-primary)",e=>e.$placeholderError?"var(--status-color-danger)":"inherit",(0,I.sp)(B())),eF=H.I4.button.withConfig({componentId:"sc-dc6b3068-12"})(["display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:var(--border-radius-small);color:var(--font-color-gray);margin-right:2px;transition:background 0.15s ease,color 0.15s ease;&.opened{color:var(--font-color-primary);background:var(--background-color-highlight);}"," ",""],(0,I.PT)(X()),(0,I.ND)()),eK=(0,H.I4)(L.A).withConfig({componentId:"sc-dc6b3068-13"})(["font-size:2.2rem;"]),eW=H.I4.button.withConfig({componentId:"sc-dc6b3068-14"})(["background:var(--background-color-gray);color:var(--font-color-light);height:40px;border-radius:var(--border-radius-small);padding:0 20px;min-width:100px;flex-shrink:0;font-size:1.7rem;transition:filter 0.2s ease;"," "," "," position:relative;.label.is-loading{visibility:hidden;}.spinner{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;}"],(0,I.ND)(),(0,I.FK)(G()),(0,I.sp)(V())),eL=H.I4.div.withConfig({componentId:"sc-dc6b3068-15"})(["background:var(--background-color-light);border-radius:0 0 var(--border-radius-medium) var(--border-radius-medium);box-shadow:inset 0 6px 6px -6px var(--shadow-color-gray);grid-column:1 / 2;display:grid;grid-template-rows:0fr;transition:0.25s grid-template-rows ease;"," &.opened{grid-template-rows:1fr;}"],(0,I.sp)(Q())),eO=H.I4.div.withConfig({componentId:"sc-dc6b3068-16"})(["overflow:hidden;"]),eR=H.I4.div.withConfig({componentId:"sc-dc6b3068-17"})(["padding:14px 16px;gap:8px 0;display:grid;grid-template-columns:1fr auto;align-items:center;"," ",""],(0,I.Mf)(ee()),(0,I.sp)(et())),eU=H.I4.div.withConfig({componentId:"sc-dc6b3068-18"})(["display:flex;align-items:center;font-size:1.3rem;word-break:keep-all;"," "," "," ",""],(0,I.pc)(en()),(0,I.Uf)(er()),(0,I.Mf)(ei()),(0,I.sp)(eo())),eq=H.I4.div.withConfig({componentId:"sc-dc6b3068-19"})(["display:flex;align-items:center;flex:1;width:100%;gap:16px;"," "," "," ",""],(0,I.pc)(ea()),(0,I.Uf)(es()),(0,I.Mf)(el()),(0,I.sp)(ec())
1),eP=H.I4.div.withConfig({componentId:"sc-dc6b3068-20"})(["display:contents;&:first-child{","{margin-top:0;border-top:0;padding-top:0;}","{margin-top:0;border-top:0;padding-top:0;}}"],eU,eq),eZ=H.I4.div.withConfig({componentId:"sc-dc6b3068-21"})(["display:flex;align-items:center;"]),eJ=H.I4.div.withConfig({componentId:"sc-dc6b3068-22"})(["width:42px;height:22px;position:relative;border-radius:9999px;background:var(--background-color-lightgray);cursor:pointer;",' &:after{content:"";position:absolute;width:18px;height:18px;border-radius:100%;left:1px;top:1px;background:var(--background-color-light);border:1px solid var(--background-color-lightgray);transition:all 0.2s ease;',"}&.active{background:var(--status-color-info);&:after{border-color:var(--status-color-info);transform:translateX(100%);}}",""],(0,I.sp)(ed()),(0,I.sp)(eu()),(0,I.ND)()),eY=H.I4.div.withConfig({componentId:"sc-dc6b3068-23"})(["display:flex;align-items:center;width:100%;"," ",""],(0,I.Mf)(ep()),(0,I.sp)(eh())),eB=H.I4.div.withConfig({componentId:"sc-dc6b3068-24"})(["font-size:1.2rem;height:24px;width:50%;border-radius:var(--border-radius-small) 0 0 var(--border-radius-small);border:1px solid var(--border-color-gray);background:var(--background-color-primary);cursor:default;transition:0.1s;display:flex;align-items:center;justify-content:center;"," "," &:first-child{background:var(--background-color-blue);color:var(--access-color-public);}&:last-child{border-left:0;border-radius:0 var(--border-radius-small) var(--border-radius-small) 0;background:var(--background-color-red);color:var(--access-color-private);}&.off{background:var(--background-color-primary);color:var(--font-color-gray);cursor:pointer;}",""],(0,I.Mf)(ef()),(0,I.sp)(ex()),(0,I.ND)(eg())),eX=H.I4.div.withConfig({componentId:"sc-dc6b3068-25"})(["border-top:1px solid var(--border-color-lightgray);padding:8px 0;font-size:1.2rem;display:flex;justify-content:right;align-items:center;gap:16px;"," a{display:flex;border-radius:var(--border-radius-small);","}"],(0,I.sp)(em()),(0,I.ND)()),eG=(0,H.I4)(K.Ay).withConfig({componentId:"sc-dc6b3068-26"})(["padding-top:0;padding-bottom:0;"]),eV=(0,H.I4)(eG).withConfig({componentId:"sc-dc6b3068-27"})(["border-top-left-radius:0;"]),eQ=(0,H.I4)(eG).withConfig({componentId:"sc-dc6b3068-28"})([""]),e0=H.I4.div.withConfig({componentId:"sc-dc6b3068-29"})(["display:flex;justify-content:center;align-items:center;min-height:266px;padding:20px 0;font-size:1.4rem;"]),e1=H.I4.div.withConfig({componentId:"sc-dc6b3068-30"})(["display:flex;gap:8px;"]),e6=H.I4.div.withConfig({componentId:"sc-dc6b3068-31"})(["position:relative;display:flex;align-items:center;padding:8px 16px;font-size:1.2rem;cursor:",";border-radius:8px 8px 0 0;background:",";",""],e=>e.$active?"default":"pointer",e=>e.$active?"var(--background-color-light)":"transparent",(0,I.ND)()),e4=H.I4.div.withConfig({componentId:"sc-dc6b3068-32"})(["display:flex;justify-content:center;flex-direction:column;align-items:center;gap:20px;"]),e8=(0,H.I4)(g.fJ).withConfig({componentId:"sc-dc6b3068-33"})(["margin-top:30px;"]),e2=H.I4.div.withConfig({componentId:"sc-dc6b3068-34"})(["margin-top:120px;",""],(0,I.sp)(eb())),e3=H.I4.div.withConfig({componentId:"sc-dc6b3068-35"})(["display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:24px;> div{flex:1 1 0;min-width:280px;max-width:600px;}"]),e5=H.I4.div.withConfig({componentId:"sc-dc6b3068-36"})(["min-height:","px;"," ",""],e=>{let{$base:t}=e;return t},e=>{let{$sp:t}=e;return void 0!==t?(0,I.sp)(ev(),t):""},F.j),e7=H.I4.div.withConfig({componentId:"sc-dc6b3068-37"})(["margin-top:20px;margin-bottom:40px;"," "," ",""],(0,I.pc)(ej()),(0,I.Uf)(ew()),(0,I.sp)(ey())),e9=H.I4.div.withConfig({componentId:"sc-dc6b3068-38"})(["display:grid;gap:20px;text-align:center;line-height:1.5;"]),te=H.I4.div.withConfig({componentId:"sc-dc6b3068-39"})(["font-size:1.8rem;",""],(0,I.sp)(ek())),tt=H.I4.div.withConfig({componentId:"sc-dc6b3068-40"})(["font-size:1.4rem;color:var(--font-color-gray);line-height:1.5;",""],(0,I.sp)(eI())),tn=H.I4.div.withConfig({componentId:"sc-dc6b3068-41"}
1)(["height:32px;padding:8px 16px;border-radius:8px 8px 0 0;background:var(--background-color-light);display:flex;align-items:center;"]),tr=H.I4.div.withConfig({componentId:"sc-dc6b3068-42"})(["height:14px;width:","px;border-radius:var(--border-radius-small);",""],e=>e.$w,F.j),ti=H.I4.div.withConfig({componentId:"sc-dc6b3068-43"})(["padding:14px 0;display:grid;gap:10px;"]),to=H.I4.div.withConfig({componentId:"sc-dc6b3068-44"})(["height:14px;width:",";border-radius:var(--border-radius-small);",""],e=>e.$w,F.j);function ta(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(e1,{"aria-hidden":!0,children:[(0,r.jsx)(tn,{children:(0,r.jsx)(tr,{$w:88})}),(0,r.jsx)(tn,{style:{background:"transparent"},children:(0,r.jsx)(tr,{$w:92})})]}),(0,r.jsx)(eV,{"aria-busy":!0,children:Array.from({length:4}).map((e,t)=>(0,r.jsxs)(ti,{children:[(0,r.jsx)(to,{$w:"92%"}),(0,r.jsx)(to,{$w:"64%"})]},t))})]})}function ts(){let e=(0,k.Ym)(),t=(0,o.c3)(),[n]=(0,i.useState)(()=>{var e,t,n,r;return(null==(n=Intl)||null==(t=n.DateTimeFormat)||null==(e=(r=t.call(n)).resolvedOptions)?void 0:e.call(r).timeZone)||""}),[u,N]=(0,i.useState)(""),H=(0,i.useRef)(null),[F]=(0,i.useState)(()=>window.matchMedia("(max-width: 775px)").matches),[K,W]=(0,i.useState)(!1),[L,O]=(0,i.useState)(!1);(0,i.useEffect)(()=>{W(window.matchMedia("(max-width: ".concat(I.cZ.media_size.tab,"px)")).matches),O(!0)},[]),(0,i.useEffect)(()=>{if(window.matchMedia("(hover: hover) and (pointer: fine)").matches){var e;null==(e=H.current)||e.focus()}},[]);let[R,U]=(0,i.useState)(!1),[q,P]=(0,i.useState)(!0),[Z,J]=(0,i.useState)(!1),[Y,B]=(0,i.useState)(!1),[X,G]=(0,i.useState)(""),[V,Q]=(0,i.useState)(!1),[ee,et]=(0,i.useState)(""),[en,er]=(0,i.useState)(!1),[ei,eo]=(0,i.useState)(!1),[ea,es]=(0,i.useState)(""),[el,ec]=(0,i.useState)(!1),[ed,eu]=(0,i.useState)(!1),[ep,eh]=(0,i.useState)(""),[ef,ex]=(0,i.useState)(!1),eg=""===ep||/^[a-zA-Z0-9_]{6,15}$/.test(ep),em=ed&&(""===ep||!eg)||ef,eb=u.trim(),ev=""!==eb&&!(0,E.q)(eb),[ej,ew]=(0,i.useState)(!1),ey=Y&&!X,[ek,eI]=(0,i.useState)(!1),[eG,tn]=(0,i.useState)(""),[tr,ti]=(0,i.useState)(!1),[to,ts]=(0,i.useState)(null),{session:tl}=(0,_.w)(),[tc,td]=(0,i.useState)(!0),{openLoginModal:tu}=(0,S.G)(),[tp,th]=(0,i.useState)(!1),tf=tl.serverChecked,[tx,tg]=(0,i.useState)("device"),[tm,tb]=(0,i.useState)(!1),tv=tl.serverChecked&&tl.active&&!tm?"account":tx,tj="account"===tv,[tw,ty]=(0,i.useState)(!1),[tk,tI,tC,tT]=(0,w.L)([]),{openFlash:t_}=(0,y.eD)(),[tS,tA]=(0,i.useState)([]),[t$,tD]=(0,i.useState)(!1),[tz,tM]=(0,i.useState)(!1),[tE,tN]=(0,i.useState)(0),[tH,tF]=(0,i.useState)(!1);function tK(e){if(!1===q&&P(!0),"public"===e)return void J(!1);tl.active&&J(!0)}let tW=async()=>{if(!tr&&tf){if(""===eb||ev||em||ey||en||el){t_("warning",t("Top.flash.error400_3"),"var(--status-color-danger)"),""===eb&&ew(!0),(em||ey||en||el)&&!R&&U(!0);return}ti(!0),ts(null);try{var e,r,i,o;let a={customId:ed?ep:null,expire:V?ee:null,start:ei?ea:null,passwd:Y?X:null,url:eb,analytics:q?Z?2:1:0,timezone:n};tl.active&&ek&&""!==eG&&(a.memo=eG);let s=await fetch("/api/v1/shorten",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!s.ok)throw Error("HTTP error: ".concat(s.status));let l=await s.json();if(200!==l.status.code){let e=l.status.code,n=l.status.sub;if(409===e){t_("warning",t("Top.flash.error409"),"var(--status-color-danger)"),ex(!0),R||U(!0);return}if(400===e&&n>=1&&n<=3){let e="Top.flash.error400_".concat(n);t_("warning",t(e),"var(--status-color-danger)"),3===n&&(em||ey||en||el)&&!R&&U(!0);return}t_("warning",t("Top.flash.error",{code:e,sub:n}),"var(--status-color-danger)");return}let c={id:l.results.id,url:l.results.url,memo:null!=(e=l.results.memo)?e:"",total:0,created_at:l.results.created_at,analytics:l.results.analytics,passwd:null!=(r=l.results.passwd)?r:null,start:null!=(i=l.results.start_at)?i:null,expire:null!=(o=l.results.expire_at)?o:null};N(""),ew(!1),(0,M.U)("shorten-input"),ty(!0),!0===tl.active?(tA(e=>[c,...e].slice(0,5)),tN(e=>(null!=e?e:0)+1),tM(!0),tg("account")):(tI({id:l.results.id,url:l.results.url,analytics:l.results.analytics,memo:ek?eG:"",created_at:l.results.created_at}),tg("device"))}catch(e){t_("warning",t("Top.flash.systemError"),"var(--status-color-danger)")}finally{ti(!1)}}},tL=async()=>
1{if(!t$&&tl.serverChecked&&tl.active){tD(!0);try{var e,t,n,r,i,o,a;let s=await fetch("/api/v1/user/short-urls",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"active",offset:0,limit:5})});if(!s.ok){tA([]),tN(0);return}let l=await s.json();if(200!==l.status.code){tA([]),tN(0);return}let c=Array.isArray(l.results)?l.results:null!=(r=null==(e=l.results)?void 0:e.list)?r:[],d=(null!=c?c:[]).map(e=>{var t,n,r,i,o,a,s;return{id:e.id,url:e.url,memo:null!=(t=e.memo)?t:"",total:null!=(n=e.total)?n:0,created_at:e.created_at,analytics:e.analytics,passwd:null!=(r=e.passwd)?r:null,start:null!=(i=e.start_at)?i:null,expire:null!=(o=e.expire_at)?o:null,disabled:null!=(a=e.disabled)&&a,suspended:null!=(s=e.suspended)&&s}});tA(d);let u=Array.isArray(l.results)?null!=(i=null==c?void 0:c.length)?i:0:null!=(a=null!=(o=null==(n=l.results)||null==(t=n.meta)?void 0:t.total)?o:null==c?void 0:c.length)?a:0;tN(u),tM(!0)}catch(e){tA([]),tN(0)}finally{tD(!1)}}};(0,i.useEffect)(()=>{tl.serverChecked&&td(!1)},[tl.serverChecked]),(0,i.useEffect)(()=>{tj&&tl.serverChecked&&tl.active&&(tz||tL())},[tj,tl.serverChecked,tl.active]),(0,i.useEffect)(()=>{B(""!==X)},[X]),(0,i.useEffect)(()=>{eI(""!==eG)},[eG]),(0,i.useEffect)(()=>{eu(""!==ep)},[ep]);let[tO,tR]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=setTimeout(()=>tR(!0),500);return()=>clearTimeout(e)},[]);let tU=tk.length>0||tE>0,tq=tj&&tl.serverChecked&&tl.active&&!tz,tP=!tO||!tl.serverChecked||tq||!tU&&(!tT||tc),tZ=e=>{if(""===e)return!0;let t=(0,a.qg)(e,"yyyy-MM-dd HH:mm:ss",new Date),n=new Date,r=(0,s.e)(n,10);return!(0,l.f)(t)||(0,c.Y)(t,n)||(0,d.d)(t,r)},tJ=e=>{if(""===e)return!0;let t=(0,a.qg)(e,"yyyy-MM-dd HH:mm:ss",new Date),n=new Date,r=(0,s.e)(n,10);return!(0,l.f)(t)||(0,c.Y)(t,n)||(0,d.d)(t,r)},tY=(e,t)=>{let n=(0,a.qg)(e,"yyyy-MM-dd HH:mm:ss",new Date),r=(0,a.qg)(t,"yyyy-MM-dd HH:mm:ss",new Date);return(0,l.f)(n)&&(0,l.f)(r)&&!(0,d.d)(r,n)},tB=()=>{Q(e=>{let t=!e;if(t){let e=tZ(ee),t=ei&&!tJ(ea)&&!e&&tY(ea,ee);er(e||t),ei&&t&&ec(!0)}else er(!1),ei&&ec(tJ(ea));return t})},tX=()=>{eo(e=>{let t=!e;if(t){let e=tJ(ea),t=V&&!tZ(ee)&&!e&&tY(ea,ee);ec(e||t),V&&t&&er(!0)}else ec(!1),V&&er(tZ(ee));return t})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.A,{isVisible:tH}),(0,r.jsx)(h.A,{isTopMode:!0,title:t("Header.title")}),(0,r.jsxs)(x.A,{children:[(0,r.jsx)(v.A,{slot:"3268088791",format:"auto",reserveMinHeight:{base:280,sp:390}}),(0,r.jsxs)(eA,{id:"main",children:[(0,r.jsx)(eD,{children:(0,r.jsx)(ez,{"aria-label":"X.gd"})}),(0,r.jsxs)(eM,{id:"shorten-input",children:[(0,r.jsxs)(eE,{className:R?"opened":"",children:[(0,r.jsxs)(eN,{children:[(0,r.jsx)(eH,{ref:H,value:u,onChange:e=>{N(e.target.value),ew(!1)},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||tW()},placeholder:t("Top.form.placeholderShorten"),$error:ev,$placeholderError:ej,"aria-label":t("Top.form.placeholderShorten")}),(0,r.jsx)(eF,{onClick:()=>U(!R),className:R?"opened":"","aria-expanded":R,"aria-label":R?t("Top.option.hideOptions"):t("Top.option.showOptions"),children:(0,r.jsx)(eK,{name:"tune","aria-hidden":"true"})})]}),(0,r.jsxs)(eW,{onClick:tW,disabled:tr||!tf,"aria-busy":tr,children:[(0,r.jsx)("span",{className:"label".concat(tr?" is-loading":""),children:t("Top.form.shortenButton")}),tr&&(0,r.jsx)("span",{className:"spinner","aria-hidden":"true",children:(0,r.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",role:"img","aria-label":"Loading",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,r.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",children:(0,r.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1s",repeatCount:"indefinite"})})]})})]})]}),(0,r.jsx)(eL,{className:R?"opened":"",children:(0,r.jsx)(eO,{children:(0,r.jsxs)(eR,{children:[(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.analytics.label"),(0,r.jsx)($.A,{content:t("Top.option.analytics.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:()=>P(!q),className:q?"active":"",role:"switch","aria-checked":q,"aria-label":t("Top.option.analytics.label"),tabIndex:R?0:-1,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),P(!q))}})}),(0,r.jsxs)(eY,{role:"radiogroup","aria-label":t("Top.option.analytics.label"),children:[(0,r.jsxs)(eB,{onClick:()=>tK("public"),className:!q||Z?"off":"",role:"radio","aria-checked":q&&!Z,"aria-disabled":!q,"data-disabled":!q||void 0,tabIndex:R&&q?0:-1,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&q&&(e.preventDefault(),tK("public"))},children:[(0,r.jsx)(eT,{name:"public","aria-hidden":"true"}),t("Top.option.analytics.public")]}),(0,r.jsxs)(eB,{onClick:()=>{if(!tl.active)return void th(!0);tK("private")},className:q&&Z?"":"off",role:"radio","aria-checked":q&&Z,"aria-disabled":!tl.active||!q,"data-disabled":!tl.active||!q||void 0,tabIndex:R&&q?0:-1,onKeyDown:e=>{if("Enter"===e.key||" "===e.key){if(e.preventDefault(),!tl.active)return void th(!0);q&&tK("private")}},children:[(0,r.jsx)(eT,{name:"lock","aria-hidden":"true"}),t("Top.option.analytics.private")]})]})]})]}),(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.customUrl.label"),(0,r.jsx)($.A,{content:t("Top.option.customUrl.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:()=>eu(e=>{let t=!e;return t||(eh(""),ex(!1)),t}),className:ed?"active":"",role:"switch","aria-checked":ed,"aria-label":t("Top.option.customUrl.label"),tabIndex:R?0:-1,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eu(e=>{let t=!e;return t||(eh(""),ex(!1)),t}))}})}),(0,r.jsxs)(j.fh,{$size:"small",$error:em,children:[(0,r.jsxs)(j.wc,{$size:"small",children:["https://x.gd","/"]}),(0,r.jsx)(j.OM,{$size:"small",placeholder:"",value:ep,onChange:e=>{eh(e.target.value),ex(!1)},maxLength:15,$error:em,$fontColor:em?"var(--status-color-danger)":void 0,"aria-label":t("Top.option.customUrl.label"),tabIndex:R?0:-1})]})]})]}),(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.password.label"),(0,r.jsx)($.A,{content:t("Top.option.password.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:()=>B(e=>{let t=!e;return t||G(""),t}),className:Y?"active":"",role:"switch","aria-checked":Y,"aria-label":t("Top.option.password.label"),tabIndex:R?0:-1,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B(e=>{let t=!e;return t||G(""),t}))}})}),(0,r.jsx)(j.ks,{$size:"small",type:"text",value:X,$error:Y&&!X,onChange:e=>G(e.target.value),"aria-label":t("Top.option.password.label"),tabIndex:R?0:-1})]})]}),(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.start.label"),(0,r.jsx)($.A,{content:t("Top.option.start.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:tX,className:ei?"active":"",role:"switch","aria-checked":ei,"aria-label":t("Top.option.start.label"),tabIndex:R?0:-1,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tX())}})}),ei&&(0,r.jsx)(C.A,{value:ea,$error:el,onChange:e=>{if(es(e),!ei)return void ec(!1);let t=tJ(e),n=V&&!tZ(ee)&&!t&&tY(e,ee);ec(t||n),V&&er(n)},tabIndex:R?0:-1}),!ei&&(0,r.jsx)(j.ks,{$size:"small",type:"text",placeholder:t("Top.option.start.placeholder"),onClick:()=>eo(!0),disabled:!0})]})]}),(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.expire.label"),(0,r.jsx)($.A,{content:t("Top.option.expire.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:tB,className:V?"active":"",role:"switch","aria-checked":V,"aria-label":t("Top.option.expire.label"),tabIndex:R?0:-1,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tB())}})}),V&&(0,r.jsx)(C.A,{value:ee,$error:en,onChange:e=>{if(et(e),!V)return void er(!1);let t=tZ(e),n=ei&&!tJ(ea)&&!t&&tY(ea,e);er(t||n),ei&&ec(n)},tabIndex:R?0:-1}),!V&&(0,r.jsx)(j.ks,{$size:"small",type:"text",placeholder:t("Top.option.expire.placeholder"),onClick:()=>Q(!0),disabled:!0})]})]}),(0,r.jsxs)(eP,{children:[(0,r.jsxs)(eU,{children:[t("Top.option.memo.label"),(0,r.jsx)($.A,{content:t("Top.option.memo.tooltip"),children:(0,r.jsx)(eC,{name:"info"})})]}),(0,r.jsxs)(eq,{children:[(0,r.jsx)(eZ,{children:(0,r.jsx)(eJ,{onClick:()=>eI(e=>{let t=!e;return t||tn(""),t}),className:ek?"active":"",role:"switch","aria-checked":ek,"aria-label":t("Top.option.memo.label"),tabIndex:R?0:-1,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eI(e=>{let t=!e;return t||tn(""),t}))}})}),(0,r.jsx)(j.ks,{$size:"small",type:"text",value:eG,$error:ek&&!eG,onChange:e=>tn(e.target.value),maxLength:120,"aria-label":t("Top.option.memo.label"),tabIndex:R?0:-1})]})]})]})})})]}),tw&&(F?(0,r.jsx)(v.A,{slot:"7063287701",once:!0,fullWidthResponsive:!1,outerStyle:{marginTop:"16px"},style:{display:"inline-block",width:"300px",height:"50px"},reserveMinHeight:50,wrapWidth:300}):(0,r.jsx)(v.A,{slot:"7063287701",once:!0,fullWidthResponsive:!1,outerStyle:{marginTop:"16px"},style:{display:"block",width:"728px",height:"90px",marginLeft:"auto",marginRight:"auto"},reserveMinHeight:90,wrapWidth:728})),(0,r.jsx)(e7,{children:tP?(0,r.jsx)(ta,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(e1,{children:[(0,r.jsxs)(e6,{$active:"account"===tv,className:"account"===tv?"active":"",onClick:()=>{tb(!0),tg("account")},role:"tab","aria-selected":"account"===tv,tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tb(!0),tg("account"))},children:[(0,r.jsx)(eS,{name:"person","aria-hidden":"true"}),t("Top.tab.account")]}),(0,r.jsxs)(e6,{$active:"device"===tv,className:"device"===tv?"active":"",onClick:()=>{tb(!0),tg("device")},role:"tab","aria-selected":"device"===tv,tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tb(!0),tg("device"))},children:[(0,r.jsx)(eS,{name:"devices","aria-hidden":"true"}),t("Top.tab.device")]})]}),"account"===tv&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eV,{children:tl.checked&&tl.active?(0,r.jsx)(r.Fragment,{children:tS.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.A,{localList:tS,viewFrom:0,viewTo:tS.length,onRemove:e=>{e&&tL()},onArchiveStart:()=>tF(!0),onArchiveEnd:()=>tF(!1)}),tE>5&&(0,r.jsxs)(eX,{children:[(0,r.jsxs)("div",{children:["1〜",5," / ",tE.toLocaleString()]}),(0,r.jsx)(e_,{name:"chevron_left"}),(0,r.jsx)(p(),{href:(0,T.H)(e,"/account"),children:(0,r.jsx)(e_,{$active:!0,name:"chevron_right"})})]})]}):(0,r.jsx)(e0,{children:(0,r.jsxs)(e9,{children:[(0,r.jsx)(te,{children:t("Top.empty.title")}),(0,r.jsx)(tt,{children:t("Top.empty.desc")})]})})}):(0,r.jsx)(e0,{children:(0,r.jsxs)(e4,{children:[(0,r.jsx)(te,{children:t("Top.login.title")}),(0,r.jsx)(tt,{children:t("Top.login.desc")}),(0,r.jsx)(g.WW,{className:"mt20",$backColor:"var(--status-color-primary)",$fontColor:"var(--font-color-light)",onClick:()=>tu(),children:t("Top.login.button")})]})})}),tE>tS.length&&(0,r.jsx)(e8,{children:(0,r.jsx)(g.M5,{href:(0,T.H)(e,"/account"),children:t("Top.viewAll")})})]}),"device"===tv&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eQ,{children:tk.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.A,{localList:tk,onRemove:tC,viewTo:5,viewFrom:0}),tk.length>5&&(0,r.jsxs)(eX,{children:[(0,r.jsxs)("div",{children:["1〜",5," / ",tk.length.toLocaleString()]}),(0,r.jsx)(e_,{name:"chevron_left"}),(0,r.jsx)(p(),{href:(0,T.H)(e,"/local/history"),children:(0,r.jsx)(e_,{$active:!0,name:"chevron_right"})})]})]}):(0,r.jsx)(e0,{children:(0,r.jsxs)(e9,{children:[(0,r.jsx)(te,{children:t("Top.empty.title")}),(0,r.jsx)(tt,{children:t("Top.empty.desc")})]})})}),tk.length>5&&(0,r.jsx)(e8,{children:(0,r.jsx)(g.M5,{href:(0,T.H)(e,"/local/history"),children:t("Top.viewAll")})})]})]})})]}),L?K?(0,r.jsx)(v.A,{slot:"5410768417",format:"auto"}):(0,r.jsxs)(e3,{children:[(0,r.jsx)(v.A,{slot:"2759432768",format:"auto",reserveMinHeight:280}),(0,r.jsx)(v.A,{slot:"6786307687",format:"auto",reserveMinHeight:280})]}):(0,r.jsx)(e5,{$base:280,$sp:90}),(0,r.jsx)(e2,{children:(0,r.jsx)(b.A,{})}),(0,r.jsx)(e$,{children:(0,r.jsx)(v.A,{slot:"8022346005",format:"auto"})})]}),(0,r.jsx)(f.A,{}),(0,r.jsx)(z.A,{isModalOpen:tp,setIsModalOpen:th,title:t("Top.option.analytics.label"),icon:"bar_chart_4_bars",description:t("Top.option.analytics.loginRequired"),children:(0,r.jsxs)(g.Zb,{children:[(0,r.jsx)(g.WW,{onClick:()=>th(!1),children:t("Common.close")}),(0,r.jsx)(g.WW,{$backColor:"var(--status-color-primary)",$fontColor:"var(--font-color-light)",onClick:()=>{th(!1),tu()},children:t("LoginRequired.button")})]})})]})}}}]);

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.