PageSourceSearch

https://www.flex-tools.com/_next/static/chunks/6646.3bafc25f104c2780.js

js flex-tools.com collected 2026-09-24 09:22:41 UTC 4,757 bytes, 1 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fd9d10c9-6753-4d9c-af71-734584c3d952",e._sentryDebugIdIdentifier="sentry-dbid-fd9d10c9-6753-4d9c-af71-734584c3d952")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6646],{66646:(e,t,s)=>{s.r(t),s.d(t,{SSAParser:()=>p,default:()=>g});var a=s(89755);let l=/^Format:[\s\t]*/,i=/^Style:[\s\t]*/,r=/^Dialogue:[\s\t]*/,n=/[\s\t]*,[\s\t]*/,c=/\{[^}]+\}/g,h=/\\N/g,o=/^\[(.*)[\s\t]?Styles\]$/,u=/^\[(.*)[\s\t]?Events\]$/;class p{h;O=0;c=null;l=[];m=[];N=null;f;P={};async init(e){this.h=e,e.errors&&(this.f=(await s.e(8734).then(s.bind(s,38734))).ParseErrorBuilder)}parse(e,t){if(this.O)switch(this.O){case 1:if(""===e)this.O=0;else if(i.test(e))if(this.N){let t=e.replace(i,"").split(n);this.S(t)}else this.g(this.f?.T("Style",t));else l.test(e)?this.N=e.replace(l,"").split(n):u.test(e)&&(this.N=null,this.O=2);break;case 2:if(""===e)this.Q();else if(r.test(e))if(this.Q(),this.N){let s=e.replace(r,"").split(n),a=this.U(s,t);a&&(this.c=a)}else this.g(this.f?.T("Dialogue",t));else this.c?this.c.text+="\n"+e.replace(c,"").replace(h,"\n"):l.test(e)?this.N=e.replace(l,"").split(n):o.test(e)?(this.N=null,this.O=1):u.test(e)&&(this.N=null)}else""===e||(o.test(e)?(this.N=null,this.O=1):u.test(e)&&(this.N=null,this.O=2))}done(){return{metadata:{},cues:this.l,regions:[],errors:this.m}}Q(){this.c&&(this.l.push(this.c),this.h.onCue?.(this.c),this.c=null)}S(e){let t="Default",s={},a,l="center",i="bottom",r,n=1.2,c,h,o=3,u=[];for(let p=0;p<this.N.length;p++){let d=this.N[p],g=e[p];switch(d){case"Name":t=g;break;case"Fontname":s["font-family"]=g;break;case"Fontsize":s["font-size"]=`calc(${g} / var(--overlay-height))`;break;case"PrimaryColour":let b=f(g);b&&(s["--cue-color"]=b);break;case"BorderStyle":o=parseInt(g,10);break;case"BackColour":h=f(g);break;case"OutlineColour":let k=f(g);k&&(c=k);break;case"Bold":parseInt(g)&&(s["font-weight"]="bold");break;case"Italic":parseInt(g)&&(s["font-style"]="italic");break;case"Underline":parseInt(g)&&(s["text-decoration"]="underline");break;case"StrikeOut":parseInt(g)&&(s["text-decoration"]="line-through");break;case"Spacing":s["letter-spacing"]=g+"px";break;case"AlphaLevel":s.opacity=parseFloat(g);break;case"ScaleX":u.push(`scaleX(${parseFloat(g)/100})`);break;case"ScaleY":u.push(`scaleY(${parseFloat(g)/100})`);break;case"Angle":u.push(`rotate(${g}deg)`);break;case"Shadow":n=1.2*parseInt(g,10);break;case"MarginL":s["--cue-width"]="auto",s["--cue-left"]=parseFloat(g)+"px";break;case"MarginR":s["--cue-width"]="auto",s["--cue-right"]=parseFloat(g)+"px";break;case"MarginV":r=parseFloat(g);break;case"Outline":a=parseInt(g,10);break;case"Alignment":let y=parseInt(g,10);switch(y>=4&&(i=y>=7?"top":"center"),y%3){case 1:l="start";break;case 2:l="center";break;case 3:l="end"}}}if(s.R=i,s["--cue-white-space"]="normal",s["--cue-line-height"]="normal",s["--cue-text-align"]=l,"center"===i?(s["--cue-top"]="50%",u.push("translateY(-50%)")):s[`--cue-${i}`]=(r||0)+"px",1===o&&(s["--cue-padding-y"]="0"),(1===o||h)&&(s["--cue-bg-color"]=1===o?"none":h),3===o&&c&&(s["--cue-outline"]=`${a}px solid ${c}`),1===o&&"number"==typeof a){let e=h??"#000";s["--cue-text-shadow"]=[c&&d(1.2*a,1.2*n,c),c?d(a/2*a,a/2*n,e):d(a,n,e)].filter(Boolean).join(", ")}u.length&&(s["--cue-transform"]=u.join(" ")),this.P[t]=s}U(e,t){let s=this.V(e),l=this.q(s.Start,s.End,t);if(!l)return;let i=new a.b(l[0],l[1],""),r={...this.P[s.Style]||{}},n=s.Name?`<v ${s.Name}>`:"",o=r.R,u=s.MarginL&&parseFloat(s.MarginL),p=s.MarginR&&parseFloat(s.MarginR),f=s.MarginV&&parseFloat(s.MarginV);return u&&(r["--cue-width"]="auto",r["--cue-left"]=u+"px"),p&&(r["--cue-width"]="auto",r["--cue-right"]=p+"px"),f&&"center"!==o&&(r[`--cue-${o}`]=f+"px"),i.text=n+e.slice(this.N.length-1).join(", ").replace(c,"").replace(h,"\n"),delete r.R,Object.keys(r).length&&(i.style=r),i}V(e){let t={};for(let s=0;s<this.N.length;s++)t[this.N[s]]=e[s];return t}q(e,t,s){let l=(0,a.p)(e),i=(0,a.p)(t);if(null!==l&&null!==i&&i>l)return[l,i];null===l&&this.g(this.f?.s(e,s)),null===i&&this.g(this.f?.t(t,s)),null!=l&&null!==i&&i>l&&this.g(this.f?.u(l,i,s))}g(e){if(e){if(this.m.push(e),this.h.strict)throw this.h.cancel(),e;this.h.onError?.(e)}}}function f(e){let t=parseInt(e.replace("&H",""),16);return t>=0?"rgba("+[255&t,t>>8&255,t>>16&255,(t>>24&255^255)/255].join(",")+")":null}function d(e,t,s){let a=Math.ceil(2*Math.PI*e),l="";for(let i=0;i<a;i++){let r=2*Math.PI*i/a;l+=e*Math.cos(r)+"px "+t*Math.sin(r)+"px 0 "+s+(i==a-1?"":",")}return l}function g(){return new p}}}]);

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.