PageSourceSearch

https://cambriancollege.ca/_next/static/chunks/1573.385d4462aeac7185.js

js cambriancollege.ca collected 2026-10-01 11:37:50 UTC 4,373 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1573],{41573:(e,t,s)=>{s.r(t),s.d(t,{SSAParser:()=>p,default:()=>b});var a=s(64802);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(1197).then(s.bind(s,51197))).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 f=this.N[p],b=e[p];switch(f){case"Name":t=b;break;case"Fontname":s["font-family"]=b;break;case"Fontsize":s["font-size"]=`calc(${b} / var(--overlay-height))`;break;case"PrimaryColour":let k=g(b);k&&(s["--cue-color"]=k);break;case"BorderStyle":o=parseInt(b,10);break;case"BackColour":h=g(b);break;case"OutlineColour":let d=g(b);d&&(c=d);break;case"Bold":parseInt(b)&&(s["font-weight"]="bold");break;case"Italic":parseInt(b)&&(s["font-style"]="italic");break;case"Underline":parseInt(b)&&(s["text-decoration"]="underline");break;case"StrikeOut":parseInt(b)&&(s["text-decoration"]="line-through");break;case"Spacing":s["letter-spacing"]=b+"px";break;case"AlphaLevel":s.opacity=parseFloat(b);break;case"ScaleX":u.push(`scaleX(${parseFloat(b)/100})`);break;case"ScaleY":u.push(`scaleY(${parseFloat(b)/100})`);break;case"Angle":u.push(`rotate(${b}deg)`);break;case"Shadow":n=1.2*parseInt(b,10);break;case"MarginL":s["--cue-width"]="auto",s["--cue-left"]=parseFloat(b)+"px";break;case"MarginR":s["--cue-width"]="auto",s["--cue-right"]=parseFloat(b)+"px";break;case"MarginV":r=parseFloat(b);break;case"Outline":a=parseInt(b,10);break;case"Alignment":let N=parseInt(b,10);switch(N>=4&&(i=N>=7?"top":"center"),N%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&&f(1.2*a,1.2*n,c),c?f(a/2*a,a/2*n,e):f(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),g=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"),g&&"center"!==o&&(r[`--cue-${o}`]=g+"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 g(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 f(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 b(){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.