devirt-corpus / real /tranco /twitch.tv__88e529ac.js
vasie's picture
Expand corpus to ~9.5k: 500 seeds x 19 obfuscation profiles + real samples
c930535
Raw
History Blame Contribute Delete
11 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8b39687a-9c4e-4b02-89a3-85be92eee885",e._sentryDebugIdIdentifier="sentry-dbid-8b39687a-9c4e-4b02-89a3-85be92eee885")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8b39687a-9c4e-4b02-89a3-85be92eee885",e._sentryDebugIdIdentifier="sentry-dbid-8b39687a-9c4e-4b02-89a3-85be92eee885")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8b39687a-9c4e-4b02-89a3-85be92eee885",e._sentryDebugIdIdentifier="sentry-dbid-8b39687a-9c4e-4b02-89a3-85be92eee885")}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[67901],{679117:(e,t,i)=>{i.d(t,{H:()=>l});var n=i(58168),a=i(198587),o=i(593954),r=i(474848),s=["title","titleId"],d=function(e){var t=e.title,i=e.titleId,o=(0,a.A)(e,s);return(0,r.jsxs)("svg",(0,n.A)({width:24,height:24,viewBox:"0 0 24 24","aria-labelledby":i},o,{children:[t?(0,r.jsx)("title",{id:i,children:t}):null,(0,r.jsx)("path",{d:"M20 5.999A9.985 9.985 0 0 0 12 2C6.477 2 2 6.477 2 12h2a8 8 0 0 1 14.93-4H14v2h8V2h-2v3.999ZM12 20a8 8 0 0 0 8-8h2c0 5.523-4.477 10-10 10a9.985 9.985 0 0 1-8-3.999V22H2v-8h8v2H5.07A7.997 7.997 0 0 0 12 20Z"})]}))};d.displayName="SourceIconRefresh";var l=(0,o.S)(d)},967967:(e,t,i)=>{i.d(t,{C:()=>a});var n=i(296540),a=function(){var e=(0,n.useState)(!1),t=e[0],i=e[1],a=function(e){i(e.matches)};return(0,n.useEffect)((function(){if("undefined"!=typeof window&&window.matchMedia){var e=window.matchMedia("(pointer: coarse)");return i(e.matches),e.addEventListener("change",a),function(){e.removeEventListener("change",a)}}i(!1)}),[]),t}},537346:(e,t,i)=>{i.d(t,{_:()=>l});var n=i(58168),a=i(967967),o=i(111742),r=i(564368),s=i(959340),d=i(474848),l=function(e){var t=e.buttonSize,i=e.primaryButtonProps,l=e.secondaryButtonProps,c=(0,a.C)(),p=(0,o.DP)().tokenValues;if(!i&&!l)return!1;var h=c?{flexBasis:"calc(50% - "+p["space-05"]+" / 2)",flexGrow:1,flexShrink:1,containerQueries:[{minWidth:"500px",props:{flexBasis:"auto",flexGrow:0,flexShrink:0}}]}:void 0;return(0,d.jsxs)(s.P,{display:"flex",flexDirection:"row-reverse",flexWrap:c?"wrap":"nowrap",alignItems:"flex-end",justifyContent:"flex-start",padding:{top:2},gap:.5,width:"100%",children:[i&&(0,d.jsx)(s.P,(0,n.A)({},h,{children:(0,d.jsx)(r.$n,(0,n.A)({variant:"primary",size:null!=t?t:"small",fullWidth:c},i))})),l&&(0,d.jsx)(s.P,(0,n.A)({},h,{children:(0,d.jsx)(r.$n,(0,n.A)({variant:"secondary",size:null!=t?t:"small",fullWidth:c},l))}))]})};l.displayName="FTUEActions"},482660:(e,t,i)=>{i.d(t,{M:()=>f});var n=i(58168),a=i(111742),o=i(615154),r=i(843004),s=i(312663),d=i(959340),l=i(914421),c=i(990605),p=i(36935),h=i(564990),u=i(474848),f=function(e){var t=e.contentGap,i=e.counter,f=e.description,x=e.orientation,g=e.newPill,v=e.title,m=e.titleSize,y=e.maxWidth,b=(0,o.tz)().formatMessage,w=(0,a.DP)().tokenValues,j=(0,c.v)(),I=j.modalHeaderId,C=j.modalBodyId;return(0,u.jsxs)(d.P,{display:"flex",width:"100%",maxWidth:y||"75ch",flexDirection:"column",gap:null!=t?t:.5,padding:"horizontal"===x?{right:2}:void 0,style:{textWrap:"pretty"},children:[i&&(0,u.jsx)("div",{children:(0,u.jsx)(s.N,{"aria-hidden":!0,color:"alt-2",fontSize:l.Z4.Size7,children:b("{current} of {total}",{current:i[0],total:i[1]},"FTUECalloutStepCounter")})}),(0,u.jsxs)(d.P,{id:I,padding:{right:i?2:w["button-size-default"]},children:[i&&(0,u.jsx)(r.L,{children:b("Step {current} of {total}",{current:i[0],total:i[1]},"FTUECalloutStepCounterAssistiveText")}),(0,u.jsxs)(p.hE,{size:null!=m?m:"title",children:[g&&(0,u.jsx)(d.P,{as:"span",padding:{right:.5},verticalAlign:"top",children:(0,u.jsx)(h.w,(0,n.A)({},"boolean"!=typeof g?g:void 0))}),v]})]}),(0,u.jsx)(s.N,{color:"alt",as:"div",id:C,children:f})]})};f.displayName="FTUEContent"},127151:(e,t,i)=>{i.d(t,{$:()=>D});var n=i(58168),a=i(588280),o=i(509534),r=i(679117),s=i(693523),d=i(659480),l=i(97774),c=i(615154),p=i(79004),h=i(959340),u=i(926078),f={sprites:320,objects:360,"speed-lines":470,"cosmic-aura":320};var x=i(474848),g=function(e){var t=e.type,i=e.assetId,n=e.alt,a=(0,u.Lk)();a||console.error("You must provide a value to the `cdnURL` property of `CoreUIRoot` or `CoreUIRoot__ThemeProvider` that points to where the brand assets are stored to use the `CoreGraphic` component.");var o,r,s=a+"/tw-"+i;return(0,x.jsxs)("picture",{children:[(0,x.jsx)("source",{srcSet:(o=f[t],r=s,Array.from({length:4},(function(e,t){var i=t+1;return r+"-"+o*i+".png "+i+"x"})).join(", "))}),(0,x.jsx)("img",{loading:"lazy",src:s+"-"+f[t]+".png",alt:n})]})};g.displayName="CoreGraphicPicture";var v,m=i(375276),y=i(153477),b=s.I4.div.withConfig({displayName:"ScCoreGraphicBackdrop",componentId:"sc-eikpvf-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;",";",""],l.R,(function(e){var t=!!e.$value.match(/^(color-tint)/);return(0,s.AH)(v||(v=(0,m.A)(["\n background: ",";\n opacity: ",";\n "])),(0,y.C)(t?function(e){return e.replace("tint","brand-accent")}(e.$value):e.$value),t?.3:void 0)}));var w,j,I=s.I4.div.withConfig({displayName:"ScCoreGraphicObjectLayer",componentId:"sc-1sv9ail-0"})(["position:relative;z-index:",";width:100%;height:100%;picture{height:100%;display:flex;align-items:center;}img{position:relative;visibility:",";max-width:100%;max-height:100%;}"],(function(e){return e.$zIndex}),(function(e){return e.$popOut?"hidden":void 0})),C=s.I4.div.withConfig({displayName:"ScCoreGraphicPopoutObjectLayer",componentId:"sc-6aly80-0"})(["position:relative;width:100%;height:100%;z-index:",";max-width:","px;img{position:absolute;top:50%;left:50%;max-width:100%;max-height:100%;","}"],(function(e){return e.$zIndex}),320,(function(e){return"block-start"===e.$popOut?(0,s.AH)(w||(w=(0,m.A)(["\n transform: scale(1.15) translateX(-43.5%) translateY(-52%);\n "]))):"inline-start"===e.$popOut?(0,s.AH)(j||(j=(0,m.A)(["\n transform: scale(1.15) translateX(-57.5%) translateY(-43.5%);\n "]))):void 0}));var $=s.I4.div.withConfig({displayName:"ScCoreGraphicSpriteLayer",componentId:"sc-1pd0u2l-0"})(["mix-blend-mode:screen;position:absolute;top:0;left:0;width:100%;height:100%;z-index:",";img{width:",";max-width:","px;position:absolute;top:50%;left:50%;transform:",";}"],(function(e){return e.$zIndex}),(function(e){return(e.$scale?100*e.$scale:100)+"%"}),(function(e){return e.$scale?320*e.$scale:100}),(function(e){return function(e){void 0===e&&(e={});var t=e,i=t.x,n=void 0===i?0:i,a=t.y;return"translateX("+(-50+n)+"%) translateY("+(-50+(void 0===a?0:a))+"%)"}(e.$position)})),z=(0,s.I4)(h.P).withConfig({displayName:"ScCoreGraphic",componentId:"sc-129n5mn-0"})(["user-select:none;pointer-events:none;"]),k=(0,s.I4)(h.P).withConfig({displayName:"ScCoreGraphicLayerContainer",componentId:"sc-129n5mn-1"})(["display:flex;align-tems:center;justify-content:center;width:100%;height:100%;"]),S=s.I4.div.withConfig({displayName:"ScCoreGraphicSizeBase",componentId:"sc-129n5mn-2"})(["position:relative;max-width:","px;height:100%;"],320),P=function(e){var t,i=e.alt,n=e.background,a=e.backgroundSprite,o=e.borderRadius,r=e.topSprite,s=e.bottomSprite,d=e.object,l=e.height,c=void 0===l?"100%":l,p=e.width,u=void 0===p?"100%":p,f=e.minHeight,v=e.maxHeight,m="string"==typeof d?d:d.asset,y="string"==typeof d?void 0:d.popOut;return(0,x.jsx)(h.P,{height:c,width:u,minHeight:f,maxHeight:v,children:(0,x.jsxs)(z,{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:[n&&(0,x.jsx)(b,{$value:n,$borderRadius:o}),y&&(0,x.jsx)(k,{position:"absolute",attachTop:!0,attachLeft:!0,children:(0,x.jsx)(C,{$popOut:y,$zIndex:3,children:(0,x.jsx)(g,{type:"objects",assetId:"string"==typeof d?d:d.asset,alt:""})})}),(0,x.jsx)(k,{position:"relative",overflow:"hidden",children:(0,x.jsxs)(S,{children:[a&&(0,x.jsx)($,{$position:a.position,$scale:a.scale,$borderRadius:o,$zIndex:1,children:(t=a.asset,t.startsWith("cosmic-aura")?(0,x.jsx)(g,{type:"cosmic-aura",assetId:a.asset,alt:""}):(0,x.jsx)(g,{type:"speed-lines",assetId:a.asset,alt:""}))}),s&&(0,x.jsx)($,{$position:s.position,$scale:s.scale,$zIndex:2,children:(0,x.jsx)(g,{type:"sprites",assetId:s.asset,alt:""})}),(0,x.jsx)(I,{$popOut:y,$zIndex:3,children:(0,x.jsx)(g,{type:"objects",assetId:m,alt:i})}),r&&(0,x.jsx)($,{$position:r.position,$scale:r.scale,$zIndex:4,children:(0,x.jsx)(g,{type:"sprites",assetId:r.asset,alt:""})})]})})]})})};P.displayName="CoreGraphic";var A=i(914421),N=i(920962),G=s.I4.div.withConfig({displayName:"ScGraphicContainer",componentId:"sc-1skh6nx-0"})(["background:",";width:100%;overflow:hidden;"," img,video,svg,canvas{display:block;height:100%;width:100%;object-fit:cover;}"],(0,d.b)("color-background-alt-2"),l.R),D=function(e){var t,i,s,d=e.animation,u=e.borderRadius,f=void 0===u?l.Z.Medium:u,g=e.children,v=e.coreGraphicProps,m=e.controlButtonProps,y=e.maxHeight,b=e.minHeight,w=e.orientation,j=e.flexShrink,I=(0,c.tz)().formatMessage,C={paused:a.i,playing:o.i,ended:r.H},$={paused:m&&(null==(t=m["aria-label"])?void 0:t.paused)||I("Play the animation","FTUECalloutGraphic"),playing:m&&(null==(i=m["aria-label"])?void 0:i.playing)||I("Pause the animation","FTUECalloutGraphic"),ended:m&&(null==(s=m["aria-label"])?void 0:s.ended)||I("Replay the animation","FTUECalloutGraphic")},z={topLeft:f,topRight:"horizontal"===w?l.Z.None:f,bottomLeft:"horizontal"===w?f:l.Z.None};return(0,x.jsx)(h.P,{display:"flex",position:"relative",width:"horizontal"===w?"100px":"100%",minHeight:b||"60px",maxHeight:y||"horizontal"===w?void 0:"150px",flexShrink:j||0,children:void 0!==v?(0,x.jsx)(P,(0,n.A)({},v,{height:"auto",borderRadius:z})):(0,x.jsxs)(x.Fragment,{children:[d&&m&&(0,x.jsx)(N.h,{children:(0,x.jsx)(h.P,{padding:1,position:"absolute",attachLeft:!0,attachBottom:!0,zIndex:A.Py.Above,children:(0,x.jsx)(h.P,{background:"overlay",borderRadius:l.Z.Rounded,children:(0,x.jsx)(p.a2,(0,n.A)({},m,{icon:C[d],"aria-label":$[d],onClick:function(e){null!=m&&m.onClick&&("ended"!==d&&"paused"!==d?m.onClick("paused",e):m.onClick("playing",e))}}))})})}),(0,x.jsx)(G,{$borderRadius:z,children:g})]})})};D.displayName="FTUEGraphic"},564990:(e,t,i)=>{i.d(t,{w:()=>s});var n=i(615154),a=i(843004),o=i(26538),r=i(474848),s=function(e){var t=e.assistiveText,i=e.label,s=(0,n.tz)().formatMessage,d=(0,(0,n.tz)().formatMessage)("This is a new item","NewItemDefaultAssitiveText");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.L,{as:"span",children:t||d}),(0,r.jsx)(o.a,{"aria-hidden":!0,type:"new",label:i||s("New","NewPill")})]})};s.displayName="NewPill"}}]);