PageSourceSearch

https://oncehit.net/_next/static/chunks/8421.3c2db9894de827d6.js

js oncehit.net collected 2026-10-02 01:07:07 UTC 18,710 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8421],{91490:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var r=a(57437),n=a(29),i=a.n(n),s=a(2265),c=a(49924),l=a(18030),o=a(73890),d=a(28354),u=a(24259);function f(e){try{var t,a;null===(a=navigator)||void 0===a||null===(t=a.vibrate)||void 0===t||t.call(a,e)}catch(e){}}function m(e){let{pattern:t,theme:a,size:n}=e,i=a.patternColor;switch(t){case"diamond":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsxs)("g",{fill:"none",stroke:i,strokeWidth:"2",opacity:"0.85",children:[(0,r.jsx)("path",{d:"M50 20 L70 50 L50 80 L30 50 Z"}),(0,r.jsx)("path",{d:"M50 60 L70 90 L50 120 L30 90 Z"}),(0,r.jsx)("circle",{cx:"50",cy:"50",r:"6",fill:i,stroke:"none"}),(0,r.jsx)("circle",{cx:"50",cy:"90",r:"6",fill:i,stroke:"none"})]})});case"star":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsxs)("g",{fill:i,opacity:"0.92",children:[(0,r.jsx)("polygon",{points:"50,15 58,38 82,38 63,53 70,76 50,62 30,76 37,53 18,38 42,38"}),(0,r.jsx)("polygon",{points:"50,72 56,90 75,90 60,101 65,120 50,108 35,120 40,101 25,90 44,90",opacity:"0.7"})]})});case"ornament":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsxs)("g",{fill:"none",stroke:i,strokeWidth:"2",opacity:"0.85",children:[(0,r.jsx)("circle",{cx:"50",cy:"70",r:"32"}),(0,r.jsx)("circle",{cx:"50",cy:"70",r:"22"}),(0,r.jsx)("path",{d:"M50 38 Q60 55 50 70 Q40 85 50 102"}),(0,r.jsx)("path",{d:"M18 70 Q35 60 50 70 Q65 80 82 70"}),(0,r.jsx)("circle",{cx:"50",cy:"70",r:"4",fill:i})]})});case"wave":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsxs)("g",{fill:"none",stroke:i,strokeWidth:"2.5",opacity:"0.7",children:[(0,r.jsx)("path",{d:"M5 40 Q20 28 35 40 T65 40 T95 40"}),(0,r.jsx)("path",{d:"M5 60 Q20 48 35 60 T65 60 T95 60"}),(0,r.jsx)("path",{d:"M5 80 Q20 68 35 80 T65 80 T95 80"}),(0,r.jsx)("path",{d:"M5 100 Q20 88 35 100 T65 100 T95 100"})]})});case"checker":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsxs)("g",{opacity:"0.8",children:[(0,r.jsx)("rect",{x:"20",y:"30",width:"14",height:"14",fill:i}),(0,r.jsx)("rect",{x:"48",y:"30",width:"14",height:"14",fill:i,opacity:"0.5"}),(0,r.jsx)("rect",{x:"34",y:"44",width:"14",height:"14",fill:i,opacity:"0.5"}),(0,r.jsx)("rect",{x:"62",y:"44",width:"14",height:"14",fill:i}),(0,r.jsx)("rect",{x:"20",y:"58",width:"14",height:"14",fill:i,opacity:"0.5"}),(0,r.jsx)("rect",{x:"48",y:"58",width:"14",height:"14",fill:i}),(0,r.jsx)("rect",{x:"34",y:"72",width:"14",height:"14",fill:i}),(0,r.jsx)("rect",{x:"62",y:"72",width:"14",height:"14",fill:i,opacity:"0.5"}),(0,r.jsx)("rect",{x:"20",y:"86",width:"14",height:"14",fill:i}),(0,r.jsx)("rect",{x:"48",y:"86",width:"14",height:"14",fill:i,opacity:"0.5"})]})});case"blossom":return(0,r.jsx)("svg",{viewBox:"0 0 100 140",width:.7*n,height:.98*n,"aria-hidden":"true",children:(0,r.jsx)("g",{fill:i,opacity:"0.85",children:[[50,50],[30,90],[70,90]].map((e,t)=>{let[n,i]=e;return(0,r.jsxs)("g",{transform:"translate(".concat(n,",").concat(i,")"),children:[[0,72,144,216,288].map(e=>(0,r.jsx)("ellipse",{cx:"0",cy:"-9",rx:"5",ry:"9",transform:"rotate(".concat(e,")")},e)),(0,r.jsx)("circle",{cx:"0",cy:"0",r:"3",fill:a.bgGradient[1]})]},t)})})});default:return null}}function x(e){let{index:t,isWinCard:a,isFlipped:n,isPicked:i,disabled:s,flipDuration:c,theme:l,cardSize:o,prizeImageUrl:d,noWinImageUrl:u,winLabel:f,loseLabel:x,onPick:p}=e,h=1.35*o;return(0,r.jsx)("button",{type:"button",disabled:s,onClick:p,className:"relative ".concat(s?"":"cursor-pointer hover:-translate-y-1 active:translate-y-0"," transition-transform"),style:{width:o,height:h,perspective:800},"data-testid":"card-flip-card-".concat(t),"data-is-flipped":n,"data-is-picked":i,"data-is-win-card":a,"aria-label":"card-".concat(t),children:(0,r.jsxs)("div",{className:"relative w-full h-full",style:{transformStyle:"preserve-3d",transform:n?"rotateY(180deg)":"rotateY(0deg)",transition:"transform ".concat(c,"s cubic-bezier(0.4, 0, 0.2, 1)")},children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl overflow-hidden flex items-center justify-center",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",background:"linear-gradient(135deg, ".concat(l.bgGradient[0],", ").concat(l.bgGradient[1],")"),border:"3px solid ".concat(l.borderColor),boxShadow:"0 6px 14px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.2)"},children:(0,r.jsx)(m,{pattern:l.pattern,theme:l,size:o})}),(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl overflow-hidden flex flex-col items-center justify-center p-2",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)",background:l.faceBg,border:"3px solid ".concat(i?l.winAccent:l.faceBorder),boxShadow:i?"0 0 24px ".concat(l.winAccent,"55, 0 6px 14px rgba(0,0,0,0.25)"):"0 6px 14px rgba(0,0,0,0.18)"},children:a?(0,r.jsxs)(r.Fragment,{children:[d?(0,r.jsx)("img",{src:d,alt:"",className:"w-full max-h-[60%] object-contain",draggable:!1}):(0,r.jsx)("div",{style:{color:l.winAccent,fontSize:.5*o},children:"★"}),(0,r.jsx)("p",{className:"mt-1 font-bold text-center text-xs leading-tight",style:{color:l.winAccent},children:f})]}):(0,r.jsxs)(r.Fragment,{children:[u?(0,r.jsx)("img",{src:u,alt:"",className:"w-full max-h-[60%] object-contain opacity-70",draggable:!1}):(0,r.jsx)("div",{className:"opacity-50",style:{fontSize:.45*o},children:"✕"}),(0,r.jsx)("p",{className:"mt-1 text-xs font-medium text-gray-400 text-center leading-tight",children:x})]})})]})})}function p(e){let{game_config:t,is_win:a,won_prize:n,no_win_image_url:m,gamePhase:p,onStartGame:h,onGameComplete:y}=e,b=(0,c.b)(),{t:g}=(0,l.$)(b),j=function(e){let t="number"==typeof e.card_back_style_id?e.card_back_style_id:1;return{cardBackStyleId:t,cardCount:"number"==typeof e.card_count&&[3,6,9,12].includes(e.card_count)?e.card_count:6,flipDuration:"number"==typeof e.flip_duration?Math.max(.4,Math.min(2,e.flip_duration)):.8,revealOthersAfterPick:!0===e.reveal_others_after_pick}}(t),w=(0,u.E5)(j.cardBackStyleId),k=(0,u.bF)(j.cardCount),v=(0,s.useMemo)(()=>Math.floor(Math.random()*j.cardCount),[j.cardCount]),[T,N]=(0,s.use
1State)(null),[z,C]=(0,s.useState)(new Set),[_,A]=(0,s.useState)(!1),[L,V]=(0,s.useState)(!1),[M,S]=(0,s.useState)(!1),B=(0,s.useRef)(!1),R=(0,s.useRef)(!1),{play:Q,muted:F,toggleMute:G}=(0,o.w)({spin:d.w4,tick:d.Yf,win:d.QQ,lose:d.gL}),W=(0,s.useCallback)(e=>{null===T&&"ready"===p&&(S(!1),Q("tick"),f(30),h(),N(e),C(new Set([e])),setTimeout(()=>{Q(a?"win":"lose"),a&&f([100,50,100,50,200]),j.revealOthersAfterPick?setTimeout(()=>{let e=new Set;for(let t=0;t<j.cardCount;t++)e.add(t);C(e),setTimeout(()=>{A(!0),B.current||(B.current=!0,y())},1e3*j.flipDuration+300)},500):(A(!0),B.current||(B.current=!0,y()))},1e3*j.flipDuration))},[T,p,h,y,j.flipDuration,j.revealOthersAfterPick,j.cardCount,a,Q]);(0,s.useEffect)(()=>{"result"!==p||_||A(!0)},[p,_]),(0,s.useEffect)(()=>{if("ready"===p&&null===T&&!R.current){R.current=!0,S(!0);let e=setTimeout(()=>S(!1),3e3);return()=>clearTimeout(e)}},[p,T]);let q=j.cardCount<=3?96:j.cardCount<=6?86:j.cardCount<=9?76:66,D=g("play.cardFlip.winLabel"),E=g("play.cardFlip.loseLabel"),O=(0,s.useCallback)(e=>e===T?a:!a&&e===v&&e!==T,[T,a,v]);return(0,r.jsxs)("div",{style:{minHeight:340,background:"linear-gradient(180deg, ".concat(w.bgGradient[0],"15, ").concat(w.bgGradient[1],"25)")},"data-testid":"card-flip-game",className:"jsx-4031fdf7510a5bcd relative flex flex-col items-center justify-center rounded-2xl overflow-visible py-6 px-4 sm:py-8",children:[(0,r.jsx)("button",{type:"button",onClick:G,"aria-label":g(F?"play.sound.unmute":"play.sound.mute"),"data-testid":"card-flip-mute-btn",className:"jsx-4031fdf7510a5bcd absolute top-2 right-2 z-30 flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-gray-500 shadow-sm transition-colors hover:bg-white cursor-pointer",children:F?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-4031fdf7510a5bcd h-4 w-4",children:[(0,r.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",className:"jsx-4031fdf7510a5bcd"}),(0,r.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15",className:"jsx-4031fdf7510a5bcd"}),(0,r.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15",className:"jsx-4031fdf7510a5bcd"})]}):(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-4031fdf7510a5bcd h-4 w-4",children:[(0,r.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",className:"jsx-4031fdf7510a5bcd"}),(0,r.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",className:"jsx-4031fdf7510a5bcd"}),(0,r.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",className:"jsx-4031fdf7510a5bcd"})]})}),(0,r.jsx)("div",{"data-testid":"card-flip-instruction",className:"jsx-4031fdf7510a5bcd mb-4 text-sm font-medium tracking-wide text-gray-600 text-center",children:g(null===T?"play.cardFlip.instruction":"play.cardFlip.revealing")}),(0,r.jsxs)("div",{className:"jsx-4031fdf7510a5bcd relative",children:[M&&null===T&&(0,r.jsx)("div",{"data-testid":"card-flip-pick-hint",className:"jsx-4031fdf7510a5bcd absolute -top-8 left-1/2 -translate-x-1/2 animate-card-pick-hint pointer-events-none z-10",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:w.winAccent,className:"jsx-4031fdf7510a5bcd h-6 w-6 drop-shadow-md",children:(0,r.jsx)("path",{d:"M12 2a1 1 0 0 1 1 1v12.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L11 15.586V3a1 1 0 0 1 1-1z",className:"jsx-4031fdf7510a5bcd"})})}),(0,r.jsx)("div",{style:{gridTemplateColumns:"repeat(".concat(k,", minmax(0, 1fr))")},"data-testid":"card-flip-grid",className:"jsx-4031fdf7510a5bcd grid gap-3",children:Array.from({length:j.cardCount}).map((e,t)=>{var a;return(0,r.jsx)(x,{index:t,isWinCard:O(t),isFlipped:z.has(t),isPicked:t===T,disabled:null!==T,flipDuration:j.flipDuration,theme:w,cardSize:q,prizeImageUrl:O(t)&&null!==(a=null==n?void 0:n.prize_image_url)&&void 0!==a?a:null,noWinImageUrl:O(t)?null:m,winLabel:D,loseLabel:E,onPick:()=>W(t)},t)})})]}),_&&(0,r.jsx)("div",{"data-testid":"card-flip-result",className:"jsx-4031fdf7510a5bcd mt-6 flex flex-col items-center animate-card-result-in",children:a&&n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{style:{color:w.winAccent},"data-testid":"card-flip-result-title",className:"jsx-4031fdf7510a5bcd text-xl font-bold mb-2",children:g("play.cardFlip.resultWin")}),n.prize_image_url&&(0,r.jsx)("button",{type:"button",onClick:()=>V(!0),"data-testid":"card-flip-prize-image-btn",className:"jsx-4031fdf7510a5bcd cursor-pointer",children:(0,r.jsx)("img",{src:n.prize_image_url,alt:n.prize_name,"data-testid":"card-flip-prize-image",className:"jsx-4031fdf7510a5bcd w-24 h-24 object-contain rounded-lg shadow-md bg-white mb-3"})}),(0,r.jsx)("p",{"data-testid":"card-flip-prize-name",className:"jsx-4031fdf7510a5bcd text-lg font-semibold text-gray-800",children:n.prize_name})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{"data-testid":"card-flip-result-title",className:"jsx-4031fdf7510a5bcd text-xl font-bold text-gray-600 mb-2",children:g("play.cardFlip.resultL
1ose")}),m&&(0,r.jsx)("button",{type:"button",onClick:()=>V(!0),"data-testid":"card-flip-no-win-image-btn",className:"jsx-4031fdf7510a5bcd cursor-pointer",children:(0,r.jsx)("img",{src:m,alt:"","data-testid":"card-flip-no-win-image",className:"jsx-4031fdf7510a5bcd w-24 h-24 object-contain rounded-lg shadow-md bg-white"})})]})}),L&&(0,r.jsx)("div",{onClick:()=>V(!1),"data-testid":"card-flip-lightbox",className:"jsx-4031fdf7510a5bcd fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-6",children:(0,r.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"jsx-4031fdf7510a5bcd relative max-w-sm w-full",children:[(0,r.jsx)("img",{src:a&&(null==n?void 0:n.prize_image_url)?n.prize_image_url:m||"",alt:(null==n?void 0:n.prize_name)||"",className:"jsx-4031fdf7510a5bcd w-full object-contain rounded-xl bg-white p-4 shadow-2xl"}),(null==n?void 0:n.prize_name)&&(0,r.jsx)("p",{className:"jsx-4031fdf7510a5bcd mt-3 text-center text-white text-lg font-bold drop-shadow-md",children:n.prize_name}),(0,r.jsx)("button",{type:"button",onClick:()=>V(!1),"data-testid":"card-flip-lightbox-close",className:"jsx-4031fdf7510a5bcd absolute -top-3 -right-3 w-8 h-8 rounded-full bg-white/90 text-gray-600 flex items-center justify-center shadow-md hover:bg-white transition-colors",children:(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"jsx-4031fdf7510a5bcd w-5 h-5",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd",className:"jsx-4031fdf7510a5bcd"})})})]})}),(0,r.jsx)(i(),{id:"4031fdf7510a5bcd",children:"@-webkit-keyframes card-result-in{0%{opacity:0;-webkit-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-webkit-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@-moz-keyframes card-result-in{0%{opacity:0;-moz-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-moz-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@-o-keyframes card-result-in{0%{opacity:0;-o-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-o-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@keyframes card-result-in{0%{opacity:0;-webkit-transform:translatey(20px)scale(.95);-moz-transform:translatey(20px)scale(.95);-o-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-webkit-transform:translatey(0)scale(1);-moz-transform:translatey(0)scale(1);-o-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}.animate-card-result-in.jsx-4031fdf7510a5bcd{-webkit-animation:card-result-in 500ms ease-out forwards;-moz-animation:card-result-in 500ms ease-out forwards;-o-animation:card-result-in 500ms ease-out forwards;animation:card-result-in 500ms ease-out forwards}@-webkit-keyframes card-pick-hint{0%,100%{-webkit-transform:translate(-50%,-4px);transform:translate(-50%,-4px);opacity:.7}50%{-webkit-transform:translate(-50%,4px);transform:translate(-50%,4px);opacity:1}}@-moz-keyframes card-pick-hint{0%,100%{-moz-transform:translate(-50%,-4px);transform:translate(-50%,-4px);opacity:.7}50%{-moz-transform:translate(-50%,4px);transform:translate(-50%,4px);opacity:1}}@-o-keyframes card-pick-hint{0%,100%{-o-transform:translate(-50%,-4px);transform:translate(-50%,-4px);opacity:.7}50%{-o-transform:translate(-50%,4px);transform:translate(-50%,4px);opacity:1}}@keyframes card-pick-hint{0%,100%{-webkit-transform:translate(-50%,-4px);-moz-transform:translate(-50%,-4px);-o-transform:translate(-50%,-4px);transform:translate(-50%,-4px);opacity:.7}50%{-webkit-transform:translate(-50%,4px);-moz-transform:translate(-50%,4px);-o-transform:translate(-50%,4px);transform:translate(-50%,4px);opacity:1}}.animate-card-pick-hint.jsx-4031fdf7510a5bcd{-webkit-animation:card-pick-hint 1.2s ease-in-out infinite;-moz-animation:card-pick-hint 1.2s ease-in-out infinite;-o-animation:card-pick-hint 1.2s ease-in-out infinite;animation:card-pick-hint 1.2s ease-in-out infinite}"})]})}},73890:function(e,t,a){a.d(t,{w:function(){return n}});var r=a(2265);function n(e){let t=(0,r.useRef)(e);t.current=e;let[a,n]=(0,r.useState)(!1),i=(0,r.useRef)(a);return i.current=a,{play:(0,r.useCallback)(e=>{if(i.current)return;let a=t.current[e];if(a)try{a()}catch(e){}},[]),muted:a,toggleMute:(0,r.useCallback)(()=>{n(e=>!e)},[])}}},28354:function(e,t,a){a.d(t,{QQ:function(){return o},Tw:function(){return u},Yf:function(){return x},ZQ:function(){return f},gL:function(){return d},q2:function(){return s},tn:function(){return c},vS:function(){return l},w4:function(){return m}});let r=null;function n(){try{return r||(r=new(window.AudioContext||window.webkitAudioContext)),"suspended"===r.state&&r.resume(),r}catch(e){return null}}function i(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sine",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.15,i=n();if(!i)return;let s=i.createOscillator(),c=i.createGain();s.type=a,s.frequency.setValueAtTime(e,i.currentTime),c.gain.setValueAtTime(r,i.currentTime),c.gain.exponentialRampToValueAtTime(.001,i.currentTime+t),s.connect(c),c.connect(i.destination),s.start(i.currentTime),s.stop(i.currentTime+t)}
1function s(){i(880,.06,"sine",.12)}function c(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="sawtooth",t.frequency.setValueAtTime(600,e.currentTime),t.frequency.exponentialRampToValueAtTime(200,e.currentTime+.2),a.gain.setValueAtTime(.1,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.25),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.25)}function l(){[523,659,784].forEach((e,t)=>{setTimeout(()=>i(e,.1,"triangle",.1),80*t)})}function o(){[523,659,784,1047].forEach((e,t)=>{setTimeout(()=>i(e,.15,"sine",.12),120*t)})}function d(){i(440,.18,"sine",.08),setTimeout(()=>i(330,.22,"sine",.06),150)}function u(){let e=n();if(!e)return;let t=.03*e.sampleRate,a=e.createBuffer(1,t,e.sampleRate),r=a.getChannelData(0);for(let e=0;e<t;e++)r[e]=(2*Math.random()-1)*.3;let i=e.createBufferSource();i.buffer=a;let s=e.createGain();s.gain.setValueAtTime(.08,e.currentTime),s.gain.exponentialRampToValueAtTime(.001,e.currentTime+.04),i.connect(s),s.connect(e.destination),i.start(e.currentTime)}function f(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="sine",t.frequency.setValueAtTime(300,e.currentTime),t.frequency.exponentialRampToValueAtTime(800,e.currentTime+.3),a.gain.setValueAtTime(.12,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.35),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.35)}function m(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="triangle",t.frequency.setValueAtTime(200,e.currentTime),t.frequency.exponentialRampToValueAtTime(600,e.currentTime+.4),a.gain.setValueAtTime(.1,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.45),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.45)}function x(){i(1200,.02,"square",.1)}}}]);

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.