loopat 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{a as e,n as t,o as n,t as r}from"./jsx-runtime-Bt-cYkS5.js";var i=n(t(),1),a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,r)=>{for(var i=r>1?void 0:r?o(t,n):t,s=e.length-1,c;s>=0;s--)(c=e[s])&&(i=(r?c(t,n,i):c(i))||i);return r&&i&&a(t,n,i),i},l=(e,t)=>(n,r)=>t(n,r,e),u=`Terminal input`,d={get:()=>u,set:e=>u=e},f=`Too much output to announce, navigate to rows manually to read`,p={get:()=>f,set:e=>f=e};function m(e){return e.replace(/\r?\n/g,`\r`)}function h(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function g(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function _(e,t,n,r){e.stopPropagation(),e.clipboardData&&v(e.clipboardData.getData(`text/plain`),t,n,r)}function v(e,t,n,r){e=m(e),e=h(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function y(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function b(e,t,n,r,i){y(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function x(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function S(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ee=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},C=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},w=``,T=` `,E=class e{constructor(){this.fg=0,this.bg=0,this.extended=new D}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},D=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},O=class e extends E{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new D,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?x(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},k=`di$target`,A=`di$dependencies`,j=new Map;function M(e){return e[A]||[]}function N(e){if(j.has(e))return j.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);P(t,e,r)};return t._id=e,j.set(e,t),t}function P(e,t,n){t[k]===t?t[A].push({id:e,index:n}):(t[A]=[{id:e,index:n}],t[k]=t)}var F=N(`BufferService`),te=N(`CoreMouseService`),ne=N(`CoreService`),re=N(`CharsetService`),ie=N(`InstantiationService`),ae=N(`LogService`),I=N(`OptionsService`),oe=N(`OscLinkService`),se=N(`UnicodeService`),ce=N(`DecorationService`),le=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new O,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):ue(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};le=c([l(0,F),l(1,I),l(2,oe)],le);function ue(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{a as e,n as t,o as n,t as r}from"./jsx-runtime-DAYmCNe8.js";var i=n(t(),1),a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,r)=>{for(var i=r>1?void 0:r?o(t,n):t,s=e.length-1,c;s>=0;s--)(c=e[s])&&(i=(r?c(t,n,i):c(i))||i);return r&&i&&a(t,n,i),i},l=(e,t)=>(n,r)=>t(n,r,e),u=`Terminal input`,d={get:()=>u,set:e=>u=e},f=`Too much output to announce, navigate to rows manually to read`,p={get:()=>f,set:e=>f=e};function m(e){return e.replace(/\r?\n/g,`\r`)}function h(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function g(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function _(e,t,n,r){e.stopPropagation(),e.clipboardData&&v(e.clipboardData.getData(`text/plain`),t,n,r)}function v(e,t,n,r){e=m(e),e=h(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function y(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function b(e,t,n,r,i){y(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function x(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function S(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ee=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},C=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}else this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},w=``,T=` `,E=class e{constructor(){this.fg=0,this.bg=0,this.extended=new D}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return(this.fg&50331648)==0}isBgDefault(){return(this.bg&50331648)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},D=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},O=class e extends E{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new D,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?x(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},k=`di$target`,A=`di$dependencies`,j=new Map;function M(e){return e[A]||[]}function N(e){if(j.has(e))return j.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);P(t,e,r)};return t._id=e,j.set(e,t),t}function P(e,t,n){t[k]===t?t[A].push({id:e,index:n}):(t[A]=[{id:e,index:n}],t[k]=t)}var F=N(`BufferService`),te=N(`CoreMouseService`),ne=N(`CoreService`),re=N(`CharsetService`),ie=N(`InstantiationService`),ae=N(`LogService`),I=N(`OptionsService`),oe=N(`OscLinkService`),se=N(`UnicodeService`),ce=N(`DecorationService`),le=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new O,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(!(c===-1&&!n.hasContent(t))){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId)if(c===-1){c=t,s=a.extended.urlId;continue}else l=a.extended.urlId!==s;else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):ue(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};le=c([l(0,F),l(1,I),l(2,oe)],le);function ue(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var de=N(`CharSizeService`),fe=N(`CoreBrowserService`),pe=N(`MouseService`),me=N(`RenderService`),he=N(`SelectionService`),ge=N(`CharacterJoinerService`),_e=N(`ThemeService`),L=N(`LinkProviderService`),ve=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?we.isErrorNoTelemetry(e)?new we(e.message+`
4
4
 
@@ -168,7 +168,7 @@ ${s.join(`
168
168
  `))}},jh=class extends Error{constructor(e,t){super(e),this.name=`ListenerLeakError`,this.stack=t}},Mh=class extends Error{constructor(e,t){super(e),this.name=`ListenerRefusalError`,this.stack=t}},Nh=0,Ph=class{constructor(e){this.value=e,this.id=Nh++}},Fh=2,Ih=(e,t)=>{if(e instanceof Ph)t(e);else for(let n=0;n<e.length;n++){let r=e[n];r&&t(r)}},Lh;if(xh){let e=[];setInterval(()=>{e.length!==0&&(console.warn(`[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:`),console.warn(e.join(`
169
169
  `)),e.length=0)},3e3),Lh=new FinalizationRegistry(t=>{typeof t==`string`&&e.push(t)})}var Rh=class{constructor(e){this._size=0,this._options=e,this._leakageMon=Dh>0||this._options?.leakWarningThreshold?new kh(e?.onListenerError??Um,this._options?.leakWarningThreshold??Dh):void 0,this._perfMon=this._options?._profName?new Eh(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(Sh){let e=this._listeners;queueMicrotask(()=>{Ih(e,e=>e.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new Mh(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||Um)(n),_h.None}if(this._disposed)return _h.None;t&&(e=e.bind(t));let r=new Ph(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Ah.create(),i=this._leakageMon.check(r.stack,this._size+1)),Sh&&(r.stack=Ah.create()),this._listeners?this._listeners instanceof Ph?(this._deliveryQueue??=new zh,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let a=mh(()=>{Lh?.unregister(a),i?.(),this._removeListener(r)});if(n instanceof gh?n.add(a):Array.isArray(n)&&n.push(a),Lh){let e=Error().stack.split(`
170
170
  `).slice(2,3).join(`
171
- `).trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);Lh.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*Fh<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Um;if(!n){e.value(t);return}try{e.value(t)}catch(e){n(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Ph)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},zh=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Bh=class e{constructor(){this._providers=Object.create(null),this._active=``,this._onChange=new Rh,this.onChange=this._onChange.event;let e=new Vm;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return(e&1)!=0}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,t,n=!1){return(e&16777215)<<3|(t&3)<<1|!!n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let a=0;a<i;++a){let o=t.charCodeAt(a);if(55296<=o&&o<=56319){if(++a>=i)return n+this.wcwidth(o);let e=t.charCodeAt(a);56320<=e&&e<=57343?o=(o-55296)*1024+e-56320+65536:n+=this.wcwidth(e)}let s=this.charProperties(o,r),c=e.extractWidth(s);e.extractShouldJoin(s)&&(c-=e.extractWidth(r)),n+=c,r=s}return n}charProperties(e,t){return this._activeProvider.charProperties(e,t)}},Vh=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],Hh=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],Uh=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],Wh=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]],Gh;function Kh(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var qh=class{constructor(){if(this.version=`11`,!Gh){Gh=new Uint8Array(65536),Gh.fill(1),Gh[0]=0,Gh.fill(0,1,32),Gh.fill(0,127,160);for(let e=0;e<Vh.length;++e)Gh.fill(0,Vh[e][0],Vh[e][1]+1);for(let e=0;e<Uh.length;++e)Gh.fill(2,Uh[e][0],Uh[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?Gh[e]:Kh(e,Hh)?0:Kh(e,Wh)?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=Bh.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return Bh.createPropertyValue(0,n,r)}},Jh=class{activate(e){e.unicode.register(new qh)}dispose(){}},Yh=Object.create,Xh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Qh=Object.getOwnPropertyNames,$h=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty,tg=(t=>typeof e<`u`?e:typeof Proxy<`u`?new Proxy(t,{get:(t,n)=>(typeof e<`u`?e:t)[n]}):t)(function(t){if(typeof e<`u`)return e.apply(this,arguments);throw Error(`Dynamic require of "`+t+`" is not supported`)}),$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ng=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Qh(t))!eg.call(e,i)&&i!==n&&Xh(e,i,{get:()=>t[i],enumerable:!(r=Zh(t,i))||r.enumerable});return e},rg=(e,t,n)=>(n=e==null?{}:Yh($h(e)),ng(t||!e||!e.__esModule?Xh(n,`default`,{value:e,enumerable:!0}):n,e)),ig=$((e,t)=>{(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.opentype=n.opentype||{})})(e,function(e){var t=0,n=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var a=new r,o=new r,s=new Uint8Array(30),c=new Uint16Array(30),l=new Uint8Array(30),u=new Uint16Array(30),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new r,p=new Uint8Array(320);function m(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function h(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var g=new Uint16Array(16);function _(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)g[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[g[t[n+i]]++]=i)}function v(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function y(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function b(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function x(e,t,n){var r,i,a,o,s,c;for(r=y(e,5,257),i=y(e,5,1),a=y(e,4,4),o=0;o<19;++o)p[o]=0;for(o=0;o<a;++o){var l=y(e,3,0);p[d[o]]=l}for(_(f,p,0,19),s=0;s<r+i;){var u=b(e,f);switch(u){case 16:var m=p[s-1];for(c=y(e,2,3);c;--c)p[s++]=m;break;case 17:for(c=y(e,3,3);c;--c)p[s++]=0;break;case 18:for(c=y(e,7,11);c;--c)p[s++]=0;break;default:p[s++]=u;break}}_(t,p,0,r),_(n,p,r,i)}function S(e,n,r){for(;;){var i=b(e,n);if(i===256)return t;if(i<256)e.dest[e.destLen++]=i;else{var a,o,d,f;for(i-=257,a=y(e,s[i],c[i]),o=b(e,r),d=e.destLen-y(e,l[o],u[o]),f=d;f<d+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function ee(e){for(var r,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(r=e.source[e.sourceIndex+1],r=256*r+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],r!==(~i&65535))return n;for(e.sourceIndex+=4,a=r;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,t}function C(e,r){var s=new i(e,r),c,l,u;do{switch(c=v(s),l=y(s,2,0),l){case 0:u=ee(s);break;case 1:u=S(s,a,o);break;case 2:x(s,s.ltree,s.dtree),u=S(s,s.ltree,s.dtree);break;default:u=n}if(u!==t)throw Error(`Data error`)}while(!c);return s.destLen<s.dest.length?typeof s.dest.slice==`function`?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest}h(a,o),m(s,c,4,3),m(l,u,2,1),s[28]=0,c[28]=258;var w=C;function T(e,t,n,r,i){return(1-i)**3*e+3*(1-i)**2*i*t+3*(1-i)*i**2*n+i**3*r}function E(){this.x1=NaN,this.y1=NaN,this.x2=NaN,this.y2=NaN}E.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},E.prototype.addPoint=function(e,t){typeof e==`number`&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t==`number`&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},E.prototype.addX=function(e){this.addPoint(e,null)},E.prototype.addY=function(e){this.addPoint(null,e)},E.prototype.addBezier=function(e,t,n,r,i,a,o,s){var c=this,l=[e,t],u=[n,r],d=[i,a],f=[o,s];this.addPoint(e,t),this.addPoint(o,s);for(var p=0;p<=1;p++){var m=6*l[p]-12*u[p]+6*d[p],h=-3*l[p]+9*u[p]-9*d[p]+3*f[p],g=3*u[p]-3*l[p];if(h===0){if(m===0)continue;var _=-g/m;0<_&&_<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],_)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],_)));continue}var v=m**2-4*g*h;if(!(v<0)){var y=(-m+Math.sqrt(v))/(2*h);0<y&&y<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],y)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],y)));var b=(-m-Math.sqrt(v))/(2*h);0<b&&b<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],b)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],b)))}}},E.prototype.addQuad=function(e,t,n,r,i,a){var o=e+.6666666666666666*(n-e),s=t+2/3*(r-t),c=o+1/3*(i-e),l=s+1/3*(a-t);this.addBezier(e,t,o,s,c,l,i,a)};function D(){this.commands=[],this.fill=`black`,this.stroke=null,this.strokeWidth=1}D.prototype.moveTo=function(e,t){this.commands.push({type:`M`,x:e,y:t})},D.prototype.lineTo=function(e,t){this.commands.push({type:`L`,x:e,y:t})},D.prototype.curveTo=D.prototype.bezierCurveTo=function(e,t,n,r,i,a){this.commands.push({type:`C`,x1:e,y1:t,x2:n,y2:r,x:i,y:a})},D.prototype.quadTo=D.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:`Q`,x1:e,y1:t,x:n,y:r})},D.prototype.close=D.prototype.closePath=function(){this.commands.push({type:`Z`})},D.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof E){var t=e;this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),this.close();return}Array.prototype.push.apply(this.commands,e)},D.prototype.getBoundingBox=function(){for(var e=this,t=new E,n=0,r=0,i=0,a=0,o=0;o<this.commands.length;o++){var s=e.commands[o];switch(s.type){case`M`:t.addPoint(s.x,s.y),n=i=s.x,r=a=s.y;break;case`L`:t.addPoint(s.x,s.y),i=s.x,a=s.y;break;case`Q`:t.addQuad(i,a,s.x1,s.y1,s.x,s.y),i=s.x,a=s.y;break;case`C`:t.addBezier(i,a,s.x1,s.y1,s.x2,s.y2,s.x,s.y),i=s.x,a=s.y;break;case`Z`:i=n,a=r;break;default:throw Error(`Unexpected path command `+s.type)}}return t.isEmpty()&&t.addPoint(0,0),t},D.prototype.draw=function(e){var t=this;e.beginPath();for(var n=0;n<this.commands.length;n+=1){var r=t.commands[n];r.type===`M`?e.moveTo(r.x,r.y):r.type===`L`?e.lineTo(r.x,r.y):r.type===`C`?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):r.type===`Q`?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):r.type===`Z`&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},D.prototype.toPathData=function(e){var t=this;e=e===void 0?2:e;function n(t){return Math.round(t)===t?``+Math.round(t):t.toFixed(e)}function r(){for(var e=arguments,t=``,r=0;r<arguments.length;r+=1){var i=e[r];i>=0&&r>0&&(t+=` `),t+=n(i)}return t}for(var i=``,a=0;a<this.commands.length;a+=1){var o=t.commands[a];o.type===`M`?i+=`M`+r(o.x,o.y):o.type===`L`?i+=`L`+r(o.x,o.y):o.type===`C`?i+=`C`+r(o.x1,o.y1,o.x2,o.y2,o.x,o.y):o.type===`Q`?i+=`Q`+r(o.x1,o.y1,o.x,o.y):o.type===`Z`&&(i+=`Z`)}return i},D.prototype.toSVG=function(e){var t=`<path d="`;return t+=this.toPathData(e),t+=`"`,this.fill&&this.fill!==`black`&&(this.fill===null?t+=` fill="none"`:t+=` fill="`+this.fill+`"`),this.stroke&&(t+=` stroke="`+this.stroke+`" stroke-width="`+this.strokeWidth+`"`),t+=`/>`,t},D.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return n.setAttribute(`d`,t),n};function O(e){throw Error(e)}function k(e,t){e||O(t)}var A={fail:O,argument:k,assert:k},j=32768,M=2147483648,N={},P={},F={};function te(e){return function(){return e}}P.BYTE=function(e){return A.argument(e>=0&&e<=255,`Byte value should be between 0 and 255.`),[e]},F.BYTE=te(1),P.CHAR=function(e){return[e.charCodeAt(0)]},F.CHAR=te(1),P.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},F.CHARARRAY=function(e){return e.length},P.USHORT=function(e){return[e>>8&255,e&255]},F.USHORT=te(2),P.SHORT=function(e){return e>=j&&(e=-(2*j-e)),[e>>8&255,e&255]},F.SHORT=te(2),P.UINT24=function(e){return[e>>16&255,e>>8&255,e&255]},F.UINT24=te(3),P.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]},F.ULONG=te(4),P.LONG=function(e){return e>=M&&(e=-(2*M-e)),[e>>24&255,e>>16&255,e>>8&255,e&255]},F.LONG=te(4),P.FIXED=P.ULONG,F.FIXED=F.ULONG,P.FWORD=P.SHORT,F.FWORD=F.SHORT,P.UFWORD=P.USHORT,F.UFWORD=F.USHORT,P.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,e&255]},F.LONGDATETIME=te(8),P.TAG=function(e){return A.argument(e.length===4,`Tag should be exactly 4 ASCII characters.`),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},F.TAG=te(4),P.Card8=P.BYTE,F.Card8=F.BYTE,P.Card16=P.USHORT,F.Card16=F.USHORT,P.OffSize=P.BYTE,F.OffSize=F.BYTE,P.SID=P.USHORT,F.SID=F.USHORT,P.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?(e-=108,[(e>>8)+247,e&255]):e>=-1131&&e<=-108?(e=-e-108,[(e>>8)+251,e&255]):e>=-32768&&e<=32767?P.NUMBER16(e):P.NUMBER32(e)},F.NUMBER=function(e){return P.NUMBER(e).length},P.NUMBER16=function(e){return[28,e>>8&255,e&255]},F.NUMBER16=te(3),P.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,e&255]},F.NUMBER32=te(5),P.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat(`1e`+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var i=``,a=0,o=t.length;a<o;a+=1){var s=t[a];s===`e`?i+=t[++a]===`-`?`c`:`b`:s===`.`?i+=`a`:s===`-`?i+=`e`:i+=s}i+=i.length&1?`f`:`ff`;for(var c=[30],l=0,u=i.length;l<u;l+=2)c.push(parseInt(i.substr(l,2),16));return c},F.REAL=function(e){return P.REAL(e).length},P.NAME=P.CHARARRAY,F.NAME=F.CHARARRAY,P.STRING=P.CHARARRAY,F.STRING=F.CHARARRAY,N.UTF8=function(e,t,n){for(var r=[],i=n,a=0;a<i;a++,t+=1)r[a]=e.getUint8(t);return String.fromCharCode.apply(null,r)},N.UTF16=function(e,t,n){for(var r=[],i=n/2,a=0;a<i;a++,t+=2)r[a]=e.getUint16(t);return String.fromCharCode.apply(null,r)},P.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=r&255}return t},F.UTF16=function(e){return e.length*2};var ne={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ\xA0ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»…\xA0ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ…\xA0ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};N.MACSTRING=function(e,t,n,r){var i=ne[r];if(i!==void 0){for(var a=``,o=0;o<n;o++){var s=e.getUint8(t+o);s<=127?a+=String.fromCharCode(s):a+=i[s&127]}return a}};var re=typeof WeakMap==`function`&&new WeakMap,ie,ae=function(e){if(!ie)for(var t in ie={},ne)ie[t]=new String(t);var n=ie[e];if(n!==void 0){if(re){var r=re.get(n);if(r!==void 0)return r}var i=ne[e];if(i!==void 0){for(var a={},o=0;o<i.length;o++)a[i.charCodeAt(o)]=o+128;return re&&re.set(n,a),a}}};P.MACSTRING=function(e,t){var n=ae(t);if(n!==void 0){for(var r=[],i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>=128&&(a=n[a],a===void 0))return;r[i]=a}return r}},F.MACSTRING=function(e,t){var n=P.MACSTRING(e,t);return n===void 0?0:n.length};function I(e){return e>=-128&&e<=127}function oe(e,t,n){for(var r=0,i=e.length;t<i&&r<64&&e[t]===0;)++t,++r;return n.push(128|r-1),t}function se(e,t,n){for(var r=0,i=e.length,a=t;a<i&&r<64;){var o=e[a];if(!I(o)||o===0&&a+1<i&&e[a+1]===0)break;++a,++r}n.push(r-1);for(var s=t;s<a;++s)n.push(e[s]+256&255);return a}function ce(e,t,n){for(var r=0,i=e.length,a=t;a<i&&r<64;){var o=e[a];if(o===0||I(o)&&a+1<i&&I(e[a+1]))break;++a,++r}n.push(64|r-1);for(var s=t;s<a;++s){var c=e[s];n.push(c+65536>>8&255,c+256&255)}return a}P.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=r===0?oe(e,t,n):r>=-128&&r<=127?se(e,t,n):ce(e,t,n)}return n},P.INDEX=function(e){for(var t=1,n=[t],r=[],i=0;i<e.length;i+=1){var a=P.OBJECT(e[i]);Array.prototype.push.apply(r,a),t+=a.length,n.push(t)}if(r.length===0)return[0,0];for(var o=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,c=[void 0,P.BYTE,P.USHORT,P.UINT24,P.ULONG][s],l=0;l<n.length;l+=1){var u=c(n[l]);Array.prototype.push.apply(o,u)}return Array.prototype.concat(P.Card16(e.length),P.OffSize(s),o,r)},F.INDEX=function(e){return P.INDEX(e).length},P.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=parseInt(n[i],0),o=e[a];t=t.concat(P.OPERAND(o.value,o.type)),t=t.concat(P.OPERATOR(a))}return t},F.DICT=function(e){return P.DICT(e).length},P.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},P.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)A.argument(e.length===t.length,`Not enough arguments given for type`+t),n=n.concat(P.OPERAND(e[r],t[r]));else if(t===`SID`)n=n.concat(P.NUMBER(e));else if(t===`offset`)n=n.concat(P.NUMBER32(e));else if(t===`number`)n=n.concat(P.NUMBER(e));else if(t===`real`)n=n.concat(P.REAL(e));else throw Error(`Unknown operand type `+t);return n},P.OP=P.BYTE,F.OP=F.BYTE;var le=typeof WeakMap==`function`&&new WeakMap;P.CHARSTRING=function(e){if(le){var t=le.get(e);if(t!==void 0)return t}for(var n=[],r=e.length,i=0;i<r;i+=1){var a=e[i];n=n.concat(P[a.type](a.value))}return le&&le.set(e,n),n},F.CHARSTRING=function(e){return P.CHARSTRING(e).length},P.OBJECT=function(e){var t=P[e.type];return A.argument(t!==void 0,`No encoding function for type `+e.type),t(e.value)},F.OBJECT=function(e){var t=F[e.type];return A.argument(t!==void 0,`No sizeOf function for type `+e.type),t(e.value)},P.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],i=[],a=0;a<n;a+=1){var o=e.fields[a],s=P[o.type];A.argument(s!==void 0,`No encoding function for field type `+o.type+` (`+o.name+`)`);var c=e[o.name];c===void 0&&(c=o.value);var l=s(c);o.type===`TABLE`?(i.push(t.length),t=t.concat([0,0]),r.push(l)):t=t.concat(l)}for(var u=0;u<r.length;u+=1){var d=i[u],f=t.length;A.argument(f<65536,`Table `+e.tableName+` too big.`),t[d]=f>>8,t[d+1]=f&255,t=t.concat(r[u])}return t},F.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var i=e.fields[r],a=F[i.type];A.argument(a!==void 0,`No sizeOf function for field type `+i.type+` (`+i.name+`)`);var o=e[i.name];o===void 0&&(o=i.value),t+=a(o),i.type===`TABLE`&&(t+=2)}return t},P.RECORD=P.TABLE,F.RECORD=F.TABLE,P.LITERAL=function(e){return e},F.LITERAL=function(e){return e.length};function ue(e,t,n){for(var r=this,i=0;i<t.length;i+=1){var a=t[i];r[a.name]=a.value}if(this.tableName=e,this.fields=t,n)for(var o=Object.keys(n),s=0;s<o.length;s+=1){var c=o[s],l=n[c];r[c]!==void 0&&(r[c]=l)}}ue.prototype.encode=function(){return P.TABLE(this)},ue.prototype.sizeOf=function(){return F.TABLE(this)};function de(e,t,n){n===void 0&&(n=t.length);var r=Array(t.length+1);r[0]={name:e+`Count`,type:`USHORT`,value:n};for(var i=0;i<t.length;i++)r[i+1]={name:e+i,type:`USHORT`,value:t[i]};return r}function fe(e,t,n){var r=t.length,i=Array(r+1);i[0]={name:e+`Count`,type:`USHORT`,value:r};for(var a=0;a<r;a++)i[a+1]={name:e+a,type:`TABLE`,value:n(t[a],a)};return i}function pe(e,t,n){var r=t.length,i=[];i[0]={name:e+`Count`,type:`USHORT`,value:r};for(var a=0;a<r;a++)i=i.concat(n(t[a],a));return i}function me(e){e.format===1?ue.call(this,`coverageTable`,[{name:`coverageFormat`,type:`USHORT`,value:1}].concat(de(`glyph`,e.glyphs))):A.assert(!1,`Can't create coverage table format 2 yet.`)}me.prototype=Object.create(ue.prototype),me.prototype.constructor=me;function he(e){ue.call(this,`scriptListTable`,pe(`scriptRecord`,e,function(e,t){var n=e.script,r=n.defaultLangSys;return A.assert(!!r,`Unable to write GSUB: script `+e.tag+` has no default language system.`),[{name:`scriptTag`+t,type:`TAG`,value:e.tag},{name:`script`+t,type:`TABLE`,value:new ue(`scriptTable`,[{name:`defaultLangSys`,type:`TABLE`,value:new ue(`defaultLangSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:r.reqFeatureIndex}].concat(de(`featureIndex`,r.featureIndexes)))}].concat(pe(`langSys`,n.langSysRecords,function(e,t){var n=e.langSys;return[{name:`langSysTag`+t,type:`TAG`,value:e.tag},{name:`langSys`+t,type:`TABLE`,value:new ue(`langSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:n.reqFeatureIndex}].concat(de(`featureIndex`,n.featureIndexes)))}]})))}]}))}he.prototype=Object.create(ue.prototype),he.prototype.constructor=he;function ge(e){ue.call(this,`featureListTable`,pe(`featureRecord`,e,function(e,t){var n=e.feature;return[{name:`featureTag`+t,type:`TAG`,value:e.tag},{name:`feature`+t,type:`TABLE`,value:new ue(`featureTable`,[{name:`featureParams`,type:`USHORT`,value:n.featureParams}].concat(de(`lookupListIndex`,n.lookupListIndexes)))}]}))}ge.prototype=Object.create(ue.prototype),ge.prototype.constructor=ge;function _e(e,t){ue.call(this,`lookupListTable`,fe(`lookup`,e,function(e){var n=t[e.lookupType];return A.assert(!!n,`Unable to write GSUB lookup type `+e.lookupType+` tables.`),new ue(`lookupTable`,[{name:`lookupType`,type:`USHORT`,value:e.lookupType},{name:`lookupFlag`,type:`USHORT`,value:e.lookupFlag}].concat(fe(`subtable`,e.subtables,n)))}))}_e.prototype=Object.create(ue.prototype),_e.prototype.constructor=_e;var L={Table:ue,Record:ue,Coverage:me,ScriptList:he,FeatureList:ge,LookupList:_e,ushortList:de,tableList:fe,recordList:pe};function ve(e,t){return e.getUint8(t)}function ye(e,t){return e.getUint16(t,!1)}function be(e,t){return e.getInt16(t,!1)}function xe(e,t){return e.getUint32(t,!1)}function Se(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}function Ce(e,t){for(var n=``,r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n}function we(e,t,n){for(var r=0,i=0;i<n;i+=1)r<<=8,r+=e.getUint8(t+i);return r}function Te(e,t,n){for(var r=[],i=t;i<n;i+=1)r.push(e.getUint8(i));return r}function Ee(e){for(var t=``,n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t}var De={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function R(e,t){this.data=e,this.offset=t,this.relativeOffset=0}R.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},R.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},R.prototype.parseCard8=R.prototype.parseByte,R.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},R.prototype.parseCard16=R.prototype.parseUShort,R.prototype.parseSID=R.prototype.parseUShort,R.prototype.parseOffset16=R.prototype.parseUShort,R.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},R.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},R.prototype.parseULong=function(){var e=xe(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},R.prototype.parseOffset32=R.prototype.parseULong,R.prototype.parseFixed=function(){var e=Se(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},R.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r=``;this.relativeOffset+=e;for(var i=0;i<e;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},R.prototype.parseTag=function(){return this.parseString(4)},R.prototype.parseLongDateTime=function(){var e=xe(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},R.prototype.parseVersion=function(e){var t=ye(this.data,this.offset+this.relativeOffset),n=ye(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e===void 0&&(e=4096),t+n/e/10},R.prototype.skip=function(e,t){t===void 0&&(t=1),this.relativeOffset+=De[e]*t},R.prototype.parseULongList=function(e){e===void 0&&(e=this.parseULong());for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint32(r),r+=4;return this.relativeOffset+=e*4,t},R.prototype.parseOffset16List=R.prototype.parseUShortList=function(e){e===void 0&&(e=this.parseUShort());for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint16(r),r+=2;return this.relativeOffset+=e*2,t},R.prototype.parseShortList=function(e){for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getInt16(r),r+=2;return this.relativeOffset+=e*2,t},R.prototype.parseByteList=function(e){for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint8(r++);return this.relativeOffset+=e,t},R.prototype.parseList=function(e,t){var n=this;t||(t=e,e=this.parseUShort());for(var r=Array(e),i=0;i<e;i++)r[i]=t.call(n);return r},R.prototype.parseList32=function(e,t){var n=this;t||(t=e,e=this.parseULong());for(var r=Array(e),i=0;i<e;i++)r[i]=t.call(n);return r},R.prototype.parseRecordList=function(e,t){var n=this;t||(t=e,e=this.parseUShort());for(var r=Array(e),i=Object.keys(t),a=0;a<e;a++){for(var o={},s=0;s<i.length;s++){var c=i[s];o[c]=t[c].call(n)}r[a]=o}return r},R.prototype.parseRecordList32=function(e,t){var n=this;t||(t=e,e=this.parseULong());for(var r=Array(e),i=Object.keys(t),a=0;a<e;a++){for(var o={},s=0;s<i.length;s++){var c=i[s];o[c]=t[c].call(n)}r[a]=o}return r},R.prototype.parseStruct=function(e){var t=this;if(typeof e==`function`)return e.call(this);for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var a=n[i];r[a]=e[a].call(t)}return r},R.prototype.parseValueRecord=function(e){if(e===void 0&&(e=this.parseUShort()),e!==0){var t={};return e&1&&(t.xPlacement=this.parseShort()),e&2&&(t.yPlacement=this.parseShort()),e&4&&(t.xAdvance=this.parseShort()),e&8&&(t.yAdvance=this.parseShort()),e&16&&(t.xPlaDevice=void 0,this.parseShort()),e&32&&(t.yPlaDevice=void 0,this.parseShort()),e&64&&(t.xAdvDevice=void 0,this.parseShort()),e&128&&(t.yAdvDevice=void 0,this.parseShort()),t}},R.prototype.parseValueRecordList=function(){for(var e=this,t=this.parseUShort(),n=this.parseUShort(),r=Array(n),i=0;i<n;i++)r[i]=e.parseValueRecord(t);return r},R.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new R(this.data,this.offset+t).parseStruct(e)},R.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new R(this.data,this.offset+t).parseStruct(e)},R.prototype.parseListOfLists=function(e){for(var t=this,n=this.parseOffset16List(),r=n.length,i=this.relativeOffset,a=Array(r),o=0;o<r;o++){var s=n[o];if(s===0){a[o]=void 0;continue}if(t.relativeOffset=s,e){for(var c=t.parseOffset16List(),l=Array(c.length),u=0;u<c.length;u++)t.relativeOffset=s+c[u],l[u]=e.call(t);a[o]=l}else a[o]=t.parseUShortList()}return this.relativeOffset=i,a},R.prototype.parseCoverage=function(){var e=this,t=this.offset+this.relativeOffset,n=this.parseUShort(),r=this.parseUShort();if(n===1)return{format:1,glyphs:this.parseUShortList(r)};if(n===2){for(var i=Array(r),a=0;a<r;a++)i[a]={start:e.parseUShort(),end:e.parseUShort(),index:e.parseUShort()};return{format:2,ranges:i}}throw Error(`0x`+t.toString(16)+`: Coverage format must be 1 or 2.`)},R.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(t===2)return{format:2,ranges:this.parseRecordList({start:R.uShort,end:R.uShort,classId:R.uShort})};throw Error(`0x`+e.toString(16)+`: ClassDef format must be 1 or 2.`)},R.list=function(e,t){return function(){return this.parseList(e,t)}},R.list32=function(e,t){return function(){return this.parseList32(e,t)}},R.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},R.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},R.pointer=function(e){return function(){return this.parsePointer(e)}},R.pointer32=function(e){return function(){return this.parsePointer32(e)}},R.tag=R.prototype.parseTag,R.byte=R.prototype.parseByte,R.uShort=R.offset16=R.prototype.parseUShort,R.uShortList=R.prototype.parseUShortList,R.uLong=R.offset32=R.prototype.parseULong,R.uLongList=R.prototype.parseULongList,R.struct=R.prototype.parseStruct,R.coverage=R.prototype.parseCoverage,R.classDef=R.prototype.parseClassDef;var Oe={reserved:R.uShort,reqFeatureIndex:R.uShort,featureIndexes:R.uShortList};R.prototype.parseScriptList=function(){return this.parsePointer(R.recordList({tag:R.tag,script:R.pointer({defaultLangSys:R.pointer(Oe),langSysRecords:R.recordList({tag:R.tag,langSys:R.pointer(Oe)})})}))||[]},R.prototype.parseFeatureList=function(){return this.parsePointer(R.recordList({tag:R.tag,feature:R.pointer({featureParams:R.offset16,lookupListIndexes:R.uShortList})}))||[]},R.prototype.parseLookupList=function(e){return this.parsePointer(R.list(R.pointer(function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,`GPOS/GSUB lookup type `+t+` unknown.`);var n=this.parseUShort(),r=n&16;return{lookupType:t,lookupFlag:n,subtables:this.parseList(R.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},R.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return A.argument(e===1&&t<1,`GPOS/GSUB feature variations table unknown.`),this.parseRecordList32({conditionSetOffset:R.offset32,featureTableSubstitutionOffset:R.offset32})})||[]};var z={getByte:ve,getCard8:ve,getUShort:ye,getCard16:ye,getShort:be,getULong:xe,getFixed:Se,getTag:Ce,getOffset:we,getBytes:Te,bytesToString:Ee,Parser:R};function ke(e,t){t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong();var n;e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var i=t.parseULong(),a=t.parseULong(),o=t.parseULong(),s=i;s<=a;s+=1)e.glyphIndexMap[s]=o,o++}function Ae(e,t,n,r,i){e.length=t.parseUShort(),e.language=t.parseUShort();var a;e.segCount=a=t.parseUShort()>>1,t.skip(`uShort`,3),e.glyphIndexMap={};for(var o=new z.Parser(n,r+i+14),s=new z.Parser(n,r+i+16+a*2),c=new z.Parser(n,r+i+16+a*4),l=new z.Parser(n,r+i+16+a*6),u=r+i+16+a*8,d=0;d<a-1;d+=1)for(var f=void 0,p=o.parseUShort(),m=s.parseUShort(),h=c.parseShort(),g=l.parseUShort(),_=m;_<=p;_+=1)g===0?f=_+h&65535:(u=l.offset+l.relativeOffset-2,u+=g,u+=(_-m)*2,f=z.getUShort(n,u),f!==0&&(f=f+h&65535)),e.glyphIndexMap[_]=f}function je(e,t){var n={};n.version=z.getUShort(e,t),A.argument(n.version===0,`cmap table version should be 0.`),n.numTables=z.getUShort(e,t+2);for(var r=-1,i=n.numTables-1;i>=0;--i){var a=z.getUShort(e,t+4+i*8),o=z.getUShort(e,t+4+i*8+2);if(a===3&&(o===0||o===1||o===10)){r=z.getULong(e,t+4+i*8+4);break}}if(r===-1)throw Error(`No valid cmap sub-tables found.`);var s=new z.Parser(e,t+r);if(n.format=s.parseUShort(),n.format===12)ke(n,s);else if(n.format===4)Ae(n,s,e,t,r);else throw Error(`Only format 4 and 12 cmap tables are supported (found format `+n.format+`).`);return n}function Me(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}function Ne(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function Pe(e){var t=!0,n;for(n=e.length-1;n>0;--n)if(e.get(n).unicode>65535){console.log(`Adding CMAP format 12 (needed!)`),t=!1;break}var r=[{name:`version`,type:`USHORT`,value:0},{name:`numTables`,type:`USHORT`,value:t?1:2},{name:`platformID`,type:`USHORT`,value:3},{name:`encodingID`,type:`USHORT`,value:1},{name:`offset`,type:`ULONG`,value:t?12:20}];t||(r=r.concat([{name:`cmap12PlatformID`,type:`USHORT`,value:3},{name:`cmap12EncodingID`,type:`USHORT`,value:10},{name:`cmap12Offset`,type:`ULONG`,value:0}])),r=r.concat([{name:`format`,type:`USHORT`,value:4},{name:`cmap4Length`,type:`USHORT`,value:0},{name:`language`,type:`USHORT`,value:0},{name:`segCountX2`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);var i=new L.Table(`cmap`,r);for(i.segments=[],n=0;n<e.length;n+=1){for(var a=e.get(n),o=0;o<a.unicodes.length;o+=1)Me(i,a.unicodes[o],n);i.segments=i.segments.sort(function(e,t){return e.start-t.start})}Ne(i);var s=i.segments.length,c=0,l=[],u=[],d=[],f=[],p=[],m=[];for(n=0;n<s;n+=1){var h=i.segments[n];h.end<=65535&&h.start<=65535?(l=l.concat({name:`end_`+n,type:`USHORT`,value:h.end}),u=u.concat({name:`start_`+n,type:`USHORT`,value:h.start}),d=d.concat({name:`idDelta_`+n,type:`SHORT`,value:h.delta}),f=f.concat({name:`idRangeOffset_`+n,type:`USHORT`,value:h.offset}),h.glyphId!==void 0&&(p=p.concat({name:`glyph_`+n,type:`USHORT`,value:h.glyphId}))):c+=1,!t&&h.glyphIndex!==void 0&&(m=m.concat({name:`cmap12Start_`+n,type:`ULONG`,value:h.start}),m=m.concat({name:`cmap12End_`+n,type:`ULONG`,value:h.end}),m=m.concat({name:`cmap12Glyph_`+n,type:`ULONG`,value:h.glyphIndex}))}if(i.segCountX2=(s-c)*2,i.searchRange=2**Math.floor(Math.log(s-c)/Math.log(2))*2,i.entrySelector=Math.log(i.searchRange/2)/Math.log(2),i.rangeShift=i.segCountX2-i.searchRange,i.fields=i.fields.concat(l),i.fields.push({name:`reservedPad`,type:`USHORT`,value:0}),i.fields=i.fields.concat(u),i.fields=i.fields.concat(d),i.fields=i.fields.concat(f),i.fields=i.fields.concat(p),i.cmap4Length=14+l.length*2+2+u.length*2+d.length*2+f.length*2+p.length*2,!t){var g=16+m.length*4;i.cmap12Offset=20+i.cmap4Length,i.fields=i.fields.concat([{name:`cmap12Format`,type:`USHORT`,value:12},{name:`cmap12Reserved`,type:`USHORT`,value:0},{name:`cmap12Length`,type:`ULONG`,value:g},{name:`cmap12Language`,type:`ULONG`,value:0},{name:`cmap12nGroups`,type:`ULONG`,value:m.length/3}]),i.fields=i.fields.concat(m)}return i}var Fe={parse:je,make:Pe},Ie=`.notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,266 ff,onedotenleader,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall,001.000,001.001,001.002,001.003,Black,Bold,Book,Light,Medium,Regular,Roman,Semibold`.split(`,`),Le=`................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quoteright.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.quoteleft.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde...................................exclamdown.cent.sterling.fraction.yen.florin.section.currency.quotesingle.quotedblleft.guillemotleft.guilsinglleft.guilsinglright.fi.fl..endash.dagger.daggerdbl.periodcentered..paragraph.bullet.quotesinglbase.quotedblbase.quotedblright.guillemotright.ellipsis.perthousand..questiondown..grave.acute.circumflex.tilde.macron.breve.dotaccent.dieresis..ring.cedilla..hungarumlaut.ogonek.caron.emdash.................AE..ordfeminine.....Lslash.Oslash.OE.ordmasculine......ae....dotlessi...lslash.oslash.oe.germandbls`.split(`.`),Re=`................................space.exclamsmall.Hungarumlautsmall..dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon.commasuperior.threequartersemdash.periodsuperior.questionsmall..asuperior.bsuperior.centsuperior.dsuperior.esuperior...isuperior...lsuperior.msuperior.nsuperior.osuperior...rsuperior.ssuperior.tsuperior..ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hyphensuperior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...................................exclamdownsmall.centoldstyle.Lslashsmall...Scaronsmall.Zcaronsmall.Dieresissmall.Brevesmall.Caronsmall..Dotaccentsmall...Macronsmall...figuredash.hypheninferior...Ogoneksmall.Ringsmall.Cedillasmall....onequarter.onehalf.threequarters.questiondownsmall.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds...zerosuperior.onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.eightsuperior.ninesuperior.zeroinferior.oneinferior.twoinferior.threeinferior.fourinferior.fiveinferior.sixinferior.seveninferior.eightinferior.nineinferior.centinferior.dollarinferior.periodinferior.commainferior.Agravesmall.Aacutesmall.Acircumflexsmall.Atildesmall.Adieresissmall.Aringsmall.AEsmall.Ccedillasmall.Egravesmall.Eacutesmall.Ecircumflexsmall.Edieresissmall.Igravesmall.Iacutesmall.Icircumflexsmall.Idieresissmall.Ethsmall.Ntildesmall.Ogravesmall.Oacutesmall.Ocircumflexsmall.Otildesmall.Odieresissmall.OEsmall.Oslashsmall.Ugravesmall.Uacutesmall.Ucircumflexsmall.Udieresissmall.Yacutesmall.Thornsmall.Ydieresissmall`.split(`.`),ze=`.notdef,.null,nonmarkingreturn,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quotesingle,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,grave,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,Adieresis,Aring,Ccedilla,Eacute,Ntilde,Odieresis,Udieresis,aacute,agrave,acircumflex,adieresis,atilde,aring,ccedilla,eacute,egrave,ecircumflex,edieresis,iacute,igrave,icircumflex,idieresis,ntilde,oacute,ograve,ocircumflex,odieresis,otilde,uacute,ugrave,ucircumflex,udieresis,dagger,degree,cent,sterling,section,bullet,paragraph,germandbls,registered,copyright,trademark,acute,dieresis,notequal,AE,Oslash,infinity,plusminus,lessequal,greaterequal,yen,mu,partialdiff,summation,product,pi,integral,ordfeminine,ordmasculine,Omega,ae,oslash,questiondown,exclamdown,logicalnot,radical,florin,approxequal,Delta,guillemotleft,guillemotright,ellipsis,nonbreakingspace,Agrave,Atilde,Otilde,OE,oe,endash,emdash,quotedblleft,quotedblright,quoteleft,quoteright,divide,lozenge,ydieresis,Ydieresis,fraction,currency,guilsinglleft,guilsinglright,fi,fl,daggerdbl,periodcentered,quotesinglbase,quotedblbase,perthousand,Acircumflex,Ecircumflex,Aacute,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Oacute,Ocircumflex,apple,Ograve,Uacute,Ucircumflex,Ugrave,dotlessi,circumflex,tilde,macron,breve,dotaccent,ring,cedilla,hungarumlaut,ogonek,caron,Lslash,lslash,Scaron,scaron,Zcaron,zcaron,brokenbar,Eth,eth,Yacute,yacute,Thorn,thorn,minus,multiply,onesuperior,twosuperior,threesuperior,onehalf,onequarter,threequarters,franc,Gbreve,gbreve,Idotaccent,Scedilla,scedilla,Cacute,cacute,Ccaron,ccaron,dcroat`.split(`,`);function Be(e){this.font=e}Be.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.font.glyphs;if(n){for(var r=0;r<n.length;r+=1)for(var i=n.get(r),a=0;a<i.unicodes.length;a+=1)if(i.unicodes[a]===t)return r}return null};function Ve(e){this.cmap=e}Ve.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0};function He(e,t){this.encoding=e,this.charset=t}He.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.encoding[t];return this.charset.indexOf(n)};function Ue(e){var t=this;switch(e.version){case 1:this.names=ze.slice();break;case 2:this.names=Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)e.glyphNameIndex[n]<ze.length?t.names[n]=ze[e.glyphNameIndex[n]]:t.names[n]=e.names[e.glyphNameIndex[n]-ze.length];break;case 2.5:this.names=Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)t.names[r]=ze[r+e.glyphNameIndex[r]];break;case 3:this.names=[];break;default:this.names=[];break}}Ue.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},Ue.prototype.glyphIndexToName=function(e){return this.names[e]};function We(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var a=r[i],o=n[a];t=e.glyphs.get(o),t.addUnicode(parseInt(a))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=`gid`+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}function Ge(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()}var B={line:Ge};function Ke(e,t,n,r,i){var a;return(t&r)>0?(a=e.parseByte(),(t&i)===0&&(a=-a),a=n+a):a=(t&i)>0?n:n+e.parseShort(),a}function qe(e,t,n){var r=new z.Parser(t,n);e.numberOfContours=r.parseShort(),e._xMin=r.parseShort(),e._yMin=r.parseShort(),e._xMax=r.parseShort(),e._yMax=r.parseShort();var i,a;if(e.numberOfContours>0){for(var o=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)o.push(r.parseUShort());e.instructionLength=r.parseUShort(),e.instructions=[];for(var c=0;c<e.instructionLength;c+=1)e.instructions.push(r.parseByte());var l=o[o.length-1]+1;i=[];for(var u=0;u<l;u+=1)if(a=r.parseByte(),i.push(a),(a&8)>0)for(var d=r.parseByte(),f=0;f<d;f+=1)i.push(a),u+=1;if(A.argument(i.length===l,`Bad flags.`),o.length>0){var p=[],m;if(l>0){for(var h=0;h<l;h+=1)a=i[h],m={},m.onCurve=!!(a&1),m.lastPointOfContour=o.indexOf(h)>=0,p.push(m);for(var g=0,_=0;_<l;_+=1)a=i[_],m=p[_],m.x=Ke(r,a,g,2,16),g=m.x;for(var v=0,y=0;y<l;y+=1)a=i[y],m=p[y],m.y=Ke(r,a,v,4,32),v=m.y}e.points=p}else e.points=[]}else if(e.numberOfContours===0)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var b=!0;b;){i=r.parseUShort();var x={glyphIndex:r.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(i&1)>0?(i&2)>0?(x.dx=r.parseShort(),x.dy=r.parseShort()):x.matchedPoints=[r.parseUShort(),r.parseUShort()]:(i&2)>0?(x.dx=r.parseChar(),x.dy=r.parseChar()):x.matchedPoints=[r.parseByte(),r.parseByte()],(i&8)>0?x.xScale=x.yScale=r.parseF2Dot14():(i&64)>0?(x.xScale=r.parseF2Dot14(),x.yScale=r.parseF2Dot14()):(i&128)>0&&(x.xScale=r.parseF2Dot14(),x.scale01=r.parseF2Dot14(),x.scale10=r.parseF2Dot14(),x.yScale=r.parseF2Dot14()),e.components.push(x),b=!!(i&32)}if(i&256){e.instructionLength=r.parseUShort(),e.instructions=[];for(var S=0;S<e.instructionLength;S+=1)e.instructions.push(r.parseByte())}}}function V(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],a={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(a)}return n}function Je(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(n.length===0,`There are still points left in the current contour.`),t}function Ye(e){var t=new D;if(!e)return t;for(var n=Je(e),r=0;r<n.length;++r){var i=n[r],a=null,o=i[i.length-1],s=i[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var c={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5};t.moveTo(c.x,c.y)}for(var l=0;l<i.length;++l)if(a=o,o=s,s=i[(l+1)%i.length],o.onCurve)t.lineTo(o.x,o.y);else{var u=a,d=s;a.onCurve||(u={x:(o.x+a.x)*.5,y:(o.y+a.y)*.5},t.lineTo(u.x,u.y)),s.onCurve||(d={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5}),t.lineTo(u.x,u.y),t.quadraticCurveTo(o.x,o.y,d.x,d.y)}t.closePath()}return t}function Xe(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],i=e.get(r.glyphIndex);if(i.getPath(),i.points){var a=void 0;if(r.matchedPoints===void 0)a=V(i.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error(`Matched points out of range in `+t.name);var o=t.points[r.matchedPoints[0]],s=i.points[r.matchedPoints[1]],c={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=V([s],c)[0],c.dx=o.x-s.x,c.dy=o.y-s.y,a=V(i.points,c)}t.points=t.points.concat(a)}}return Ye(t.points)}function Ze(e,t,n,r){for(var i=new ot.GlyphSet(r),a=0;a<n.length-1;a+=1){var o=n[a];o===n[a+1]?i.push(a,ot.glyphLoader(r,a)):i.push(a,ot.ttfGlyphLoader(r,a,qe,e,t+o,Xe))}return i}var Qe={getPath:Ye,parse:Ze};function $e(e,t){var n=t||new D;return{configurable:!0,get:function(){return typeof n==`function`&&(n=n()),n},set:function(e){n=e}}}function et(e){this.bindConstructorValues(e)}et.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||e.unicode!==void 0?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",$e(this,e.path))},et.prototype.addUnicode=function(e){this.unicodes.length===0&&(this.unicode=e),this.unicodes.push(e)},et.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},et.prototype.getPath=function(e,t,n,r,i){e=e===void 0?0:e,t=t===void 0?0:t,n=n===void 0?72:n;var a,o;r||={};var s=r.xScale,c=r.yScale;if(r.hinting&&i&&i.hinting&&(o=this.path&&i.hinting.exec(this,n)),o)a=Qe.getPath(o).commands,e=Math.round(e),t=Math.round(t),s=c=1;else{a=this.path.commands;var l=1/this.path.unitsPerEm*n;s===void 0&&(s=l),c===void 0&&(c=l)}for(var u=new D,d=0;d<a.length;d+=1){var f=a[d];f.type===`M`?u.moveTo(e+f.x*s,t+-f.y*c):f.type===`L`?u.lineTo(e+f.x*s,t+-f.y*c):f.type===`Q`?u.quadraticCurveTo(e+f.x1*s,t+-f.y1*c,e+f.x*s,t+-f.y*c):f.type===`C`?u.curveTo(e+f.x1*s,t+-f.y1*c,e+f.x2*s,t+-f.y2*c,e+f.x*s,t+-f.y*c):f.type===`Z`&&u.closePath()}return u},et.prototype.getContours=function(){var e=this;if(this.points===void 0)return[];for(var t=[],n=[],r=0;r<this.points.length;r+=1){var i=e.points[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(n.length===0,`There are still points left in the current contour.`),t},et.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];i.type!==`Z`&&(t.push(i.x),n.push(i.y)),(i.type===`Q`||i.type===`C`)&&(t.push(i.x1),n.push(i.y1)),i.type===`C`&&(t.push(i.x2),n.push(i.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a},et.prototype.draw=function(e,t,n,r,i){this.getPath(t,n,r,i).draw(e)},et.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){var a=Math.PI*2;e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*i,r+t[o].y*i),e.arc(n+t[o].x*i,r+t[o].y*i,2,0,a,!1);e.closePath(),e.fill()}t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r;for(var a=1/this.path.unitsPerEm*r,o=[],s=[],c=this.path,l=0;l<c.commands.length;l+=1){var u=c.commands[l];u.x!==void 0&&o.push({x:u.x,y:-u.y}),u.x1!==void 0&&s.push({x:u.x1,y:-u.y1}),u.x2!==void 0&&s.push({x:u.x2,y:-u.y2})}e.fillStyle=`blue`,i(o,t,n,a),e.fillStyle=`red`,i(s,t,n,a)},et.prototype.drawMetrics=function(e,t,n,r){var i;t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle=`black`,B.line(e,t,-1e4,t,1e4),B.line(e,-1e4,n,1e4,n);var a=this.xMin||0,o=this.yMin||0,s=this.xMax||0,c=this.yMax||0,l=this.advanceWidth||0;e.strokeStyle=`blue`,B.line(e,t+a*i,-1e4,t+a*i,1e4),B.line(e,t+s*i,-1e4,t+s*i,1e4),B.line(e,-1e4,n+-o*i,1e4,n+-o*i),B.line(e,-1e4,n+-c*i,1e4,n+-c*i),e.strokeStyle=`green`,B.line(e,t+l*i,-1e4,t+l*i,1e4)};function tt(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function nt(e,t){var n=this;if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)n.glyphs[r]=t[r];this.length=t&&t.length||0}nt.prototype.get=function(e){return typeof this.glyphs[e]==`function`&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},nt.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};function rt(e,t){return new et({index:t,font:e})}function it(e,t,n,r,i,a){return function(){var o=new et({index:t,font:e});return o.path=function(){n(o,r,i);var t=a(e.glyphs,o);return t.unitsPerEm=e.unitsPerEm,t},tt(o,`xMin`,`_xMin`),tt(o,`xMax`,`_xMax`),tt(o,`yMin`,`_yMin`),tt(o,`yMax`,`_yMax`),o}}function at(e,t,n,r){return function(){var i=new et({index:t,font:e});return i.path=function(){var t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}var ot={GlyphSet:nt,glyphLoader:rt,ttfGlyphLoader:it,cffGlyphLoader:at};function st(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!st(e[n],t[n]))return!1;return!0}else return!1}function ct(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768,t}function lt(e,t,n){var r=[],i=[],a=z.getCard16(e,t),o,s;if(a!==0){var c=z.getByte(e,t+2);o=t+(a+1)*c+2;for(var l=t+3,u=0;u<a+1;u+=1)r.push(z.getOffset(e,l,c)),l+=c;s=o+r[a]}else s=t+2;for(var d=0;d<r.length-1;d+=1){var f=z.getBytes(e,o+r[d],o+r[d+1]);n&&(f=n(f)),i.push(f)}return{objects:i,startOffset:t,endOffset:s}}function ut(e){for(var t=``,n=15,r=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`.`,`E`,`E-`,null,`-`];;){var i=e.parseByte(),a=i>>4,o=i&15;if(a===n||(t+=r[a],o===n))break;t+=r[o]}return parseFloat(t)}function dt(e,t){var n,r,i,a;if(t===28)return n=e.parseByte(),r=e.parseByte(),n<<8|r;if(t===29)return n=e.parseByte(),r=e.parseByte(),i=e.parseByte(),a=e.parseByte(),n<<24|r<<16|i<<8|a;if(t===30)return ut(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return n=e.parseByte(),(t-247)*256+n+108;if(t>=251&&t<=254)return n=e.parseByte(),-(t-251)*256-n-108;throw Error(`Invalid b0 `+t)}function ft(e){for(var t={},n=0;n<e.length;n+=1){var r=e[n][0],i=e[n][1],a=void 0;if(a=i.length===1?i[0]:i,t.hasOwnProperty(r)&&!isNaN(t[r]))throw Error(`Object `+t+` already has key `+r);t[r]=a}return t}function pt(e,t,n){t=t===void 0?0:t;var r=new z.Parser(e,t),i=[],a=[];for(n=n===void 0?e.length:n;r.relativeOffset<n;){var o=r.parseByte();o<=21?(o===12&&(o=1200+r.parseByte()),i.push([o,a]),a=[]):a.push(dt(r,o))}return ft(i)}function mt(e,t){return t=t<=390?Ie[t]:e[t-391],t}function ht(e,t,n){for(var r={},i,a=0;a<t.length;a+=1){var o=t[a];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var c=0;c<o.type.length;c++)i=e[o.op]===void 0?void 0:e[o.op][c],i===void 0&&(i=o.value!==void 0&&o.value[c]!==void 0?o.value[c]:null),o.type[c]===`SID`&&(i=mt(n,i)),s[c]=i;r[o.name]=s}else i=e[o.op],i===void 0&&(i=o.value===void 0?null:o.value),o.type===`SID`&&(i=mt(n,i)),r[o.name]=i}return r}function gt(e,t){var n={};return n.formatMajor=z.getCard8(e,t),n.formatMinor=z.getCard8(e,t+1),n.size=z.getCard8(e,t+2),n.offsetSize=z.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}var _t=[{name:`version`,op:0,type:`SID`},{name:`notice`,op:1,type:`SID`},{name:`copyright`,op:1200,type:`SID`},{name:`fullName`,op:2,type:`SID`},{name:`familyName`,op:3,type:`SID`},{name:`weight`,op:4,type:`SID`},{name:`isFixedPitch`,op:1201,type:`number`,value:0},{name:`italicAngle`,op:1202,type:`number`,value:0},{name:`underlinePosition`,op:1203,type:`number`,value:-100},{name:`underlineThickness`,op:1204,type:`number`,value:50},{name:`paintType`,op:1205,type:`number`,value:0},{name:`charstringType`,op:1206,type:`number`,value:2},{name:`fontMatrix`,op:1207,type:[`real`,`real`,`real`,`real`,`real`,`real`],value:[.001,0,0,.001,0,0]},{name:`uniqueId`,op:13,type:`number`},{name:`fontBBox`,op:5,type:[`number`,`number`,`number`,`number`],value:[0,0,0,0]},{name:`strokeWidth`,op:1208,type:`number`,value:0},{name:`xuid`,op:14,type:[],value:null},{name:`charset`,op:15,type:`offset`,value:0},{name:`encoding`,op:16,type:`offset`,value:0},{name:`charStrings`,op:17,type:`offset`,value:0},{name:`private`,op:18,type:[`number`,`offset`],value:[0,0]},{name:`ros`,op:1230,type:[`SID`,`SID`,`number`]},{name:`cidFontVersion`,op:1231,type:`number`,value:0},{name:`cidFontRevision`,op:1232,type:`number`,value:0},{name:`cidFontType`,op:1233,type:`number`,value:0},{name:`cidCount`,op:1234,type:`number`,value:8720},{name:`uidBase`,op:1235,type:`number`},{name:`fdArray`,op:1236,type:`offset`},{name:`fdSelect`,op:1237,type:`offset`},{name:`fontName`,op:1238,type:`SID`}],H=[{name:`subrs`,op:19,type:`offset`,value:0},{name:`defaultWidthX`,op:20,type:`number`,value:0},{name:`nominalWidthX`,op:21,type:`number`,value:0}];function vt(e,t){return ht(pt(e,0,e.byteLength),_t,t)}function yt(e,t,n,r){return ht(pt(e,t,n),H,r)}function bt(e,t,n,r){for(var i=[],a=0;a<n.length;a+=1){var o=vt(new DataView(new Uint8Array(n[a]).buffer),r);o._subrs=[],o._subrsBias=0;var s=o.private[0],c=o.private[1];if(s!==0&&c!==0){var l=yt(e,c+t,s,r);o._defaultWidthX=l.defaultWidthX,o._nominalWidthX=l.nominalWidthX,l.subrs!==0&&(o._subrs=lt(e,c+l.subrs+t).objects,o._subrsBias=ct(o._subrs)),o._privateDict=l}i.push(o)}return i}function xt(e,t,n,r){var i,a,o=new z.Parser(e,t);--n;var s=[`.notdef`],c=o.parseCard8();if(c===0)for(var l=0;l<n;l+=1)i=o.parseSID(),s.push(mt(r,i));else if(c===1)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard8();for(var u=0;u<=a;u+=1)s.push(mt(r,i)),i+=1}else if(c===2)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard16();for(var d=0;d<=a;d+=1)s.push(mt(r,i)),i+=1}else throw Error(`Unknown charset format `+c);return s}function St(e,t,n){var r,i={},a=new z.Parser(e,t),o=a.parseCard8();if(o===0)for(var s=a.parseCard8(),c=0;c<s;c+=1)r=a.parseCard8(),i[r]=c;else if(o===1){var l=a.parseCard8();r=1;for(var u=0;u<l;u+=1)for(var d=a.parseCard8(),f=a.parseCard8(),p=d;p<=d+f;p+=1)i[p]=r,r+=1}else throw Error(`Unknown encoding format `+o);return new He(i,n)}function Ct(e,t,n){var r,i,a,o,s=new D,c=[],l=0,u=!1,d=!1,f=0,p=0,m,h,g,_;if(e.isCIDFont){var v=e.tables.cff.topDict._fdSelect[t.index],y=e.tables.cff.topDict._fdArray[v];m=y._subrs,h=y._subrsBias,g=y._defaultWidthX,_=y._nominalWidthX}else m=e.tables.cff.topDict._subrs,h=e.tables.cff.topDict._subrsBias,g=e.tables.cff.topDict._defaultWidthX,_=e.tables.cff.topDict._nominalWidthX;var b=g;function x(e,t){d&&s.closePath(),s.moveTo(e,t),d=!0}function S(){c.length%2!=0&&!u&&(b=c.shift()+_),l+=c.length>>1,c.length=0,u=!0}function ee(n){for(var g,v,y,C,w,T,E,D,O,k,A,j,M=0;M<n.length;){var N=n[M];switch(M+=1,N){case 1:S();break;case 3:S();break;case 4:c.length>1&&!u&&(b=c.shift()+_,u=!0),p+=c.pop(),x(f,p);break;case 5:for(;c.length>0;)f+=c.shift(),p+=c.shift(),s.lineTo(f,p);break;case 6:for(;c.length>0&&(f+=c.shift(),s.lineTo(f,p),c.length!==0);)p+=c.shift(),s.lineTo(f,p);break;case 7:for(;c.length>0&&(p+=c.shift(),s.lineTo(f,p),c.length!==0);)f+=c.shift(),s.lineTo(f,p);break;case 8:for(;c.length>0;)r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 10:w=c.pop()+h,T=m[w],T&&ee(T);break;case 11:return;case 12:switch(N=n[M],M+=1,N){case 35:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o+c.shift(),O=E+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),f=A+c.shift(),p=j+c.shift(),c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 34:r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o,O=E+c.shift(),k=o,A=O+c.shift(),j=p,f=A+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 36:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o,O=E+c.shift(),k=o,A=O+c.shift(),j=k+c.shift(),f=A+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 37:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o+c.shift(),O=E+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),Math.abs(A-f)>Math.abs(j-p)?f=A+c.shift():p=j+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;default:console.log(`Glyph `+t.index+`: unknown operator 1200`+N),c.length=0}break;case 14:c.length>0&&!u&&(b=c.shift()+_,u=!0),d&&=(s.closePath(),!1);break;case 18:S();break;case 19:case 20:S(),M+=l+7>>3;break;case 21:c.length>2&&!u&&(b=c.shift()+_,u=!0),p+=c.pop(),f+=c.pop(),x(f,p);break;case 22:c.length>1&&!u&&(b=c.shift()+_,u=!0),f+=c.pop(),x(f,p);break;case 23:S();break;case 24:for(;c.length>2;)r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);f+=c.shift(),p+=c.shift(),s.lineTo(f,p);break;case 25:for(;c.length>6;)f+=c.shift(),p+=c.shift(),s.lineTo(f,p);r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 26:for(c.length%2&&(f+=c.shift());c.length>0;)r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a,p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 27:for(c.length%2&&(p+=c.shift());c.length>0;)r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o,s.curveTo(r,i,a,o,f,p);break;case 28:g=n[M],v=n[M+1],c.push((g<<24|v<<16)>>16),M+=2;break;case 29:w=c.pop()+e.gsubrsBias,T=e.gsubrs[w],T&&ee(T);break;case 30:for(;c.length>0&&(r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p),c.length!==0);)r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),p=o+c.shift(),f=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p);break;case 31:for(;c.length>0&&(r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),p=o+c.shift(),f=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p),c.length!==0);)r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p);break;default:N<32?console.log(`Glyph `+t.index+`: unknown operator `+N):N<247?c.push(N-139):N<251?(g=n[M],M+=1,c.push((N-247)*256+g+108)):N<255?(g=n[M],M+=1,c.push(-(N-251)*256-g-108)):(g=n[M],v=n[M+1],y=n[M+2],C=n[M+3],M+=4,c.push((g<<24|v<<16|y<<8|C)/65536))}}}return ee(n),t.advanceWidth=b,s}function wt(e,t,n,r){var i=[],a,o=new z.Parser(e,t),s=o.parseCard8();if(s===0)for(var c=0;c<n;c++){if(a=o.parseCard8(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);i.push(a)}else if(s===3){var l=o.parseCard16(),u=o.parseCard16();if(u!==0)throw Error(`CFF Table CID Font FDSelect format 3 range has bad initial GID `+u);for(var d,f=0;f<l;f++){if(a=o.parseCard8(),d=o.parseCard16(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);if(d>n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad GID `+d);for(;u<d;u++)i.push(a);u=d}if(d!==n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad final GID `+d)}else throw Error(`CFF Table CID Font FDSelect table has unsupported format `+s);return i}function Tt(e,t,n){n.tables.cff={};var r=lt(e,lt(e,gt(e,t).endOffset,z.bytesToString).endOffset),i=lt(e,r.endOffset,z.bytesToString);n.gsubrs=lt(e,i.endOffset).objects,n.gsubrsBias=ct(n.gsubrs);var a=bt(e,t,r.objects,i.objects);if(a.length!==1)throw Error(`CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = `+a.length);var o=a[0];if(n.tables.cff.topDict=o,o._privateDict&&(n.defaultWidthX=o._privateDict.defaultWidthX,n.nominalWidthX=o._privateDict.nominalWidthX),o.ros[0]!==void 0&&o.ros[1]!==void 0&&(n.isCIDFont=!0),n.isCIDFont){var s=o.fdArray,c=o.fdSelect;if(s===0||c===0)throw Error(`Font is marked as a CID font, but FDArray and/or FDSelect information is missing`);s+=t;var l=bt(e,t,lt(e,s).objects,i.objects);o._fdArray=l,c+=t,o._fdSelect=wt(e,c,n.numGlyphs,l.length)}var u=t+o.private[1],d=yt(e,u,o.private[0],i.objects);n.defaultWidthX=d.defaultWidthX,n.nominalWidthX=d.nominalWidthX,d.subrs===0?(n.subrs=[],n.subrsBias=0):(n.subrs=lt(e,u+d.subrs).objects,n.subrsBias=ct(n.subrs));var f=lt(e,t+o.charStrings);n.nGlyphs=f.objects.length;var p=xt(e,t+o.charset,n.nGlyphs,i.objects);o.encoding===0?n.cffEncoding=new He(Le,p):o.encoding===1?n.cffEncoding=new He(Re,p):n.cffEncoding=St(e,t+o.encoding,p),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new ot.GlyphSet(n);for(var m=0;m<n.nGlyphs;m+=1){var h=f.objects[m];n.glyphs.push(m,ot.cffGlyphLoader(n,m,Ct,h))}}function Et(e,t){var n,r=Ie.indexOf(e);return r>=0&&(n=r),r=t.indexOf(e),r>=0?n=r+Ie.length:(n=Ie.length+t.length,t.push(e)),n}function Dt(){return new L.Record(`Header`,[{name:`major`,type:`Card8`,value:1},{name:`minor`,type:`Card8`,value:0},{name:`hdrSize`,type:`Card8`,value:4},{name:`major`,type:`Card8`,value:1}])}function Ot(e){var t=new L.Record(`Name INDEX`,[{name:`names`,type:`INDEX`,value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:`name_`+n,type:`NAME`,value:e[n]});return t}function kt(e,t,n){for(var r={},i=0;i<e.length;i+=1){var a=e[i],o=t[a.name];o!==void 0&&!st(o,a.value)&&(a.type===`SID`&&(o=Et(o,n)),r[a.op]={name:a.name,type:a.type,value:o})}return r}function At(e,t){var n=new L.Record(`Top DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=kt(_t,e,t),n}function jt(e){var t=new L.Record(`Top DICT INDEX`,[{name:`topDicts`,type:`INDEX`,value:[]}]);return t.topDicts=[{name:`topDict_0`,type:`TABLE`,value:e}],t}function Mt(e){var t=new L.Record(`String INDEX`,[{name:`strings`,type:`INDEX`,value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:`string_`+n,type:`STRING`,value:e[n]});return t}function Nt(){return new L.Record(`Global Subr INDEX`,[{name:`subrs`,type:`INDEX`,value:[]}])}function Pt(e,t){for(var n=new L.Record(`Charsets`,[{name:`format`,type:`Card8`,value:0}]),r=0;r<e.length;r+=1){var i=e[r],a=Et(i,t);n.fields.push({name:`glyph_`+r,type:`SID`,value:a})}return n}function Ft(e){var t=[],n=e.path;t.push({name:`width`,type:`NUMBER`,value:e.advanceWidth});for(var r=0,i=0,a=0;a<n.commands.length;a+=1){var o=void 0,s=void 0,c=n.commands[a];if(c.type===`Q`){var l=.3333333333333333,u=2/3;c={type:`C`,x:c.x,y:c.y,x1:l*r+u*c.x1,y1:l*i+u*c.y1,x2:l*c.x+u*c.x1,y2:l*c.y+u*c.y1}}if(c.type===`M`)o=Math.round(c.x-r),s=Math.round(c.y-i),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rmoveto`,type:`OP`,value:21}),r=Math.round(c.x),i=Math.round(c.y);else if(c.type===`L`)o=Math.round(c.x-r),s=Math.round(c.y-i),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rlineto`,type:`OP`,value:5}),r=Math.round(c.x),i=Math.round(c.y);else if(c.type===`C`){var d=Math.round(c.x1-r),f=Math.round(c.y1-i),p=Math.round(c.x2-c.x1),m=Math.round(c.y2-c.y1);o=Math.round(c.x-c.x2),s=Math.round(c.y-c.y2),t.push({name:`dx1`,type:`NUMBER`,value:d}),t.push({name:`dy1`,type:`NUMBER`,value:f}),t.push({name:`dx2`,type:`NUMBER`,value:p}),t.push({name:`dy2`,type:`NUMBER`,value:m}),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rrcurveto`,type:`OP`,value:8}),r=Math.round(c.x),i=Math.round(c.y)}}return t.push({name:`endchar`,type:`OP`,value:14}),t}function It(e){for(var t=new L.Record(`CharStrings INDEX`,[{name:`charStrings`,type:`INDEX`,value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),i=Ft(r);t.charStrings.push({name:r.name,type:`CHARSTRING`,value:i})}return t}function Lt(e,t){var n=new L.Record(`Private DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=kt(H,e,t),n}function Rt(e,t){for(var n=new L.Table(`CFF `,[{name:`header`,type:`RECORD`},{name:`nameIndex`,type:`RECORD`},{name:`topDictIndex`,type:`RECORD`},{name:`stringIndex`,type:`RECORD`},{name:`globalSubrIndex`,type:`RECORD`},{name:`charsets`,type:`RECORD`},{name:`charStringsIndex`,type:`RECORD`},{name:`privateDict`,type:`RECORD`}]),r=1/t.unitsPerEm,i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[r,0,0,r,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a={},o=[],s,c=1;c<e.length;c+=1)s=e.get(c),o.push(s.name);var l=[];n.header=Dt(),n.nameIndex=Ot([t.postScriptName]);var u=At(i,l);return n.topDictIndex=jt(u),n.globalSubrIndex=Nt(),n.charsets=Pt(o,l),n.charStringsIndex=It(e),n.privateDict=Lt(a,l),n.stringIndex=Mt(l),i.charset=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf(),i.encoding=0,i.charStrings=i.charset+n.charsets.sizeOf(),i.private[1]=i.charStrings+n.charStringsIndex.sizeOf(),u=At(i,l),n.topDictIndex=jt(u),n}var zt={parse:Tt,make:Rt};function Bt(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(r.parseFixed()*1e3)/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),A.argument(n.magicNumber===1594834165,`Font header has wrong magic number.`),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n}function Vt(e){var t=Math.round(new Date().getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new L.Table(`head`,[{name:`version`,type:`FIXED`,value:65536},{name:`fontRevision`,type:`FIXED`,value:65536},{name:`checkSumAdjustment`,type:`ULONG`,value:0},{name:`magicNumber`,type:`ULONG`,value:1594834165},{name:`flags`,type:`USHORT`,value:0},{name:`unitsPerEm`,type:`USHORT`,value:1e3},{name:`created`,type:`LONGDATETIME`,value:n},{name:`modified`,type:`LONGDATETIME`,value:t},{name:`xMin`,type:`SHORT`,value:0},{name:`yMin`,type:`SHORT`,value:0},{name:`xMax`,type:`SHORT`,value:0},{name:`yMax`,type:`SHORT`,value:0},{name:`macStyle`,type:`USHORT`,value:0},{name:`lowestRecPPEM`,type:`USHORT`,value:0},{name:`fontDirectionHint`,type:`SHORT`,value:2},{name:`indexToLocFormat`,type:`SHORT`,value:0},{name:`glyphDataFormat`,type:`SHORT`,value:0}],e)}var Ht={parse:Bt,make:Vt};function Ut(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n}function Wt(e){return new L.Table(`hhea`,[{name:`version`,type:`FIXED`,value:65536},{name:`ascender`,type:`FWORD`,value:0},{name:`descender`,type:`FWORD`,value:0},{name:`lineGap`,type:`FWORD`,value:0},{name:`advanceWidthMax`,type:`UFWORD`,value:0},{name:`minLeftSideBearing`,type:`FWORD`,value:0},{name:`minRightSideBearing`,type:`FWORD`,value:0},{name:`xMaxExtent`,type:`FWORD`,value:0},{name:`caretSlopeRise`,type:`SHORT`,value:1},{name:`caretSlopeRun`,type:`SHORT`,value:0},{name:`caretOffset`,type:`SHORT`,value:0},{name:`reserved1`,type:`SHORT`,value:0},{name:`reserved2`,type:`SHORT`,value:0},{name:`reserved3`,type:`SHORT`,value:0},{name:`reserved4`,type:`SHORT`,value:0},{name:`metricDataFormat`,type:`SHORT`,value:0},{name:`numberOfHMetrics`,type:`USHORT`,value:0}],e)}var Gt={parse:Ut,make:Wt};function Kt(e,t,n,r,i){for(var a,o,s=new z.Parser(e,t),c=0;c<r;c+=1){c<n&&(a=s.parseUShort(),o=s.parseShort());var l=i.get(c);l.advanceWidth=a,l.leftSideBearing=o}}function qt(e){for(var t=new L.Table(`hmtx`,[]),n=0;n<e.length;n+=1){var r=e.get(n),i=r.advanceWidth||0,a=r.leftSideBearing||0;t.fields.push({name:`advanceWidth_`+n,type:`USHORT`,value:i}),t.fields.push({name:`leftSideBearing_`+n,type:`SHORT`,value:a})}return t}var Jt={parse:Kt,make:qt};function Yt(e){for(var t=new L.Table(`ltag`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`numTags`,type:`ULONG`,value:e.length}]),n=``,r=12+e.length*4,i=0;i<e.length;++i){var a=n.indexOf(e[i]);a<0&&(a=n.length,n+=e[i]),t.fields.push({name:`offset `+i,type:`USHORT`,value:r+a}),t.fields.push({name:`length `+i,type:`USHORT`,value:e[i].length})}return t.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),t}function Xt(e,t){var n=new z.Parser(e,t),r=n.parseULong();A.argument(r===1,`Unsupported ltag table version.`),n.skip(`uLong`,1);for(var i=n.parseULong(),a=[],o=0;o<i;o++){for(var s=``,c=t+n.parseUShort(),l=n.parseUShort(),u=c;u<c+l;++u)s+=String.fromCharCode(e.getInt8(u));a.push(s)}return a}var Zt={make:Yt,parse:Xt};function Qt(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),n.version===1&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n}function $t(e){return new L.Table(`maxp`,[{name:`version`,type:`FIXED`,value:20480},{name:`numGlyphs`,type:`USHORT`,value:e}])}var en={parse:Qt,make:$t},tn=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],nn={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},rn={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},an={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function on(e,t,n){switch(e){case 0:if(t===65535)return`und`;if(n)return n[t];break;case 1:return nn[t];case 3:return an[t]}}var sn=`utf-16`,cn={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},ln={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function un(e,t,n){switch(e){case 0:return sn;case 1:return ln[n]||cn[t];case 3:if(t===1||t===10)return sn;break}}function dn(e,t,n){for(var r={},i=new z.Parser(e,t),a=i.parseUShort(),o=i.parseUShort(),s=i.offset+i.parseUShort(),c=0;c<o;c++){var l=i.parseUShort(),u=i.parseUShort(),d=i.parseUShort(),f=i.parseUShort(),p=tn[f]||f,m=i.parseUShort(),h=i.parseUShort(),g=on(l,d,n),_=un(l,u,d);if(_!==void 0&&g!==void 0){var v=void 0;if(v=_===sn?N.UTF16(e,s+h,m):N.MACSTRING(e,s+h,m,_),v){var y=r[p];y===void 0&&(y=r[p]={}),y[g]=v}}}return a===1&&i.parseUShort(),r}function fn(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function pn(e,t,n,r,i,a){return new L.Record(`NameRecord`,[{name:`platformID`,type:`USHORT`,value:e},{name:`encodingID`,type:`USHORT`,value:t},{name:`languageID`,type:`USHORT`,value:n},{name:`nameID`,type:`USHORT`,value:r},{name:`length`,type:`USHORT`,value:i},{name:`offset`,type:`USHORT`,value:a}])}function mn(e,t){var n=e.length,r=t.length-n+1;e:for(var i=0;i<r;i++)for(;i<r;i++){for(var a=0;a<n;a++)if(t[i+a]!==e[a])continue e;return i}return-1}function hn(e,t){var n=mn(e,t);if(n<0){n=t.length;for(var r=0,i=e.length;r<i;++r)t.push(e[r])}return n}function gn(e,t){var n,r=[],i={},a=fn(tn);for(var o in e){var s=a[o];if(s===void 0&&(s=o),n=parseInt(s),isNaN(n))throw Error(`Name table entry "`+o+`" does not exist, see nameTableNames for complete list.`);i[n]=e[o],r.push(n)}for(var c=fn(nn),l=fn(an),u=[],d=[],f=0;f<r.length;f++){n=r[f];var p=i[n];for(var m in p){var h=p[m],g=1,_=c[m],v=rn[_],y=un(g,v,_),b=P.MACSTRING(h,y);b===void 0&&(g=0,_=t.indexOf(m),_<0&&(_=t.length,t.push(m)),v=4,b=P.UTF16(h));var x=hn(b,d);u.push(pn(g,v,_,n,b.length,x));var S=l[m];if(S!==void 0){var ee=P.UTF16(h),C=hn(ee,d);u.push(pn(3,1,S,n,ee.length,C))}}}u.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var w=new L.Table(`name`,[{name:`format`,type:`USHORT`,value:0},{name:`count`,type:`USHORT`,value:u.length},{name:`stringOffset`,type:`USHORT`,value:6+u.length*12}]),T=0;T<u.length;T++)w.fields.push({name:`record_`+T,type:`RECORD`,value:u[T]});return w.fields.push({name:`strings`,type:`LITERAL`,value:d}),w}var _n={parse:dn,make:gn},vn=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function yn(e){for(var t=0;t<vn.length;t+=1){var n=vn[t];if(e>=n.begin&&e<n.end)return t}return-1}function bn(e,t){var n={},r=new z.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;i<10;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n}function xn(e){return new L.Table(`OS/2`,[{name:`version`,type:`USHORT`,value:3},{name:`xAvgCharWidth`,type:`SHORT`,value:0},{name:`usWeightClass`,type:`USHORT`,value:0},{name:`usWidthClass`,type:`USHORT`,value:0},{name:`fsType`,type:`USHORT`,value:0},{name:`ySubscriptXSize`,type:`SHORT`,value:650},{name:`ySubscriptYSize`,type:`SHORT`,value:699},{name:`ySubscriptXOffset`,type:`SHORT`,value:0},{name:`ySubscriptYOffset`,type:`SHORT`,value:140},{name:`ySuperscriptXSize`,type:`SHORT`,value:650},{name:`ySuperscriptYSize`,type:`SHORT`,value:699},{name:`ySuperscriptXOffset`,type:`SHORT`,value:0},{name:`ySuperscriptYOffset`,type:`SHORT`,value:479},{name:`yStrikeoutSize`,type:`SHORT`,value:49},{name:`yStrikeoutPosition`,type:`SHORT`,value:258},{name:`sFamilyClass`,type:`SHORT`,value:0},{name:`bFamilyType`,type:`BYTE`,value:0},{name:`bSerifStyle`,type:`BYTE`,value:0},{name:`bWeight`,type:`BYTE`,value:0},{name:`bProportion`,type:`BYTE`,value:0},{name:`bContrast`,type:`BYTE`,value:0},{name:`bStrokeVariation`,type:`BYTE`,value:0},{name:`bArmStyle`,type:`BYTE`,value:0},{name:`bLetterform`,type:`BYTE`,value:0},{name:`bMidline`,type:`BYTE`,value:0},{name:`bXHeight`,type:`BYTE`,value:0},{name:`ulUnicodeRange1`,type:`ULONG`,value:0},{name:`ulUnicodeRange2`,type:`ULONG`,value:0},{name:`ulUnicodeRange3`,type:`ULONG`,value:0},{name:`ulUnicodeRange4`,type:`ULONG`,value:0},{name:`achVendID`,type:`CHARARRAY`,value:`XXXX`},{name:`fsSelection`,type:`USHORT`,value:0},{name:`usFirstCharIndex`,type:`USHORT`,value:0},{name:`usLastCharIndex`,type:`USHORT`,value:0},{name:`sTypoAscender`,type:`SHORT`,value:0},{name:`sTypoDescender`,type:`SHORT`,value:0},{name:`sTypoLineGap`,type:`SHORT`,value:0},{name:`usWinAscent`,type:`USHORT`,value:0},{name:`usWinDescent`,type:`USHORT`,value:0},{name:`ulCodePageRange1`,type:`ULONG`,value:0},{name:`ulCodePageRange2`,type:`ULONG`,value:0},{name:`sxHeight`,type:`SHORT`,value:0},{name:`sCapHeight`,type:`SHORT`,value:0},{name:`usDefaultChar`,type:`USHORT`,value:0},{name:`usBreakChar`,type:`USHORT`,value:0},{name:`usMaxContext`,type:`USHORT`,value:0}],e)}var Sn={parse:bn,make:xn,unicodeRanges:vn,getUnicodeRange:yn};function Cn(e,t){var n={},r=new z.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=ze.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=Array(n.numberOfGlyphs);for(var i=0;i<n.numberOfGlyphs;i++)n.glyphNameIndex[i]=r.parseUShort();n.names=[];for(var a=0;a<n.numberOfGlyphs;a++)if(n.glyphNameIndex[a]>=ze.length){var o=r.parseChar();n.names.push(r.parseString(o))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar();break}return n}function wn(){return new L.Table(`post`,[{name:`version`,type:`FIXED`,value:196608},{name:`italicAngle`,type:`FIXED`,value:0},{name:`underlinePosition`,type:`FWORD`,value:0},{name:`underlineThickness`,type:`FWORD`,value:0},{name:`isFixedPitch`,type:`ULONG`,value:0},{name:`minMemType42`,type:`ULONG`,value:0},{name:`maxMemType42`,type:`ULONG`,value:0},{name:`minMemType1`,type:`ULONG`,value:0},{name:`maxMemType1`,type:`ULONG`,value:0}])}var Tn={parse:Cn,make:wn},En=Array(9);En[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:1,coverage:this.parsePointer(R.coverage),deltaGlyphId:this.parseUShort()};if(t===2)return{substFormat:2,coverage:this.parsePointer(R.coverage),substitute:this.parseOffset16List()};A.assert(!1,`0x`+e.toString(16)+`: lookup type 1 format must be 1 or 2.`)},En[2]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Multiple Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),sequences:this.parseListOfLists()}},En[3]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Alternate Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),alternateSets:this.parseListOfLists()}},En[4]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB ligature table identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var Dn={sequenceIndex:R.uShort,lookupListIndex:R.uShort};En[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:t,coverage:this.parsePointer(R.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,Dn)}})};if(t===2)return{substFormat:t,coverage:this.parsePointer(R.coverage),classDef:this.parsePointer(R.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,Dn)}})};if(t===3){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,R.pointer(R.coverage)),lookupRecords:this.parseRecordList(r,Dn)}}A.assert(!1,`0x`+e.toString(16)+`: lookup type 5 format must be 1, 2 or 3.`)},En[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:1,coverage:this.parsePointer(R.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Dn)}})};if(t===2)return{substFormat:2,coverage:this.parsePointer(R.coverage),backtrackClassDef:this.parsePointer(R.classDef),inputClassDef:this.parsePointer(R.classDef),lookaheadClassDef:this.parsePointer(R.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Dn)}})};if(t===3)return{substFormat:3,backtrackCoverage:this.parseList(R.pointer(R.coverage)),inputCoverage:this.parseList(R.pointer(R.coverage)),lookaheadCoverage:this.parseList(R.pointer(R.coverage)),lookupRecords:this.parseRecordList(Dn)};A.assert(!1,`0x`+e.toString(16)+`: lookup type 6 format must be 1, 2 or 3.`)},En[7]=function(){var e=this.parseUShort();A.argument(e===1,`GSUB Extension Substitution subtable identifier-format must be 1`);var t=this.parseUShort(),n=new R(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:En[t].call(n)}},En[8]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),backtrackCoverage:this.parseList(R.pointer(R.coverage)),lookaheadCoverage:this.parseList(R.pointer(R.coverage)),substitutes:this.parseUShortList()}};function On(e,t){t||=0;var n=new R(e,t),r=n.parseVersion(1);return A.argument(r===1||r===1.1,`Unsupported GSUB table version.`),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(En)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(En),variations:n.parseFeatureVariationsList()}}var kn=Array(9);kn[1]=function(e){return e.substFormat===1?new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)},{name:`deltaGlyphID`,type:`USHORT`,value:e.deltaGlyphId}]):new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:2},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.ushortList(`substitute`,e.substitute)))},kn[3]=function(e){return A.assert(e.substFormat===1,`Lookup type 3 substFormat must be 1.`),new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.tableList(`altSet`,e.alternateSets,function(e){return new L.Table(`alternateSetTable`,L.ushortList(`alternate`,e))})))},kn[4]=function(e){return A.assert(e.substFormat===1,`Lookup type 4 substFormat must be 1.`),new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.tableList(`ligSet`,e.ligatureSets,function(e){return new L.Table(`ligatureSetTable`,L.tableList(`ligature`,e,function(e){return new L.Table(`ligatureTable`,[{name:`ligGlyph`,type:`USHORT`,value:e.ligGlyph}].concat(L.ushortList(`component`,e.components,e.components.length+1)))}))})))};function An(e){return new L.Table(`GSUB`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new L.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new L.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new L.LookupList(e.lookups,kn)}])}var jn={parse:On,make:An};function Mn(e,t){var n=new z.Parser(e,t),r=n.parseULong();A.argument(r===1,`Unsupported META table version.`),n.parseULong(),n.parseULong();for(var i=n.parseULong(),a={},o=0;o<i;o++){var s=n.parseTag(),c=n.parseULong(),l=n.parseULong();a[s]=N.UTF8(e,t+c,l)}return a}function Nn(e){var t=Object.keys(e).length,n=``,r=16+t*12,i=new L.Table(`meta`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`offset`,type:`ULONG`,value:r},{name:`numTags`,type:`ULONG`,value:t}]);for(var a in e){var o=n.length;n+=e[a],i.fields.push({name:`tag `+a,type:`TAG`,value:a}),i.fields.push({name:`offset `+a,type:`ULONG`,value:r+o}),i.fields.push({name:`length `+a,type:`ULONG`,value:e[a].length})}return i.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),i}var Pn={parse:Mn,make:Nn};function Fn(e){return Math.log(e)/Math.log(2)|0}function In(e){for(;e.length%4!=0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=2**32,t}function Ln(e,t,n,r){return new L.Record(`Table Record`,[{name:`tag`,type:`TAG`,value:e===void 0?``:e},{name:`checkSum`,type:`ULONG`,value:t===void 0?0:t},{name:`offset`,type:`ULONG`,value:n===void 0?0:n},{name:`length`,type:`ULONG`,value:r===void 0?0:r}])}function Rn(e){var t=new L.Table(`sfnt`,[{name:`version`,type:`TAG`,value:`OTTO`},{name:`numTables`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);t.tables=e,t.numTables=e.length;var n=2**Fn(t.numTables);t.searchRange=16*n,t.entrySelector=Fn(n),t.rangeShift=t.numTables*16-t.searchRange;for(var r=[],i=[],a=t.sizeOf()+Ln().sizeOf()*t.numTables;a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0});for(var o=0;o<e.length;o+=1){var s=e[o];A.argument(s.tableName.length===4,`Table name`+s.tableName+` is invalid.`);var c=s.sizeOf(),l=Ln(s.tableName,In(s.encode()),a,c);for(r.push({name:l.tag+` Table Record`,type:`RECORD`,value:l}),i.push({name:s.tableName+` table`,type:`RECORD`,value:s}),a+=c,A.argument(!isNaN(a),`Something went wrong calculating the offset.`);a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0})}return r.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function zn(e,t,n){for(var r=0;r<t.length;r+=1){var i=e.charToGlyphIndex(t[r]);if(i>0)return e.glyphs.get(i).getMetrics()}return n}function Bn(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}function Vn(e){for(var t=[],n=[],r=[],i=[],a=[],o=[],s=[],c,l=0,u=0,d=0,f=0,p=0,m=0;m<e.glyphs.length;m+=1){var h=e.glyphs.get(m),g=h.unicode|0;if(isNaN(h.advanceWidth))throw Error(`Glyph `+h.name+` (`+m+`): advanceWidth is not a number.`);(c>g||c===void 0)&&g>0&&(c=g),l<g&&(l=g);var _=Sn.getUnicodeRange(g);if(_<32)u|=1<<_;else if(_<64)d|=1<<_-32;else if(_<96)f|=1<<_-64;else if(_<123)p|=1<<_-96;else throw Error(`Unicode ranges bits > 123 are reserved for internal usage`);if(h.name!==`.notdef`){var v=h.getMetrics();t.push(v.xMin),n.push(v.yMin),r.push(v.xMax),i.push(v.yMax),o.push(v.leftSideBearing),s.push(v.rightSideBearing),a.push(h.advanceWidth)}}var y={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,r),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:Bn(a),minLeftSideBearing:Math.min.apply(null,o),maxLeftSideBearing:Math.max.apply(null,o),minRightSideBearing:Math.min.apply(null,s)};y.ascender=e.ascender,y.descender=e.descender;var b=Ht.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:y.xMin,yMin:y.yMin,xMax:y.xMax,yMax:y.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=Gt.make({ascender:y.ascender,descender:y.descender,advanceWidthMax:y.advanceWidthMax,minLeftSideBearing:y.minLeftSideBearing,minRightSideBearing:y.minRightSideBearing,xMaxExtent:y.maxLeftSideBearing+(y.xMax-y.xMin),numberOfHMetrics:e.glyphs.length}),S=en.make(e.glyphs.length),ee=Sn.make({xAvgCharWidth:Math.round(y.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:c,usLastCharIndex:l,ulUnicodeRange1:u,ulUnicodeRange2:d,ulUnicodeRange3:f,ulUnicodeRange4:p,fsSelection:e.tables.os2.fsSelection,sTypoAscender:y.ascender,sTypoDescender:y.descender,sTypoLineGap:0,usWinAscent:y.yMax,usWinDescent:Math.abs(y.yMin),ulCodePageRange1:1,sxHeight:zn(e,`xyvw`,{yMax:Math.round(y.ascender/2)}).yMax,sCapHeight:zn(e,`HIKLEFJMNTZBDPRAGOQSUVWXY`,y).yMax,usDefaultChar:e.hasChar(` `)?32:0,usBreakChar:e.hasChar(` `)?32:0}),C=Jt.make(e.glyphs),w=Fe.make(e.glyphs),T=e.getEnglishName(`fontFamily`),E=e.getEnglishName(`fontSubfamily`),D=T+` `+E,O=e.getEnglishName(`postScriptName`);O||=T.replace(/\s/g,``)+`-`+E;var k={};for(var A in e.names)k[A]=e.names[A];k.uniqueID||={en:e.getEnglishName(`manufacturer`)+`:`+D},k.postScriptName||={en:O},k.preferredFamily||=e.names.fontFamily,k.preferredSubfamily||=e.names.fontSubfamily;var j=[],M=_n.make(k,j),N=j.length>0?Zt.make(j):void 0,P=Tn.make(),F=zt.make(e.glyphs,{version:e.getEnglishName(`version`),fullName:D,familyName:T,weightName:E,postScriptName:O,unitsPerEm:e.unitsPerEm,fontBBox:[0,y.yMin,y.ascender,y.advanceWidthMax]}),te=e.metas&&Object.keys(e.metas).length>0?Pn.make(e.metas):void 0,ne=[b,x,S,ee,M,w,P,F,C];N&&ne.push(N),e.tables.gsub&&ne.push(jn.make(e.tables.gsub)),te&&ne.push(te);for(var re=Rn(ne),ie=In(re.encode()),ae=re.fields,I=!1,oe=0;oe<ae.length;oe+=1)if(ae[oe].name===`head table`){ae[oe].value.checkSumAdjustment=2981146554-ie,I=!0;break}if(!I)throw Error(`Could not find head table with checkSum to adjust.`);return re}var Hn={make:Rn,fontToTable:Vn,computeCheckSum:In};function Un(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,a=e[i].tag;if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function Wn(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,a=e[i];if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function Gn(e,t){for(var n,r=0,i=e.length-1;r<=i;){var a=r+i>>>1;n=e[a];var o=n.start;if(o===t)return n;o<t?r=a+1:i=a-1}if(r>0)return n=e[r-1],t>n.end?0:n}function Kn(e,t){this.font=e,this.tableName=t}Kn.prototype={searchTag:Un,binSearch:Wn,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if(r===`DFLT`)return r;r===`latn`&&(t=!0)}if(t)return`latn`}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e||=`DFLT`;var r=n.scripts,i=Un(n.scripts,e);if(i>=0)return r[i].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,a),a.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||t===`dflt`||t===`DFLT`)return r.defaultLangSys;var i=Un(r.langSysRecords,t);if(i>=0)return r.langSysRecords[i].langSys;if(n){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-i,0,a),a.langSys}}},getFeatureTable:function(e,t,n,r){var i=this.getLangSysTable(e,t,r);if(i){for(var a,o=i.featureIndexes,s=this.font.tables[this.tableName].features,c=0;c<o.length;c++)if(a=s[o[c]],a.tag===n)return a.feature;if(r){var l=s.length;return A.assert(l===0||n>=s[l-1].tag,`Features must be added in alphabetical order.`),a={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(a),o.push(l),a.feature}}},getLookupTables:function(e,t,n,r,i){var a=this.getFeatureTable(e,t,n,i),o=[];if(a){for(var s,c=a.lookupListIndexes,l=this.font.tables[this.tableName].lookups,u=0;u<c.length;u++)s=l[c[u]],s.lookupType===r&&o.push(s);if(o.length===0&&i){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var d=l.length;return l.push(s),c.push(d),[s]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=Gn(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=Wn(e.glyphs,t);return n>=0?n:-1;case 2:var r=Gn(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(e.format===1)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var i=n[r],a=i.start,o=i.end,s=a;s<=o;s++)t.push(s);return t}};function qn(e){Kn.call(this,e,`gpos`)}qn.prototype=Kn.prototype,qn.prototype.getKerningValue=function(e,t,n){for(var r=this,i=0;i<e.length;i++)for(var a=e[i].subtables,o=0;o<a.length;o++){var s=a[o],c=r.getCoverageIndex(s.coverage,t);if(!(c<0))switch(s.posFormat){case 1:for(var l=s.pairSets[c],u=0;u<l.length;u++){var d=l[u];if(d.secondGlyph===n)return d.value1&&d.value1.xAdvance||0}break;case 2:var f=r.getGlyphClass(s.classDef1,t),p=r.getGlyphClass(s.classDef2,n),m=s.classRecords[f][p];return m.value1&&m.value1.xAdvance||0}}return 0},qn.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,`kern`,2)};function Jn(e){Kn.call(this,e,`gsub`)}function Yn(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Xn(e,t,n){for(var r=e.subtables,i=0;i<r.length;i++){var a=r[i];if(a.substFormat===t)return a}if(n)return r.push(n),n}Jn.prototype=Kn.prototype,Jn.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:`DFLT`,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Jn.prototype.getSingle=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,1),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++){var l=s[c],u=r.expandCoverage(l.coverage),d=void 0;if(l.substFormat===1){var f=l.deltaGlyphId;for(d=0;d<u.length;d++){var p=u[d];i.push({sub:p,by:p+f})}}else{var m=l.substitute;for(d=0;d<u.length;d++)i.push({sub:u[d],by:m[d]})}}return i},Jn.prototype.getAlternates=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,3),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++)for(var l=s[c],u=r.expandCoverage(l.coverage),d=l.alternateSets,f=0;f<u.length;f++)i.push({sub:u[f],by:d[f]});return i},Jn.prototype.getLigatures=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,4),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++)for(var l=s[c],u=r.expandCoverage(l.coverage),d=l.ligatureSets,f=0;f<u.length;f++)for(var p=u[f],m=d[f],h=0;h<m.length;h++){var g=m[h];i.push({sub:[p].concat(g.components),by:g.ligGlyph})}return i},Jn.prototype.addSingle=function(e,t,n,r){var i=this.getLookupTables(n,r,e,1,!0)[0],a=Xn(i,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.substitute.splice(s,0,0)),a.substitute[s]=t.by},Jn.prototype.addAlternate=function(e,t,n,r){var i=this.getLookupTables(n,r,e,3,!0)[0],a=Xn(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.alternateSets.splice(s,0,0)),a.alternateSets[s]=t.by},Jn.prototype.addLigature=function(e,t,n,r){var i=this.getLookupTables(n,r,e,4,!0)[0],a=i.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=a),A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub[0],s=t.sub.slice(1),c={ligGlyph:t.by,components:s},l=this.binSearch(a.coverage.glyphs,o);if(l>=0){for(var u=a.ligatureSets[l],d=0;d<u.length;d++)if(Yn(u[d].components,s))return;u.push(c)}else l=-1-l,a.coverage.glyphs.splice(l,0,o),a.ligatureSets.splice(l,0,[c])},Jn.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case`aalt`:case`salt`:return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case`dlig`:case`liga`:case`rlig`:return this.getLigatures(e,t,n)}},Jn.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case`aalt`:case`salt`:return typeof t.by==`number`?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case`dlig`:case`liga`:case`rlig`:return this.addLigature(e,t,n,r)}};function U(){return typeof window<`u`}function Zn(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function Qn(e){for(var t=new Buffer(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}function $n(e,t){if(!e)throw t}var er,tr,nr,rr;function ir(e){this.font=e,this._fpgmState=this._prepState=void 0,this._errorState=0}function ar(e){return e}function or(e){return Math.sign(e)*Math.round(Math.abs(e))}function sr(e){return Math.sign(e)*Math.round(Math.abs(e*2))/2}function cr(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function lr(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function ur(e){return Math.sign(e)*Math.floor(Math.abs(e))}var dr=function(e){var t=this.srPeriod,n=this.srPhase,r=this.srThreshold,i=1;return e<0&&(e=-e,i=-1),e+=r-n,e=Math.trunc(e/t)*t,e+=n,e<0?n*i:e*i},fr={x:1,y:0,axis:`x`,distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var i,a,o,s,c,l,u;if(!r||r===this){if(i=e.xo-t.xo,a=e.xo-n.xo,c=t.x-t.xo,l=n.x-n.xo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){e.x=e.xo+(c+l)/2;return}e.x=e.xo+(c*s+l*o)/u;return}if(i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){fr.setRelative(e,e,(c+l)/2,r,!0);return}fr.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:-1/0,setRelative:function(e,t,n,r,i){if(!r||r===this){e.x=(i?t.xo:t.x)+n;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y;e.x=s+(e.y-c)/r.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},pr={x:0,y:1,axis:`y`,distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var i,a,o,s,c,l,u;if(!r||r===this){if(i=e.yo-t.yo,a=e.yo-n.yo,c=t.y-t.yo,l=n.y-n.yo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){e.y=e.yo+(c+l)/2;return}e.y=e.yo+(c*s+l*o)/u;return}if(i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){pr.setRelative(e,e,(c+l)/2,r,!0);return}pr.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(!r||r===this){e.y=(i?t.yo:t.y)+n;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x;e.y=o+n*r.y+r.normalSlope*(e.x-s)},slope:1/0,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};Object.freeze(fr),Object.freeze(pr);function mr(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}mr.prototype.distance=function(e,t,n,r){return this.x*fr.distance(e,t,n,r)+this.y*pr.distance(e,t,n,r)},mr.prototype.interpolate=function(e,t,n,r){var i,a,o,s,c,l,u;if(o=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),a=r.distance(n,n,!1,!0),c=Math.abs(o),l=Math.abs(s),u=c+l,u===0){this.setRelative(e,e,(i+a)/2,r,!0);return}this.setRelative(e,e,(i*l+a*c)/u,r,!0)},mr.prototype.setRelative=function(e,t,n,r,i){r||=this;var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y,l=r.normalSlope,u=this.slope,d=e.x,f=e.y;e.x=(u*d-l*s+c-f)/(u-l),e.y=u*(e.x-d)+f},mr.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0};function hr(e,t){var n=Math.sqrt(e*e+t*t);return e/=n,t/=n,e===1&&t===0?fr:e===0&&t===1?pr:new mr(e,t)}function gr(e,t,n,r){this.x=this.xo=Math.round(e*64)/64,this.y=this.yo=Math.round(t*64)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}gr.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},gr.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var _r=Object.freeze(new gr(0,0)),vr={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function yr(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case`glyf`:this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case`prep`:this.fv=this.pv=this.dpv=fr,this.round=or}}ir.prototype.exec=function(t,n){if(typeof n!=`number`)throw Error(`Point size is not a number!`);if(!(this._errorState>2)){var r=this.font,i=this._prepState;if(!i||i.ppem!==n){var a=this._fpgmState;if(!a){yr.prototype=vr,a=this._fpgmState=new yr(`fpgm`,r.tables.fpgm),a.funcs=[],a.font=r,e.DEBUG&&(console.log(`---EXEC FPGM---`),a.step=-1);try{tr(a)}catch(e){console.log(`Hinting error in FPGM:`+e),this._errorState=3;return}}yr.prototype=a,i=this._prepState=new yr(`prep`,r.tables.prep),i.ppem=n;var o=r.tables.cvt;if(o)for(var s=i.cvt=Array(o.length),c=n/r.unitsPerEm,l=0;l<o.length;l++)s[l]=o[l]*c;else i.cvt=[];e.DEBUG&&(console.log(`---EXEC PREP---`),i.step=-1);try{tr(i)}catch(e){this._errorState<2&&console.log(`Hinting error in PREP:`+e),this._errorState=2}}if(!(this._errorState>1))try{return nr(t,i)}catch(e){this._errorState<1&&(console.log(`Hinting error:`+e),console.log(`Note: further hinting errors are silenced`)),this._errorState=1;return}}},nr=function(t,n){var r=n.ppem/n.font.unitsPerEm,i=r,a=t.components,o,s,c;if(yr.prototype=n,!a)c=new yr(`glyf`,t.instructions),e.DEBUG&&(console.log(`---EXEC GLYPH---`),c.step=-1),rr(t,c,r,i),s=c.gZone;else{var l=n.font;s=[],o=[];for(var u=0;u<a.length;u++){var d=a[u],f=l.glyphs.get(d.glyphIndex);c=new yr(`glyf`,f.instructions),e.DEBUG&&(console.log(`---EXEC COMP `+u+`---`),c.step=-1),rr(f,c,r,i);for(var p=Math.round(d.dx*r),m=Math.round(d.dy*i),h=c.gZone,g=c.contours,_=0;_<h.length;_++){var v=h[_];v.xTouched=v.yTouched=!1,v.xo=v.x+=p,v.yo=v.y+=m}var y=s.length;s.push.apply(s,h);for(var b=0;b<g.length;b++)o.push(g[b]+y)}t.instructions&&!c.inhibitGridFit&&(c=new yr(`glyf`,t.instructions),c.gZone=c.z0=c.z1=c.z2=s,c.contours=o,s.push(new gr(0,0),new gr(Math.round(t.advanceWidth*r),0)),e.DEBUG&&(console.log(`---EXEC COMPOSITE---`),c.step=-1),tr(c),s.length-=2)}return s},rr=function(t,n,r,i){for(var a=t.points||[],o=a.length,s=n.gZone=n.z0=n.z1=n.z2=[],c=n.contours=[],l,u=0;u<o;u++)l=a[u],s[u]=new gr(l.x*r,l.y*i,l.lastPointOfContour,l.onCurve);for(var d,f,p=0;p<o;p++)l=s[p],d||(d=l,c.push(p)),l.lastPointOfContour?(l.nextPointOnContour=d,d.prevPointOnContour=l,d=void 0):(f=s[p+1],l.nextPointOnContour=f,f.prevPointOnContour=l);if(!n.inhibitGridFit){if(e.DEBUG){console.log(`PROCESSING GLYPH`,n.stack);for(var m=0;m<o;m++)console.log(m,s[m].x,s[m].y)}if(s.push(new gr(0,0),new gr(Math.round(t.advanceWidth*r),0)),tr(n),s.length-=2,e.DEBUG){console.log(`FINISHED GLYPH`,n.stack);for(var h=0;h<o;h++)console.log(h,s[h].x,s[h].y)}}},tr=function(t){var n=t.prog;if(n){var r=n.length,i;for(t.ip=0;t.ip<r;t.ip++){if(e.DEBUG&&t.step++,i=er[n[t.ip]],!i)throw Error(`unknown instruction: 0x`+Number(n[t.ip]).toString(16));i(t)}}};function br(e){for(var t=e.tZone=Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new gr(0,0)}function xr(e,t){var n=e.prog,r=e.ip,i=1,a;do if(a=n[++r],a===88)i++;else if(a===89)i--;else if(a===64)r+=n[r+1]+1;else if(a===65)r+=2*n[r+1]+1;else if(a>=176&&a<=183)r+=a-176+1;else if(a>=184&&a<=191)r+=(a-184+1)*2;else if(t&&i===1&&a===27)break;while(i>0);e.ip=r}function Sr(t,n){e.DEBUG&&console.log(n.step,`SVTCA[`+t.axis+`]`),n.fv=n.pv=n.dpv=t}function Cr(t,n){e.DEBUG&&console.log(n.step,`SPVTCA[`+t.axis+`]`),n.pv=n.dpv=t}function wr(t,n){e.DEBUG&&console.log(n.step,`SFVTCA[`+t.axis+`]`),n.fv=t}function Tr(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(`SPVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.pv=n.dpv=hr(c,l)}function Er(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(`SFVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.fv=hr(c,l)}function Dr(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.pv=t.dpv=hr(i,r)}function Or(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.fv=hr(i,r)}function kr(t){var n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,`GPV[]`),n.push(r.x*16384),n.push(r.y*16384)}function Ar(t){var n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,`GFV[]`),n.push(r.x*16384),n.push(r.y*16384)}function jr(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,`SFVTPV[]`)}function Mr(t){var n=t.stack,r=n.pop(),i=n.pop(),a=n.pop(),o=n.pop(),s=n.pop(),c=t.z0,l=t.z1,u=c[r],d=c[i],f=l[a],p=l[o],m=t.z2[s];e.DEBUG&&console.log(`ISECT[], `,r,i,a,o,s);var h=u.x,g=u.y,_=d.x,v=d.y,y=f.x,b=f.y,x=p.x,S=p.y,ee=(h-_)*(b-S)-(g-v)*(y-x),C=h*v-g*_,w=y*S-b*x;m.x=(C*(y-x)-w*(h-_))/ee,m.y=(C*(b-S)-w*(g-v))/ee}function Nr(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP0[]`,t.rp0)}function Pr(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP1[]`,t.rp1)}function Fr(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP2[]`,t.rp2)}function Ir(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP0[]`,n),t.zp0=n,n){case 0:t.tZone||br(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Lr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP1[]`,n),t.zp1=n,n){case 0:t.tZone||br(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Rr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP2[]`,n),t.zp2=n,n){case 0:t.tZone||br(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function zr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZPS[]`,n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||br(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Br(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,`SLOOP[]`,t.loop)}function Vr(t){e.DEBUG&&console.log(t.step,`RTG[]`),t.round=or}function Hr(t){e.DEBUG&&console.log(t.step,`RTHG[]`),t.round=cr}function Ur(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SMD[]`,n),t.minDis=n/64}function Wr(t){e.DEBUG&&console.log(t.step,`ELSE[]`),xr(t,!1)}function Gr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`JMPR[]`,n),t.ip+=n-1}function Kr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCVTCI[]`,n),t.cvCutIn=n/64}function qr(t){var n=t.stack;e.DEBUG&&console.log(t.step,`DUP[]`),n.push(n[n.length-1])}function Jr(t){e.DEBUG&&console.log(t.step,`POP[]`),t.stack.pop()}function Yr(t){e.DEBUG&&console.log(t.step,`CLEAR[]`),t.stack.length=0}function W(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SWAP[]`),n.push(r),n.push(i)}function Xr(t){var n=t.stack;e.DEBUG&&console.log(t.step,`DEPTH[]`),n.push(n.length)}function Zr(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LOOPCALL[]`,r,i);var a=t.ip,o=t.prog;t.prog=t.funcs[r];for(var s=0;s<i;s++)tr(t),e.DEBUG&&console.log(++t.step,s+1<i?`next loopcall`:`done loopcall`,s);t.ip=a,t.prog=o}function Qr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`CALL[]`,n);var r=t.ip,i=t.prog;t.prog=t.funcs[n],tr(t),t.ip=r,t.prog=i,e.DEBUG&&console.log(++t.step,`returning from`,n)}function $r(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CINDEX[]`,r),n.push(n[n.length-r])}function ei(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`MINDEX[]`,r),n.push(n.splice(n.length-r,1)[0])}function ti(t){if(t.env!==`fpgm`)throw Error(`FDEF not allowed here`);var n=t.stack,r=t.prog,i=t.ip,a=n.pop(),o=i;for(e.DEBUG&&console.log(t.step,`FDEF[]`,a);r[++i]!==45;);t.ip=i,t.funcs[a]=r.slice(o+1,i)}function G(t,n){var r=n.stack.pop(),i=n.z0[r],a=n.fv,o=n.pv;e.DEBUG&&console.log(n.step,`MDAP[`+t+`]`,r);var s=o.distance(i,_r);t&&(s=n.round(s)),a.setRelative(i,_r,s,o),a.touch(i),n.rp0=n.rp1=r}function ni(t,n){var r=n.z2,i=r.length-2,a,o,s;e.DEBUG&&console.log(n.step,`IUP[`+t.axis+`]`);for(var c=0;c<i;c++)a=r[c],!t.touched(a)&&(o=a.prevTouched(t),o!==a&&(s=a.nextTouched(t),o===s&&t.setRelative(a,a,t.distance(o,o,!1,!0),t,!0),t.interpolate(a,o,s,t)))}function ri(t,n){for(var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=n.loop,l=n.z2;c--;){var u=r.pop(),d=l[u],f=s.distance(a,a,!1,!0);o.setRelative(d,d,f,s),o.touch(d),e.DEBUG&&console.log(n.step,(n.loop>1?`loop `+(n.loop-c)+`: `:``)+`SHP[`+(t?`rp1`:`rp2`)+`]`,u)}n.loop=1}function K(t,n){var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop(),l=n.z2[n.contours[c]],u=l;e.DEBUG&&console.log(n.step,`SHC[`+t+`]`,c);var d=s.distance(a,a,!1,!0);do u!==a&&o.setRelative(u,u,d,s),u=u.nextPointOnContour;while(u!==l)}function q(t,n){var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop();e.DEBUG&&console.log(n.step,`SHZ[`+t+`]`,c);var l;switch(c){case 0:l=n.tZone;break;case 1:l=n.gZone;break;default:throw Error(`Invalid zone`)}for(var u,d=s.distance(a,a,!1,!0),f=l.length-2,p=0;p<f;p++)u=l[p],o.setRelative(u,u,d,s)}function ii(t){for(var n=t.stack,r=t.loop,i=t.fv,a=n.pop()/64,o=t.z2;r--;){var s=n.pop(),c=o[s];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-r)+`: `:``)+`SHPIX[]`,s,a),i.setRelative(c,c,a),i.touch(c)}t.loop=1}function ai(t){for(var n=t.stack,r=t.rp1,i=t.rp2,a=t.loop,o=t.z0[r],s=t.z1[i],c=t.fv,l=t.dpv,u=t.z2;a--;){var d=n.pop(),f=u[d];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`IP[]`,d,r,`<->`,i),c.interpolate(f,o,s,l),c.touch(f)}t.loop=1}function oi(t,n){var r=n.stack,i=r.pop()/64,a=r.pop(),o=n.z1[a],s=n.z0[n.rp0],c=n.fv,l=n.pv;c.setRelative(o,s,i,l),c.touch(o),e.DEBUG&&console.log(n.step,`MSIRP[`+t+`]`,i,a),n.rp1=n.rp0,n.rp2=a,t&&(n.rp0=a)}function si(t){for(var n=t.stack,r=t.rp0,i=t.z0[r],a=t.loop,o=t.fv,s=t.pv,c=t.z1;a--;){var l=n.pop(),u=c[l];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`ALIGNRP[]`,l),o.setRelative(u,i,0,s),o.touch(u)}t.loop=1}function ci(t){e.DEBUG&&console.log(t.step,`RTDG[]`),t.round=sr}function li(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z0[a],s=n.fv,c=n.pv,l=n.cvt[i];e.DEBUG&&console.log(n.step,`MIAP[`+t+`]`,i,`(`,l,`)`,a);var u=c.distance(o,_r);t&&(Math.abs(u-l)<n.cvCutIn&&(u=l),u=n.round(u)),s.setRelative(o,_r,u,c),n.zp0===0&&(o.xo=o.x,o.yo=o.y),s.touch(o),n.rp0=n.rp1=a}function ui(t){var n=t.prog,r=t.ip,i=t.stack,a=n[++r];e.DEBUG&&console.log(t.step,`NPUSHB[]`,a);for(var o=0;o<a;o++)i.push(n[++r]);t.ip=r}function di(t){var n=t.ip,r=t.prog,i=t.stack,a=r[++n];e.DEBUG&&console.log(t.step,`NPUSHW[]`,a);for(var o=0;o<a;o++){var s=r[++n]<<8|r[++n];s&32768&&(s=-((s^65535)+1)),i.push(s)}t.ip=n}function fi(t){var n=t.stack,r=t.store;r||=t.store=[];var i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`WS`,i,a),r[a]=i}function pi(t){var n=t.stack,r=t.store,i=n.pop();e.DEBUG&&console.log(t.step,`RS`,i);var a=r&&r[i]||0;n.push(a)}function mi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTP`,r,i),t.cvt[i]=r/64}function hi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`RCVT`,r),n.push(t.cvt[r]*64)}function gi(t,n){var r=n.stack,i=r.pop(),a=n.z2[i];e.DEBUG&&console.log(n.step,`GC[`+t+`]`,i),r.push(n.dpv.distance(a,_r,t,!1)*64)}function _i(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z1[i],s=n.z0[a],c=n.dpv.distance(s,o,t,t);e.DEBUG&&console.log(n.step,`MD[`+t+`]`,i,a,`->`,c),n.stack.push(Math.round(c*64))}function vi(t){e.DEBUG&&console.log(t.step,`MPPEM[]`),t.stack.push(t.ppem)}function yi(t){e.DEBUG&&console.log(t.step,`FLIPON[]`),t.autoFlip=!0}function bi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LT[]`,r,i),n.push(+(i<r))}function xi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LTEQ[]`,r,i),n.push(+(i<=r))}function Si(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GT[]`,r,i),n.push(+(i>r))}function Ci(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GTEQ[]`,r,i),n.push(+(i>=r))}function wi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`EQ[]`,r,i),n.push(+(r===i))}function Ti(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`NEQ[]`,r,i),n.push(r===i?0:1)}function Ei(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ODD[]`,r),n.push(Math.trunc(r)%2?1:0)}function Di(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`EVEN[]`,r),n.push(Math.trunc(r)%2?0:1)}function Oi(t){var n=t.stack.pop(),r;e.DEBUG&&console.log(t.step,`IF[]`,n),n||(xr(t,!0),e.DEBUG&&console.log(t.step,r===27?`ELSE[]`:`EIF[]`))}function ki(t){e.DEBUG&&console.log(t.step,`EIF[]`)}function Ai(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`AND[]`,r,i),n.push(r&&i?1:0)}function ji(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`OR[]`,r,i),n.push(r||i?1:0)}function Mi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NOT[]`,r),n.push(+!r)}function Ni(t,n){var r=n.stack,i=r.pop(),a=n.fv,o=n.pv,s=n.ppem,c=n.deltaBase+(t-1)*16,l=n.deltaShift,u=n.z0;e.DEBUG&&console.log(n.step,`DELTAP[`+t+`]`,i,r);for(var d=0;d<i;d++){var f=r.pop(),p=r.pop();if(c+((p&240)>>4)===s){var m=(p&15)-8;m>=0&&m++,e.DEBUG&&console.log(n.step,`DELTAPFIX`,f,`by`,m*l);var h=u[f];a.setRelative(h,h,m*l,o)}}}function Pi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDB[]`,n),t.deltaBase=n}function Fi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDS[]`,n),t.deltaShift=.5**n}function Ii(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`ADD[]`,r,i),n.push(i+r)}function Li(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SUB[]`,r,i),n.push(i-r)}function Ri(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`DIV[]`,r,i),n.push(i*64/r)}function zi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MUL[]`,r,i),n.push(i*r/64)}function Bi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ABS[]`,r),n.push(Math.abs(r))}function Vi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NEG[]`,r),n.push(-r)}function Hi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`FLOOR[]`,r),n.push(Math.floor(r/64)*64)}function Ui(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CEILING[]`,r),n.push(Math.ceil(r/64)*64)}function Wi(t,n){var r=n.stack,i=r.pop();e.DEBUG&&console.log(n.step,`ROUND[]`),r.push(n.round(i/64)*64)}function Gi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTF[]`,r,i),t.cvt[i]=r*t.ppem/t.font.unitsPerEm}function Ki(t,n){var r=n.stack,i=r.pop(),a=n.ppem,o=n.deltaBase+(t-1)*16,s=n.deltaShift;e.DEBUG&&console.log(n.step,`DELTAC[`+t+`]`,i,r);for(var c=0;c<i;c++){var l=r.pop(),u=r.pop();if(o+((u&240)>>4)===a){var d=(u&15)-8;d>=0&&d++;var f=d*s;e.DEBUG&&console.log(n.step,`DELTACFIX`,l,`by`,f),n.cvt[l]+=f}}}function qi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SROUND[]`,n),t.round=dr;var r;switch(n&192){case 0:r=.5;break;case 64:r=1;break;case 128:r=2;break;default:throw Error(`invalid SROUND value`)}switch(t.srPeriod=r,n&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*r;break;case 32:t.srPhase=.5*r;break;case 48:t.srPhase=.75*r;break;default:throw Error(`invalid SROUND value`)}n&=15,n===0?t.srThreshold=0:t.srThreshold=(n/8-.5)*r}function Ji(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`S45ROUND[]`,n),t.round=dr;var r;switch(n&192){case 0:r=Math.sqrt(2)/2;break;case 64:r=Math.sqrt(2);break;case 128:r=2*Math.sqrt(2);break;default:throw Error(`invalid S45ROUND value`)}switch(t.srPeriod=r,n&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*r;break;case 32:t.srPhase=.5*r;break;case 48:t.srPhase=.75*r;break;default:throw Error(`invalid S45ROUND value`)}n&=15,n===0?t.srThreshold=0:t.srThreshold=(n/8-.5)*r}function Yi(t){e.DEBUG&&console.log(t.step,`ROFF[]`),t.round=ar}function Xi(t){e.DEBUG&&console.log(t.step,`RUTG[]`),t.round=lr}function Zi(t){e.DEBUG&&console.log(t.step,`RDTG[]`),t.round=ur}function Qi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANCTRL[]`,n)}function $i(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(n.step,`SDPVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.dpv=hr(c,l)}function ea(t){var n=t.stack,r=n.pop(),i=0;e.DEBUG&&console.log(t.step,`GETINFO[]`,r),r&1&&(i=35),r&32&&(i|=4096),n.push(i)}function ta(t){var n=t.stack,r=n.pop(),i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`ROLL[]`),n.push(i),n.push(r),n.push(a)}function na(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MAX[]`,r,i),n.push(Math.max(i,r))}function ra(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MIN[]`,r,i),n.push(Math.min(i,r))}function ia(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANTYPE[]`,n)}function aa(t){var n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`INSTCTRL[]`,n,r),n){case 1:t.inhibitGridFit=!!r;return;case 2:t.ignoreCvt=!!r;return;default:throw Error(`invalid INSTCTRL[] selector`)}}function oa(t,n){var r=n.stack,i=n.prog,a=n.ip;e.DEBUG&&console.log(n.step,`PUSHB[`+t+`]`);for(var o=0;o<t;o++)r.push(i[++a]);n.ip=a}function sa(t,n){var r=n.ip,i=n.prog,a=n.stack;e.DEBUG&&console.log(n.ip,`PUSHW[`+t+`]`);for(var o=0;o<t;o++){var s=i[++r]<<8|i[++r];s&32768&&(s=-((s^65535)+1)),a.push(s)}n.ip=r}function J(t,n,r,i,a,o){var s=o.stack,c=t&&s.pop(),l=s.pop(),u=o.rp0,d=o.z0[u],f=o.z1[l],p=o.minDis,m=o.fv,h=o.dpv,g,_=g=h.distance(f,d,!0,!0),v=_>=0?1:-1,y;_=Math.abs(_),t&&(y=o.cvt[c],i&&Math.abs(_-y)<o.cvCutIn&&(_=y)),r&&_<p&&(_=p),i&&(_=o.round(_)),m.setRelative(f,d,v*_,h),m.touch(f),e.DEBUG&&console.log(o.step,(t?`MIRP[`:`MDRP[`)+(n?`M`:`m`)+(r?`>`:`_`)+(i?`R`:`_`)+(a===0?`Gr`:a===1?`Bl`:a===2?`Wh`:``)+`]`,t?c+`(`+o.cvt[c]+`,`+y+`)`:``,l,`(d =`,g,`->`,v*_,`)`),o.rp1=o.rp0,o.rp2=l,n&&(o.rp0=l)}er=[Sr.bind(void 0,pr),Sr.bind(void 0,fr),Cr.bind(void 0,pr),Cr.bind(void 0,fr),wr.bind(void 0,pr),wr.bind(void 0,fr),Tr.bind(void 0,0),Tr.bind(void 0,1),Er.bind(void 0,0),Er.bind(void 0,1),Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,void 0,void 0,qr,Jr,Yr,W,Xr,$r,ei,void 0,void 0,void 0,Zr,Qr,ti,void 0,G.bind(void 0,0),G.bind(void 0,1),ni.bind(void 0,pr),ni.bind(void 0,fr),ri.bind(void 0,0),ri.bind(void 0,1),K.bind(void 0,0),K.bind(void 0,1),q.bind(void 0,0),q.bind(void 0,1),ii,ai,oi.bind(void 0,0),oi.bind(void 0,1),si,ci,li.bind(void 0,0),li.bind(void 0,1),ui,di,fi,pi,mi,hi,gi.bind(void 0,0),gi.bind(void 0,1),void 0,_i.bind(void 0,0),_i.bind(void 0,1),vi,void 0,yi,void 0,void 0,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni.bind(void 0,1),Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi.bind(void 0,0),Wi.bind(void 0,1),Wi.bind(void 0,2),Wi.bind(void 0,3),void 0,void 0,void 0,void 0,Gi,Ni.bind(void 0,2),Ni.bind(void 0,3),Ki.bind(void 0,1),Ki.bind(void 0,2),Ki.bind(void 0,3),qi,Ji,void 0,void 0,Yi,void 0,Xi,Zi,Jr,Jr,void 0,void 0,void 0,void 0,void 0,Qi,$i.bind(void 0,0),$i.bind(void 0,1),ea,void 0,ta,na,ra,ia,aa,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,oa.bind(void 0,1),oa.bind(void 0,2),oa.bind(void 0,3),oa.bind(void 0,4),oa.bind(void 0,5),oa.bind(void 0,6),oa.bind(void 0,7),oa.bind(void 0,8),sa.bind(void 0,1),sa.bind(void 0,2),sa.bind(void 0,3),sa.bind(void 0,4),sa.bind(void 0,5),sa.bind(void 0,6),sa.bind(void 0,7),sa.bind(void 0,8),J.bind(void 0,0,0,0,0,0),J.bind(void 0,0,0,0,0,1),J.bind(void 0,0,0,0,0,2),J.bind(void 0,0,0,0,0,3),J.bind(void 0,0,0,0,1,0),J.bind(void 0,0,0,0,1,1),J.bind(void 0,0,0,0,1,2),J.bind(void 0,0,0,0,1,3),J.bind(void 0,0,0,1,0,0),J.bind(void 0,0,0,1,0,1),J.bind(void 0,0,0,1,0,2),J.bind(void 0,0,0,1,0,3),J.bind(void 0,0,0,1,1,0),J.bind(void 0,0,0,1,1,1),J.bind(void 0,0,0,1,1,2),J.bind(void 0,0,0,1,1,3),J.bind(void 0,0,1,0,0,0),J.bind(void 0,0,1,0,0,1),J.bind(void 0,0,1,0,0,2),J.bind(void 0,0,1,0,0,3),J.bind(void 0,0,1,0,1,0),J.bind(void 0,0,1,0,1,1),J.bind(void 0,0,1,0,1,2),J.bind(void 0,0,1,0,1,3),J.bind(void 0,0,1,1,0,0),J.bind(void 0,0,1,1,0,1),J.bind(void 0,0,1,1,0,2),J.bind(void 0,0,1,1,0,3),J.bind(void 0,0,1,1,1,0),J.bind(void 0,0,1,1,1,1),J.bind(void 0,0,1,1,1,2),J.bind(void 0,0,1,1,1,3),J.bind(void 0,1,0,0,0,0),J.bind(void 0,1,0,0,0,1),J.bind(void 0,1,0,0,0,2),J.bind(void 0,1,0,0,0,3),J.bind(void 0,1,0,0,1,0),J.bind(void 0,1,0,0,1,1),J.bind(void 0,1,0,0,1,2),J.bind(void 0,1,0,0,1,3),J.bind(void 0,1,0,1,0,0),J.bind(void 0,1,0,1,0,1),J.bind(void 0,1,0,1,0,2),J.bind(void 0,1,0,1,0,3),J.bind(void 0,1,0,1,1,0),J.bind(void 0,1,0,1,1,1),J.bind(void 0,1,0,1,1,2),J.bind(void 0,1,0,1,1,3),J.bind(void 0,1,1,0,0,0),J.bind(void 0,1,1,0,0,1),J.bind(void 0,1,1,0,0,2),J.bind(void 0,1,1,0,0,3),J.bind(void 0,1,1,0,1,0),J.bind(void 0,1,1,0,1,1),J.bind(void 0,1,1,0,1,2),J.bind(void 0,1,1,0,1,3),J.bind(void 0,1,1,1,0,0),J.bind(void 0,1,1,1,0,1),J.bind(void 0,1,1,1,0,2),J.bind(void 0,1,1,1,0,3),J.bind(void 0,1,1,1,1,0),J.bind(void 0,1,1,1,1,1),J.bind(void 0,1,1,1,1,2),J.bind(void 0,1,1,1,1,3)];function Y(e){e||={},e.empty||($n(e.familyName,`When creating a new Font object, familyName is required.`),$n(e.styleName,`When creating a new Font object, styleName is required.`),$n(e.unitsPerEm,`When creating a new Font object, unitsPerEm is required.`),$n(e.ascender,`When creating a new Font object, ascender is required.`),$n(e.descender,`When creating a new Font object, descender is required.`),$n(e.descender<0,`Descender should be negative (e.g. -512).`),this.names={fontFamily:{en:e.familyName||` `},fontSubfamily:{en:e.styleName||` `},fullName:{en:e.fullName||e.familyName+` `+e.styleName},postScriptName:{en:e.postScriptName||e.familyName+e.styleName},designer:{en:e.designer||` `},designerURL:{en:e.designerURL||` `},manufacturer:{en:e.manufacturer||` `},manufacturerURL:{en:e.manufacturerURL||` `},license:{en:e.license||` `},licenseURL:{en:e.licenseURL||` `},version:{en:e.version||`Version 0.1`},description:{en:e.description||` `},copyright:{en:e.copyright||` `},trademark:{en:e.trademark||` `}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new ot.GlyphSet(this,e.glyphs||[]),this.encoding=new Be(this),this.position=new qn(this),this.substitution=new Jn(this),this.tables=this.tables||{},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat===`truetype`)return this._hinting=new ir(this)}})}Y.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)!==null},Y.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Y.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Y.prototype.stringToGlyphs=function(e,t){var n=this;t||=this.defaultRenderOptions;for(var r=[],i=0;i<e.length;i+=1){var a=e[i];r.push(n.charToGlyphIndex(a))}var o=r.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),c=[];t.features.liga&&(c=c.concat(this.substitution.getFeature(`liga`,s,t.language))),t.features.rlig&&(c=c.concat(this.substitution.getFeature(`rlig`,s,t.language)));for(var l=0;l<o;l+=1)for(var u=0;u<c.length;u++){for(var d=c[u],f=d.sub,p=f.length,m=0;m<p&&f[m]===r[l+m];)m++;m===p&&(r.splice(l,p,d.by),o=o-p+1)}}for(var h=Array(o),g=this.glyphs.get(0),_=0;_<o;_+=1)h[_]=n.glyphs.get(r[_])||g;return h},Y.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Y.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Y.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):``},Y.prototype.getKerningValue=function(e,t){return e=e.index||e,t=t.index||t,this.kerningPairs[e+`,`+t]||0},Y.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Y.prototype.forEachGlyph=function(e,t,n,r,i,a){var o=this;t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?72:r,i||=this.defaultRenderOptions;var s=1/this.unitsPerEm*r,c=this.stringToGlyphs(e,i),l;if(i.kerning){var u=i.script||this.position.getDefaultScriptName();l=this.position.getKerningTables(u,i.language)}for(var d=0;d<c.length;d+=1){var f=c[d];if(a.call(o,f,t,n,r,i),f.advanceWidth&&(t+=f.advanceWidth*s),i.kerning&&d<c.length-1){var p=l?o.position.getKerningValue(l,f.index,c[d+1].index):o.getKerningValue(f,c[d+1]);t+=p*s}i.letterSpacing?t+=i.letterSpacing*r:i.tracking&&(t+=i.tracking/1e3*r)}return t},Y.prototype.getPath=function(e,t,n,r,i){var a=new D;return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var o=e.getPath(t,n,r,i,this);a.extend(o)}),a},Y.prototype.getPaths=function(e,t,n,r,i){var a=[];return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var o=e.getPath(t,n,r,i,this);a.push(o)}),a},Y.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,function(){})},Y.prototype.draw=function(e,t,n,r,i,a){this.getPath(t,n,r,i,a).draw(e)},Y.prototype.drawPoints=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,function(t,n,r,i){t.drawPoints(e,n,r,i)})},Y.prototype.drawMetrics=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,function(t,n,r,i){t.drawMetrics(e,n,r,i)})},Y.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Y.prototype.validate=function(){var e=[],t=this;function n(t,n){t||e.push(n)}function r(e){var r=t.getEnglishName(e);n(r&&r.trim().length>0,`No English `+e+` specified.`)}r(`fontFamily`),r(`weightName`),r(`manufacturer`),r(`copyright`),r(`version`),n(this.unitsPerEm>0,`No unitsPerEm specified.`)},Y.prototype.toTables=function(){return Hn.fontToTable(this)},Y.prototype.toBuffer=function(){return console.warn(`Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.`),this.toArrayBuffer()},Y.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},Y.prototype.download=function(e){var t=this.getEnglishName(`fontFamily`),n=this.getEnglishName(`fontSubfamily`);e||=t.replace(/\s/g,``)+`-`+n+`.otf`;var r=this.toArrayBuffer();if(U())window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,r.byteLength,function(t){t.root.getFile(e,{create:!0},function(e){e.createWriter(function(t){var n=new DataView(r),i=new Blob([n],{type:`font/opentype`});t.write(i),t.addEventListener(`writeend`,function(){location.href=e.toURL()},!1)})})},function(e){throw Error(e.name+`: `+e.message)});else{var i=tg(`fs`),a=Qn(r);i.writeFileSync(e,a)}},Y.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Y.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Y.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function ca(e,t){var n=JSON.stringify(e),r=256;for(var i in t){var a=parseInt(i);if(!(!a||a<256)){if(JSON.stringify(t[i])===n)return a;r<=a&&(r=a+1)}}return t[r]=e,r}function la(e,t,n){var r=ca(t.name,n);return[{name:`tag_`+e,type:`TAG`,value:t.tag},{name:`minValue_`+e,type:`FIXED`,value:t.minValue<<16},{name:`defaultValue_`+e,type:`FIXED`,value:t.defaultValue<<16},{name:`maxValue_`+e,type:`FIXED`,value:t.maxValue<<16},{name:`flags_`+e,type:`USHORT`,value:0},{name:`nameID_`+e,type:`USHORT`,value:r}]}function ua(e,t,n){var r={},i=new z.Parser(e,t);return r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip(`uShort`,1),r.name=n[i.parseUShort()]||{},r}function da(e,t,n,r){for(var i=ca(t.name,r),a=[{name:`nameID_`+e,type:`USHORT`,value:i},{name:`flags_`+e,type:`USHORT`,value:0}],o=0;o<n.length;++o){var s=n[o].tag;a.push({name:`axis_`+e+` `+s,type:`FIXED`,value:t.coordinates[s]<<16})}return a}function fa(e,t,n,r){var i={},a=new z.Parser(e,t);i.name=r[a.parseUShort()]||{},a.skip(`uShort`,1),i.coordinates={};for(var o=0;o<n.length;++o)i.coordinates[n[o].tag]=a.parseFixed();return i}function pa(e,t){var n=new L.Table(`fvar`,[{name:`version`,type:`ULONG`,value:65536},{name:`offsetToData`,type:`USHORT`,value:0},{name:`countSizePairs`,type:`USHORT`,value:2},{name:`axisCount`,type:`USHORT`,value:e.axes.length},{name:`axisSize`,type:`USHORT`,value:20},{name:`instanceCount`,type:`USHORT`,value:e.instances.length},{name:`instanceSize`,type:`USHORT`,value:4+e.axes.length*4}]);n.offsetToData=n.sizeOf();for(var r=0;r<e.axes.length;r++)n.fields=n.fields.concat(la(r,e.axes[r],t));for(var i=0;i<e.instances.length;i++)n.fields=n.fields.concat(da(i,e.instances[i],e.axes,t));return n}function ma(e,t,n){var r=new z.Parser(e,t),i=r.parseULong();A.argument(i===65536,`Unsupported fvar table version.`);var a=r.parseOffset16();r.skip(`uShort`,1);for(var o=r.parseUShort(),s=r.parseUShort(),c=r.parseUShort(),l=r.parseUShort(),u=[],d=0;d<o;d++)u.push(ua(e,t+a+d*s,n));for(var f=[],p=t+a+o*s,m=0;m<c;m++)f.push(fa(e,p+m*l,u,n));return{axes:u,instances:f}}var ha={make:pa,parse:ma},ga=Array(10);ga[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{posFormat:1,coverage:this.parsePointer(R.coverage),value:this.parseValueRecord()};if(t===2)return{posFormat:2,coverage:this.parsePointer(R.coverage),values:this.parseValueRecordList()};A.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 1 format must be 1 or 2.`)},ga[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parsePointer(R.coverage),r=this.parseUShort(),i=this.parseUShort();if(t===1)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(R.pointer(R.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))};if(t===2){var a=this.parsePointer(R.classDef),o=this.parsePointer(R.classDef),s=this.parseUShort(),c=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:a,classDef2:o,class1Count:s,class2Count:c,classRecords:this.parseList(s,R.list(c,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))}}A.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 2 format must be 1 or 2.`)},ga[3]=function(){return{error:`GPOS Lookup 3 not supported`}},ga[4]=function(){return{error:`GPOS Lookup 4 not supported`}},ga[5]=function(){return{error:`GPOS Lookup 5 not supported`}},ga[6]=function(){return{error:`GPOS Lookup 6 not supported`}},ga[7]=function(){return{error:`GPOS Lookup 7 not supported`}},ga[8]=function(){return{error:`GPOS Lookup 8 not supported`}},ga[9]=function(){return{error:`GPOS Lookup 9 not supported`}};function _a(e,t){t||=0;var n=new R(e,t),r=n.parseVersion(1);return A.argument(r===1||r===1.1,`Unsupported GPOS table version `+r),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ga)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ga),variations:n.parseFeatureVariationsList()}}var va=Array(10);function ya(e){return new L.Table(`GPOS`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new L.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new L.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new L.LookupList(e.lookups,va)}])}var ba={parse:_a,make:ya};function xa(e){var t={};e.skip(`uShort`);var n=e.parseUShort();A.argument(n===0,`Unsupported kern sub-table version.`),e.skip(`uShort`,2);var r=e.parseUShort();e.skip(`uShort`,3);for(var i=0;i<r;i+=1){var a=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[a+`,`+o]=s}return t}function Sa(e){var t={};e.skip(`uShort`),e.parseULong()>1&&console.warn(`Only the first kern subtable is supported.`),e.skip(`uLong`);var n=e.parseUShort()&255;if(e.skip(`uShort`),n===0){var r=e.parseUShort();e.skip(`uShort`,3);for(var i=0;i<r;i+=1){var a=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[a+`,`+o]=s}}return t}function Ca(e,t){var n=new z.Parser(e,t),r=n.parseUShort();if(r===0)return xa(n);if(r===1)return Sa(n);throw Error(`Unsupported kern table version (`+r+`).`)}var wa={parse:Ca};function Ta(e,t,n,r){for(var i=new z.Parser(e,t),a=r?i.parseUShort:i.parseULong,o=[],s=0;s<n+1;s+=1){var c=a.call(i);r&&(c*=2),o.push(c)}return o}var Ea={parse:Ta};function Da(e,t){tg(`fs`).readFile(e,function(e,n){if(e)return t(e.message);t(null,Zn(n))})}function Oa(e,t){var n=new XMLHttpRequest;n.open(`get`,e,!0),n.responseType=`arraybuffer`,n.onload=function(){return n.response?t(null,n.response):t(`Font could not be loaded: `+n.statusText)},n.onerror=function(){t(`Font could not be loaded`)},n.send()}function ka(e,t){for(var n=[],r=12,i=0;i<t;i+=1){var a=z.getTag(e,r),o=z.getULong(e,r+4),s=z.getULong(e,r+8),c=z.getULong(e,r+12);n.push({tag:a,checksum:o,offset:s,length:c,compression:!1}),r+=16}return n}function Aa(e,t){for(var n=[],r=44,i=0;i<t;i+=1){var a=z.getTag(e,r),o=z.getULong(e,r+4),s=z.getULong(e,r+8),c=z.getULong(e,r+12),l=void 0;l=s<c?`WOFF`:!1,n.push({tag:a,offset:o,compression:l,compressedLength:s,length:c}),r+=20}return n}function ja(e,t){if(t.compression===`WOFF`){var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(w(n,r),r.byteLength!==t.length)throw Error(`Decompression error: `+t.tag+` decompressed length doesn't match recorded length`);return{data:new DataView(r.buffer,0),offset:0}}else return{data:e,offset:t.offset}}function Ma(e){var t,n,r=new Y({empty:!0}),i=new DataView(e,0),a,o=[],s=z.getTag(i,0);if(s===`\0\0\0`||s===`true`||s===`typ1`)r.outlinesFormat=`truetype`,a=z.getUShort(i,4),o=ka(i,a);else if(s===`OTTO`)r.outlinesFormat=`cff`,a=z.getUShort(i,4),o=ka(i,a);else if(s===`wOFF`){var c=z.getTag(i,4);if(c===`\0\0\0`)r.outlinesFormat=`truetype`;else if(c===`OTTO`)r.outlinesFormat=`cff`;else throw Error(`Unsupported OpenType flavor `+s);a=z.getUShort(i,12),o=Aa(i,a)}else throw Error(`Unsupported OpenType signature `+s);for(var l,u,d,f,p,m,h,g,_,v,y,b=0;b<a;b+=1){var x=o[b],S=void 0;switch(x.tag){case`cmap`:S=ja(i,x),r.tables.cmap=Fe.parse(S.data,S.offset),r.encoding=new Ve(r.tables.cmap);break;case`cvt `:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.cvt=y.parseShortList(x.length/2);break;case`fvar`:u=x;break;case`fpgm`:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.fpgm=y.parseByteList(x.length);break;case`head`:S=ja(i,x),r.tables.head=Ht.parse(S.data,S.offset),r.unitsPerEm=r.tables.head.unitsPerEm,t=r.tables.head.indexToLocFormat;break;case`hhea`:S=ja(i,x),r.tables.hhea=Gt.parse(S.data,S.offset),r.ascender=r.tables.hhea.ascender,r.descender=r.tables.hhea.descender,r.numberOfHMetrics=r.tables.hhea.numberOfHMetrics;break;case`hmtx`:m=x;break;case`ltag`:S=ja(i,x),n=Zt.parse(S.data,S.offset);break;case`maxp`:S=ja(i,x),r.tables.maxp=en.parse(S.data,S.offset),r.numGlyphs=r.tables.maxp.numGlyphs;break;case`name`:_=x;break;case`OS/2`:S=ja(i,x),r.tables.os2=Sn.parse(S.data,S.offset);break;case`post`:S=ja(i,x),r.tables.post=Tn.parse(S.data,S.offset),r.glyphNames=new Ue(r.tables.post);break;case`prep`:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.prep=y.parseByteList(x.length);break;case`glyf`:d=x;break;case`loca`:g=x;break;case`CFF `:l=x;break;case`kern`:h=x;break;case`GPOS`:f=x;break;case`GSUB`:p=x;break;case`meta`:v=x;break}}var ee=ja(i,_);if(r.tables.name=_n.parse(ee.data,ee.offset,n),r.names=r.tables.name,d&&g){var C=t===0,w=ja(i,g),T=Ea.parse(w.data,w.offset,r.numGlyphs,C),E=ja(i,d);r.glyphs=Qe.parse(E.data,E.offset,T,r)}else if(l){var D=ja(i,l);zt.parse(D.data,D.offset,r)}else throw Error(`Font doesn't contain TrueType or CFF outlines.`);var O=ja(i,m);if(Jt.parse(O.data,O.offset,r.numberOfHMetrics,r.numGlyphs,r.glyphs),We(r),h){var k=ja(i,h);r.kerningPairs=wa.parse(k.data,k.offset)}else r.kerningPairs={};if(f){var A=ja(i,f);r.tables.gpos=ba.parse(A.data,A.offset)}if(p){var j=ja(i,p);r.tables.gsub=jn.parse(j.data,j.offset)}if(u){var M=ja(i,u);r.tables.fvar=ha.parse(M.data,M.offset,r.names)}if(v){var N=ja(i,v);r.tables.meta=Pn.parse(N.data,N.offset),r.metas=r.tables.meta}return r}function Na(e,t){(typeof window>`u`?Da:Oa)(e,function(e,n){if(e)return t(e);var r;try{r=Ma(n)}catch(e){return t(e,null)}return t(null,r)})}function Pa(e){return Ma(Zn(tg(`fs`).readFileSync(e)))}e.Font=Y,e.Glyph=et,e.Path=D,e.BoundingBox=E,e._parse=z,e.parse=Ma,e.load=Na,e.loadSync=Pa,Object.defineProperty(e,"__esModule",{value:!0})})}),ag=$((e,t)=>{t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}}),og=$((e,t)=>{t.exports=n,n.Node=o,n.create=n;function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}n.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||=e,this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||=e,this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},n.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},n.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},n.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},n.prototype.map=function(e,t){t||=this;for(var r=new n,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t||=this;for(var r=new n,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(var o=[],i=0;a&&i<t;i++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var i=0;i<n.length;i++)a=r(this,a,n[i]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function r(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function i(e,t){e.tail=new o(t,e.tail,null,e),e.head||=e.tail,e.length++}function a(e,t){e.head=new o(t,null,e.head,e),e.tail||=e.head,e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{ag()(n)}catch{}}),sg=$((e,t)=>{var n=og(),r=Symbol(`max`),i=Symbol(`length`),a=Symbol(`lengthCalculator`),o=Symbol(`allowStale`),s=Symbol(`maxAge`),c=Symbol(`dispose`),l=Symbol(`noDisposeOnSet`),u=Symbol(`lruList`),d=Symbol(`cache`),f=Symbol(`updateAgeOnGet`),p=()=>1,m=class{constructor(e){if(typeof e==`number`&&(e={max:e}),e||={},e.max&&(typeof e.max!=`number`||e.max<0))throw TypeError(`max must be a non-negative number`);this[r]=e.max||1/0;let t=e.length||p;if(this[a]=typeof t==`function`?t:p,this[o]=e.stale||!1,e.maxAge&&typeof e.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[s]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[r]=e||1/0,_(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[s]=e,_(this)}get maxAge(){return this[s]}set lengthCalculator(e){typeof e!=`function`&&(e=p),e!==this[a]&&(this[a]=e,this[i]=0,this[u].forEach(e=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),_(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t||=this;for(let n=this[u].tail;n!==null;){let r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t||=this;for(let n=this[u].head;n!==null;){let r=n.next;b(this,e,n,t),n=r}}keys(){return this[u].toArray().map(e=>e.key)}values(){return this[u].toArray().map(e=>e.value)}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach(e=>this[c](e.key,e.value)),this[d]=new Map,this[u]=new n,this[i]=0}dump(){return this[u].map(e=>g(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[u]}set(e,t,n){if(n||=this[s],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);let o=n?Date.now():0,f=this[a](t,e);if(this[d].has(e)){if(f>this[r])return v(this,this[d].get(e)),!1;let a=this[d].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=o,a.maxAge=n,a.value=t,this[i]+=f-a.length,a.length=f,this.get(e),_(this),!0}let p=new y(e,t,f,o,n);return p.length>this[r]?(this[c]&&this[c](e,t),!1):(this[i]+=p.length,this[u].unshift(p),this[d].set(e,this[u].head),_(this),!0)}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!g(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>h(this,t,!1))}},h=(e,t,n)=>{let r=e[d].get(t);if(r){let t=r.value;if(g(e,t)){if(v(e,r),!e[o])return}else n&&(e[f]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},_=e=>{if(e[i]>e[r])for(let t=e[u].tail;e[i]>e[r]&&t!==null;){let n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){let n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[d].delete(n.key),e[u].removeNode(t)}},y=class{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}},b=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};t.exports=m}),cg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t={individual:{},range:[]};for(let r of e)n(t,r);return t}e.default=t;function n(e,t){for(let[n,i]of Object.entries(t.individual))if(e.individual[n])r(e.individual[n],i);else{let t=!1;for(let[o,{range:c,entry:l}]of e.range.entries()){let u=a(Number(n),c);if(u.both!==null){t=!0,e.individual[n]=i,r(e.individual[n],s(l)),e.range.splice(o,1);for(let t of u.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l)}}t||(e.individual[n]=i)}for(let{range:n,entry:o}of t.range){let t=[n];for(let n=0;n<e.range.length;n++){let{range:c,entry:l}=e.range[n];for(let[u,d]of t.entries())if(Array.isArray(d)){let a=i(d,c);if(a.both===null)continue;e.range.splice(n,1),n--;let u=s(l);Array.isArray(a.both)?e.range.push({range:a.both,entry:u}):e.individual[a.both]=u,r(u,s(o));for(let t of a.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t=a.first}else{let i=a(d,c);if(i.both===null)continue;e.individual[d]=s(o),r(e.individual[d],s(l)),e.range.splice(n,1),n--;for(let t of i.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t.splice(u,1,...i.first);break}}for(let n of Object.keys(e.individual))for(let[i,c]of t.entries())if(Array.isArray(c)){let l=a(Number(n),c);if(l.both===null)continue;r(e.individual[n],s(o)),t.splice(i,1,...l.second);break}else if(Number(n)===c){r(e.individual[n],s(o));break}for(let n of t)Array.isArray(n)?e.range.push({range:n,entry:s(o)}):e.individual[n]=s(o)}}function r(e,t){t.lookup&&(!e.lookup||e.lookup.index>t.lookup.index||e.lookup.index===t.lookup.index&&e.lookup.subIndex>t.lookup.subIndex)&&(e.lookup=t.lookup),t.forward&&(e.forward?n(e.forward,t.forward):e.forward=t.forward),t.reverse&&(e.reverse?n(e.reverse,t.reverse):e.reverse=t.reverse)}function i(e,t){let n={first:[],second:[],both:null};if(e[0]<t[1]&&t[0]<e[1]&&(n.both=o(Math.max(e[0],t[0]),Math.min(e[1],t[1]))),e[0]<t[0]){let r=e[0],i=Math.min(t[0],e[1]);n.first.push(o(r,i))}else if(t[0]<e[0]){let r=t[0],i=Math.min(t[1],e[0]);n.second.push(o(r,i))}if(e[1]>t[1]){let r=Math.max(e[0],t[1]),i=e[1];n.first.push(o(r,i))}else if(t[1]>e[1]){let r=Math.max(e[1],t[0]),i=t[1];n.second.push(o(r,i))}return n}function a(e,t){if(e<t[0]||e>t[1])return{first:[e],second:[t],both:null};let n={first:[],second:[],both:e};return t[0]<e&&n.second.push(o(t[0],e)),t[1]>e&&n.second.push(o(e+1,t[1])),n}function o(e,t){return t-e===1?e:[e,t]}function s(e){let t={};return e.forward&&(t.forward=c(e.forward)),e.reverse&&(t.reverse=c(e.reverse)),e.lookup&&(t.lookup={contextRange:e.lookup.contextRange.slice(),index:e.lookup.index,length:e.lookup.length,subIndex:e.lookup.subIndex,substitutions:e.lookup.substitutions.slice()}),t}function c(e){let t={};for(let[n,r]of Object.entries(e.individual))t[n]=s(r);return{individual:t,range:e.range.map(({range:e,entry:t})=>({range:e.slice(),entry:s(t)}))}}}),lg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,r,i,a){let o=e[r[a]];if(!o)return;let s=o.lookup;if(o.reverse){let e=n(o.reverse,r,i);(!s&&e||e&&s&&(s.index>e.index||s.index===e.index&&s.subIndex>e.subIndex))&&(s=e)}if(++a>=r.length||!o.forward)return s;let c=t(o.forward,r,i,a);return(!s&&c||c&&s&&(s.index>c.index||s.index===c.index&&s.subIndex>c.subIndex))&&(s=c),s}e.default=t;function n(e,t,n){let r=e[t[--n]],i=r&&r.lookup;for(;r&&((!i&&r.lookup||r.lookup&&i&&i.index>r.lookup.index)&&(i=r.lookup),!(--n<0||!r.reverse));)r=r.reverse[t[n]];return i}}),ug=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t,n){let r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(r){if(n<=a[0])return e[i-1][1]=n,e;if(n<=a[1])return e[i-1][1]=Math.max(n,a[1]),e.splice(i,1),r=!1,e;e.splice(i,1),i--}else{if(n<=a[0])return e.splice(i,0,[t,n]),e;if(n<=a[1])return a[0]=Math.min(t,a[0]),e;if(t<a[1])a[0]=Math.min(t,a[0]),r=!0;else continue}}return r?e[e.length-1][1]=n:e.push([t,n]),e}e.default=t}),dg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){switch(e.format){case 1:let n=e.glyphs.indexOf(t);return n===-1?null:n;case 2:let r=e.ranges.find(e=>e.start<=t&&e.end>=t);return r?r.index:null}}e.default=t;function n(e){switch(e.format){case 1:return e.glyphs.map((e,t)=>({glyphId:e,index:t}));case 2:let t=[];for(let[n,r]of e.ranges.entries())r.end===r.start?t.push({glyphId:r.start,index:n}):t.push({glyphId:[r.start,r.end+1],index:n});return t}}e.listGlyphsByIndex=n}),fg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=dg();function n(e,t){let n=t[0],i=r(e,n),a=t[0]+1,o=new Map;for(;a<t[1];)r(e,a)!==i&&(a-n<=1?o.set(n,i):o.set([n,a],i)),a++;return a-n<=1?o.set(n,i):o.set([n,a],i),o}e.getRangeSubstitutionGlyphs=n;function r(e,n){let r=t.default(e.coverage,n);if(r===null)return null;switch(e.substFormat){case 1:return(n+e.deltaGlyphId)%2**16;case 2:return e.substitute[r]==null?null:e.substitute[r]}}e.getIndividualSubstitutionGlyph=r}),pg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=fg();function n(e,t,n,r,i){let o=[];for(let s of n){s.entry.forward={individual:{},range:[]};for(let n of e)o.push(...a(s.entry.forward,r,i,t,n).map(({entry:e,substitution:t})=>({entry:e,substitutions:[...s.substitutions,t]})))}return o}e.processInputPosition=n;function r(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.forward||(r.entry.forward={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.forward.range.push({entry:e,range:t}):r.entry.forward.individual[t]=e}return n}e.processLookaheadPosition=r;function i(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.reverse||(r.entry.reverse={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.reverse.range.push({entry:e,range:t}):r.entry.reverse.individual[t]=e}return n}e.processBacktrackPosition=i;function a(e,t,n,r,i){let a=[];if(!Array.isArray(i))e.individual[i]={},a.push({entry:e.individual[i],substitution:s(t,n,r,i)});else{let s=o(t,n,r,i);for(let[t,n]of s){let r={};Array.isArray(t)?e.range.push({range:t,entry:r}):e.individual[t]={},a.push({entry:r,substitution:n})}}return a}e.getInputTree=a;function o(e,n,r,i){for(let a of e.filter(e=>e.sequenceIndex===r))for(let e of n[a.lookupListIndex].subtables){let n=t.getRangeSubstitutionGlyphs(e,i);if(!Array.from(n.values()).every(e=>e!==null))return n}return new Map([[i,null]])}function s(e,n,r,i){for(let a of e.filter(e=>e.sequenceIndex===r))for(let e of n[a.lookupListIndex].subtables){let n=t.getIndividualSubstitutionGlyph(e,i);if(n!==null)return n}return null}}),mg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=dg(),n=pg();function r(e,r,i){let a={individual:{},range:[]},o=t.listGlyphsByIndex(e.coverage);for(let{glyphId:t,index:s}of o){let o=e.chainRuleSets[s];if(o)for(let[e,s]of o.entries()){let o=n.getInputTree(a,s.lookupRecords,r,0,t).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[e,t]of s.input.entries())o=n.processInputPosition([t],e+1,o,s.lookupRecords,r);for(let e of s.lookahead)o=n.processLookaheadPosition([e],o);for(let e of s.backtrack)o=n.processBacktrackPosition([e],o);for(let{entry:t,substitutions:n}of o)t.lookup={substitutions:n,length:s.input.length+1,index:i,subIndex:e,contextRange:[-1*s.backtrack.length,1+s.input.length+s.lookahead.length]}}}return a}e.default=r}),hg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){switch(e.format){case 2:return Array.isArray(t)?n(e,t):new Map([[t,r(e,t)]]);default:return new Map([[t,null]])}}e.default=t;function n(e,t){let n=t[0],i=r(e,n),a=t[0]+1,o=new Map;for(;a<t[1];)r(e,a)!==i&&(a-n<=1?o.set(n,i):o.set([n,a],i)),a++;return a-n<=1?o.set(n,i):o.set([n,a],i),o}function r(e,t){for(let n of e.ranges)if(n.start<=t&&n.end>=t)return n.classId;return null}function i(e,t){switch(e.format){case 2:let n=[];for(let r of e.ranges)r.classId===t&&(r.end===r.start?n.push(r.start):n.push([r.start,r.end+1]));return n;default:return[]}}e.listClassGlyphs=i}),gg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=cg(),n=dg(),r=hg(),i=pg();function a(e,a,o){let s=[],c=n.listGlyphsByIndex(e.coverage);for(let{glyphId:t}of c){let n=r.default(e.inputClassDef,t);for(let[t,c]of n.entries()){if(c===null)continue;let n=e.chainClassSet[c];if(n)for(let[c,l]of n.entries()){let n={individual:{},range:[]},u=i.getInputTree(n,l.lookupRecords,a,0,t).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[t,n]of l.input.entries())u=i.processInputPosition(r.listClassGlyphs(e.inputClassDef,n),t+1,u,l.lookupRecords,a);for(let t of l.lookahead)u=i.processLookaheadPosition(r.listClassGlyphs(e.lookaheadClassDef,t),u);for(let t of l.backtrack)u=i.processBacktrackPosition(r.listClassGlyphs(e.backtrackClassDef,t),u);for(let{entry:e,substitutions:t}of u)e.lookup={substitutions:t,index:o,subIndex:c,length:l.input.length+1,contextRange:[-1*l.backtrack.length,1+l.input.length+l.lookahead.length]};s.push(n)}}}return t.default(s)}e.default=a}),_g=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=dg(),n=pg();function r(e,r,i){let a={individual:{},range:[]},o=t.listGlyphsByIndex(e.inputCoverage[0]);for(let{glyphId:s}of o){let o=n.getInputTree(a,e.lookupRecords,r,0,s).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[i,a]of e.inputCoverage.slice(1).entries())o=n.processInputPosition(t.listGlyphsByIndex(a).map(e=>e.glyphId),i+1,o,e.lookupRecords,r);for(let r of e.lookaheadCoverage)o=n.processLookaheadPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),o);for(let r of e.backtrackCoverage)o=n.processBacktrackPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),o);for(let{entry:t,substitutions:n}of o)t.lookup={substitutions:n,index:i,subIndex:0,length:e.inputCoverage.length,contextRange:[-1*e.backtrackCoverage.length,e.inputCoverage.length+e.lookaheadCoverage.length]}}return a}e.default=r}),vg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=dg(),n=pg();function r(e,r){let i={individual:{},range:[]},a=t.listGlyphsByIndex(e.coverage);for(let{glyphId:o,index:s}of a){let a={};Array.isArray(o)?i.range.push({entry:a,range:o}):i.individual[o]=a;let c=[{entry:a,substitutions:[e.substitutes[s]]}];for(let r of e.lookaheadCoverage)c=n.processLookaheadPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),c);for(let r of e.backtrackCoverage)c=n.processBacktrackPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),c);for(let{entry:t,substitutions:n}of c)t.lookup={substitutions:n,index:r,subIndex:0,length:1,contextRange:[-1*e.backtrackCoverage.length,1+e.lookaheadCoverage.length]}}return i}e.default=r}),yg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t={};for(let[r,i]of Object.entries(e.individual))t[r]=n(i);for(let{range:r,entry:i}of e.range){let e=n(i);for(let n=r[0];n<r[1];n++)t[n]=e}return t}e.default=t;function n(e){let n={};return e.forward&&(n.forward=t(e.forward)),e.reverse&&(n.reverse=t(e.reverse)),e.lookup&&(n.lookup=e.lookup),n}}),bg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=tg(`fs`),n=tg(`util`),r=tg(`path`),i=n.promisify(t.readdir),a=n.promisify(t.stat);async function o(e,t){let n=new Set;return await Promise.all(e.map(async e=>{let i=await s(r.resolve(e),RegExp(`\\.${t.map(e=>`(?:${e})`).join(`|`)}$`,`i`));for(let e of i)n.add(e)})),[...n]}e.default=o;async function s(e,t,n=10){if(n<=0)return[];let o;try{o=await i(e)}catch{return[]}let c=[];return await Promise.all(o.map(async i=>{let o=r.join(e,i),l;try{l=await a(o)}catch{return}l.isFile()&&t.test(o)?c.push(o):l.isDirectory()&&c.push(...await s(o,t,n-1))})),c}}),xg=$((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=tg(`path`),r=tg(`os`),i=bg(),a={win32:()=>{let e=n.join({}.WINDIR||`C:\\Windows`,`Fonts`),t=`Microsoft\\Windows\\Fonts`,r;return{}.LOCALAPPDATA?r=n.join({}.LOCALAPPDATA,t):{}.APPDATA?r=n.join({}.APPDATA,`Local`,t):{}.USERPROFILE&&(r=n.join({}.USERPROFILE,`AppData`,`Local`,t)),r?[e,r]:[e]},darwin:()=>{let e=r.homedir();return[...e?[n.join(e,`/Library/Fonts`)]:[],`/Library/Fonts`,`/Network/Library/Fonts`,`/System/Library/Fonts`,`/System Folder/Fonts`]},linux:()=>{let e=r.homedir();return[`/usr/share/fonts`,`/usr/local/share/fonts`,...e?[n.join(e,`.fonts`),n.join(e,`.local/share/fonts`)]:[]]}};function o(e){let t=Object.assign({extensions:[`ttf`,`otf`,`ttc`,`woff`,`woff2`],additionalFolders:[]},e),n=r.platform(),o=a[n];if(!o)throw Error(`Unsupported platform: ${n}`);let s=o();return i.default([...s,...t.additionalFolders],t.extensions)}t.exports=Object.assign(o,{default:o}),e.default=o}),Sg=$((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=tg(`stream`),r=class extends n.Writable{constructor(){super(...arguments),this.offset=0,this._waiters=[],this._closed=!1}_write(e,t,n){let r=0,i=()=>{for(;this._waiters.length>0;){let t=this._waiters[0];if(this._buffer){let i=this._buffer.size-this._buffer.offset;if(i+e.length>=t.size){if(t.skip)this._buffer=void 0,t.resolve();else{let n=Math.min(i,t.size),r=Buffer.alloc(t.size);this._buffer.buf.copy(r,0,this._buffer.offset,this._buffer.offset+n),e.copy(r,n,0,t.size-n),t.resolve(r)}if(this.offset+=t.size,this._waiters.shift(),this._buffer=void 0,i+e.length===t.size){n();break}else r+=t.size-i}else{if(!t.skip){let t=Buffer.alloc(i+e.length);this._buffer.buf.copy(t,0,this._buffer.offset,this._buffer.size),e.copy(t,i,0,e.length),this._buffer.buf=t}this._buffer.offset=0,this._buffer.size=i+e.length,n();break}}else if(e.length-r>=t.size){if(t.skip?t.resolve():t.resolve(e.slice(r,r+t.size)),this.offset+=t.size,this._waiters.shift(),r+=t.size,e.length===r){n();break}}else{this._buffer={buf:t.skip?void 0:e.slice(r),offset:0,size:e.length-r},r=e.length,n();break}}this._processTrigger=e.length-r>0?i:void 0};i()}_destroy(e,t){this._processTrigger=void 0;for(let t of this._waiters)t.reject(e||Error(`stream destroyed`));this._waiters=[],this._closed=!0}_final(e){this._processTrigger=void 0;for(let e of this._waiters)e.reject(Error(`not enough data in stream`));this._waiters=[],this._closed=!0}read(e){return new Promise((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!1}),this._processTrigger&&this._processTrigger()})}skip(e){return new Promise((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!0}),this._processTrigger&&this._processTrigger()})}};function i(){return new r}t.exports=Object.assign(i,{default:i}),e.default=i}),Cg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],n={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},r={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function i(e,t,i){switch(e){case 0:if(t===65535)return`und`;if(i)return i[t];break;case 1:return n[t];case 3:return r[t]}}var a=`utf-16`,o={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},s={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function c(e,t,n){switch(e){case 0:return a;case 1:return s[n]||o[t];case 3:if(t===1||t===10)return a;break}}function l(e,n){let r={},o=e.readUInt16BE(2),s=e.readUInt16BE(4),l=6;for(let u=0;u<o;u++){let o=e.readUInt16BE(l+0),u=e.readUInt16BE(l+2),f=e.readUInt16BE(l+4),p=e.readUInt16BE(l+6),m=t[p]||String(p),h=e.readUInt16BE(l+8),g=e.readUInt16BE(l+10),_=i(o,f,n),v=c(o,u,f);if(l+=12,v!==void 0&&_!==void 0){let t;if(v===a){let n=h/2,r=Array(n);for(let t=0;t<n;t++)r[t]=e.readUInt16BE(s+g+t*2);t=String.fromCharCode(...r)}else t=d(e,s+g,h,v);if(t){let e=r[m];e===void 0&&(e=r[m]={}),e[_]=t}}}return r}e.default=l;var u={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};function d(e,t,n,r){let i=u[r];if(i===void 0)return;let a=``;for(let r=0;r<n;r++){let n=e.readUInt8(t+r);n<=127?a+=String.fromCharCode(n):a+=i[n&127]}return a}}),wg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){if(e.readUInt32BE(0)!==1)throw Error(`Unsupported ltag table version.`);let t=e.readUInt32BE(8),n=[];for(let r=0;r<t;r++){let t=``,i=e.readUInt16BE(12+r*4),a=e.readUInt16BE(14+r*4);for(let n=i;n<i+a;++n)t+=String.fromCharCode(e.readInt8(n));n.push(t)}return n}e.default=t}),Tg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){if(e.length<78)return;let t={version:e.readUInt16BE(0),xAvgCharWidth:e.readUInt16BE(2),usWeightClass:e.readUInt16BE(4),usWidthClass:e.readUInt16BE(6),fsType:e.readUInt16BE(8),ySubscriptXSize:e.readInt16BE(10),ySubscriptYSize:e.readInt16BE(12),ySubscriptXOffset:e.readInt16BE(14),ySubscriptYOffset:e.readInt16BE(16),ySuperscriptXSize:e.readInt16BE(18),ySuperscriptYSize:e.readInt16BE(20),ySuperscriptXOffset:e.readInt16BE(22),ySuperscriptYOffset:e.readInt16BE(24),yStrikeoutSize:e.readInt16BE(26),yStrikeoutPosition:e.readInt16BE(28),sFamilyClass:e.readInt16BE(30),panose:[e.readUInt8(32),e.readUInt8(33),e.readUInt8(34),e.readUInt8(35),e.readUInt8(36),e.readUInt8(37),e.readUInt8(38),e.readUInt8(39),e.readUInt8(40),e.readUInt8(41)],ulUnicodeRange1:e.readUInt32BE(42),ulUnicodeRange2:e.readUInt32BE(46),ulUnicodeRange3:e.readUInt32BE(50),ulUnicodeRange4:e.readUInt32BE(54),achVendID:String.fromCharCode(e.readUInt8(58),e.readUInt8(59),e.readUInt8(60),e.readUInt8(61)),fsSelection:e.readUInt16BE(62),usFirstCharIndex:e.readUInt16BE(64),usLastCharIndex:e.readUInt16BE(66),sTypoAscender:e.readInt16BE(68),sTypoDescender:e.readInt16BE(70),sTypoLineGap:e.readInt16BE(72),usWinAscent:e.readUInt16BE(74),usWinDescent:e.readUInt16BE(76)};return t.version>=1&&e.length>=86&&(t.ulCodePageRange1=e.readUInt32BE(78),t.ulCodePageRange2=e.readUInt32BE(82)),t.version>=2&&e.length>=96&&(t.sxHeight=e.readInt16BE(86),t.sCapHeight=e.readInt16BE(88),t.usDefaultChar=e.readUInt16BE(90),t.usBreakChar=e.readUInt16BE(92),t.usMaxContent=e.readUInt16BE(94)),t}e.default=t}),Eg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){return e+t/2**16}e.formatFixed=t;function n(e,t){return(e*2**32+t-2082844800)*1e3}e.formatLongDateTime=n}),Dg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Eg();function n(e){return{version:t.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),fontRevision:t.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),checkSumAdjustment:e.readUInt32BE(8),magicNumber:e.readUInt32BE(12),flags:e.readUInt16BE(16),unitsPerEm:e.readUInt16BE(18),created:t.formatLongDateTime(e.readUInt32BE(20),e.readUInt32BE(24)),modified:t.formatLongDateTime(e.readUInt32BE(28),e.readUInt32BE(32)),xMin:e.readInt16BE(36),yMin:e.readInt16BE(38),xMax:e.readInt16BE(40),yMax:e.readInt16BE(42),macStyle:e.readUInt16BE(44),lowestRecPPEM:e.readUInt16BE(46),fontDirectionHint:e.readInt16BE(48),indexToLocFormat:e.readInt16BE(50),glyphDataFormat:e.readInt16BE(52)}}e.default=n}),Og=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Eg();function n(e){return{version:t.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),italicAngle:t.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),underlinePosition:e.readInt16BE(8),underlineThickness:e.readInt16BE(10),isFixedPitch:e.readUInt32BE(12),minMemType42:e.readUInt32BE(16),maxMemType42:e.readUInt32BE(20),minMemType1:e.readUInt32BE(24),maxMemType1:e.readUInt32BE(28)}}e.default=n}),kg=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=tg(`fs`),n=Sg(),r=Cg(),i=wg(),a=Tg(),o=Dg(),s=Og(),c;(function(e){e[e.TrueType=0]=`TrueType`,e[e.CFF=1]=`CFF`,e[e.Woff=2]=`Woff`})(c||={});var l={name:{tag:Buffer.from(`name`),parse:r.default},ltag:{tag:Buffer.from(`ltag`),parse:i.default},os2:{tag:Buffer.from(`OS/2`),parse:a.default},head:{tag:Buffer.from(`head`),parse:o.default},post:{tag:Buffer.from(`post`),parse:s.default}};async function u(e){return new Promise((r,i)=>{(async()=>{let r=n.default(),a=t.createReadStream(e),o=!1,s=()=>{o=!0};a.once(`close`,s),a.once(`end`,s),a.once(`error`,e=>{o=!0,i(e)}),a.pipe(r);try{switch(f(await r.read(4))){case c.TrueType:case c.CFF:let t=(await r.read(2)).readUInt16BE(0);await r.skip(6);let n=await p(r,t),i=Object.entries(n).sort((e,t)=>e[1].offset-t[1].offset),a={};for(let[e,t]of i)await r.skip(t.offset-r.offset),a[e]=await r.read(t.length);let o=[];if(a.ltag&&(o=l.ltag.parse(a.ltag)),!a.name)throw Error(`missing required OpenType table 'name' in font file: ${e}`);return{names:l.name.parse(a.name,o),os2:a.os2&&l.os2.parse(a.os2),head:a.head&&l.head.parse(a.head),post:a.post&&l.post.parse(a.post)};case c.Woff:default:throw Error(`provided font type is not supported yet`)}}finally{a.unpipe(r),o||(a.destroy(),r.destroy())}})().then(r,i)})}e.default=u;var d={one:Buffer.from([0,1,0,0]),otto:Buffer.from(`OTTO`),true:Buffer.from(`true`),typ1:Buffer.from(`typ1`),woff:Buffer.from(`wOFF`)};function f(e){if(e.equals(d.one)||e.equals(d.true)||e.equals(d.typ1))return c.TrueType;if(e.equals(d.otto))return c.CFF;if(e.equals(d.woff))return c.Woff;throw Error(`Unsupported signature type: ${e}`)}async function p(e,t){let n={};for(let r=0;r<t;r++){let t=await e.read(4),r=await e.read(12);for(let[e,i]of Object.entries(l))if(t.equals(i.tag)&&(n[e]={offset:r.readUInt32BE(4),length:r.readUInt32BE(8)},n.name&&n.ltag&&n.os2))return n}return n}}),Ag=$(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=tg(`os`),n;(function(e){e.Serif=`serif`,e.SansSerif=`sansSerif`,e.Monospace=`monospace`,e.Cursive=`cursive`,e.Unknown=`unknown`})(n=e.Type||={});var r;(function(e){e.Regular=`regular`,e.Italic=`italic`,e.Oblique=`oblique`,e.Bold=`bold`,e.BoldItalic=`boldItalic`,e.BoldOblique=`boldOblique`,e.Other=`other`})(r=e.Style||={});var i=[` Regular`,` Bold`,` Bold Italic`,` Bold Oblique`,` Italic`,` Oblique`];function a(e,n){let r=e.names.preferredFamily&&e.names.preferredFamily[n]?e.names.preferredFamily[n]:e.names.fontFamily[n];if(t.platform()===`win32`){let t=`${r} ${e.names.preferredSubfamily&&e.names.preferredSubfamily[n]?e.names.preferredSubfamily[n]:e.names.fontSubfamily[n]}`,a=-1;for(let e of i){let n=t.lastIndexOf(e);if(n!==-1){a=n;break}}return a===-1?t:t.substring(0,a)}return r}e.name=a;function o(e){if(e.os2)switch(e.os2.panose[0]){case 2:return e.os2.panose[3]===9?n.Monospace:e.os2.panose[1]>=11&&e.os2.panose[1]<=15||e.os2.panose[1]===0?n.SansSerif:n.Serif;case 3:return n.Cursive}else if(e.post&&e.post.isFixedPitch)return n.Monospace;return n.Unknown}e.type=o;function s(e){if(!e.os2&&!e.head)return r.Other;let t=e.os2?e.os2.fsSelection&32:e.head.macStyle&1,n=e.os2?e.os2.fsSelection&1:e.post?e.post.italicAngle<0:e.head.macStyle&2,i=e.os2?e.os2.fsSelection&512:e.post?e.post.italicAngle>0:0,a=e.os2?e.os2.fsSelection&320:1;return t?i?r.BoldOblique:n?r.BoldItalic:r.Bold:i?r.Oblique:n?r.Italic:a?r.Regular:r.Other}e.style=s;var c=[r.Bold,r.BoldItalic,r.BoldOblique];function l(e){return e.os2?e.os2.usWeightClass:c.includes(s(e))?700:400}e.weight=l}),jg=$(e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0});var n=xg(),r=kg(),i=Ag(),a=Ag();e.Type=a.Type,e.Style=a.Style;async function o(e){let i=Object.assign({concurrency:4,language:`en`,onFontError:null},e),a=await u(async e=>{try{return l(e,await r.default(e),i.language)}catch(t){i.onFontError&&i.onFontError(e,t)}},await n.default({extensions:[`ttf`,`otf`]}),i.concurrency),o={};for(let e of a.filter(e=>e)){let{name:n}=e,r=t(e,[`name`]);o[n]||(o[n]=[]),o[n].push(r)}return o}e.list=o;async function s(e,t){return(await o(t))[e]||[]}e.listVariants=s;async function c(e,t){let n=Object.assign({language:`en`},t);return l(e,await r.default(e),n.language)}e.get=c;function l(e,t,n){return{name:i.name(t,n),path:e,type:i.type(t),weight:i.weight(t),style:i.style(t)}}async function u(e,t,n){let r=[],i=0,a=async n=>{r.push(await e(t[n])),i<t.length&&await a(i++)},o=[];for(;i<t.length&&i<n;i++)o.push(a(i));return await Promise.all(o),r}}),Mg=rg($(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=ig(),n=sg(),r=cg(),i=lg(),a=ug(),o=mg(),s=gg(),c=_g(),l=vg(),u=yg(),d=class{constructor(e,t){this._lookupTrees=[],this._glyphLookups={},this._font=e,t.cacheSize>0&&(this._cache=new n({max:t.cacheSize,length:(e,t)=>t.length}));let i=(this._font.tables.gsub&&this._font.tables.gsub.features.filter(e=>e.tag===`calt`)||[]).reduce((e,t)=>[...e,...t.feature.lookupListIndexes],[]),a=this._font.tables.gsub&&this._font.tables.gsub.lookups||[],d=a.filter((e,t)=>i.some(e=>e===t));for(let[e,t]of d.entries()){let n=[];switch(t.lookupType){case 6:for(let[e,r]of t.subtables.entries())switch(r.substFormat){case 1:n.push(o.default(r,a,e));break;case 2:n.push(s.default(r,a,e));break;case 3:n.push(c.default(r,a,e));break}break;case 8:for(let[e,r]of t.subtables.entries())n.push(l.default(r,e));break}let i=u.default(r.default(n));this._lookupTrees.push({tree:i,processForward:t.lookupType!==8});for(let t of Object.keys(i))this._glyphLookups[t]||(this._glyphLookups[t]=[]),this._glyphLookups[t].push(e)}}findLigatures(e){let t=this._cache&&this._cache.get(e);if(t&&!Array.isArray(t))return t;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));if(this._lookupTrees.length===0)return{inputGlyphs:n,outputGlyphs:n,contextRanges:[]};let r=this._findInternal(n.slice()),i={inputGlyphs:n,outputGlyphs:r.sequence,contextRanges:r.ranges};return this._cache&&this._cache.set(e,i),i}findLigatureRanges(e){if(this._lookupTrees.length===0)return[];let t=this._cache&&this._cache.get(e);if(t)return Array.isArray(t)?t:t.contextRanges;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));let r=this._findInternal(n);return this._cache&&this._cache.set(e,r.ranges),r.ranges}_findInternal(e){let t=[],n=this._getNextLookup(e,0);for(;n.index!==null;){let r=this._lookupTrees[n.index];if(r.processForward){let o=n.last;for(let s=n.first;s<o;s++){let n=i.default(r.tree,e,s,s);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[s+t]=r)}a.default(t,n.contextRange[0]+s,n.contextRange[1]+s),s+n.length>=o&&(o=s+n.length+1),s+=n.length-1}}}else for(let o=n.last-1;o>=n.first;o--){let n=i.default(r.tree,e,o,o);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[o+t]=r)}a.default(t,n.contextRange[0]+o,n.contextRange[1]+o),o-=n.length-1}}n=this._getNextLookup(e,n.index+1)}return{sequence:e,ranges:t}}_getNextLookup(e,t){let n={index:null,first:1/0,last:-1};for(let r=0;r<e.length;r++){let i=this._glyphLookups[e[r]];if(i)for(let e=0;e<i.length;e++){let a=i[e];if(a>=t){(n.index===null||a<=n.index)&&(n.index=a,n.first>r&&(n.first=r),n.last=r+1);break}}}return n}};async function f(e,t){let[n]=await Promise.resolve().then(()=>jg()).then(t=>t.listVariants(e));if(!n)throw Error(`Font ${e} not found`);return p(n.path,t)}e.load=f;async function p(e,n){return new d(await Promise.resolve().then(()=>tg(`util`)).then(n=>n.promisify(t.load)(e)),Object.assign({cacheSize:0},n))}e.loadFile=p;function m(e,n){return new d(t.parse(e),Object.assign({cacheSize:0},n))}e.loadBuffer=m})());function Ng(e){if(typeof e!=`string`)throw Error(`Font family must be a string`);let t={input:e,offset:0},n=[],r=``;for(;t.offset<t.input.length;){let e=t.input[t.offset++];switch(e){case`'`:case`"`:r+=Pg(t,e);break;case`,`:n.push(r),r=``;break;default:/\s/.test(e)||(t.offset--,r+=Fg(t),n.push(r),r=``)}}return n}function Pg(e,t){let n=``,r=!1;for(;e.offset<e.input.length;){let i=e.input[e.offset++];if(r)/[\dA-Fa-f]/.test(i)?(e.offset--,n+=Ig(e)):i!==`
171
+ `).trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);Lh.register(a,t?.[2]??e,a)}return a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*Fh<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let n=this._options?.onListenerError||Um;if(!n){e.value(t);return}try{e.value(t)}catch(e){n(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Ph)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},zh=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Bh=class e{constructor(){this._providers=Object.create(null),this._active=``,this._onChange=new Rh,this.onChange=this._onChange.event;let e=new Vm;this.register(e),this._active=e.version,this._activeProvider=e}static extractShouldJoin(e){return(e&1)!=0}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,t,n=!1){return(e&16777215)<<3|(t&3)<<1|!!n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let a=0;a<i;++a){let o=t.charCodeAt(a);if(55296<=o&&o<=56319){if(++a>=i)return n+this.wcwidth(o);let e=t.charCodeAt(a);56320<=e&&e<=57343?o=(o-55296)*1024+e-56320+65536:n+=this.wcwidth(e)}let s=this.charProperties(o,r),c=e.extractWidth(s);e.extractShouldJoin(s)&&(c-=e.extractWidth(r)),n+=c,r=s}return n}charProperties(e,t){return this._activeProvider.charProperties(e,t)}},Vh=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],Hh=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],Uh=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],Wh=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]],Gh;function Kh(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var qh=class{constructor(){if(this.version=`11`,!Gh){Gh=new Uint8Array(65536),Gh.fill(1),Gh[0]=0,Gh.fill(0,1,32),Gh.fill(0,127,160);for(let e=0;e<Vh.length;++e)Gh.fill(0,Vh[e][0],Vh[e][1]+1);for(let e=0;e<Uh.length;++e)Gh.fill(2,Uh[e][0],Uh[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?Gh[e]:Kh(e,Hh)?0:Kh(e,Wh)?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=Bh.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return Bh.createPropertyValue(0,n,r)}},Jh=class{activate(e){e.unicode.register(new qh)}dispose(){}},Yh=Object.create,Xh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Qh=Object.getOwnPropertyNames,$h=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty,tg=(t=>typeof e<`u`?e:typeof Proxy<`u`?new Proxy(t,{get:(t,n)=>(typeof e<`u`?e:t)[n]}):t)(function(t){if(typeof e<`u`)return e.apply(this,arguments);throw Error(`Dynamic require of "`+t+`" is not supported`)}),$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ng=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Qh(t))!eg.call(e,i)&&i!==n&&Xh(e,i,{get:()=>t[i],enumerable:!(r=Zh(t,i))||r.enumerable});return e},rg=(e,t,n)=>(n=e==null?{}:Yh($h(e)),ng(t||!e||!e.__esModule?Xh(n,`default`,{value:e,enumerable:!0}):n,e)),ig=$((e,t)=>{(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.opentype=n.opentype||{})})(e,function(e){var t=0,n=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var a=new r,o=new r,s=new Uint8Array(30),c=new Uint16Array(30),l=new Uint8Array(30),u=new Uint16Array(30),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=new r,p=new Uint8Array(320);function m(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function h(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var g=new Uint16Array(16);function _(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)g[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[g[t[n+i]]++]=i)}function v(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function y(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function b(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function x(e,t,n){var r,i,a,o,s,c;for(r=y(e,5,257),i=y(e,5,1),a=y(e,4,4),o=0;o<19;++o)p[o]=0;for(o=0;o<a;++o){var l=y(e,3,0);p[d[o]]=l}for(_(f,p,0,19),s=0;s<r+i;){var u=b(e,f);switch(u){case 16:var m=p[s-1];for(c=y(e,2,3);c;--c)p[s++]=m;break;case 17:for(c=y(e,3,3);c;--c)p[s++]=0;break;case 18:for(c=y(e,7,11);c;--c)p[s++]=0;break;default:p[s++]=u;break}}_(t,p,0,r),_(n,p,r,i)}function S(e,n,r){for(;;){var i=b(e,n);if(i===256)return t;if(i<256)e.dest[e.destLen++]=i;else{var a,o,d,f;for(i-=257,a=y(e,s[i],c[i]),o=b(e,r),d=e.destLen-y(e,l[o],u[o]),f=d;f<d+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function ee(e){for(var r,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(r=e.source[e.sourceIndex+1],r=256*r+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],r!==(~i&65535))return n;for(e.sourceIndex+=4,a=r;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,t}function C(e,r){var s=new i(e,r),c,l,u;do{switch(c=v(s),l=y(s,2,0),l){case 0:u=ee(s);break;case 1:u=S(s,a,o);break;case 2:x(s,s.ltree,s.dtree),u=S(s,s.ltree,s.dtree);break;default:u=n}if(u!==t)throw Error(`Data error`)}while(!c);return s.destLen<s.dest.length?typeof s.dest.slice==`function`?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest}h(a,o),m(s,c,4,3),m(l,u,2,1),s[28]=0,c[28]=258;var w=C;function T(e,t,n,r,i){return(1-i)**3*e+3*(1-i)**2*i*t+3*(1-i)*i**2*n+i**3*r}function E(){this.x1=NaN,this.y1=NaN,this.x2=NaN,this.y2=NaN}E.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},E.prototype.addPoint=function(e,t){typeof e==`number`&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t==`number`&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},E.prototype.addX=function(e){this.addPoint(e,null)},E.prototype.addY=function(e){this.addPoint(null,e)},E.prototype.addBezier=function(e,t,n,r,i,a,o,s){var c=this,l=[e,t],u=[n,r],d=[i,a],f=[o,s];this.addPoint(e,t),this.addPoint(o,s);for(var p=0;p<=1;p++){var m=6*l[p]-12*u[p]+6*d[p],h=-3*l[p]+9*u[p]-9*d[p]+3*f[p],g=3*u[p]-3*l[p];if(h===0){if(m===0)continue;var _=-g/m;0<_&&_<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],_)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],_)));continue}var v=m**2-4*g*h;if(!(v<0)){var y=(-m+Math.sqrt(v))/(2*h);0<y&&y<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],y)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],y)));var b=(-m-Math.sqrt(v))/(2*h);0<b&&b<1&&(p===0&&c.addX(T(l[p],u[p],d[p],f[p],b)),p===1&&c.addY(T(l[p],u[p],d[p],f[p],b)))}}},E.prototype.addQuad=function(e,t,n,r,i,a){var o=e+.6666666666666666*(n-e),s=t+2/3*(r-t),c=o+1/3*(i-e),l=s+1/3*(a-t);this.addBezier(e,t,o,s,c,l,i,a)};function D(){this.commands=[],this.fill=`black`,this.stroke=null,this.strokeWidth=1}D.prototype.moveTo=function(e,t){this.commands.push({type:`M`,x:e,y:t})},D.prototype.lineTo=function(e,t){this.commands.push({type:`L`,x:e,y:t})},D.prototype.curveTo=D.prototype.bezierCurveTo=function(e,t,n,r,i,a){this.commands.push({type:`C`,x1:e,y1:t,x2:n,y2:r,x:i,y:a})},D.prototype.quadTo=D.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:`Q`,x1:e,y1:t,x:n,y:r})},D.prototype.close=D.prototype.closePath=function(){this.commands.push({type:`Z`})},D.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof E){var t=e;this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),this.close();return}Array.prototype.push.apply(this.commands,e)},D.prototype.getBoundingBox=function(){for(var e=this,t=new E,n=0,r=0,i=0,a=0,o=0;o<this.commands.length;o++){var s=e.commands[o];switch(s.type){case`M`:t.addPoint(s.x,s.y),n=i=s.x,r=a=s.y;break;case`L`:t.addPoint(s.x,s.y),i=s.x,a=s.y;break;case`Q`:t.addQuad(i,a,s.x1,s.y1,s.x,s.y),i=s.x,a=s.y;break;case`C`:t.addBezier(i,a,s.x1,s.y1,s.x2,s.y2,s.x,s.y),i=s.x,a=s.y;break;case`Z`:i=n,a=r;break;default:throw Error(`Unexpected path command `+s.type)}}return t.isEmpty()&&t.addPoint(0,0),t},D.prototype.draw=function(e){var t=this;e.beginPath();for(var n=0;n<this.commands.length;n+=1){var r=t.commands[n];r.type===`M`?e.moveTo(r.x,r.y):r.type===`L`?e.lineTo(r.x,r.y):r.type===`C`?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):r.type===`Q`?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):r.type===`Z`&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},D.prototype.toPathData=function(e){var t=this;e=e===void 0?2:e;function n(t){return Math.round(t)===t?``+Math.round(t):t.toFixed(e)}function r(){for(var e=arguments,t=``,r=0;r<arguments.length;r+=1){var i=e[r];i>=0&&r>0&&(t+=` `),t+=n(i)}return t}for(var i=``,a=0;a<this.commands.length;a+=1){var o=t.commands[a];o.type===`M`?i+=`M`+r(o.x,o.y):o.type===`L`?i+=`L`+r(o.x,o.y):o.type===`C`?i+=`C`+r(o.x1,o.y1,o.x2,o.y2,o.x,o.y):o.type===`Q`?i+=`Q`+r(o.x1,o.y1,o.x,o.y):o.type===`Z`&&(i+=`Z`)}return i},D.prototype.toSVG=function(e){var t=`<path d="`;return t+=this.toPathData(e),t+=`"`,this.fill&&this.fill!==`black`&&(this.fill===null?t+=` fill="none"`:t+=` fill="`+this.fill+`"`),this.stroke&&(t+=` stroke="`+this.stroke+`" stroke-width="`+this.strokeWidth+`"`),t+=`/>`,t},D.prototype.toDOMElement=function(e){var t=this.toPathData(e),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return n.setAttribute(`d`,t),n};function O(e){throw Error(e)}function k(e,t){e||O(t)}var A={fail:O,argument:k,assert:k},j=32768,M=2147483648,N={},P={},F={};function te(e){return function(){return e}}P.BYTE=function(e){return A.argument(e>=0&&e<=255,`Byte value should be between 0 and 255.`),[e]},F.BYTE=te(1),P.CHAR=function(e){return[e.charCodeAt(0)]},F.CHAR=te(1),P.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);return t},F.CHARARRAY=function(e){return e.length},P.USHORT=function(e){return[e>>8&255,e&255]},F.USHORT=te(2),P.SHORT=function(e){return e>=j&&(e=-(2*j-e)),[e>>8&255,e&255]},F.SHORT=te(2),P.UINT24=function(e){return[e>>16&255,e>>8&255,e&255]},F.UINT24=te(3),P.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]},F.ULONG=te(4),P.LONG=function(e){return e>=M&&(e=-(2*M-e)),[e>>24&255,e>>16&255,e>>8&255,e&255]},F.LONG=te(4),P.FIXED=P.ULONG,F.FIXED=F.ULONG,P.FWORD=P.SHORT,F.FWORD=F.SHORT,P.UFWORD=P.USHORT,F.UFWORD=F.USHORT,P.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,e&255]},F.LONGDATETIME=te(8),P.TAG=function(e){return A.argument(e.length===4,`Tag should be exactly 4 ASCII characters.`),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},F.TAG=te(4),P.Card8=P.BYTE,F.Card8=F.BYTE,P.Card16=P.USHORT,F.Card16=F.USHORT,P.OffSize=P.BYTE,F.OffSize=F.BYTE,P.SID=P.USHORT,F.SID=F.USHORT,P.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?(e-=108,[(e>>8)+247,e&255]):e>=-1131&&e<=-108?(e=-e-108,[(e>>8)+251,e&255]):e>=-32768&&e<=32767?P.NUMBER16(e):P.NUMBER32(e)},F.NUMBER=function(e){return P.NUMBER(e).length},P.NUMBER16=function(e){return[28,e>>8&255,e&255]},F.NUMBER16=te(3),P.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,e&255]},F.NUMBER32=te(5),P.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat(`1e`+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}for(var i=``,a=0,o=t.length;a<o;a+=1){var s=t[a];s===`e`?i+=t[++a]===`-`?`c`:`b`:s===`.`?i+=`a`:s===`-`?i+=`e`:i+=s}i+=i.length&1?`f`:`ff`;for(var c=[30],l=0,u=i.length;l<u;l+=2)c.push(parseInt(i.substr(l,2),16));return c},F.REAL=function(e){return P.REAL(e).length},P.NAME=P.CHARARRAY,F.NAME=F.CHARARRAY,P.STRING=P.CHARARRAY,F.STRING=F.CHARARRAY,N.UTF8=function(e,t,n){for(var r=[],i=n,a=0;a<i;a++,t+=1)r[a]=e.getUint8(t);return String.fromCharCode.apply(null,r)},N.UTF16=function(e,t,n){for(var r=[],i=n/2,a=0;a<i;a++,t+=2)r[a]=e.getUint16(t);return String.fromCharCode.apply(null,r)},P.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t[t.length]=r>>8&255,t[t.length]=r&255}return t},F.UTF16=function(e){return e.length*2};var ne={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ\xA0ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»…\xA0ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ…\xA0ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};N.MACSTRING=function(e,t,n,r){var i=ne[r];if(i!==void 0){for(var a=``,o=0;o<n;o++){var s=e.getUint8(t+o);s<=127?a+=String.fromCharCode(s):a+=i[s&127]}return a}};var re=typeof WeakMap==`function`&&new WeakMap,ie,ae=function(e){if(!ie)for(var t in ie={},ne)ie[t]=new String(t);var n=ie[e];if(n!==void 0){if(re){var r=re.get(n);if(r!==void 0)return r}var i=ne[e];if(i!==void 0){for(var a={},o=0;o<i.length;o++)a[i.charCodeAt(o)]=o+128;return re&&re.set(n,a),a}}};P.MACSTRING=function(e,t){var n=ae(t);if(n!==void 0){for(var r=[],i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>=128&&(a=n[a],a===void 0))return;r[i]=a}return r}},F.MACSTRING=function(e,t){var n=P.MACSTRING(e,t);return n===void 0?0:n.length};function I(e){return e>=-128&&e<=127}function oe(e,t,n){for(var r=0,i=e.length;t<i&&r<64&&e[t]===0;)++t,++r;return n.push(128|r-1),t}function se(e,t,n){for(var r=0,i=e.length,a=t;a<i&&r<64;){var o=e[a];if(!I(o)||o===0&&a+1<i&&e[a+1]===0)break;++a,++r}n.push(r-1);for(var s=t;s<a;++s)n.push(e[s]+256&255);return a}function ce(e,t,n){for(var r=0,i=e.length,a=t;a<i&&r<64;){var o=e[a];if(o===0||I(o)&&a+1<i&&I(e[a+1]))break;++a,++r}n.push(64|r-1);for(var s=t;s<a;++s){var c=e[s];n.push(c+65536>>8&255,c+256&255)}return a}P.VARDELTAS=function(e){for(var t=0,n=[];t<e.length;){var r=e[t];t=r===0?oe(e,t,n):r>=-128&&r<=127?se(e,t,n):ce(e,t,n)}return n},P.INDEX=function(e){for(var t=1,n=[t],r=[],i=0;i<e.length;i+=1){var a=P.OBJECT(e[i]);Array.prototype.push.apply(r,a),t+=a.length,n.push(t)}if(r.length===0)return[0,0];for(var o=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,c=[void 0,P.BYTE,P.USHORT,P.UINT24,P.ULONG][s],l=0;l<n.length;l+=1){var u=c(n[l]);Array.prototype.push.apply(o,u)}return Array.prototype.concat(P.Card16(e.length),P.OffSize(s),o,r)},F.INDEX=function(e){return P.INDEX(e).length},P.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var a=parseInt(n[i],0),o=e[a];t=t.concat(P.OPERAND(o.value,o.type)),t=t.concat(P.OPERATOR(a))}return t},F.DICT=function(e){return P.DICT(e).length},P.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},P.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)A.argument(e.length===t.length,`Not enough arguments given for type`+t),n=n.concat(P.OPERAND(e[r],t[r]));else if(t===`SID`)n=n.concat(P.NUMBER(e));else if(t===`offset`)n=n.concat(P.NUMBER32(e));else if(t===`number`)n=n.concat(P.NUMBER(e));else if(t===`real`)n=n.concat(P.REAL(e));else throw Error(`Unknown operand type `+t);return n},P.OP=P.BYTE,F.OP=F.BYTE;var le=typeof WeakMap==`function`&&new WeakMap;P.CHARSTRING=function(e){if(le){var t=le.get(e);if(t!==void 0)return t}for(var n=[],r=e.length,i=0;i<r;i+=1){var a=e[i];n=n.concat(P[a.type](a.value))}return le&&le.set(e,n),n},F.CHARSTRING=function(e){return P.CHARSTRING(e).length},P.OBJECT=function(e){var t=P[e.type];return A.argument(t!==void 0,`No encoding function for type `+e.type),t(e.value)},F.OBJECT=function(e){var t=F[e.type];return A.argument(t!==void 0,`No sizeOf function for type `+e.type),t(e.value)},P.TABLE=function(e){for(var t=[],n=e.fields.length,r=[],i=[],a=0;a<n;a+=1){var o=e.fields[a],s=P[o.type];A.argument(s!==void 0,`No encoding function for field type `+o.type+` (`+o.name+`)`);var c=e[o.name];c===void 0&&(c=o.value);var l=s(c);o.type===`TABLE`?(i.push(t.length),t=t.concat([0,0]),r.push(l)):t=t.concat(l)}for(var u=0;u<r.length;u+=1){var d=i[u],f=t.length;A.argument(f<65536,`Table `+e.tableName+` too big.`),t[d]=f>>8,t[d+1]=f&255,t=t.concat(r[u])}return t},F.TABLE=function(e){for(var t=0,n=e.fields.length,r=0;r<n;r+=1){var i=e.fields[r],a=F[i.type];A.argument(a!==void 0,`No sizeOf function for field type `+i.type+` (`+i.name+`)`);var o=e[i.name];o===void 0&&(o=i.value),t+=a(o),i.type===`TABLE`&&(t+=2)}return t},P.RECORD=P.TABLE,F.RECORD=F.TABLE,P.LITERAL=function(e){return e},F.LITERAL=function(e){return e.length};function ue(e,t,n){for(var r=this,i=0;i<t.length;i+=1){var a=t[i];r[a.name]=a.value}if(this.tableName=e,this.fields=t,n)for(var o=Object.keys(n),s=0;s<o.length;s+=1){var c=o[s],l=n[c];r[c]!==void 0&&(r[c]=l)}}ue.prototype.encode=function(){return P.TABLE(this)},ue.prototype.sizeOf=function(){return F.TABLE(this)};function de(e,t,n){n===void 0&&(n=t.length);var r=Array(t.length+1);r[0]={name:e+`Count`,type:`USHORT`,value:n};for(var i=0;i<t.length;i++)r[i+1]={name:e+i,type:`USHORT`,value:t[i]};return r}function fe(e,t,n){var r=t.length,i=Array(r+1);i[0]={name:e+`Count`,type:`USHORT`,value:r};for(var a=0;a<r;a++)i[a+1]={name:e+a,type:`TABLE`,value:n(t[a],a)};return i}function pe(e,t,n){var r=t.length,i=[];i[0]={name:e+`Count`,type:`USHORT`,value:r};for(var a=0;a<r;a++)i=i.concat(n(t[a],a));return i}function me(e){e.format===1?ue.call(this,`coverageTable`,[{name:`coverageFormat`,type:`USHORT`,value:1}].concat(de(`glyph`,e.glyphs))):A.assert(!1,`Can't create coverage table format 2 yet.`)}me.prototype=Object.create(ue.prototype),me.prototype.constructor=me;function he(e){ue.call(this,`scriptListTable`,pe(`scriptRecord`,e,function(e,t){var n=e.script,r=n.defaultLangSys;return A.assert(!!r,`Unable to write GSUB: script `+e.tag+` has no default language system.`),[{name:`scriptTag`+t,type:`TAG`,value:e.tag},{name:`script`+t,type:`TABLE`,value:new ue(`scriptTable`,[{name:`defaultLangSys`,type:`TABLE`,value:new ue(`defaultLangSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:r.reqFeatureIndex}].concat(de(`featureIndex`,r.featureIndexes)))}].concat(pe(`langSys`,n.langSysRecords,function(e,t){var n=e.langSys;return[{name:`langSysTag`+t,type:`TAG`,value:e.tag},{name:`langSys`+t,type:`TABLE`,value:new ue(`langSys`,[{name:`lookupOrder`,type:`USHORT`,value:0},{name:`reqFeatureIndex`,type:`USHORT`,value:n.reqFeatureIndex}].concat(de(`featureIndex`,n.featureIndexes)))}]})))}]}))}he.prototype=Object.create(ue.prototype),he.prototype.constructor=he;function ge(e){ue.call(this,`featureListTable`,pe(`featureRecord`,e,function(e,t){var n=e.feature;return[{name:`featureTag`+t,type:`TAG`,value:e.tag},{name:`feature`+t,type:`TABLE`,value:new ue(`featureTable`,[{name:`featureParams`,type:`USHORT`,value:n.featureParams}].concat(de(`lookupListIndex`,n.lookupListIndexes)))}]}))}ge.prototype=Object.create(ue.prototype),ge.prototype.constructor=ge;function _e(e,t){ue.call(this,`lookupListTable`,fe(`lookup`,e,function(e){var n=t[e.lookupType];return A.assert(!!n,`Unable to write GSUB lookup type `+e.lookupType+` tables.`),new ue(`lookupTable`,[{name:`lookupType`,type:`USHORT`,value:e.lookupType},{name:`lookupFlag`,type:`USHORT`,value:e.lookupFlag}].concat(fe(`subtable`,e.subtables,n)))}))}_e.prototype=Object.create(ue.prototype),_e.prototype.constructor=_e;var L={Table:ue,Record:ue,Coverage:me,ScriptList:he,FeatureList:ge,LookupList:_e,ushortList:de,tableList:fe,recordList:pe};function ve(e,t){return e.getUint8(t)}function ye(e,t){return e.getUint16(t,!1)}function be(e,t){return e.getInt16(t,!1)}function xe(e,t){return e.getUint32(t,!1)}function Se(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}function Ce(e,t){for(var n=``,r=t;r<t+4;r+=1)n+=String.fromCharCode(e.getInt8(r));return n}function we(e,t,n){for(var r=0,i=0;i<n;i+=1)r<<=8,r+=e.getUint8(t+i);return r}function Te(e,t,n){for(var r=[],i=t;i<n;i+=1)r.push(e.getUint8(i));return r}function Ee(e){for(var t=``,n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t}var De={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function R(e,t){this.data=e,this.offset=t,this.relativeOffset=0}R.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},R.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},R.prototype.parseCard8=R.prototype.parseByte,R.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},R.prototype.parseCard16=R.prototype.parseUShort,R.prototype.parseSID=R.prototype.parseUShort,R.prototype.parseOffset16=R.prototype.parseUShort,R.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},R.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},R.prototype.parseULong=function(){var e=xe(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},R.prototype.parseOffset32=R.prototype.parseULong,R.prototype.parseFixed=function(){var e=Se(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},R.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r=``;this.relativeOffset+=e;for(var i=0;i<e;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},R.prototype.parseTag=function(){return this.parseString(4)},R.prototype.parseLongDateTime=function(){var e=xe(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},R.prototype.parseVersion=function(e){var t=ye(this.data,this.offset+this.relativeOffset),n=ye(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e===void 0&&(e=4096),t+n/e/10},R.prototype.skip=function(e,t){t===void 0&&(t=1),this.relativeOffset+=De[e]*t},R.prototype.parseULongList=function(e){e===void 0&&(e=this.parseULong());for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint32(r),r+=4;return this.relativeOffset+=e*4,t},R.prototype.parseOffset16List=R.prototype.parseUShortList=function(e){e===void 0&&(e=this.parseUShort());for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint16(r),r+=2;return this.relativeOffset+=e*2,t},R.prototype.parseShortList=function(e){for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getInt16(r),r+=2;return this.relativeOffset+=e*2,t},R.prototype.parseByteList=function(e){for(var t=Array(e),n=this.data,r=this.offset+this.relativeOffset,i=0;i<e;i++)t[i]=n.getUint8(r++);return this.relativeOffset+=e,t},R.prototype.parseList=function(e,t){var n=this;t||(t=e,e=this.parseUShort());for(var r=Array(e),i=0;i<e;i++)r[i]=t.call(n);return r},R.prototype.parseList32=function(e,t){var n=this;t||(t=e,e=this.parseULong());for(var r=Array(e),i=0;i<e;i++)r[i]=t.call(n);return r},R.prototype.parseRecordList=function(e,t){var n=this;t||(t=e,e=this.parseUShort());for(var r=Array(e),i=Object.keys(t),a=0;a<e;a++){for(var o={},s=0;s<i.length;s++){var c=i[s];o[c]=t[c].call(n)}r[a]=o}return r},R.prototype.parseRecordList32=function(e,t){var n=this;t||(t=e,e=this.parseULong());for(var r=Array(e),i=Object.keys(t),a=0;a<e;a++){for(var o={},s=0;s<i.length;s++){var c=i[s];o[c]=t[c].call(n)}r[a]=o}return r},R.prototype.parseStruct=function(e){var t=this;if(typeof e==`function`)return e.call(this);for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var a=n[i];r[a]=e[a].call(t)}return r},R.prototype.parseValueRecord=function(e){if(e===void 0&&(e=this.parseUShort()),e!==0){var t={};return e&1&&(t.xPlacement=this.parseShort()),e&2&&(t.yPlacement=this.parseShort()),e&4&&(t.xAdvance=this.parseShort()),e&8&&(t.yAdvance=this.parseShort()),e&16&&(t.xPlaDevice=void 0,this.parseShort()),e&32&&(t.yPlaDevice=void 0,this.parseShort()),e&64&&(t.xAdvDevice=void 0,this.parseShort()),e&128&&(t.yAdvDevice=void 0,this.parseShort()),t}},R.prototype.parseValueRecordList=function(){for(var e=this,t=this.parseUShort(),n=this.parseUShort(),r=Array(n),i=0;i<n;i++)r[i]=e.parseValueRecord(t);return r},R.prototype.parsePointer=function(e){var t=this.parseOffset16();if(t>0)return new R(this.data,this.offset+t).parseStruct(e)},R.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(t>0)return new R(this.data,this.offset+t).parseStruct(e)},R.prototype.parseListOfLists=function(e){for(var t=this,n=this.parseOffset16List(),r=n.length,i=this.relativeOffset,a=Array(r),o=0;o<r;o++){var s=n[o];if(s===0){a[o]=void 0;continue}if(t.relativeOffset=s,e){for(var c=t.parseOffset16List(),l=Array(c.length),u=0;u<c.length;u++)t.relativeOffset=s+c[u],l[u]=e.call(t);a[o]=l}else a[o]=t.parseUShortList()}return this.relativeOffset=i,a},R.prototype.parseCoverage=function(){var e=this,t=this.offset+this.relativeOffset,n=this.parseUShort(),r=this.parseUShort();if(n===1)return{format:1,glyphs:this.parseUShortList(r)};if(n===2){for(var i=Array(r),a=0;a<r;a++)i[a]={start:e.parseUShort(),end:e.parseUShort(),index:e.parseUShort()};return{format:2,ranges:i}}throw Error(`0x`+t.toString(16)+`: Coverage format must be 1 or 2.`)},R.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(t===2)return{format:2,ranges:this.parseRecordList({start:R.uShort,end:R.uShort,classId:R.uShort})};throw Error(`0x`+e.toString(16)+`: ClassDef format must be 1 or 2.`)},R.list=function(e,t){return function(){return this.parseList(e,t)}},R.list32=function(e,t){return function(){return this.parseList32(e,t)}},R.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},R.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},R.pointer=function(e){return function(){return this.parsePointer(e)}},R.pointer32=function(e){return function(){return this.parsePointer32(e)}},R.tag=R.prototype.parseTag,R.byte=R.prototype.parseByte,R.uShort=R.offset16=R.prototype.parseUShort,R.uShortList=R.prototype.parseUShortList,R.uLong=R.offset32=R.prototype.parseULong,R.uLongList=R.prototype.parseULongList,R.struct=R.prototype.parseStruct,R.coverage=R.prototype.parseCoverage,R.classDef=R.prototype.parseClassDef;var Oe={reserved:R.uShort,reqFeatureIndex:R.uShort,featureIndexes:R.uShortList};R.prototype.parseScriptList=function(){return this.parsePointer(R.recordList({tag:R.tag,script:R.pointer({defaultLangSys:R.pointer(Oe),langSysRecords:R.recordList({tag:R.tag,langSys:R.pointer(Oe)})})}))||[]},R.prototype.parseFeatureList=function(){return this.parsePointer(R.recordList({tag:R.tag,feature:R.pointer({featureParams:R.offset16,lookupListIndexes:R.uShortList})}))||[]},R.prototype.parseLookupList=function(e){return this.parsePointer(R.list(R.pointer(function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,`GPOS/GSUB lookup type `+t+` unknown.`);var n=this.parseUShort(),r=n&16;return{lookupType:t,lookupFlag:n,subtables:this.parseList(R.pointer(e[t])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},R.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return A.argument(e===1&&t<1,`GPOS/GSUB feature variations table unknown.`),this.parseRecordList32({conditionSetOffset:R.offset32,featureTableSubstitutionOffset:R.offset32})})||[]};var z={getByte:ve,getCard8:ve,getUShort:ye,getCard16:ye,getShort:be,getULong:xe,getFixed:Se,getTag:Ce,getOffset:we,getBytes:Te,bytesToString:Ee,Parser:R};function ke(e,t){t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong();var n;e.groupCount=n=t.parseULong(),e.glyphIndexMap={};for(var r=0;r<n;r+=1)for(var i=t.parseULong(),a=t.parseULong(),o=t.parseULong(),s=i;s<=a;s+=1)e.glyphIndexMap[s]=o,o++}function Ae(e,t,n,r,i){e.length=t.parseUShort(),e.language=t.parseUShort();var a;e.segCount=a=t.parseUShort()>>1,t.skip(`uShort`,3),e.glyphIndexMap={};for(var o=new z.Parser(n,r+i+14),s=new z.Parser(n,r+i+16+a*2),c=new z.Parser(n,r+i+16+a*4),l=new z.Parser(n,r+i+16+a*6),u=r+i+16+a*8,d=0;d<a-1;d+=1)for(var f=void 0,p=o.parseUShort(),m=s.parseUShort(),h=c.parseShort(),g=l.parseUShort(),_=m;_<=p;_+=1)g===0?f=_+h&65535:(u=l.offset+l.relativeOffset-2,u+=g,u+=(_-m)*2,f=z.getUShort(n,u),f!==0&&(f=f+h&65535)),e.glyphIndexMap[_]=f}function je(e,t){var n={};n.version=z.getUShort(e,t),A.argument(n.version===0,`cmap table version should be 0.`),n.numTables=z.getUShort(e,t+2);for(var r=-1,i=n.numTables-1;i>=0;--i){var a=z.getUShort(e,t+4+i*8),o=z.getUShort(e,t+4+i*8+2);if(a===3&&(o===0||o===1||o===10)){r=z.getULong(e,t+4+i*8+4);break}}if(r===-1)throw Error(`No valid cmap sub-tables found.`);var s=new z.Parser(e,t+r);if(n.format=s.parseUShort(),n.format===12)ke(n,s);else if(n.format===4)Ae(n,s,e,t,r);else throw Error(`Only format 4 and 12 cmap tables are supported (found format `+n.format+`).`);return n}function Me(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0,glyphIndex:n})}function Ne(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function Pe(e){var t=!0,n;for(n=e.length-1;n>0;--n)if(e.get(n).unicode>65535){console.log(`Adding CMAP format 12 (needed!)`),t=!1;break}var r=[{name:`version`,type:`USHORT`,value:0},{name:`numTables`,type:`USHORT`,value:t?1:2},{name:`platformID`,type:`USHORT`,value:3},{name:`encodingID`,type:`USHORT`,value:1},{name:`offset`,type:`ULONG`,value:t?12:20}];t||(r=r.concat([{name:`cmap12PlatformID`,type:`USHORT`,value:3},{name:`cmap12EncodingID`,type:`USHORT`,value:10},{name:`cmap12Offset`,type:`ULONG`,value:0}])),r=r.concat([{name:`format`,type:`USHORT`,value:4},{name:`cmap4Length`,type:`USHORT`,value:0},{name:`language`,type:`USHORT`,value:0},{name:`segCountX2`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);var i=new L.Table(`cmap`,r);for(i.segments=[],n=0;n<e.length;n+=1){for(var a=e.get(n),o=0;o<a.unicodes.length;o+=1)Me(i,a.unicodes[o],n);i.segments=i.segments.sort(function(e,t){return e.start-t.start})}Ne(i);var s=i.segments.length,c=0,l=[],u=[],d=[],f=[],p=[],m=[];for(n=0;n<s;n+=1){var h=i.segments[n];h.end<=65535&&h.start<=65535?(l=l.concat({name:`end_`+n,type:`USHORT`,value:h.end}),u=u.concat({name:`start_`+n,type:`USHORT`,value:h.start}),d=d.concat({name:`idDelta_`+n,type:`SHORT`,value:h.delta}),f=f.concat({name:`idRangeOffset_`+n,type:`USHORT`,value:h.offset}),h.glyphId!==void 0&&(p=p.concat({name:`glyph_`+n,type:`USHORT`,value:h.glyphId}))):c+=1,!t&&h.glyphIndex!==void 0&&(m=m.concat({name:`cmap12Start_`+n,type:`ULONG`,value:h.start}),m=m.concat({name:`cmap12End_`+n,type:`ULONG`,value:h.end}),m=m.concat({name:`cmap12Glyph_`+n,type:`ULONG`,value:h.glyphIndex}))}if(i.segCountX2=(s-c)*2,i.searchRange=2**Math.floor(Math.log(s-c)/Math.log(2))*2,i.entrySelector=Math.log(i.searchRange/2)/Math.log(2),i.rangeShift=i.segCountX2-i.searchRange,i.fields=i.fields.concat(l),i.fields.push({name:`reservedPad`,type:`USHORT`,value:0}),i.fields=i.fields.concat(u),i.fields=i.fields.concat(d),i.fields=i.fields.concat(f),i.fields=i.fields.concat(p),i.cmap4Length=14+l.length*2+2+u.length*2+d.length*2+f.length*2+p.length*2,!t){var g=16+m.length*4;i.cmap12Offset=20+i.cmap4Length,i.fields=i.fields.concat([{name:`cmap12Format`,type:`USHORT`,value:12},{name:`cmap12Reserved`,type:`USHORT`,value:0},{name:`cmap12Length`,type:`ULONG`,value:g},{name:`cmap12Language`,type:`ULONG`,value:0},{name:`cmap12nGroups`,type:`ULONG`,value:m.length/3}]),i.fields=i.fields.concat(m)}return i}var Fe={parse:je,make:Pe},Ie=`.notdef,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quoteright,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,quoteleft,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,exclamdown,cent,sterling,fraction,yen,florin,section,currency,quotesingle,quotedblleft,guillemotleft,guilsinglleft,guilsinglright,fi,fl,endash,dagger,daggerdbl,periodcentered,paragraph,bullet,quotesinglbase,quotedblbase,quotedblright,guillemotright,ellipsis,perthousand,questiondown,grave,acute,circumflex,tilde,macron,breve,dotaccent,dieresis,ring,cedilla,hungarumlaut,ogonek,caron,emdash,AE,ordfeminine,Lslash,Oslash,OE,ordmasculine,ae,dotlessi,lslash,oslash,oe,germandbls,onesuperior,logicalnot,mu,trademark,Eth,onehalf,plusminus,Thorn,onequarter,divide,brokenbar,degree,thorn,threequarters,twosuperior,registered,minus,eth,multiply,threesuperior,copyright,Aacute,Acircumflex,Adieresis,Agrave,Aring,Atilde,Ccedilla,Eacute,Ecircumflex,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Ntilde,Oacute,Ocircumflex,Odieresis,Ograve,Otilde,Scaron,Uacute,Ucircumflex,Udieresis,Ugrave,Yacute,Ydieresis,Zcaron,aacute,acircumflex,adieresis,agrave,aring,atilde,ccedilla,eacute,ecircumflex,edieresis,egrave,iacute,icircumflex,idieresis,igrave,ntilde,oacute,ocircumflex,odieresis,ograve,otilde,scaron,uacute,ucircumflex,udieresis,ugrave,yacute,ydieresis,zcaron,exclamsmall,Hungarumlautsmall,dollaroldstyle,dollarsuperior,ampersandsmall,Acutesmall,parenleftsuperior,parenrightsuperior,266 ff,onedotenleader,zerooldstyle,oneoldstyle,twooldstyle,threeoldstyle,fouroldstyle,fiveoldstyle,sixoldstyle,sevenoldstyle,eightoldstyle,nineoldstyle,commasuperior,threequartersemdash,periodsuperior,questionsmall,asuperior,bsuperior,centsuperior,dsuperior,esuperior,isuperior,lsuperior,msuperior,nsuperior,osuperior,rsuperior,ssuperior,tsuperior,ff,ffi,ffl,parenleftinferior,parenrightinferior,Circumflexsmall,hyphensuperior,Gravesmall,Asmall,Bsmall,Csmall,Dsmall,Esmall,Fsmall,Gsmall,Hsmall,Ismall,Jsmall,Ksmall,Lsmall,Msmall,Nsmall,Osmall,Psmall,Qsmall,Rsmall,Ssmall,Tsmall,Usmall,Vsmall,Wsmall,Xsmall,Ysmall,Zsmall,colonmonetary,onefitted,rupiah,Tildesmall,exclamdownsmall,centoldstyle,Lslashsmall,Scaronsmall,Zcaronsmall,Dieresissmall,Brevesmall,Caronsmall,Dotaccentsmall,Macronsmall,figuredash,hypheninferior,Ogoneksmall,Ringsmall,Cedillasmall,questiondownsmall,oneeighth,threeeighths,fiveeighths,seveneighths,onethird,twothirds,zerosuperior,foursuperior,fivesuperior,sixsuperior,sevensuperior,eightsuperior,ninesuperior,zeroinferior,oneinferior,twoinferior,threeinferior,fourinferior,fiveinferior,sixinferior,seveninferior,eightinferior,nineinferior,centinferior,dollarinferior,periodinferior,commainferior,Agravesmall,Aacutesmall,Acircumflexsmall,Atildesmall,Adieresissmall,Aringsmall,AEsmall,Ccedillasmall,Egravesmall,Eacutesmall,Ecircumflexsmall,Edieresissmall,Igravesmall,Iacutesmall,Icircumflexsmall,Idieresissmall,Ethsmall,Ntildesmall,Ogravesmall,Oacutesmall,Ocircumflexsmall,Otildesmall,Odieresissmall,OEsmall,Oslashsmall,Ugravesmall,Uacutesmall,Ucircumflexsmall,Udieresissmall,Yacutesmall,Thornsmall,Ydieresissmall,001.000,001.001,001.002,001.003,Black,Bold,Book,Light,Medium,Regular,Roman,Semibold`.split(`,`),Le=`................................space.exclam.quotedbl.numbersign.dollar.percent.ampersand.quoteright.parenleft.parenright.asterisk.plus.comma.hyphen.period.slash.zero.one.two.three.four.five.six.seven.eight.nine.colon.semicolon.less.equal.greater.question.at.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.bracketleft.backslash.bracketright.asciicircum.underscore.quoteleft.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.braceleft.bar.braceright.asciitilde...................................exclamdown.cent.sterling.fraction.yen.florin.section.currency.quotesingle.quotedblleft.guillemotleft.guilsinglleft.guilsinglright.fi.fl..endash.dagger.daggerdbl.periodcentered..paragraph.bullet.quotesinglbase.quotedblbase.quotedblright.guillemotright.ellipsis.perthousand..questiondown..grave.acute.circumflex.tilde.macron.breve.dotaccent.dieresis..ring.cedilla..hungarumlaut.ogonek.caron.emdash.................AE..ordfeminine.....Lslash.Oslash.OE.ordmasculine......ae....dotlessi...lslash.oslash.oe.germandbls`.split(`.`),Re=`................................space.exclamsmall.Hungarumlautsmall..dollaroldstyle.dollarsuperior.ampersandsmall.Acutesmall.parenleftsuperior.parenrightsuperior.twodotenleader.onedotenleader.comma.hyphen.period.fraction.zerooldstyle.oneoldstyle.twooldstyle.threeoldstyle.fouroldstyle.fiveoldstyle.sixoldstyle.sevenoldstyle.eightoldstyle.nineoldstyle.colon.semicolon.commasuperior.threequartersemdash.periodsuperior.questionsmall..asuperior.bsuperior.centsuperior.dsuperior.esuperior...isuperior...lsuperior.msuperior.nsuperior.osuperior...rsuperior.ssuperior.tsuperior..ff.fi.fl.ffi.ffl.parenleftinferior..parenrightinferior.Circumflexsmall.hyphensuperior.Gravesmall.Asmall.Bsmall.Csmall.Dsmall.Esmall.Fsmall.Gsmall.Hsmall.Ismall.Jsmall.Ksmall.Lsmall.Msmall.Nsmall.Osmall.Psmall.Qsmall.Rsmall.Ssmall.Tsmall.Usmall.Vsmall.Wsmall.Xsmall.Ysmall.Zsmall.colonmonetary.onefitted.rupiah.Tildesmall...................................exclamdownsmall.centoldstyle.Lslashsmall...Scaronsmall.Zcaronsmall.Dieresissmall.Brevesmall.Caronsmall..Dotaccentsmall...Macronsmall...figuredash.hypheninferior...Ogoneksmall.Ringsmall.Cedillasmall....onequarter.onehalf.threequarters.questiondownsmall.oneeighth.threeeighths.fiveeighths.seveneighths.onethird.twothirds...zerosuperior.onesuperior.twosuperior.threesuperior.foursuperior.fivesuperior.sixsuperior.sevensuperior.eightsuperior.ninesuperior.zeroinferior.oneinferior.twoinferior.threeinferior.fourinferior.fiveinferior.sixinferior.seveninferior.eightinferior.nineinferior.centinferior.dollarinferior.periodinferior.commainferior.Agravesmall.Aacutesmall.Acircumflexsmall.Atildesmall.Adieresissmall.Aringsmall.AEsmall.Ccedillasmall.Egravesmall.Eacutesmall.Ecircumflexsmall.Edieresissmall.Igravesmall.Iacutesmall.Icircumflexsmall.Idieresissmall.Ethsmall.Ntildesmall.Ogravesmall.Oacutesmall.Ocircumflexsmall.Otildesmall.Odieresissmall.OEsmall.Oslashsmall.Ugravesmall.Uacutesmall.Ucircumflexsmall.Udieresissmall.Yacutesmall.Thornsmall.Ydieresissmall`.split(`.`),ze=`.notdef,.null,nonmarkingreturn,space,exclam,quotedbl,numbersign,dollar,percent,ampersand,quotesingle,parenleft,parenright,asterisk,plus,comma,hyphen,period,slash,zero,one,two,three,four,five,six,seven,eight,nine,colon,semicolon,less,equal,greater,question,at,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,bracketleft,backslash,bracketright,asciicircum,underscore,grave,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,braceleft,bar,braceright,asciitilde,Adieresis,Aring,Ccedilla,Eacute,Ntilde,Odieresis,Udieresis,aacute,agrave,acircumflex,adieresis,atilde,aring,ccedilla,eacute,egrave,ecircumflex,edieresis,iacute,igrave,icircumflex,idieresis,ntilde,oacute,ograve,ocircumflex,odieresis,otilde,uacute,ugrave,ucircumflex,udieresis,dagger,degree,cent,sterling,section,bullet,paragraph,germandbls,registered,copyright,trademark,acute,dieresis,notequal,AE,Oslash,infinity,plusminus,lessequal,greaterequal,yen,mu,partialdiff,summation,product,pi,integral,ordfeminine,ordmasculine,Omega,ae,oslash,questiondown,exclamdown,logicalnot,radical,florin,approxequal,Delta,guillemotleft,guillemotright,ellipsis,nonbreakingspace,Agrave,Atilde,Otilde,OE,oe,endash,emdash,quotedblleft,quotedblright,quoteleft,quoteright,divide,lozenge,ydieresis,Ydieresis,fraction,currency,guilsinglleft,guilsinglright,fi,fl,daggerdbl,periodcentered,quotesinglbase,quotedblbase,perthousand,Acircumflex,Ecircumflex,Aacute,Edieresis,Egrave,Iacute,Icircumflex,Idieresis,Igrave,Oacute,Ocircumflex,apple,Ograve,Uacute,Ucircumflex,Ugrave,dotlessi,circumflex,tilde,macron,breve,dotaccent,ring,cedilla,hungarumlaut,ogonek,caron,Lslash,lslash,Scaron,scaron,Zcaron,zcaron,brokenbar,Eth,eth,Yacute,yacute,Thorn,thorn,minus,multiply,onesuperior,twosuperior,threesuperior,onehalf,onequarter,threequarters,franc,Gbreve,gbreve,Idotaccent,Scedilla,scedilla,Cacute,cacute,Ccaron,ccaron,dcroat`.split(`,`);function Be(e){this.font=e}Be.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.font.glyphs;if(n){for(var r=0;r<n.length;r+=1)for(var i=n.get(r),a=0;a<i.unicodes.length;a+=1)if(i.unicodes[a]===t)return r}return null};function Ve(e){this.cmap=e}Ve.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0};function He(e,t){this.encoding=e,this.charset=t}He.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.encoding[t];return this.charset.indexOf(n)};function Ue(e){var t=this;switch(e.version){case 1:this.names=ze.slice();break;case 2:this.names=Array(e.numberOfGlyphs);for(var n=0;n<e.numberOfGlyphs;n++)e.glyphNameIndex[n]<ze.length?t.names[n]=ze[e.glyphNameIndex[n]]:t.names[n]=e.names[e.glyphNameIndex[n]-ze.length];break;case 2.5:this.names=Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)t.names[r]=ze[r+e.glyphNameIndex[r]];break;case 3:this.names=[];break;default:this.names=[];break}}Ue.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},Ue.prototype.glyphIndexToName=function(e){return this.names[e]};function We(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var a=r[i],o=n[a];t=e.glyphs.get(o),t.addUnicode(parseInt(a))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=`gid`+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}function Ge(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()}var B={line:Ge};function Ke(e,t,n,r,i){var a;return(t&r)>0?(a=e.parseByte(),(t&i)===0&&(a=-a),a=n+a):a=(t&i)>0?n:n+e.parseShort(),a}function qe(e,t,n){var r=new z.Parser(t,n);e.numberOfContours=r.parseShort(),e._xMin=r.parseShort(),e._yMin=r.parseShort(),e._xMax=r.parseShort(),e._yMax=r.parseShort();var i,a;if(e.numberOfContours>0){for(var o=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)o.push(r.parseUShort());e.instructionLength=r.parseUShort(),e.instructions=[];for(var c=0;c<e.instructionLength;c+=1)e.instructions.push(r.parseByte());var l=o[o.length-1]+1;i=[];for(var u=0;u<l;u+=1)if(a=r.parseByte(),i.push(a),(a&8)>0)for(var d=r.parseByte(),f=0;f<d;f+=1)i.push(a),u+=1;if(A.argument(i.length===l,`Bad flags.`),o.length>0){var p=[],m;if(l>0){for(var h=0;h<l;h+=1)a=i[h],m={},m.onCurve=!!(a&1),m.lastPointOfContour=o.indexOf(h)>=0,p.push(m);for(var g=0,_=0;_<l;_+=1)a=i[_],m=p[_],m.x=Ke(r,a,g,2,16),g=m.x;for(var v=0,y=0;y<l;y+=1)a=i[y],m=p[y],m.y=Ke(r,a,v,4,32),v=m.y}e.points=p}else e.points=[]}else if(e.numberOfContours===0)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var b=!0;b;){i=r.parseUShort();var x={glyphIndex:r.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(i&1)>0?(i&2)>0?(x.dx=r.parseShort(),x.dy=r.parseShort()):x.matchedPoints=[r.parseUShort(),r.parseUShort()]:(i&2)>0?(x.dx=r.parseChar(),x.dy=r.parseChar()):x.matchedPoints=[r.parseByte(),r.parseByte()],(i&8)>0?x.xScale=x.yScale=r.parseF2Dot14():(i&64)>0?(x.xScale=r.parseF2Dot14(),x.yScale=r.parseF2Dot14()):(i&128)>0&&(x.xScale=r.parseF2Dot14(),x.scale01=r.parseF2Dot14(),x.scale10=r.parseF2Dot14(),x.yScale=r.parseF2Dot14()),e.components.push(x),b=!!(i&32)}if(i&256){e.instructionLength=r.parseUShort(),e.instructions=[];for(var S=0;S<e.instructionLength;S+=1)e.instructions.push(r.parseByte())}}}function V(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],a={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(a)}return n}function Je(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(n.length===0,`There are still points left in the current contour.`),t}function Ye(e){var t=new D;if(!e)return t;for(var n=Je(e),r=0;r<n.length;++r){var i=n[r],a=null,o=i[i.length-1],s=i[0];if(o.onCurve)t.moveTo(o.x,o.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var c={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5};t.moveTo(c.x,c.y)}for(var l=0;l<i.length;++l)if(a=o,o=s,s=i[(l+1)%i.length],o.onCurve)t.lineTo(o.x,o.y);else{var u=a,d=s;a.onCurve||(u={x:(o.x+a.x)*.5,y:(o.y+a.y)*.5},t.lineTo(u.x,u.y)),s.onCurve||(d={x:(o.x+s.x)*.5,y:(o.y+s.y)*.5}),t.lineTo(u.x,u.y),t.quadraticCurveTo(o.x,o.y,d.x,d.y)}t.closePath()}return t}function Xe(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],i=e.get(r.glyphIndex);if(i.getPath(),i.points){var a=void 0;if(r.matchedPoints===void 0)a=V(i.points,r);else{if(r.matchedPoints[0]>t.points.length-1||r.matchedPoints[1]>i.points.length-1)throw Error(`Matched points out of range in `+t.name);var o=t.points[r.matchedPoints[0]],s=i.points[r.matchedPoints[1]],c={xScale:r.xScale,scale01:r.scale01,scale10:r.scale10,yScale:r.yScale,dx:0,dy:0};s=V([s],c)[0],c.dx=o.x-s.x,c.dy=o.y-s.y,a=V(i.points,c)}t.points=t.points.concat(a)}}return Ye(t.points)}function Ze(e,t,n,r){for(var i=new ot.GlyphSet(r),a=0;a<n.length-1;a+=1){var o=n[a];o===n[a+1]?i.push(a,ot.glyphLoader(r,a)):i.push(a,ot.ttfGlyphLoader(r,a,qe,e,t+o,Xe))}return i}var Qe={getPath:Ye,parse:Ze};function $e(e,t){var n=t||new D;return{configurable:!0,get:function(){return typeof n==`function`&&(n=n()),n},set:function(e){n=e}}}function et(e){this.bindConstructorValues(e)}et.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||e.unicode!==void 0?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,`path`,$e(this,e.path))},et.prototype.addUnicode=function(e){this.unicodes.length===0&&(this.unicode=e),this.unicodes.push(e)},et.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},et.prototype.getPath=function(e,t,n,r,i){e=e===void 0?0:e,t=t===void 0?0:t,n=n===void 0?72:n;var a,o;r||={};var s=r.xScale,c=r.yScale;if(r.hinting&&i&&i.hinting&&(o=this.path&&i.hinting.exec(this,n)),o)a=Qe.getPath(o).commands,e=Math.round(e),t=Math.round(t),s=c=1;else{a=this.path.commands;var l=1/this.path.unitsPerEm*n;s===void 0&&(s=l),c===void 0&&(c=l)}for(var u=new D,d=0;d<a.length;d+=1){var f=a[d];f.type===`M`?u.moveTo(e+f.x*s,t+-f.y*c):f.type===`L`?u.lineTo(e+f.x*s,t+-f.y*c):f.type===`Q`?u.quadraticCurveTo(e+f.x1*s,t+-f.y1*c,e+f.x*s,t+-f.y*c):f.type===`C`?u.curveTo(e+f.x1*s,t+-f.y1*c,e+f.x2*s,t+-f.y2*c,e+f.x*s,t+-f.y*c):f.type===`Z`&&u.closePath()}return u},et.prototype.getContours=function(){var e=this;if(this.points===void 0)return[];for(var t=[],n=[],r=0;r<this.points.length;r+=1){var i=e.points[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return A.argument(n.length===0,`There are still points left in the current contour.`),t},et.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];i.type!==`Z`&&(t.push(i.x),n.push(i.y)),(i.type===`Q`||i.type===`C`)&&(t.push(i.x1),n.push(i.y1)),i.type===`C`&&(t.push(i.x2),n.push(i.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:this.leftSideBearing};return isFinite(a.xMin)||(a.xMin=0),isFinite(a.xMax)||(a.xMax=this.advanceWidth),isFinite(a.yMin)||(a.yMin=0),isFinite(a.yMax)||(a.yMax=0),a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a},et.prototype.draw=function(e,t,n,r,i){this.getPath(t,n,r,i).draw(e)},et.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){var a=Math.PI*2;e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*i,r+t[o].y*i),e.arc(n+t[o].x*i,r+t[o].y*i,2,0,a,!1);e.closePath(),e.fill()}t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r;for(var a=1/this.path.unitsPerEm*r,o=[],s=[],c=this.path,l=0;l<c.commands.length;l+=1){var u=c.commands[l];u.x!==void 0&&o.push({x:u.x,y:-u.y}),u.x1!==void 0&&s.push({x:u.x1,y:-u.y1}),u.x2!==void 0&&s.push({x:u.x2,y:-u.y2})}e.fillStyle=`blue`,i(o,t,n,a),e.fillStyle=`red`,i(s,t,n,a)},et.prototype.drawMetrics=function(e,t,n,r){var i;t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?24:r,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle=`black`,B.line(e,t,-1e4,t,1e4),B.line(e,-1e4,n,1e4,n);var a=this.xMin||0,o=this.yMin||0,s=this.xMax||0,c=this.yMax||0,l=this.advanceWidth||0;e.strokeStyle=`blue`,B.line(e,t+a*i,-1e4,t+a*i,1e4),B.line(e,t+s*i,-1e4,t+s*i,1e4),B.line(e,-1e4,n+-o*i,1e4,n+-o*i),B.line(e,-1e4,n+-c*i,1e4,n+-c*i),e.strokeStyle=`green`,B.line(e,t+l*i,-1e4,t+l*i,1e4)};function tt(e,t,n){Object.defineProperty(e,t,{get:function(){return e.path,e[n]},set:function(t){e[n]=t},enumerable:!0,configurable:!0})}function nt(e,t){var n=this;if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)n.glyphs[r]=t[r];this.length=t&&t.length||0}nt.prototype.get=function(e){return typeof this.glyphs[e]==`function`&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},nt.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};function rt(e,t){return new et({index:t,font:e})}function it(e,t,n,r,i,a){return function(){var o=new et({index:t,font:e});return o.path=function(){n(o,r,i);var t=a(e.glyphs,o);return t.unitsPerEm=e.unitsPerEm,t},tt(o,`xMin`,`_xMin`),tt(o,`xMax`,`_xMax`),tt(o,`yMin`,`_yMin`),tt(o,`yMax`,`_yMax`),o}}function at(e,t,n,r){return function(){var i=new et({index:t,font:e});return i.path=function(){var t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}var ot={GlyphSet:nt,glyphLoader:rt,ttfGlyphLoader:it,cffGlyphLoader:at};function st(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!st(e[n],t[n]))return!1;return!0}else return!1}function ct(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768,t}function lt(e,t,n){var r=[],i=[],a=z.getCard16(e,t),o,s;if(a!==0){var c=z.getByte(e,t+2);o=t+(a+1)*c+2;for(var l=t+3,u=0;u<a+1;u+=1)r.push(z.getOffset(e,l,c)),l+=c;s=o+r[a]}else s=t+2;for(var d=0;d<r.length-1;d+=1){var f=z.getBytes(e,o+r[d],o+r[d+1]);n&&(f=n(f)),i.push(f)}return{objects:i,startOffset:t,endOffset:s}}function ut(e){for(var t=``,n=15,r=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`.`,`E`,`E-`,null,`-`];;){var i=e.parseByte(),a=i>>4,o=i&15;if(a===n||(t+=r[a],o===n))break;t+=r[o]}return parseFloat(t)}function dt(e,t){var n,r,i,a;if(t===28)return n=e.parseByte(),r=e.parseByte(),n<<8|r;if(t===29)return n=e.parseByte(),r=e.parseByte(),i=e.parseByte(),a=e.parseByte(),n<<24|r<<16|i<<8|a;if(t===30)return ut(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return n=e.parseByte(),(t-247)*256+n+108;if(t>=251&&t<=254)return n=e.parseByte(),-(t-251)*256-n-108;throw Error(`Invalid b0 `+t)}function ft(e){for(var t={},n=0;n<e.length;n+=1){var r=e[n][0],i=e[n][1],a=void 0;if(a=i.length===1?i[0]:i,t.hasOwnProperty(r)&&!isNaN(t[r]))throw Error(`Object `+t+` already has key `+r);t[r]=a}return t}function pt(e,t,n){t=t===void 0?0:t;var r=new z.Parser(e,t),i=[],a=[];for(n=n===void 0?e.length:n;r.relativeOffset<n;){var o=r.parseByte();o<=21?(o===12&&(o=1200+r.parseByte()),i.push([o,a]),a=[]):a.push(dt(r,o))}return ft(i)}function mt(e,t){return t=t<=390?Ie[t]:e[t-391],t}function ht(e,t,n){for(var r={},i,a=0;a<t.length;a+=1){var o=t[a];if(Array.isArray(o.type)){var s=[];s.length=o.type.length;for(var c=0;c<o.type.length;c++)i=e[o.op]===void 0?void 0:e[o.op][c],i===void 0&&(i=o.value!==void 0&&o.value[c]!==void 0?o.value[c]:null),o.type[c]===`SID`&&(i=mt(n,i)),s[c]=i;r[o.name]=s}else i=e[o.op],i===void 0&&(i=o.value===void 0?null:o.value),o.type===`SID`&&(i=mt(n,i)),r[o.name]=i}return r}function gt(e,t){var n={};return n.formatMajor=z.getCard8(e,t),n.formatMinor=z.getCard8(e,t+1),n.size=z.getCard8(e,t+2),n.offsetSize=z.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}var _t=[{name:`version`,op:0,type:`SID`},{name:`notice`,op:1,type:`SID`},{name:`copyright`,op:1200,type:`SID`},{name:`fullName`,op:2,type:`SID`},{name:`familyName`,op:3,type:`SID`},{name:`weight`,op:4,type:`SID`},{name:`isFixedPitch`,op:1201,type:`number`,value:0},{name:`italicAngle`,op:1202,type:`number`,value:0},{name:`underlinePosition`,op:1203,type:`number`,value:-100},{name:`underlineThickness`,op:1204,type:`number`,value:50},{name:`paintType`,op:1205,type:`number`,value:0},{name:`charstringType`,op:1206,type:`number`,value:2},{name:`fontMatrix`,op:1207,type:[`real`,`real`,`real`,`real`,`real`,`real`],value:[.001,0,0,.001,0,0]},{name:`uniqueId`,op:13,type:`number`},{name:`fontBBox`,op:5,type:[`number`,`number`,`number`,`number`],value:[0,0,0,0]},{name:`strokeWidth`,op:1208,type:`number`,value:0},{name:`xuid`,op:14,type:[],value:null},{name:`charset`,op:15,type:`offset`,value:0},{name:`encoding`,op:16,type:`offset`,value:0},{name:`charStrings`,op:17,type:`offset`,value:0},{name:`private`,op:18,type:[`number`,`offset`],value:[0,0]},{name:`ros`,op:1230,type:[`SID`,`SID`,`number`]},{name:`cidFontVersion`,op:1231,type:`number`,value:0},{name:`cidFontRevision`,op:1232,type:`number`,value:0},{name:`cidFontType`,op:1233,type:`number`,value:0},{name:`cidCount`,op:1234,type:`number`,value:8720},{name:`uidBase`,op:1235,type:`number`},{name:`fdArray`,op:1236,type:`offset`},{name:`fdSelect`,op:1237,type:`offset`},{name:`fontName`,op:1238,type:`SID`}],H=[{name:`subrs`,op:19,type:`offset`,value:0},{name:`defaultWidthX`,op:20,type:`number`,value:0},{name:`nominalWidthX`,op:21,type:`number`,value:0}];function vt(e,t){return ht(pt(e,0,e.byteLength),_t,t)}function yt(e,t,n,r){return ht(pt(e,t,n),H,r)}function bt(e,t,n,r){for(var i=[],a=0;a<n.length;a+=1){var o=vt(new DataView(new Uint8Array(n[a]).buffer),r);o._subrs=[],o._subrsBias=0;var s=o.private[0],c=o.private[1];if(s!==0&&c!==0){var l=yt(e,c+t,s,r);o._defaultWidthX=l.defaultWidthX,o._nominalWidthX=l.nominalWidthX,l.subrs!==0&&(o._subrs=lt(e,c+l.subrs+t).objects,o._subrsBias=ct(o._subrs)),o._privateDict=l}i.push(o)}return i}function xt(e,t,n,r){var i,a,o=new z.Parser(e,t);--n;var s=[`.notdef`],c=o.parseCard8();if(c===0)for(var l=0;l<n;l+=1)i=o.parseSID(),s.push(mt(r,i));else if(c===1)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard8();for(var u=0;u<=a;u+=1)s.push(mt(r,i)),i+=1}else if(c===2)for(;s.length<=n;){i=o.parseSID(),a=o.parseCard16();for(var d=0;d<=a;d+=1)s.push(mt(r,i)),i+=1}else throw Error(`Unknown charset format `+c);return s}function St(e,t,n){var r,i={},a=new z.Parser(e,t),o=a.parseCard8();if(o===0)for(var s=a.parseCard8(),c=0;c<s;c+=1)r=a.parseCard8(),i[r]=c;else if(o===1){var l=a.parseCard8();r=1;for(var u=0;u<l;u+=1)for(var d=a.parseCard8(),f=a.parseCard8(),p=d;p<=d+f;p+=1)i[p]=r,r+=1}else throw Error(`Unknown encoding format `+o);return new He(i,n)}function Ct(e,t,n){var r,i,a,o,s=new D,c=[],l=0,u=!1,d=!1,f=0,p=0,m,h,g,_;if(e.isCIDFont){var v=e.tables.cff.topDict._fdSelect[t.index],y=e.tables.cff.topDict._fdArray[v];m=y._subrs,h=y._subrsBias,g=y._defaultWidthX,_=y._nominalWidthX}else m=e.tables.cff.topDict._subrs,h=e.tables.cff.topDict._subrsBias,g=e.tables.cff.topDict._defaultWidthX,_=e.tables.cff.topDict._nominalWidthX;var b=g;function x(e,t){d&&s.closePath(),s.moveTo(e,t),d=!0}function S(){c.length%2!=0&&!u&&(b=c.shift()+_),l+=c.length>>1,c.length=0,u=!0}function ee(n){for(var g,v,y,C,w,T,E,D,O,k,A,j,M=0;M<n.length;){var N=n[M];switch(M+=1,N){case 1:S();break;case 3:S();break;case 4:c.length>1&&!u&&(b=c.shift()+_,u=!0),p+=c.pop(),x(f,p);break;case 5:for(;c.length>0;)f+=c.shift(),p+=c.shift(),s.lineTo(f,p);break;case 6:for(;c.length>0&&(f+=c.shift(),s.lineTo(f,p),c.length!==0);)p+=c.shift(),s.lineTo(f,p);break;case 7:for(;c.length>0&&(p+=c.shift(),s.lineTo(f,p),c.length!==0);)f+=c.shift(),s.lineTo(f,p);break;case 8:for(;c.length>0;)r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 10:w=c.pop()+h,T=m[w],T&&ee(T);break;case 11:return;case 12:switch(N=n[M],M+=1,N){case 35:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o+c.shift(),O=E+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),f=A+c.shift(),p=j+c.shift(),c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 34:r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o,O=E+c.shift(),k=o,A=O+c.shift(),j=p,f=A+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 36:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o,O=E+c.shift(),k=o,A=O+c.shift(),j=k+c.shift(),f=A+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;case 37:r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),E=a+c.shift(),D=o+c.shift(),O=E+c.shift(),k=D+c.shift(),A=O+c.shift(),j=k+c.shift(),Math.abs(A-f)>Math.abs(j-p)?f=A+c.shift():p=j+c.shift(),s.curveTo(r,i,a,o,E,D),s.curveTo(O,k,A,j,f,p);break;default:console.log(`Glyph `+t.index+`: unknown operator 1200`+N),c.length=0}break;case 14:c.length>0&&!u&&(b=c.shift()+_,u=!0),d&&=(s.closePath(),!1);break;case 18:S();break;case 19:case 20:S(),M+=l+7>>3;break;case 21:c.length>2&&!u&&(b=c.shift()+_,u=!0),p+=c.pop(),f+=c.pop(),x(f,p);break;case 22:c.length>1&&!u&&(b=c.shift()+_,u=!0),f+=c.pop(),x(f,p);break;case 23:S();break;case 24:for(;c.length>2;)r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);f+=c.shift(),p+=c.shift(),s.lineTo(f,p);break;case 25:for(;c.length>6;)f+=c.shift(),p+=c.shift(),s.lineTo(f,p);r=f+c.shift(),i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 26:for(c.length%2&&(f+=c.shift());c.length>0;)r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a,p=o+c.shift(),s.curveTo(r,i,a,o,f,p);break;case 27:for(c.length%2&&(p+=c.shift());c.length>0;)r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o,s.curveTo(r,i,a,o,f,p);break;case 28:g=n[M],v=n[M+1],c.push((g<<24|v<<16)>>16),M+=2;break;case 29:w=c.pop()+e.gsubrsBias,T=e.gsubrs[w],T&&ee(T);break;case 30:for(;c.length>0&&(r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p),c.length!==0);)r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),p=o+c.shift(),f=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p);break;case 31:for(;c.length>0&&(r=f+c.shift(),i=p,a=r+c.shift(),o=i+c.shift(),p=o+c.shift(),f=a+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p),c.length!==0);)r=f,i=p+c.shift(),a=r+c.shift(),o=i+c.shift(),f=a+c.shift(),p=o+(c.length===1?c.shift():0),s.curveTo(r,i,a,o,f,p);break;default:N<32?console.log(`Glyph `+t.index+`: unknown operator `+N):N<247?c.push(N-139):N<251?(g=n[M],M+=1,c.push((N-247)*256+g+108)):N<255?(g=n[M],M+=1,c.push(-(N-251)*256-g-108)):(g=n[M],v=n[M+1],y=n[M+2],C=n[M+3],M+=4,c.push((g<<24|v<<16|y<<8|C)/65536))}}}return ee(n),t.advanceWidth=b,s}function wt(e,t,n,r){var i=[],a,o=new z.Parser(e,t),s=o.parseCard8();if(s===0)for(var c=0;c<n;c++){if(a=o.parseCard8(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);i.push(a)}else if(s===3){var l=o.parseCard16(),u=o.parseCard16();if(u!==0)throw Error(`CFF Table CID Font FDSelect format 3 range has bad initial GID `+u);for(var d,f=0;f<l;f++){if(a=o.parseCard8(),d=o.parseCard16(),a>=r)throw Error(`CFF table CID Font FDSelect has bad FD index value `+a+` (FD count `+r+`)`);if(d>n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad GID `+d);for(;u<d;u++)i.push(a);u=d}if(d!==n)throw Error(`CFF Table CID Font FDSelect format 3 range has bad final GID `+d)}else throw Error(`CFF Table CID Font FDSelect table has unsupported format `+s);return i}function Tt(e,t,n){n.tables.cff={};var r=lt(e,lt(e,gt(e,t).endOffset,z.bytesToString).endOffset),i=lt(e,r.endOffset,z.bytesToString);n.gsubrs=lt(e,i.endOffset).objects,n.gsubrsBias=ct(n.gsubrs);var a=bt(e,t,r.objects,i.objects);if(a.length!==1)throw Error(`CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = `+a.length);var o=a[0];if(n.tables.cff.topDict=o,o._privateDict&&(n.defaultWidthX=o._privateDict.defaultWidthX,n.nominalWidthX=o._privateDict.nominalWidthX),o.ros[0]!==void 0&&o.ros[1]!==void 0&&(n.isCIDFont=!0),n.isCIDFont){var s=o.fdArray,c=o.fdSelect;if(s===0||c===0)throw Error(`Font is marked as a CID font, but FDArray and/or FDSelect information is missing`);s+=t;var l=bt(e,t,lt(e,s).objects,i.objects);o._fdArray=l,c+=t,o._fdSelect=wt(e,c,n.numGlyphs,l.length)}var u=t+o.private[1],d=yt(e,u,o.private[0],i.objects);n.defaultWidthX=d.defaultWidthX,n.nominalWidthX=d.nominalWidthX,d.subrs===0?(n.subrs=[],n.subrsBias=0):(n.subrs=lt(e,u+d.subrs).objects,n.subrsBias=ct(n.subrs));var f=lt(e,t+o.charStrings);n.nGlyphs=f.objects.length;var p=xt(e,t+o.charset,n.nGlyphs,i.objects);o.encoding===0?n.cffEncoding=new He(Le,p):o.encoding===1?n.cffEncoding=new He(Re,p):n.cffEncoding=St(e,t+o.encoding,p),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new ot.GlyphSet(n);for(var m=0;m<n.nGlyphs;m+=1){var h=f.objects[m];n.glyphs.push(m,ot.cffGlyphLoader(n,m,Ct,h))}}function Et(e,t){var n,r=Ie.indexOf(e);return r>=0&&(n=r),r=t.indexOf(e),r>=0?n=r+Ie.length:(n=Ie.length+t.length,t.push(e)),n}function Dt(){return new L.Record(`Header`,[{name:`major`,type:`Card8`,value:1},{name:`minor`,type:`Card8`,value:0},{name:`hdrSize`,type:`Card8`,value:4},{name:`major`,type:`Card8`,value:1}])}function Ot(e){var t=new L.Record(`Name INDEX`,[{name:`names`,type:`INDEX`,value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:`name_`+n,type:`NAME`,value:e[n]});return t}function kt(e,t,n){for(var r={},i=0;i<e.length;i+=1){var a=e[i],o=t[a.name];o!==void 0&&!st(o,a.value)&&(a.type===`SID`&&(o=Et(o,n)),r[a.op]={name:a.name,type:a.type,value:o})}return r}function At(e,t){var n=new L.Record(`Top DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=kt(_t,e,t),n}function jt(e){var t=new L.Record(`Top DICT INDEX`,[{name:`topDicts`,type:`INDEX`,value:[]}]);return t.topDicts=[{name:`topDict_0`,type:`TABLE`,value:e}],t}function Mt(e){var t=new L.Record(`String INDEX`,[{name:`strings`,type:`INDEX`,value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:`string_`+n,type:`STRING`,value:e[n]});return t}function Nt(){return new L.Record(`Global Subr INDEX`,[{name:`subrs`,type:`INDEX`,value:[]}])}function Pt(e,t){for(var n=new L.Record(`Charsets`,[{name:`format`,type:`Card8`,value:0}]),r=0;r<e.length;r+=1){var i=e[r],a=Et(i,t);n.fields.push({name:`glyph_`+r,type:`SID`,value:a})}return n}function Ft(e){var t=[],n=e.path;t.push({name:`width`,type:`NUMBER`,value:e.advanceWidth});for(var r=0,i=0,a=0;a<n.commands.length;a+=1){var o=void 0,s=void 0,c=n.commands[a];if(c.type===`Q`){var l=.3333333333333333,u=2/3;c={type:`C`,x:c.x,y:c.y,x1:l*r+u*c.x1,y1:l*i+u*c.y1,x2:l*c.x+u*c.x1,y2:l*c.y+u*c.y1}}if(c.type===`M`)o=Math.round(c.x-r),s=Math.round(c.y-i),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rmoveto`,type:`OP`,value:21}),r=Math.round(c.x),i=Math.round(c.y);else if(c.type===`L`)o=Math.round(c.x-r),s=Math.round(c.y-i),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rlineto`,type:`OP`,value:5}),r=Math.round(c.x),i=Math.round(c.y);else if(c.type===`C`){var d=Math.round(c.x1-r),f=Math.round(c.y1-i),p=Math.round(c.x2-c.x1),m=Math.round(c.y2-c.y1);o=Math.round(c.x-c.x2),s=Math.round(c.y-c.y2),t.push({name:`dx1`,type:`NUMBER`,value:d}),t.push({name:`dy1`,type:`NUMBER`,value:f}),t.push({name:`dx2`,type:`NUMBER`,value:p}),t.push({name:`dy2`,type:`NUMBER`,value:m}),t.push({name:`dx`,type:`NUMBER`,value:o}),t.push({name:`dy`,type:`NUMBER`,value:s}),t.push({name:`rrcurveto`,type:`OP`,value:8}),r=Math.round(c.x),i=Math.round(c.y)}}return t.push({name:`endchar`,type:`OP`,value:14}),t}function It(e){for(var t=new L.Record(`CharStrings INDEX`,[{name:`charStrings`,type:`INDEX`,value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),i=Ft(r);t.charStrings.push({name:r.name,type:`CHARSTRING`,value:i})}return t}function Lt(e,t){var n=new L.Record(`Private DICT`,[{name:`dict`,type:`DICT`,value:{}}]);return n.dict=kt(H,e,t),n}function Rt(e,t){for(var n=new L.Table(`CFF `,[{name:`header`,type:`RECORD`},{name:`nameIndex`,type:`RECORD`},{name:`topDictIndex`,type:`RECORD`},{name:`stringIndex`,type:`RECORD`},{name:`globalSubrIndex`,type:`RECORD`},{name:`charsets`,type:`RECORD`},{name:`charStringsIndex`,type:`RECORD`},{name:`privateDict`,type:`RECORD`}]),r=1/t.unitsPerEm,i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[r,0,0,r,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a={},o=[],s,c=1;c<e.length;c+=1)s=e.get(c),o.push(s.name);var l=[];n.header=Dt(),n.nameIndex=Ot([t.postScriptName]);var u=At(i,l);return n.topDictIndex=jt(u),n.globalSubrIndex=Nt(),n.charsets=Pt(o,l),n.charStringsIndex=It(e),n.privateDict=Lt(a,l),n.stringIndex=Mt(l),i.charset=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf(),i.encoding=0,i.charStrings=i.charset+n.charsets.sizeOf(),i.private[1]=i.charStrings+n.charStringsIndex.sizeOf(),u=At(i,l),n.topDictIndex=jt(u),n}var zt={parse:Tt,make:Rt};function Bt(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(r.parseFixed()*1e3)/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),A.argument(n.magicNumber===1594834165,`Font header has wrong magic number.`),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n}function Vt(e){var t=Math.round(new Date().getTime()/1e3)+2082844800,n=t;return e.createdTimestamp&&(n=e.createdTimestamp+2082844800),new L.Table(`head`,[{name:`version`,type:`FIXED`,value:65536},{name:`fontRevision`,type:`FIXED`,value:65536},{name:`checkSumAdjustment`,type:`ULONG`,value:0},{name:`magicNumber`,type:`ULONG`,value:1594834165},{name:`flags`,type:`USHORT`,value:0},{name:`unitsPerEm`,type:`USHORT`,value:1e3},{name:`created`,type:`LONGDATETIME`,value:n},{name:`modified`,type:`LONGDATETIME`,value:t},{name:`xMin`,type:`SHORT`,value:0},{name:`yMin`,type:`SHORT`,value:0},{name:`xMax`,type:`SHORT`,value:0},{name:`yMax`,type:`SHORT`,value:0},{name:`macStyle`,type:`USHORT`,value:0},{name:`lowestRecPPEM`,type:`USHORT`,value:0},{name:`fontDirectionHint`,type:`SHORT`,value:2},{name:`indexToLocFormat`,type:`SHORT`,value:0},{name:`glyphDataFormat`,type:`SHORT`,value:0}],e)}var Ht={parse:Bt,make:Vt};function Ut(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n}function Wt(e){return new L.Table(`hhea`,[{name:`version`,type:`FIXED`,value:65536},{name:`ascender`,type:`FWORD`,value:0},{name:`descender`,type:`FWORD`,value:0},{name:`lineGap`,type:`FWORD`,value:0},{name:`advanceWidthMax`,type:`UFWORD`,value:0},{name:`minLeftSideBearing`,type:`FWORD`,value:0},{name:`minRightSideBearing`,type:`FWORD`,value:0},{name:`xMaxExtent`,type:`FWORD`,value:0},{name:`caretSlopeRise`,type:`SHORT`,value:1},{name:`caretSlopeRun`,type:`SHORT`,value:0},{name:`caretOffset`,type:`SHORT`,value:0},{name:`reserved1`,type:`SHORT`,value:0},{name:`reserved2`,type:`SHORT`,value:0},{name:`reserved3`,type:`SHORT`,value:0},{name:`reserved4`,type:`SHORT`,value:0},{name:`metricDataFormat`,type:`SHORT`,value:0},{name:`numberOfHMetrics`,type:`USHORT`,value:0}],e)}var Gt={parse:Ut,make:Wt};function Kt(e,t,n,r,i){for(var a,o,s=new z.Parser(e,t),c=0;c<r;c+=1){c<n&&(a=s.parseUShort(),o=s.parseShort());var l=i.get(c);l.advanceWidth=a,l.leftSideBearing=o}}function qt(e){for(var t=new L.Table(`hmtx`,[]),n=0;n<e.length;n+=1){var r=e.get(n),i=r.advanceWidth||0,a=r.leftSideBearing||0;t.fields.push({name:`advanceWidth_`+n,type:`USHORT`,value:i}),t.fields.push({name:`leftSideBearing_`+n,type:`SHORT`,value:a})}return t}var Jt={parse:Kt,make:qt};function Yt(e){for(var t=new L.Table(`ltag`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`numTags`,type:`ULONG`,value:e.length}]),n=``,r=12+e.length*4,i=0;i<e.length;++i){var a=n.indexOf(e[i]);a<0&&(a=n.length,n+=e[i]),t.fields.push({name:`offset `+i,type:`USHORT`,value:r+a}),t.fields.push({name:`length `+i,type:`USHORT`,value:e[i].length})}return t.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),t}function Xt(e,t){var n=new z.Parser(e,t),r=n.parseULong();A.argument(r===1,`Unsupported ltag table version.`),n.skip(`uLong`,1);for(var i=n.parseULong(),a=[],o=0;o<i;o++){for(var s=``,c=t+n.parseUShort(),l=n.parseUShort(),u=c;u<c+l;++u)s+=String.fromCharCode(e.getInt8(u));a.push(s)}return a}var Zt={make:Yt,parse:Xt};function Qt(e,t){var n={},r=new z.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),n.version===1&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n}function $t(e){return new L.Table(`maxp`,[{name:`version`,type:`FIXED`,value:20480},{name:`numGlyphs`,type:`USHORT`,value:e}])}var en={parse:Qt,make:$t},tn=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],nn={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},rn={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},an={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function on(e,t,n){switch(e){case 0:if(t===65535)return`und`;if(n)return n[t];break;case 1:return nn[t];case 3:return an[t]}}var sn=`utf-16`,cn={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},ln={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function un(e,t,n){switch(e){case 0:return sn;case 1:return ln[n]||cn[t];case 3:if(t===1||t===10)return sn;break}}function dn(e,t,n){for(var r={},i=new z.Parser(e,t),a=i.parseUShort(),o=i.parseUShort(),s=i.offset+i.parseUShort(),c=0;c<o;c++){var l=i.parseUShort(),u=i.parseUShort(),d=i.parseUShort(),f=i.parseUShort(),p=tn[f]||f,m=i.parseUShort(),h=i.parseUShort(),g=on(l,d,n),_=un(l,u,d);if(_!==void 0&&g!==void 0){var v=void 0;if(v=_===sn?N.UTF16(e,s+h,m):N.MACSTRING(e,s+h,m,_),v){var y=r[p];y===void 0&&(y=r[p]={}),y[g]=v}}}return a===1&&i.parseUShort(),r}function fn(e){var t={};for(var n in e)t[e[n]]=parseInt(n);return t}function pn(e,t,n,r,i,a){return new L.Record(`NameRecord`,[{name:`platformID`,type:`USHORT`,value:e},{name:`encodingID`,type:`USHORT`,value:t},{name:`languageID`,type:`USHORT`,value:n},{name:`nameID`,type:`USHORT`,value:r},{name:`length`,type:`USHORT`,value:i},{name:`offset`,type:`USHORT`,value:a}])}function mn(e,t){var n=e.length,r=t.length-n+1;e:for(var i=0;i<r;i++)for(;i<r;i++){for(var a=0;a<n;a++)if(t[i+a]!==e[a])continue e;return i}return-1}function hn(e,t){var n=mn(e,t);if(n<0){n=t.length;for(var r=0,i=e.length;r<i;++r)t.push(e[r])}return n}function gn(e,t){var n,r=[],i={},a=fn(tn);for(var o in e){var s=a[o];if(s===void 0&&(s=o),n=parseInt(s),isNaN(n))throw Error(`Name table entry "`+o+`" does not exist, see nameTableNames for complete list.`);i[n]=e[o],r.push(n)}for(var c=fn(nn),l=fn(an),u=[],d=[],f=0;f<r.length;f++){n=r[f];var p=i[n];for(var m in p){var h=p[m],g=1,_=c[m],v=rn[_],y=un(g,v,_),b=P.MACSTRING(h,y);b===void 0&&(g=0,_=t.indexOf(m),_<0&&(_=t.length,t.push(m)),v=4,b=P.UTF16(h));var x=hn(b,d);u.push(pn(g,v,_,n,b.length,x));var S=l[m];if(S!==void 0){var ee=P.UTF16(h),C=hn(ee,d);u.push(pn(3,1,S,n,ee.length,C))}}}u.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var w=new L.Table(`name`,[{name:`format`,type:`USHORT`,value:0},{name:`count`,type:`USHORT`,value:u.length},{name:`stringOffset`,type:`USHORT`,value:6+u.length*12}]),T=0;T<u.length;T++)w.fields.push({name:`record_`+T,type:`RECORD`,value:u[T]});return w.fields.push({name:`strings`,type:`LITERAL`,value:d}),w}var _n={parse:dn,make:gn},vn=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function yn(e){for(var t=0;t<vn.length;t+=1){var n=vn[t];if(e>=n.begin&&e<n.end)return t}return-1}function bn(e,t){var n={},r=new z.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;i<10;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n}function xn(e){return new L.Table(`OS/2`,[{name:`version`,type:`USHORT`,value:3},{name:`xAvgCharWidth`,type:`SHORT`,value:0},{name:`usWeightClass`,type:`USHORT`,value:0},{name:`usWidthClass`,type:`USHORT`,value:0},{name:`fsType`,type:`USHORT`,value:0},{name:`ySubscriptXSize`,type:`SHORT`,value:650},{name:`ySubscriptYSize`,type:`SHORT`,value:699},{name:`ySubscriptXOffset`,type:`SHORT`,value:0},{name:`ySubscriptYOffset`,type:`SHORT`,value:140},{name:`ySuperscriptXSize`,type:`SHORT`,value:650},{name:`ySuperscriptYSize`,type:`SHORT`,value:699},{name:`ySuperscriptXOffset`,type:`SHORT`,value:0},{name:`ySuperscriptYOffset`,type:`SHORT`,value:479},{name:`yStrikeoutSize`,type:`SHORT`,value:49},{name:`yStrikeoutPosition`,type:`SHORT`,value:258},{name:`sFamilyClass`,type:`SHORT`,value:0},{name:`bFamilyType`,type:`BYTE`,value:0},{name:`bSerifStyle`,type:`BYTE`,value:0},{name:`bWeight`,type:`BYTE`,value:0},{name:`bProportion`,type:`BYTE`,value:0},{name:`bContrast`,type:`BYTE`,value:0},{name:`bStrokeVariation`,type:`BYTE`,value:0},{name:`bArmStyle`,type:`BYTE`,value:0},{name:`bLetterform`,type:`BYTE`,value:0},{name:`bMidline`,type:`BYTE`,value:0},{name:`bXHeight`,type:`BYTE`,value:0},{name:`ulUnicodeRange1`,type:`ULONG`,value:0},{name:`ulUnicodeRange2`,type:`ULONG`,value:0},{name:`ulUnicodeRange3`,type:`ULONG`,value:0},{name:`ulUnicodeRange4`,type:`ULONG`,value:0},{name:`achVendID`,type:`CHARARRAY`,value:`XXXX`},{name:`fsSelection`,type:`USHORT`,value:0},{name:`usFirstCharIndex`,type:`USHORT`,value:0},{name:`usLastCharIndex`,type:`USHORT`,value:0},{name:`sTypoAscender`,type:`SHORT`,value:0},{name:`sTypoDescender`,type:`SHORT`,value:0},{name:`sTypoLineGap`,type:`SHORT`,value:0},{name:`usWinAscent`,type:`USHORT`,value:0},{name:`usWinDescent`,type:`USHORT`,value:0},{name:`ulCodePageRange1`,type:`ULONG`,value:0},{name:`ulCodePageRange2`,type:`ULONG`,value:0},{name:`sxHeight`,type:`SHORT`,value:0},{name:`sCapHeight`,type:`SHORT`,value:0},{name:`usDefaultChar`,type:`USHORT`,value:0},{name:`usBreakChar`,type:`USHORT`,value:0},{name:`usMaxContext`,type:`USHORT`,value:0}],e)}var Sn={parse:bn,make:xn,unicodeRanges:vn,getUnicodeRange:yn};function Cn(e,t){var n={},r=new z.Parser(e,t);switch(n.version=r.parseVersion(),n.italicAngle=r.parseFixed(),n.underlinePosition=r.parseShort(),n.underlineThickness=r.parseShort(),n.isFixedPitch=r.parseULong(),n.minMemType42=r.parseULong(),n.maxMemType42=r.parseULong(),n.minMemType1=r.parseULong(),n.maxMemType1=r.parseULong(),n.version){case 1:n.names=ze.slice();break;case 2:n.numberOfGlyphs=r.parseUShort(),n.glyphNameIndex=Array(n.numberOfGlyphs);for(var i=0;i<n.numberOfGlyphs;i++)n.glyphNameIndex[i]=r.parseUShort();n.names=[];for(var a=0;a<n.numberOfGlyphs;a++)if(n.glyphNameIndex[a]>=ze.length){var o=r.parseChar();n.names.push(r.parseString(o))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=Array(n.numberOfGlyphs);for(var s=0;s<n.numberOfGlyphs;s++)n.offset[s]=r.parseChar();break}return n}function wn(){return new L.Table(`post`,[{name:`version`,type:`FIXED`,value:196608},{name:`italicAngle`,type:`FIXED`,value:0},{name:`underlinePosition`,type:`FWORD`,value:0},{name:`underlineThickness`,type:`FWORD`,value:0},{name:`isFixedPitch`,type:`ULONG`,value:0},{name:`minMemType42`,type:`ULONG`,value:0},{name:`maxMemType42`,type:`ULONG`,value:0},{name:`minMemType1`,type:`ULONG`,value:0},{name:`maxMemType1`,type:`ULONG`,value:0}])}var Tn={parse:Cn,make:wn},En=Array(9);En[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:1,coverage:this.parsePointer(R.coverage),deltaGlyphId:this.parseUShort()};if(t===2)return{substFormat:2,coverage:this.parsePointer(R.coverage),substitute:this.parseOffset16List()};A.assert(!1,`0x`+e.toString(16)+`: lookup type 1 format must be 1 or 2.`)},En[2]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Multiple Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),sequences:this.parseListOfLists()}},En[3]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Alternate Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),alternateSets:this.parseListOfLists()}},En[4]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB ligature table identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var Dn={sequenceIndex:R.uShort,lookupListIndex:R.uShort};En[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:t,coverage:this.parsePointer(R.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,Dn)}})};if(t===2)return{substFormat:t,coverage:this.parsePointer(R.coverage),classDef:this.parsePointer(R.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,Dn)}})};if(t===3){var n=this.parseUShort(),r=this.parseUShort();return{substFormat:t,coverages:this.parseList(n,R.pointer(R.coverage)),lookupRecords:this.parseRecordList(r,Dn)}}A.assert(!1,`0x`+e.toString(16)+`: lookup type 5 format must be 1, 2 or 3.`)},En[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{substFormat:1,coverage:this.parsePointer(R.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Dn)}})};if(t===2)return{substFormat:2,coverage:this.parsePointer(R.coverage),backtrackClassDef:this.parsePointer(R.classDef),inputClassDef:this.parsePointer(R.classDef),lookaheadClassDef:this.parsePointer(R.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Dn)}})};if(t===3)return{substFormat:3,backtrackCoverage:this.parseList(R.pointer(R.coverage)),inputCoverage:this.parseList(R.pointer(R.coverage)),lookaheadCoverage:this.parseList(R.pointer(R.coverage)),lookupRecords:this.parseRecordList(Dn)};A.assert(!1,`0x`+e.toString(16)+`: lookup type 6 format must be 1, 2 or 3.`)},En[7]=function(){var e=this.parseUShort();A.argument(e===1,`GSUB Extension Substitution subtable identifier-format must be 1`);var t=this.parseUShort(),n=new R(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:En[t].call(n)}},En[8]=function(){var e=this.parseUShort();return A.argument(e===1,`GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1`),{substFormat:e,coverage:this.parsePointer(R.coverage),backtrackCoverage:this.parseList(R.pointer(R.coverage)),lookaheadCoverage:this.parseList(R.pointer(R.coverage)),substitutes:this.parseUShortList()}};function On(e,t){t||=0;var n=new R(e,t),r=n.parseVersion(1);return A.argument(r===1||r===1.1,`Unsupported GSUB table version.`),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(En)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(En),variations:n.parseFeatureVariationsList()}}var kn=Array(9);kn[1]=function(e){return e.substFormat===1?new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)},{name:`deltaGlyphID`,type:`USHORT`,value:e.deltaGlyphId}]):new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:2},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.ushortList(`substitute`,e.substitute)))},kn[3]=function(e){return A.assert(e.substFormat===1,`Lookup type 3 substFormat must be 1.`),new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.tableList(`altSet`,e.alternateSets,function(e){return new L.Table(`alternateSetTable`,L.ushortList(`alternate`,e))})))},kn[4]=function(e){return A.assert(e.substFormat===1,`Lookup type 4 substFormat must be 1.`),new L.Table(`substitutionTable`,[{name:`substFormat`,type:`USHORT`,value:1},{name:`coverage`,type:`TABLE`,value:new L.Coverage(e.coverage)}].concat(L.tableList(`ligSet`,e.ligatureSets,function(e){return new L.Table(`ligatureSetTable`,L.tableList(`ligature`,e,function(e){return new L.Table(`ligatureTable`,[{name:`ligGlyph`,type:`USHORT`,value:e.ligGlyph}].concat(L.ushortList(`component`,e.components,e.components.length+1)))}))})))};function An(e){return new L.Table(`GSUB`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new L.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new L.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new L.LookupList(e.lookups,kn)}])}var jn={parse:On,make:An};function Mn(e,t){var n=new z.Parser(e,t),r=n.parseULong();A.argument(r===1,`Unsupported META table version.`),n.parseULong(),n.parseULong();for(var i=n.parseULong(),a={},o=0;o<i;o++){var s=n.parseTag(),c=n.parseULong(),l=n.parseULong();a[s]=N.UTF8(e,t+c,l)}return a}function Nn(e){var t=Object.keys(e).length,n=``,r=16+t*12,i=new L.Table(`meta`,[{name:`version`,type:`ULONG`,value:1},{name:`flags`,type:`ULONG`,value:0},{name:`offset`,type:`ULONG`,value:r},{name:`numTags`,type:`ULONG`,value:t}]);for(var a in e){var o=n.length;n+=e[a],i.fields.push({name:`tag `+a,type:`TAG`,value:a}),i.fields.push({name:`offset `+a,type:`ULONG`,value:r+o}),i.fields.push({name:`length `+a,type:`ULONG`,value:e[a].length})}return i.fields.push({name:`stringPool`,type:`CHARARRAY`,value:n}),i}var Pn={parse:Mn,make:Nn};function Fn(e){return Math.log(e)/Math.log(2)|0}function In(e){for(;e.length%4!=0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=2**32,t}function Ln(e,t,n,r){return new L.Record(`Table Record`,[{name:`tag`,type:`TAG`,value:e===void 0?``:e},{name:`checkSum`,type:`ULONG`,value:t===void 0?0:t},{name:`offset`,type:`ULONG`,value:n===void 0?0:n},{name:`length`,type:`ULONG`,value:r===void 0?0:r}])}function Rn(e){var t=new L.Table(`sfnt`,[{name:`version`,type:`TAG`,value:`OTTO`},{name:`numTables`,type:`USHORT`,value:0},{name:`searchRange`,type:`USHORT`,value:0},{name:`entrySelector`,type:`USHORT`,value:0},{name:`rangeShift`,type:`USHORT`,value:0}]);t.tables=e,t.numTables=e.length;var n=2**Fn(t.numTables);t.searchRange=16*n,t.entrySelector=Fn(n),t.rangeShift=t.numTables*16-t.searchRange;for(var r=[],i=[],a=t.sizeOf()+Ln().sizeOf()*t.numTables;a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0});for(var o=0;o<e.length;o+=1){var s=e[o];A.argument(s.tableName.length===4,`Table name`+s.tableName+` is invalid.`);var c=s.sizeOf(),l=Ln(s.tableName,In(s.encode()),a,c);for(r.push({name:l.tag+` Table Record`,type:`RECORD`,value:l}),i.push({name:s.tableName+` table`,type:`RECORD`,value:s}),a+=c,A.argument(!isNaN(a),`Something went wrong calculating the offset.`);a%4!=0;)a+=1,i.push({name:`padding`,type:`BYTE`,value:0})}return r.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function zn(e,t,n){for(var r=0;r<t.length;r+=1){var i=e.charToGlyphIndex(t[r]);if(i>0)return e.glyphs.get(i).getMetrics()}return n}function Bn(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}function Vn(e){for(var t=[],n=[],r=[],i=[],a=[],o=[],s=[],c,l=0,u=0,d=0,f=0,p=0,m=0;m<e.glyphs.length;m+=1){var h=e.glyphs.get(m),g=h.unicode|0;if(isNaN(h.advanceWidth))throw Error(`Glyph `+h.name+` (`+m+`): advanceWidth is not a number.`);(c>g||c===void 0)&&g>0&&(c=g),l<g&&(l=g);var _=Sn.getUnicodeRange(g);if(_<32)u|=1<<_;else if(_<64)d|=1<<_-32;else if(_<96)f|=1<<_-64;else if(_<123)p|=1<<_-96;else throw Error(`Unicode ranges bits > 123 are reserved for internal usage`);if(h.name!==`.notdef`){var v=h.getMetrics();t.push(v.xMin),n.push(v.yMin),r.push(v.xMax),i.push(v.yMax),o.push(v.leftSideBearing),s.push(v.rightSideBearing),a.push(h.advanceWidth)}}var y={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,r),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:Bn(a),minLeftSideBearing:Math.min.apply(null,o),maxLeftSideBearing:Math.max.apply(null,o),minRightSideBearing:Math.min.apply(null,s)};y.ascender=e.ascender,y.descender=e.descender;var b=Ht.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:y.xMin,yMin:y.yMin,xMax:y.xMax,yMax:y.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=Gt.make({ascender:y.ascender,descender:y.descender,advanceWidthMax:y.advanceWidthMax,minLeftSideBearing:y.minLeftSideBearing,minRightSideBearing:y.minRightSideBearing,xMaxExtent:y.maxLeftSideBearing+(y.xMax-y.xMin),numberOfHMetrics:e.glyphs.length}),S=en.make(e.glyphs.length),ee=Sn.make({xAvgCharWidth:Math.round(y.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:c,usLastCharIndex:l,ulUnicodeRange1:u,ulUnicodeRange2:d,ulUnicodeRange3:f,ulUnicodeRange4:p,fsSelection:e.tables.os2.fsSelection,sTypoAscender:y.ascender,sTypoDescender:y.descender,sTypoLineGap:0,usWinAscent:y.yMax,usWinDescent:Math.abs(y.yMin),ulCodePageRange1:1,sxHeight:zn(e,`xyvw`,{yMax:Math.round(y.ascender/2)}).yMax,sCapHeight:zn(e,`HIKLEFJMNTZBDPRAGOQSUVWXY`,y).yMax,usDefaultChar:e.hasChar(` `)?32:0,usBreakChar:e.hasChar(` `)?32:0}),C=Jt.make(e.glyphs),w=Fe.make(e.glyphs),T=e.getEnglishName(`fontFamily`),E=e.getEnglishName(`fontSubfamily`),D=T+` `+E,O=e.getEnglishName(`postScriptName`);O||=T.replace(/\s/g,``)+`-`+E;var k={};for(var A in e.names)k[A]=e.names[A];k.uniqueID||={en:e.getEnglishName(`manufacturer`)+`:`+D},k.postScriptName||={en:O},k.preferredFamily||=e.names.fontFamily,k.preferredSubfamily||=e.names.fontSubfamily;var j=[],M=_n.make(k,j),N=j.length>0?Zt.make(j):void 0,P=Tn.make(),F=zt.make(e.glyphs,{version:e.getEnglishName(`version`),fullName:D,familyName:T,weightName:E,postScriptName:O,unitsPerEm:e.unitsPerEm,fontBBox:[0,y.yMin,y.ascender,y.advanceWidthMax]}),te=e.metas&&Object.keys(e.metas).length>0?Pn.make(e.metas):void 0,ne=[b,x,S,ee,M,w,P,F,C];N&&ne.push(N),e.tables.gsub&&ne.push(jn.make(e.tables.gsub)),te&&ne.push(te);for(var re=Rn(ne),ie=In(re.encode()),ae=re.fields,I=!1,oe=0;oe<ae.length;oe+=1)if(ae[oe].name===`head table`){ae[oe].value.checkSumAdjustment=2981146554-ie,I=!0;break}if(!I)throw Error(`Could not find head table with checkSum to adjust.`);return re}var Hn={make:Rn,fontToTable:Vn,computeCheckSum:In};function Un(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,a=e[i].tag;if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function Wn(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>>1,a=e[i];if(a===t)return i;a<t?n=i+1:r=i-1}return-n-1}function Gn(e,t){for(var n,r=0,i=e.length-1;r<=i;){var a=r+i>>>1;n=e[a];var o=n.start;if(o===t)return n;o<t?r=a+1:i=a-1}if(r>0)return n=e[r-1],t>n.end?0:n}function Kn(e,t){this.font=e,this.tableName=t}Kn.prototype={searchTag:Un,binSearch:Wn,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,n=0;n<e.scripts.length;n++){var r=e.scripts[n].tag;if(r===`DFLT`)return r;r===`latn`&&(t=!0)}if(t)return`latn`}},getScriptTable:function(e,t){var n=this.getTable(t);if(n){e||=`DFLT`;var r=n.scripts,i=Un(n.scripts,e);if(i>=0)return r[i].script;if(t){var a={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,a),a.script}}},getLangSysTable:function(e,t,n){var r=this.getScriptTable(e,n);if(r){if(!t||t===`dflt`||t===`DFLT`)return r.defaultLangSys;var i=Un(r.langSysRecords,t);if(i>=0)return r.langSysRecords[i].langSys;if(n){var a={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-i,0,a),a.langSys}}},getFeatureTable:function(e,t,n,r){var i=this.getLangSysTable(e,t,r);if(i){for(var a,o=i.featureIndexes,s=this.font.tables[this.tableName].features,c=0;c<o.length;c++)if(a=s[o[c]],a.tag===n)return a.feature;if(r){var l=s.length;return A.assert(l===0||n>=s[l-1].tag,`Features must be added in alphabetical order.`),a={tag:n,feature:{params:0,lookupListIndexes:[]}},s.push(a),o.push(l),a.feature}}},getLookupTables:function(e,t,n,r,i){var a=this.getFeatureTable(e,t,n,i),o=[];if(a){for(var s,c=a.lookupListIndexes,l=this.font.tables[this.tableName].lookups,u=0;u<c.length;u++)s=l[c[u]],s.lookupType===r&&o.push(s);if(o.length===0&&i){s={lookupType:r,lookupFlag:0,subtables:[],markFilteringSet:void 0};var d=l.length;return l.push(s),c.push(d),[s]}}return o},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var n=Gn(e.ranges,t);return n?n.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var n=Wn(e.glyphs,t);return n>=0?n:-1;case 2:var r=Gn(e.ranges,t);return r?r.index+t-r.start:-1}},expandCoverage:function(e){if(e.format===1)return e.glyphs;for(var t=[],n=e.ranges,r=0;r<n.length;r++)for(var i=n[r],a=i.start,o=i.end,s=a;s<=o;s++)t.push(s);return t}};function qn(e){Kn.call(this,e,`gpos`)}qn.prototype=Kn.prototype,qn.prototype.getKerningValue=function(e,t,n){for(var r=this,i=0;i<e.length;i++)for(var a=e[i].subtables,o=0;o<a.length;o++){var s=a[o],c=r.getCoverageIndex(s.coverage,t);if(!(c<0))switch(s.posFormat){case 1:for(var l=s.pairSets[c],u=0;u<l.length;u++){var d=l[u];if(d.secondGlyph===n)return d.value1&&d.value1.xAdvance||0}break;case 2:var f=r.getGlyphClass(s.classDef1,t),p=r.getGlyphClass(s.classDef2,n),m=s.classRecords[f][p];return m.value1&&m.value1.xAdvance||0}}return 0},qn.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,`kern`,2)};function Jn(e){Kn.call(this,e,`gsub`)}function Yn(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Xn(e,t,n){for(var r=e.subtables,i=0;i<r.length;i++){var a=r[i];if(a.substFormat===t)return a}if(n)return r.push(n),n}Jn.prototype=Kn.prototype,Jn.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:`DFLT`,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Jn.prototype.getSingle=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,1),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++){var l=s[c],u=r.expandCoverage(l.coverage),d=void 0;if(l.substFormat===1){var f=l.deltaGlyphId;for(d=0;d<u.length;d++){var p=u[d];i.push({sub:p,by:p+f})}}else{var m=l.substitute;for(d=0;d<u.length;d++)i.push({sub:u[d],by:m[d]})}}return i},Jn.prototype.getAlternates=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,3),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++)for(var l=s[c],u=r.expandCoverage(l.coverage),d=l.alternateSets,f=0;f<u.length;f++)i.push({sub:u[f],by:d[f]});return i},Jn.prototype.getLigatures=function(e,t,n){for(var r=this,i=[],a=this.getLookupTables(t,n,e,4),o=0;o<a.length;o++)for(var s=a[o].subtables,c=0;c<s.length;c++)for(var l=s[c],u=r.expandCoverage(l.coverage),d=l.ligatureSets,f=0;f<u.length;f++)for(var p=u[f],m=d[f],h=0;h<m.length;h++){var g=m[h];i.push({sub:[p].concat(g.components),by:g.ligGlyph})}return i},Jn.prototype.addSingle=function(e,t,n,r){var i=this.getLookupTables(n,r,e,1,!0)[0],a=Xn(i,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.substitute.splice(s,0,0)),a.substitute[s]=t.by},Jn.prototype.addAlternate=function(e,t,n,r){var i=this.getLookupTables(n,r,e,3,!0)[0],a=Xn(i,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub,s=this.binSearch(a.coverage.glyphs,o);s<0&&(s=-1-s,a.coverage.glyphs.splice(s,0,o),a.alternateSets.splice(s,0,0)),a.alternateSets[s]=t.by},Jn.prototype.addLigature=function(e,t,n,r){var i=this.getLookupTables(n,r,e,4,!0)[0],a=i.subtables[0];a||(a={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=a),A.assert(a.coverage.format===1,`Ligature: unable to modify coverage table format `+a.coverage.format);var o=t.sub[0],s=t.sub.slice(1),c={ligGlyph:t.by,components:s},l=this.binSearch(a.coverage.glyphs,o);if(l>=0){for(var u=a.ligatureSets[l],d=0;d<u.length;d++)if(Yn(u[d].components,s))return;u.push(c)}else l=-1-l,a.coverage.glyphs.splice(l,0,o),a.ligatureSets.splice(l,0,[c])},Jn.prototype.getFeature=function(e,t,n){if(/ss\d\d/.test(e))return this.getSingle(e,t,n);switch(e){case`aalt`:case`salt`:return this.getSingle(e,t,n).concat(this.getAlternates(e,t,n));case`dlig`:case`liga`:case`rlig`:return this.getLigatures(e,t,n)}},Jn.prototype.add=function(e,t,n,r){if(/ss\d\d/.test(e))return this.addSingle(e,t,n,r);switch(e){case`aalt`:case`salt`:return typeof t.by==`number`?this.addSingle(e,t,n,r):this.addAlternate(e,t,n,r);case`dlig`:case`liga`:case`rlig`:return this.addLigature(e,t,n,r)}};function U(){return typeof window<`u`}function Zn(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;++r)n[r]=e[r];return t}function Qn(e){for(var t=new Buffer(e.byteLength),n=new Uint8Array(e),r=0;r<t.length;++r)t[r]=n[r];return t}function $n(e,t){if(!e)throw t}var er,tr,nr,rr;function ir(e){this.font=e,this._fpgmState=this._prepState=void 0,this._errorState=0}function ar(e){return e}function or(e){return Math.sign(e)*Math.round(Math.abs(e))}function sr(e){return Math.sign(e)*Math.round(Math.abs(e*2))/2}function cr(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function lr(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function ur(e){return Math.sign(e)*Math.floor(Math.abs(e))}var dr=function(e){var t=this.srPeriod,n=this.srPhase,r=this.srThreshold,i=1;return e<0&&(e=-e,i=-1),e+=r-n,e=Math.trunc(e/t)*t,e+=n,e<0?n*i:e*i},fr={x:1,y:0,axis:`x`,distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){var i,a,o,s,c,l,u;if(!r||r===this){if(i=e.xo-t.xo,a=e.xo-n.xo,c=t.x-t.xo,l=n.x-n.xo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){e.x=e.xo+(c+l)/2;return}e.x=e.xo+(c*s+l*o)/u;return}if(i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){fr.setRelative(e,e,(c+l)/2,r,!0);return}fr.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:-1/0,setRelative:function(e,t,n,r,i){if(!r||r===this){e.x=(i?t.xo:t.x)+n;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y;e.x=s+(e.y-c)/r.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},pr={x:0,y:1,axis:`y`,distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){var i,a,o,s,c,l,u;if(!r||r===this){if(i=e.yo-t.yo,a=e.yo-n.yo,c=t.y-t.yo,l=n.y-n.yo,o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){e.y=e.yo+(c+l)/2;return}e.y=e.yo+(c*s+l*o)/u;return}if(i=r.distance(e,t,!0,!0),a=r.distance(e,n,!0,!0),c=r.distance(t,t,!1,!0),l=r.distance(n,n,!1,!0),o=Math.abs(i),s=Math.abs(a),u=o+s,u===0){pr.setRelative(e,e,(c+l)/2,r,!0);return}pr.setRelative(e,e,(c*s+l*o)/u,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(!r||r===this){e.y=(i?t.yo:t.y)+n;return}var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x;e.y=o+n*r.y+r.normalSlope*(e.x-s)},slope:1/0,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};Object.freeze(fr),Object.freeze(pr);function mr(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}mr.prototype.distance=function(e,t,n,r){return this.x*fr.distance(e,t,n,r)+this.y*pr.distance(e,t,n,r)},mr.prototype.interpolate=function(e,t,n,r){var i,a,o,s,c,l,u;if(o=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),a=r.distance(n,n,!1,!0),c=Math.abs(o),l=Math.abs(s),u=c+l,u===0){this.setRelative(e,e,(i+a)/2,r,!0);return}this.setRelative(e,e,(i*l+a*c)/u,r,!0)},mr.prototype.setRelative=function(e,t,n,r,i){r||=this;var a=i?t.xo:t.x,o=i?t.yo:t.y,s=a+n*r.x,c=o+n*r.y,l=r.normalSlope,u=this.slope,d=e.x,f=e.y;e.x=(u*d-l*s+c-f)/(u-l),e.y=u*(e.x-d)+f},mr.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0};function hr(e,t){var n=Math.sqrt(e*e+t*t);return e/=n,t/=n,e===1&&t===0?fr:e===0&&t===1?pr:new mr(e,t)}function gr(e,t,n,r){this.x=this.xo=Math.round(e*64)/64,this.y=this.yo=Math.round(t*64)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}gr.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},gr.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var _r=Object.freeze(new gr(0,0)),vr={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function yr(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case`glyf`:this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case`prep`:this.fv=this.pv=this.dpv=fr,this.round=or}}ir.prototype.exec=function(t,n){if(typeof n!=`number`)throw Error(`Point size is not a number!`);if(!(this._errorState>2)){var r=this.font,i=this._prepState;if(!i||i.ppem!==n){var a=this._fpgmState;if(!a){yr.prototype=vr,a=this._fpgmState=new yr(`fpgm`,r.tables.fpgm),a.funcs=[],a.font=r,e.DEBUG&&(console.log(`---EXEC FPGM---`),a.step=-1);try{tr(a)}catch(e){console.log(`Hinting error in FPGM:`+e),this._errorState=3;return}}yr.prototype=a,i=this._prepState=new yr(`prep`,r.tables.prep),i.ppem=n;var o=r.tables.cvt;if(o)for(var s=i.cvt=Array(o.length),c=n/r.unitsPerEm,l=0;l<o.length;l++)s[l]=o[l]*c;else i.cvt=[];e.DEBUG&&(console.log(`---EXEC PREP---`),i.step=-1);try{tr(i)}catch(e){this._errorState<2&&console.log(`Hinting error in PREP:`+e),this._errorState=2}}if(!(this._errorState>1))try{return nr(t,i)}catch(e){this._errorState<1&&(console.log(`Hinting error:`+e),console.log(`Note: further hinting errors are silenced`)),this._errorState=1;return}}},nr=function(t,n){var r=n.ppem/n.font.unitsPerEm,i=r,a=t.components,o,s,c;if(yr.prototype=n,!a)c=new yr(`glyf`,t.instructions),e.DEBUG&&(console.log(`---EXEC GLYPH---`),c.step=-1),rr(t,c,r,i),s=c.gZone;else{var l=n.font;s=[],o=[];for(var u=0;u<a.length;u++){var d=a[u],f=l.glyphs.get(d.glyphIndex);c=new yr(`glyf`,f.instructions),e.DEBUG&&(console.log(`---EXEC COMP `+u+`---`),c.step=-1),rr(f,c,r,i);for(var p=Math.round(d.dx*r),m=Math.round(d.dy*i),h=c.gZone,g=c.contours,_=0;_<h.length;_++){var v=h[_];v.xTouched=v.yTouched=!1,v.xo=v.x+=p,v.yo=v.y+=m}var y=s.length;s.push.apply(s,h);for(var b=0;b<g.length;b++)o.push(g[b]+y)}t.instructions&&!c.inhibitGridFit&&(c=new yr(`glyf`,t.instructions),c.gZone=c.z0=c.z1=c.z2=s,c.contours=o,s.push(new gr(0,0),new gr(Math.round(t.advanceWidth*r),0)),e.DEBUG&&(console.log(`---EXEC COMPOSITE---`),c.step=-1),tr(c),s.length-=2)}return s},rr=function(t,n,r,i){for(var a=t.points||[],o=a.length,s=n.gZone=n.z0=n.z1=n.z2=[],c=n.contours=[],l,u=0;u<o;u++)l=a[u],s[u]=new gr(l.x*r,l.y*i,l.lastPointOfContour,l.onCurve);for(var d,f,p=0;p<o;p++)l=s[p],d||(d=l,c.push(p)),l.lastPointOfContour?(l.nextPointOnContour=d,d.prevPointOnContour=l,d=void 0):(f=s[p+1],l.nextPointOnContour=f,f.prevPointOnContour=l);if(!n.inhibitGridFit){if(e.DEBUG){console.log(`PROCESSING GLYPH`,n.stack);for(var m=0;m<o;m++)console.log(m,s[m].x,s[m].y)}if(s.push(new gr(0,0),new gr(Math.round(t.advanceWidth*r),0)),tr(n),s.length-=2,e.DEBUG){console.log(`FINISHED GLYPH`,n.stack);for(var h=0;h<o;h++)console.log(h,s[h].x,s[h].y)}}},tr=function(t){var n=t.prog;if(n){var r=n.length,i;for(t.ip=0;t.ip<r;t.ip++){if(e.DEBUG&&t.step++,i=er[n[t.ip]],!i)throw Error(`unknown instruction: 0x`+Number(n[t.ip]).toString(16));i(t)}}};function br(e){for(var t=e.tZone=Array(e.gZone.length),n=0;n<t.length;n++)t[n]=new gr(0,0)}function xr(e,t){var n=e.prog,r=e.ip,i=1,a;do if(a=n[++r],a===88)i++;else if(a===89)i--;else if(a===64)r+=n[r+1]+1;else if(a===65)r+=2*n[r+1]+1;else if(a>=176&&a<=183)r+=a-176+1;else if(a>=184&&a<=191)r+=(a-184+1)*2;else if(t&&i===1&&a===27)break;while(i>0);e.ip=r}function Sr(t,n){e.DEBUG&&console.log(n.step,`SVTCA[`+t.axis+`]`),n.fv=n.pv=n.dpv=t}function Cr(t,n){e.DEBUG&&console.log(n.step,`SPVTCA[`+t.axis+`]`),n.pv=n.dpv=t}function wr(t,n){e.DEBUG&&console.log(n.step,`SFVTCA[`+t.axis+`]`),n.fv=t}function Tr(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(`SPVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.pv=n.dpv=hr(c,l)}function Er(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(`SFVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.fv=hr(c,l)}function Dr(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.pv=t.dpv=hr(i,r)}function Or(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SPVFS[]`,r,i),t.fv=hr(i,r)}function kr(t){var n=t.stack,r=t.pv;e.DEBUG&&console.log(t.step,`GPV[]`),n.push(r.x*16384),n.push(r.y*16384)}function Ar(t){var n=t.stack,r=t.fv;e.DEBUG&&console.log(t.step,`GFV[]`),n.push(r.x*16384),n.push(r.y*16384)}function jr(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,`SFVTPV[]`)}function Mr(t){var n=t.stack,r=n.pop(),i=n.pop(),a=n.pop(),o=n.pop(),s=n.pop(),c=t.z0,l=t.z1,u=c[r],d=c[i],f=l[a],p=l[o],m=t.z2[s];e.DEBUG&&console.log(`ISECT[], `,r,i,a,o,s);var h=u.x,g=u.y,_=d.x,v=d.y,y=f.x,b=f.y,x=p.x,S=p.y,ee=(h-_)*(b-S)-(g-v)*(y-x),C=h*v-g*_,w=y*S-b*x;m.x=(C*(y-x)-w*(h-_))/ee,m.y=(C*(b-S)-w*(g-v))/ee}function Nr(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP0[]`,t.rp0)}function Pr(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP1[]`,t.rp1)}function Fr(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,`SRP2[]`,t.rp2)}function Ir(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP0[]`,n),t.zp0=n,n){case 0:t.tZone||br(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Lr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP1[]`,n),t.zp1=n,n){case 0:t.tZone||br(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Rr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZP2[]`,n),t.zp2=n,n){case 0:t.tZone||br(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function zr(t){var n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`SZPS[]`,n),t.zp0=t.zp1=t.zp2=n,n){case 0:t.tZone||br(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw Error(`Invalid zone pointer`)}}function Br(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,`SLOOP[]`,t.loop)}function Vr(t){e.DEBUG&&console.log(t.step,`RTG[]`),t.round=or}function Hr(t){e.DEBUG&&console.log(t.step,`RTHG[]`),t.round=cr}function Ur(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SMD[]`,n),t.minDis=n/64}function Wr(t){e.DEBUG&&console.log(t.step,`ELSE[]`),xr(t,!1)}function Gr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`JMPR[]`,n),t.ip+=n-1}function Kr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCVTCI[]`,n),t.cvCutIn=n/64}function qr(t){var n=t.stack;e.DEBUG&&console.log(t.step,`DUP[]`),n.push(n[n.length-1])}function Jr(t){e.DEBUG&&console.log(t.step,`POP[]`),t.stack.pop()}function Yr(t){e.DEBUG&&console.log(t.step,`CLEAR[]`),t.stack.length=0}function W(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SWAP[]`),n.push(r),n.push(i)}function Xr(t){var n=t.stack;e.DEBUG&&console.log(t.step,`DEPTH[]`),n.push(n.length)}function Zr(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LOOPCALL[]`,r,i);var a=t.ip,o=t.prog;t.prog=t.funcs[r];for(var s=0;s<i;s++)tr(t),e.DEBUG&&console.log(++t.step,s+1<i?`next loopcall`:`done loopcall`,s);t.ip=a,t.prog=o}function Qr(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`CALL[]`,n);var r=t.ip,i=t.prog;t.prog=t.funcs[n],tr(t),t.ip=r,t.prog=i,e.DEBUG&&console.log(++t.step,`returning from`,n)}function $r(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CINDEX[]`,r),n.push(n[n.length-r])}function ei(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`MINDEX[]`,r),n.push(n.splice(n.length-r,1)[0])}function ti(t){if(t.env!==`fpgm`)throw Error(`FDEF not allowed here`);var n=t.stack,r=t.prog,i=t.ip,a=n.pop(),o=i;for(e.DEBUG&&console.log(t.step,`FDEF[]`,a);r[++i]!==45;);t.ip=i,t.funcs[a]=r.slice(o+1,i)}function G(t,n){var r=n.stack.pop(),i=n.z0[r],a=n.fv,o=n.pv;e.DEBUG&&console.log(n.step,`MDAP[`+t+`]`,r);var s=o.distance(i,_r);t&&(s=n.round(s)),a.setRelative(i,_r,s,o),a.touch(i),n.rp0=n.rp1=r}function ni(t,n){var r=n.z2,i=r.length-2,a,o,s;e.DEBUG&&console.log(n.step,`IUP[`+t.axis+`]`);for(var c=0;c<i;c++)a=r[c],!t.touched(a)&&(o=a.prevTouched(t),o!==a&&(s=a.nextTouched(t),o===s&&t.setRelative(a,a,t.distance(o,o,!1,!0),t,!0),t.interpolate(a,o,s,t)))}function ri(t,n){for(var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=n.loop,l=n.z2;c--;){var u=r.pop(),d=l[u],f=s.distance(a,a,!1,!0);o.setRelative(d,d,f,s),o.touch(d),e.DEBUG&&console.log(n.step,(n.loop>1?`loop `+(n.loop-c)+`: `:``)+`SHP[`+(t?`rp1`:`rp2`)+`]`,u)}n.loop=1}function K(t,n){var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop(),l=n.z2[n.contours[c]],u=l;e.DEBUG&&console.log(n.step,`SHC[`+t+`]`,c);var d=s.distance(a,a,!1,!0);do u!==a&&o.setRelative(u,u,d,s),u=u.nextPointOnContour;while(u!==l)}function q(t,n){var r=n.stack,i=t?n.rp1:n.rp2,a=(t?n.z0:n.z1)[i],o=n.fv,s=n.pv,c=r.pop();e.DEBUG&&console.log(n.step,`SHZ[`+t+`]`,c);var l;switch(c){case 0:l=n.tZone;break;case 1:l=n.gZone;break;default:throw Error(`Invalid zone`)}for(var u,d=s.distance(a,a,!1,!0),f=l.length-2,p=0;p<f;p++)u=l[p],o.setRelative(u,u,d,s)}function ii(t){for(var n=t.stack,r=t.loop,i=t.fv,a=n.pop()/64,o=t.z2;r--;){var s=n.pop(),c=o[s];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-r)+`: `:``)+`SHPIX[]`,s,a),i.setRelative(c,c,a),i.touch(c)}t.loop=1}function ai(t){for(var n=t.stack,r=t.rp1,i=t.rp2,a=t.loop,o=t.z0[r],s=t.z1[i],c=t.fv,l=t.dpv,u=t.z2;a--;){var d=n.pop(),f=u[d];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`IP[]`,d,r,`<->`,i),c.interpolate(f,o,s,l),c.touch(f)}t.loop=1}function oi(t,n){var r=n.stack,i=r.pop()/64,a=r.pop(),o=n.z1[a],s=n.z0[n.rp0],c=n.fv,l=n.pv;c.setRelative(o,s,i,l),c.touch(o),e.DEBUG&&console.log(n.step,`MSIRP[`+t+`]`,i,a),n.rp1=n.rp0,n.rp2=a,t&&(n.rp0=a)}function si(t){for(var n=t.stack,r=t.rp0,i=t.z0[r],a=t.loop,o=t.fv,s=t.pv,c=t.z1;a--;){var l=n.pop(),u=c[l];e.DEBUG&&console.log(t.step,(t.loop>1?`loop `+(t.loop-a)+`: `:``)+`ALIGNRP[]`,l),o.setRelative(u,i,0,s),o.touch(u)}t.loop=1}function ci(t){e.DEBUG&&console.log(t.step,`RTDG[]`),t.round=sr}function li(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z0[a],s=n.fv,c=n.pv,l=n.cvt[i];e.DEBUG&&console.log(n.step,`MIAP[`+t+`]`,i,`(`,l,`)`,a);var u=c.distance(o,_r);t&&(Math.abs(u-l)<n.cvCutIn&&(u=l),u=n.round(u)),s.setRelative(o,_r,u,c),n.zp0===0&&(o.xo=o.x,o.yo=o.y),s.touch(o),n.rp0=n.rp1=a}function ui(t){var n=t.prog,r=t.ip,i=t.stack,a=n[++r];e.DEBUG&&console.log(t.step,`NPUSHB[]`,a);for(var o=0;o<a;o++)i.push(n[++r]);t.ip=r}function di(t){var n=t.ip,r=t.prog,i=t.stack,a=r[++n];e.DEBUG&&console.log(t.step,`NPUSHW[]`,a);for(var o=0;o<a;o++){var s=r[++n]<<8|r[++n];s&32768&&(s=-((s^65535)+1)),i.push(s)}t.ip=n}function fi(t){var n=t.stack,r=t.store;r||=t.store=[];var i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`WS`,i,a),r[a]=i}function pi(t){var n=t.stack,r=t.store,i=n.pop();e.DEBUG&&console.log(t.step,`RS`,i);var a=r&&r[i]||0;n.push(a)}function mi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTP`,r,i),t.cvt[i]=r/64}function hi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`RCVT`,r),n.push(t.cvt[r]*64)}function gi(t,n){var r=n.stack,i=r.pop(),a=n.z2[i];e.DEBUG&&console.log(n.step,`GC[`+t+`]`,i),r.push(n.dpv.distance(a,_r,t,!1)*64)}function _i(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z1[i],s=n.z0[a],c=n.dpv.distance(s,o,t,t);e.DEBUG&&console.log(n.step,`MD[`+t+`]`,i,a,`->`,c),n.stack.push(Math.round(c*64))}function vi(t){e.DEBUG&&console.log(t.step,`MPPEM[]`),t.stack.push(t.ppem)}function yi(t){e.DEBUG&&console.log(t.step,`FLIPON[]`),t.autoFlip=!0}function bi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LT[]`,r,i),n.push(+(i<r))}function xi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`LTEQ[]`,r,i),n.push(+(i<=r))}function Si(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GT[]`,r,i),n.push(+(i>r))}function Ci(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`GTEQ[]`,r,i),n.push(+(i>=r))}function wi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`EQ[]`,r,i),n.push(+(r===i))}function Ti(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`NEQ[]`,r,i),n.push(r===i?0:1)}function Ei(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ODD[]`,r),n.push(Math.trunc(r)%2?1:0)}function Di(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`EVEN[]`,r),n.push(Math.trunc(r)%2?0:1)}function Oi(t){var n=t.stack.pop(),r;e.DEBUG&&console.log(t.step,`IF[]`,n),n||(xr(t,!0),e.DEBUG&&console.log(t.step,r===27?`ELSE[]`:`EIF[]`))}function ki(t){e.DEBUG&&console.log(t.step,`EIF[]`)}function Ai(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`AND[]`,r,i),n.push(r&&i?1:0)}function ji(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`OR[]`,r,i),n.push(r||i?1:0)}function Mi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NOT[]`,r),n.push(+!r)}function Ni(t,n){var r=n.stack,i=r.pop(),a=n.fv,o=n.pv,s=n.ppem,c=n.deltaBase+(t-1)*16,l=n.deltaShift,u=n.z0;e.DEBUG&&console.log(n.step,`DELTAP[`+t+`]`,i,r);for(var d=0;d<i;d++){var f=r.pop(),p=r.pop();if(c+((p&240)>>4)===s){var m=(p&15)-8;m>=0&&m++,e.DEBUG&&console.log(n.step,`DELTAPFIX`,f,`by`,m*l);var h=u[f];a.setRelative(h,h,m*l,o)}}}function Pi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDB[]`,n),t.deltaBase=n}function Fi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SDS[]`,n),t.deltaShift=.5**n}function Ii(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`ADD[]`,r,i),n.push(i+r)}function Li(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`SUB[]`,r,i),n.push(i-r)}function Ri(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`DIV[]`,r,i),n.push(i*64/r)}function zi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MUL[]`,r,i),n.push(i*r/64)}function Bi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`ABS[]`,r),n.push(Math.abs(r))}function Vi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`NEG[]`,r),n.push(-r)}function Hi(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`FLOOR[]`,r),n.push(Math.floor(r/64)*64)}function Ui(t){var n=t.stack,r=n.pop();e.DEBUG&&console.log(t.step,`CEILING[]`,r),n.push(Math.ceil(r/64)*64)}function Wi(t,n){var r=n.stack,i=r.pop();e.DEBUG&&console.log(n.step,`ROUND[]`),r.push(n.round(i/64)*64)}function Gi(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`WCVTF[]`,r,i),t.cvt[i]=r*t.ppem/t.font.unitsPerEm}function Ki(t,n){var r=n.stack,i=r.pop(),a=n.ppem,o=n.deltaBase+(t-1)*16,s=n.deltaShift;e.DEBUG&&console.log(n.step,`DELTAC[`+t+`]`,i,r);for(var c=0;c<i;c++){var l=r.pop(),u=r.pop();if(o+((u&240)>>4)===a){var d=(u&15)-8;d>=0&&d++;var f=d*s;e.DEBUG&&console.log(n.step,`DELTACFIX`,l,`by`,f),n.cvt[l]+=f}}}function qi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SROUND[]`,n),t.round=dr;var r;switch(n&192){case 0:r=.5;break;case 64:r=1;break;case 128:r=2;break;default:throw Error(`invalid SROUND value`)}switch(t.srPeriod=r,n&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*r;break;case 32:t.srPhase=.5*r;break;case 48:t.srPhase=.75*r;break;default:throw Error(`invalid SROUND value`)}n&=15,n===0?t.srThreshold=0:t.srThreshold=(n/8-.5)*r}function Ji(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`S45ROUND[]`,n),t.round=dr;var r;switch(n&192){case 0:r=Math.sqrt(2)/2;break;case 64:r=Math.sqrt(2);break;case 128:r=2*Math.sqrt(2);break;default:throw Error(`invalid S45ROUND value`)}switch(t.srPeriod=r,n&48){case 0:t.srPhase=0;break;case 16:t.srPhase=.25*r;break;case 32:t.srPhase=.5*r;break;case 48:t.srPhase=.75*r;break;default:throw Error(`invalid S45ROUND value`)}n&=15,n===0?t.srThreshold=0:t.srThreshold=(n/8-.5)*r}function Yi(t){e.DEBUG&&console.log(t.step,`ROFF[]`),t.round=ar}function Xi(t){e.DEBUG&&console.log(t.step,`RUTG[]`),t.round=lr}function Zi(t){e.DEBUG&&console.log(t.step,`RDTG[]`),t.round=ur}function Qi(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANCTRL[]`,n)}function $i(t,n){var r=n.stack,i=r.pop(),a=r.pop(),o=n.z2[i],s=n.z1[a];e.DEBUG&&console.log(n.step,`SDPVTL[`+t+`]`,i,a);var c,l;t?(c=o.y-s.y,l=s.x-o.x):(c=s.x-o.x,l=s.y-o.y),n.dpv=hr(c,l)}function ea(t){var n=t.stack,r=n.pop(),i=0;e.DEBUG&&console.log(t.step,`GETINFO[]`,r),r&1&&(i=35),r&32&&(i|=4096),n.push(i)}function ta(t){var n=t.stack,r=n.pop(),i=n.pop(),a=n.pop();e.DEBUG&&console.log(t.step,`ROLL[]`),n.push(i),n.push(r),n.push(a)}function na(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MAX[]`,r,i),n.push(Math.max(i,r))}function ra(t){var n=t.stack,r=n.pop(),i=n.pop();e.DEBUG&&console.log(t.step,`MIN[]`,r,i),n.push(Math.min(i,r))}function ia(t){var n=t.stack.pop();e.DEBUG&&console.log(t.step,`SCANTYPE[]`,n)}function aa(t){var n=t.stack.pop(),r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,`INSTCTRL[]`,n,r),n){case 1:t.inhibitGridFit=!!r;return;case 2:t.ignoreCvt=!!r;return;default:throw Error(`invalid INSTCTRL[] selector`)}}function oa(t,n){var r=n.stack,i=n.prog,a=n.ip;e.DEBUG&&console.log(n.step,`PUSHB[`+t+`]`);for(var o=0;o<t;o++)r.push(i[++a]);n.ip=a}function sa(t,n){var r=n.ip,i=n.prog,a=n.stack;e.DEBUG&&console.log(n.ip,`PUSHW[`+t+`]`);for(var o=0;o<t;o++){var s=i[++r]<<8|i[++r];s&32768&&(s=-((s^65535)+1)),a.push(s)}n.ip=r}function J(t,n,r,i,a,o){var s=o.stack,c=t&&s.pop(),l=s.pop(),u=o.rp0,d=o.z0[u],f=o.z1[l],p=o.minDis,m=o.fv,h=o.dpv,g,_=g=h.distance(f,d,!0,!0),v=_>=0?1:-1,y;_=Math.abs(_),t&&(y=o.cvt[c],i&&Math.abs(_-y)<o.cvCutIn&&(_=y)),r&&_<p&&(_=p),i&&(_=o.round(_)),m.setRelative(f,d,v*_,h),m.touch(f),e.DEBUG&&console.log(o.step,(t?`MIRP[`:`MDRP[`)+(n?`M`:`m`)+(r?`>`:`_`)+(i?`R`:`_`)+(a===0?`Gr`:a===1?`Bl`:a===2?`Wh`:``)+`]`,t?c+`(`+o.cvt[c]+`,`+y+`)`:``,l,`(d =`,g,`->`,v*_,`)`),o.rp1=o.rp0,o.rp2=l,n&&(o.rp0=l)}er=[Sr.bind(void 0,pr),Sr.bind(void 0,fr),Cr.bind(void 0,pr),Cr.bind(void 0,fr),wr.bind(void 0,pr),wr.bind(void 0,fr),Tr.bind(void 0,0),Tr.bind(void 0,1),Er.bind(void 0,0),Er.bind(void 0,1),Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,void 0,void 0,qr,Jr,Yr,W,Xr,$r,ei,void 0,void 0,void 0,Zr,Qr,ti,void 0,G.bind(void 0,0),G.bind(void 0,1),ni.bind(void 0,pr),ni.bind(void 0,fr),ri.bind(void 0,0),ri.bind(void 0,1),K.bind(void 0,0),K.bind(void 0,1),q.bind(void 0,0),q.bind(void 0,1),ii,ai,oi.bind(void 0,0),oi.bind(void 0,1),si,ci,li.bind(void 0,0),li.bind(void 0,1),ui,di,fi,pi,mi,hi,gi.bind(void 0,0),gi.bind(void 0,1),void 0,_i.bind(void 0,0),_i.bind(void 0,1),vi,void 0,yi,void 0,void 0,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni.bind(void 0,1),Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi.bind(void 0,0),Wi.bind(void 0,1),Wi.bind(void 0,2),Wi.bind(void 0,3),void 0,void 0,void 0,void 0,Gi,Ni.bind(void 0,2),Ni.bind(void 0,3),Ki.bind(void 0,1),Ki.bind(void 0,2),Ki.bind(void 0,3),qi,Ji,void 0,void 0,Yi,void 0,Xi,Zi,Jr,Jr,void 0,void 0,void 0,void 0,void 0,Qi,$i.bind(void 0,0),$i.bind(void 0,1),ea,void 0,ta,na,ra,ia,aa,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,oa.bind(void 0,1),oa.bind(void 0,2),oa.bind(void 0,3),oa.bind(void 0,4),oa.bind(void 0,5),oa.bind(void 0,6),oa.bind(void 0,7),oa.bind(void 0,8),sa.bind(void 0,1),sa.bind(void 0,2),sa.bind(void 0,3),sa.bind(void 0,4),sa.bind(void 0,5),sa.bind(void 0,6),sa.bind(void 0,7),sa.bind(void 0,8),J.bind(void 0,0,0,0,0,0),J.bind(void 0,0,0,0,0,1),J.bind(void 0,0,0,0,0,2),J.bind(void 0,0,0,0,0,3),J.bind(void 0,0,0,0,1,0),J.bind(void 0,0,0,0,1,1),J.bind(void 0,0,0,0,1,2),J.bind(void 0,0,0,0,1,3),J.bind(void 0,0,0,1,0,0),J.bind(void 0,0,0,1,0,1),J.bind(void 0,0,0,1,0,2),J.bind(void 0,0,0,1,0,3),J.bind(void 0,0,0,1,1,0),J.bind(void 0,0,0,1,1,1),J.bind(void 0,0,0,1,1,2),J.bind(void 0,0,0,1,1,3),J.bind(void 0,0,1,0,0,0),J.bind(void 0,0,1,0,0,1),J.bind(void 0,0,1,0,0,2),J.bind(void 0,0,1,0,0,3),J.bind(void 0,0,1,0,1,0),J.bind(void 0,0,1,0,1,1),J.bind(void 0,0,1,0,1,2),J.bind(void 0,0,1,0,1,3),J.bind(void 0,0,1,1,0,0),J.bind(void 0,0,1,1,0,1),J.bind(void 0,0,1,1,0,2),J.bind(void 0,0,1,1,0,3),J.bind(void 0,0,1,1,1,0),J.bind(void 0,0,1,1,1,1),J.bind(void 0,0,1,1,1,2),J.bind(void 0,0,1,1,1,3),J.bind(void 0,1,0,0,0,0),J.bind(void 0,1,0,0,0,1),J.bind(void 0,1,0,0,0,2),J.bind(void 0,1,0,0,0,3),J.bind(void 0,1,0,0,1,0),J.bind(void 0,1,0,0,1,1),J.bind(void 0,1,0,0,1,2),J.bind(void 0,1,0,0,1,3),J.bind(void 0,1,0,1,0,0),J.bind(void 0,1,0,1,0,1),J.bind(void 0,1,0,1,0,2),J.bind(void 0,1,0,1,0,3),J.bind(void 0,1,0,1,1,0),J.bind(void 0,1,0,1,1,1),J.bind(void 0,1,0,1,1,2),J.bind(void 0,1,0,1,1,3),J.bind(void 0,1,1,0,0,0),J.bind(void 0,1,1,0,0,1),J.bind(void 0,1,1,0,0,2),J.bind(void 0,1,1,0,0,3),J.bind(void 0,1,1,0,1,0),J.bind(void 0,1,1,0,1,1),J.bind(void 0,1,1,0,1,2),J.bind(void 0,1,1,0,1,3),J.bind(void 0,1,1,1,0,0),J.bind(void 0,1,1,1,0,1),J.bind(void 0,1,1,1,0,2),J.bind(void 0,1,1,1,0,3),J.bind(void 0,1,1,1,1,0),J.bind(void 0,1,1,1,1,1),J.bind(void 0,1,1,1,1,2),J.bind(void 0,1,1,1,1,3)];function Y(e){e||={},e.empty||($n(e.familyName,`When creating a new Font object, familyName is required.`),$n(e.styleName,`When creating a new Font object, styleName is required.`),$n(e.unitsPerEm,`When creating a new Font object, unitsPerEm is required.`),$n(e.ascender,`When creating a new Font object, ascender is required.`),$n(e.descender,`When creating a new Font object, descender is required.`),$n(e.descender<0,`Descender should be negative (e.g. -512).`),this.names={fontFamily:{en:e.familyName||` `},fontSubfamily:{en:e.styleName||` `},fullName:{en:e.fullName||e.familyName+` `+e.styleName},postScriptName:{en:e.postScriptName||e.familyName+e.styleName},designer:{en:e.designer||` `},designerURL:{en:e.designerURL||` `},manufacturer:{en:e.manufacturer||` `},manufacturerURL:{en:e.manufacturerURL||` `},license:{en:e.license||` `},licenseURL:{en:e.licenseURL||` `},version:{en:e.version||`Version 0.1`},description:{en:e.description||` `},copyright:{en:e.copyright||` `},trademark:{en:e.trademark||` `}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new ot.GlyphSet(this,e.glyphs||[]),this.encoding=new Be(this),this.position=new qn(this),this.substitution=new Jn(this),this.tables=this.tables||{},Object.defineProperty(this,`hinting`,{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat===`truetype`)return this._hinting=new ir(this)}})}Y.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)!==null},Y.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Y.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Y.prototype.stringToGlyphs=function(e,t){var n=this;t||=this.defaultRenderOptions;for(var r=[],i=0;i<e.length;i+=1){var a=e[i];r.push(n.charToGlyphIndex(a))}var o=r.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),c=[];t.features.liga&&(c=c.concat(this.substitution.getFeature(`liga`,s,t.language))),t.features.rlig&&(c=c.concat(this.substitution.getFeature(`rlig`,s,t.language)));for(var l=0;l<o;l+=1)for(var u=0;u<c.length;u++){for(var d=c[u],f=d.sub,p=f.length,m=0;m<p&&f[m]===r[l+m];)m++;m===p&&(r.splice(l,p,d.by),o=o-p+1)}}for(var h=Array(o),g=this.glyphs.get(0),_=0;_<o;_+=1)h[_]=n.glyphs.get(r[_])||g;return h},Y.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Y.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),n=this.glyphs.get(t);return n||=this.glyphs.get(0),n},Y.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):``},Y.prototype.getKerningValue=function(e,t){return e=e.index||e,t=t.index||t,this.kerningPairs[e+`,`+t]||0},Y.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Y.prototype.forEachGlyph=function(e,t,n,r,i,a){var o=this;t=t===void 0?0:t,n=n===void 0?0:n,r=r===void 0?72:r,i||=this.defaultRenderOptions;var s=1/this.unitsPerEm*r,c=this.stringToGlyphs(e,i),l;if(i.kerning){var u=i.script||this.position.getDefaultScriptName();l=this.position.getKerningTables(u,i.language)}for(var d=0;d<c.length;d+=1){var f=c[d];if(a.call(o,f,t,n,r,i),f.advanceWidth&&(t+=f.advanceWidth*s),i.kerning&&d<c.length-1){var p=l?o.position.getKerningValue(l,f.index,c[d+1].index):o.getKerningValue(f,c[d+1]);t+=p*s}i.letterSpacing?t+=i.letterSpacing*r:i.tracking&&(t+=i.tracking/1e3*r)}return t},Y.prototype.getPath=function(e,t,n,r,i){var a=new D;return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var o=e.getPath(t,n,r,i,this);a.extend(o)}),a},Y.prototype.getPaths=function(e,t,n,r,i){var a=[];return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var o=e.getPath(t,n,r,i,this);a.push(o)}),a},Y.prototype.getAdvanceWidth=function(e,t,n){return this.forEachGlyph(e,0,0,t,n,function(){})},Y.prototype.draw=function(e,t,n,r,i,a){this.getPath(t,n,r,i,a).draw(e)},Y.prototype.drawPoints=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,function(t,n,r,i){t.drawPoints(e,n,r,i)})},Y.prototype.drawMetrics=function(e,t,n,r,i,a){this.forEachGlyph(t,n,r,i,a,function(t,n,r,i){t.drawMetrics(e,n,r,i)})},Y.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Y.prototype.validate=function(){var e=[],t=this;function n(t,n){t||e.push(n)}function r(e){var r=t.getEnglishName(e);n(r&&r.trim().length>0,`No English `+e+` specified.`)}r(`fontFamily`),r(`weightName`),r(`manufacturer`),r(`copyright`),r(`version`),n(this.unitsPerEm>0,`No unitsPerEm specified.`)},Y.prototype.toTables=function(){return Hn.fontToTable(this)},Y.prototype.toBuffer=function(){return console.warn(`Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.`),this.toArrayBuffer()},Y.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e[r];return t},Y.prototype.download=function(e){var t=this.getEnglishName(`fontFamily`),n=this.getEnglishName(`fontSubfamily`);e||=t.replace(/\s/g,``)+`-`+n+`.otf`;var r=this.toArrayBuffer();if(U())window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,r.byteLength,function(t){t.root.getFile(e,{create:!0},function(e){e.createWriter(function(t){var n=new DataView(r),i=new Blob([n],{type:`font/opentype`});t.write(i),t.addEventListener(`writeend`,function(){location.href=e.toURL()},!1)})})},function(e){throw Error(e.name+`: `+e.message)});else{var i=tg(`fs`),a=Qn(r);i.writeFileSync(e,a)}},Y.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Y.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Y.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function ca(e,t){var n=JSON.stringify(e),r=256;for(var i in t){var a=parseInt(i);if(!(!a||a<256)){if(JSON.stringify(t[i])===n)return a;r<=a&&(r=a+1)}}return t[r]=e,r}function la(e,t,n){var r=ca(t.name,n);return[{name:`tag_`+e,type:`TAG`,value:t.tag},{name:`minValue_`+e,type:`FIXED`,value:t.minValue<<16},{name:`defaultValue_`+e,type:`FIXED`,value:t.defaultValue<<16},{name:`maxValue_`+e,type:`FIXED`,value:t.maxValue<<16},{name:`flags_`+e,type:`USHORT`,value:0},{name:`nameID_`+e,type:`USHORT`,value:r}]}function ua(e,t,n){var r={},i=new z.Parser(e,t);return r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip(`uShort`,1),r.name=n[i.parseUShort()]||{},r}function da(e,t,n,r){for(var i=ca(t.name,r),a=[{name:`nameID_`+e,type:`USHORT`,value:i},{name:`flags_`+e,type:`USHORT`,value:0}],o=0;o<n.length;++o){var s=n[o].tag;a.push({name:`axis_`+e+` `+s,type:`FIXED`,value:t.coordinates[s]<<16})}return a}function fa(e,t,n,r){var i={},a=new z.Parser(e,t);i.name=r[a.parseUShort()]||{},a.skip(`uShort`,1),i.coordinates={};for(var o=0;o<n.length;++o)i.coordinates[n[o].tag]=a.parseFixed();return i}function pa(e,t){var n=new L.Table(`fvar`,[{name:`version`,type:`ULONG`,value:65536},{name:`offsetToData`,type:`USHORT`,value:0},{name:`countSizePairs`,type:`USHORT`,value:2},{name:`axisCount`,type:`USHORT`,value:e.axes.length},{name:`axisSize`,type:`USHORT`,value:20},{name:`instanceCount`,type:`USHORT`,value:e.instances.length},{name:`instanceSize`,type:`USHORT`,value:4+e.axes.length*4}]);n.offsetToData=n.sizeOf();for(var r=0;r<e.axes.length;r++)n.fields=n.fields.concat(la(r,e.axes[r],t));for(var i=0;i<e.instances.length;i++)n.fields=n.fields.concat(da(i,e.instances[i],e.axes,t));return n}function ma(e,t,n){var r=new z.Parser(e,t),i=r.parseULong();A.argument(i===65536,`Unsupported fvar table version.`);var a=r.parseOffset16();r.skip(`uShort`,1);for(var o=r.parseUShort(),s=r.parseUShort(),c=r.parseUShort(),l=r.parseUShort(),u=[],d=0;d<o;d++)u.push(ua(e,t+a+d*s,n));for(var f=[],p=t+a+o*s,m=0;m<c;m++)f.push(fa(e,p+m*l,u,n));return{axes:u,instances:f}}var ha={make:pa,parse:ma},ga=Array(10);ga[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(t===1)return{posFormat:1,coverage:this.parsePointer(R.coverage),value:this.parseValueRecord()};if(t===2)return{posFormat:2,coverage:this.parsePointer(R.coverage),values:this.parseValueRecordList()};A.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 1 format must be 1 or 2.`)},ga[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),n=this.parsePointer(R.coverage),r=this.parseUShort(),i=this.parseUShort();if(t===1)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(R.pointer(R.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))};if(t===2){var a=this.parsePointer(R.classDef),o=this.parsePointer(R.classDef),s=this.parseUShort(),c=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:a,classDef2:o,class1Count:s,class2Count:c,classRecords:this.parseList(s,R.list(c,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))}}A.assert(!1,`0x`+e.toString(16)+`: GPOS lookup type 2 format must be 1 or 2.`)},ga[3]=function(){return{error:`GPOS Lookup 3 not supported`}},ga[4]=function(){return{error:`GPOS Lookup 4 not supported`}},ga[5]=function(){return{error:`GPOS Lookup 5 not supported`}},ga[6]=function(){return{error:`GPOS Lookup 6 not supported`}},ga[7]=function(){return{error:`GPOS Lookup 7 not supported`}},ga[8]=function(){return{error:`GPOS Lookup 8 not supported`}},ga[9]=function(){return{error:`GPOS Lookup 9 not supported`}};function _a(e,t){t||=0;var n=new R(e,t),r=n.parseVersion(1);return A.argument(r===1||r===1.1,`Unsupported GPOS table version `+r),r===1?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ga)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ga),variations:n.parseFeatureVariationsList()}}var va=Array(10);function ya(e){return new L.Table(`GPOS`,[{name:`version`,type:`ULONG`,value:65536},{name:`scripts`,type:`TABLE`,value:new L.ScriptList(e.scripts)},{name:`features`,type:`TABLE`,value:new L.FeatureList(e.features)},{name:`lookups`,type:`TABLE`,value:new L.LookupList(e.lookups,va)}])}var ba={parse:_a,make:ya};function xa(e){var t={};e.skip(`uShort`);var n=e.parseUShort();A.argument(n===0,`Unsupported kern sub-table version.`),e.skip(`uShort`,2);var r=e.parseUShort();e.skip(`uShort`,3);for(var i=0;i<r;i+=1){var a=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[a+`,`+o]=s}return t}function Sa(e){var t={};e.skip(`uShort`),e.parseULong()>1&&console.warn(`Only the first kern subtable is supported.`),e.skip(`uLong`);var n=e.parseUShort()&255;if(e.skip(`uShort`),n===0){var r=e.parseUShort();e.skip(`uShort`,3);for(var i=0;i<r;i+=1){var a=e.parseUShort(),o=e.parseUShort(),s=e.parseShort();t[a+`,`+o]=s}}return t}function Ca(e,t){var n=new z.Parser(e,t),r=n.parseUShort();if(r===0)return xa(n);if(r===1)return Sa(n);throw Error(`Unsupported kern table version (`+r+`).`)}var wa={parse:Ca};function Ta(e,t,n,r){for(var i=new z.Parser(e,t),a=r?i.parseUShort:i.parseULong,o=[],s=0;s<n+1;s+=1){var c=a.call(i);r&&(c*=2),o.push(c)}return o}var Ea={parse:Ta};function Da(e,t){tg(`fs`).readFile(e,function(e,n){if(e)return t(e.message);t(null,Zn(n))})}function Oa(e,t){var n=new XMLHttpRequest;n.open(`get`,e,!0),n.responseType=`arraybuffer`,n.onload=function(){return n.response?t(null,n.response):t(`Font could not be loaded: `+n.statusText)},n.onerror=function(){t(`Font could not be loaded`)},n.send()}function ka(e,t){for(var n=[],r=12,i=0;i<t;i+=1){var a=z.getTag(e,r),o=z.getULong(e,r+4),s=z.getULong(e,r+8),c=z.getULong(e,r+12);n.push({tag:a,checksum:o,offset:s,length:c,compression:!1}),r+=16}return n}function Aa(e,t){for(var n=[],r=44,i=0;i<t;i+=1){var a=z.getTag(e,r),o=z.getULong(e,r+4),s=z.getULong(e,r+8),c=z.getULong(e,r+12),l=void 0;l=s<c?`WOFF`:!1,n.push({tag:a,offset:o,compression:l,compressedLength:s,length:c}),r+=20}return n}function ja(e,t){if(t.compression===`WOFF`){var n=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),r=new Uint8Array(t.length);if(w(n,r),r.byteLength!==t.length)throw Error(`Decompression error: `+t.tag+` decompressed length doesn't match recorded length`);return{data:new DataView(r.buffer,0),offset:0}}else return{data:e,offset:t.offset}}function Ma(e){var t,n,r=new Y({empty:!0}),i=new DataView(e,0),a,o=[],s=z.getTag(i,0);if(s===`\0\0\0`||s===`true`||s===`typ1`)r.outlinesFormat=`truetype`,a=z.getUShort(i,4),o=ka(i,a);else if(s===`OTTO`)r.outlinesFormat=`cff`,a=z.getUShort(i,4),o=ka(i,a);else if(s===`wOFF`){var c=z.getTag(i,4);if(c===`\0\0\0`)r.outlinesFormat=`truetype`;else if(c===`OTTO`)r.outlinesFormat=`cff`;else throw Error(`Unsupported OpenType flavor `+s);a=z.getUShort(i,12),o=Aa(i,a)}else throw Error(`Unsupported OpenType signature `+s);for(var l,u,d,f,p,m,h,g,_,v,y,b=0;b<a;b+=1){var x=o[b],S=void 0;switch(x.tag){case`cmap`:S=ja(i,x),r.tables.cmap=Fe.parse(S.data,S.offset),r.encoding=new Ve(r.tables.cmap);break;case`cvt `:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.cvt=y.parseShortList(x.length/2);break;case`fvar`:u=x;break;case`fpgm`:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.fpgm=y.parseByteList(x.length);break;case`head`:S=ja(i,x),r.tables.head=Ht.parse(S.data,S.offset),r.unitsPerEm=r.tables.head.unitsPerEm,t=r.tables.head.indexToLocFormat;break;case`hhea`:S=ja(i,x),r.tables.hhea=Gt.parse(S.data,S.offset),r.ascender=r.tables.hhea.ascender,r.descender=r.tables.hhea.descender,r.numberOfHMetrics=r.tables.hhea.numberOfHMetrics;break;case`hmtx`:m=x;break;case`ltag`:S=ja(i,x),n=Zt.parse(S.data,S.offset);break;case`maxp`:S=ja(i,x),r.tables.maxp=en.parse(S.data,S.offset),r.numGlyphs=r.tables.maxp.numGlyphs;break;case`name`:_=x;break;case`OS/2`:S=ja(i,x),r.tables.os2=Sn.parse(S.data,S.offset);break;case`post`:S=ja(i,x),r.tables.post=Tn.parse(S.data,S.offset),r.glyphNames=new Ue(r.tables.post);break;case`prep`:S=ja(i,x),y=new z.Parser(S.data,S.offset),r.tables.prep=y.parseByteList(x.length);break;case`glyf`:d=x;break;case`loca`:g=x;break;case`CFF `:l=x;break;case`kern`:h=x;break;case`GPOS`:f=x;break;case`GSUB`:p=x;break;case`meta`:v=x;break}}var ee=ja(i,_);if(r.tables.name=_n.parse(ee.data,ee.offset,n),r.names=r.tables.name,d&&g){var C=t===0,w=ja(i,g),T=Ea.parse(w.data,w.offset,r.numGlyphs,C),E=ja(i,d);r.glyphs=Qe.parse(E.data,E.offset,T,r)}else if(l){var D=ja(i,l);zt.parse(D.data,D.offset,r)}else throw Error(`Font doesn't contain TrueType or CFF outlines.`);var O=ja(i,m);if(Jt.parse(O.data,O.offset,r.numberOfHMetrics,r.numGlyphs,r.glyphs),We(r),h){var k=ja(i,h);r.kerningPairs=wa.parse(k.data,k.offset)}else r.kerningPairs={};if(f){var A=ja(i,f);r.tables.gpos=ba.parse(A.data,A.offset)}if(p){var j=ja(i,p);r.tables.gsub=jn.parse(j.data,j.offset)}if(u){var M=ja(i,u);r.tables.fvar=ha.parse(M.data,M.offset,r.names)}if(v){var N=ja(i,v);r.tables.meta=Pn.parse(N.data,N.offset),r.metas=r.tables.meta}return r}function Na(e,t){(typeof window>`u`?Da:Oa)(e,function(e,n){if(e)return t(e);var r;try{r=Ma(n)}catch(e){return t(e,null)}return t(null,r)})}function Pa(e){return Ma(Zn(tg(`fs`).readFileSync(e)))}e.Font=Y,e.Glyph=et,e.Path=D,e.BoundingBox=E,e._parse=z,e.parse=Ma,e.load=Na,e.loadSync=Pa,Object.defineProperty(e,`__esModule`,{value:!0})})}),ag=$((e,t)=>{t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}}),og=$((e,t)=>{t.exports=n,n.Node=o,n.create=n;function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}n.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||=e,this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||=e,this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},n.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},n.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},n.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},n.prototype.map=function(e,t){t||=this;for(var r=new n,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t||=this;for(var r=new n,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(var o=[],i=0;a&&i<t;i++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var i=0;i<n.length;i++)a=r(this,a,n[i]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function r(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function i(e,t){e.tail=new o(t,e.tail,null,e),e.head||=e.tail,e.length++}function a(e,t){e.head=new o(t,null,e.head,e),e.tail||=e.head,e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{ag()(n)}catch{}}),sg=$((e,t)=>{var n=og(),r=Symbol(`max`),i=Symbol(`length`),a=Symbol(`lengthCalculator`),o=Symbol(`allowStale`),s=Symbol(`maxAge`),c=Symbol(`dispose`),l=Symbol(`noDisposeOnSet`),u=Symbol(`lruList`),d=Symbol(`cache`),f=Symbol(`updateAgeOnGet`),p=()=>1,m=class{constructor(e){if(typeof e==`number`&&(e={max:e}),e||={},e.max&&(typeof e.max!=`number`||e.max<0))throw TypeError(`max must be a non-negative number`);this[r]=e.max||1/0;let t=e.length||p;if(this[a]=typeof t==`function`?t:p,this[o]=e.stale||!1,e.maxAge&&typeof e.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[s]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[r]=e||1/0,_(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[s]=e,_(this)}get maxAge(){return this[s]}set lengthCalculator(e){typeof e!=`function`&&(e=p),e!==this[a]&&(this[a]=e,this[i]=0,this[u].forEach(e=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),_(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t||=this;for(let n=this[u].tail;n!==null;){let r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t||=this;for(let n=this[u].head;n!==null;){let r=n.next;b(this,e,n,t),n=r}}keys(){return this[u].toArray().map(e=>e.key)}values(){return this[u].toArray().map(e=>e.value)}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach(e=>this[c](e.key,e.value)),this[d]=new Map,this[u]=new n,this[i]=0}dump(){return this[u].map(e=>g(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[u]}set(e,t,n){if(n||=this[s],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);let o=n?Date.now():0,f=this[a](t,e);if(this[d].has(e)){if(f>this[r])return v(this,this[d].get(e)),!1;let a=this[d].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=o,a.maxAge=n,a.value=t,this[i]+=f-a.length,a.length=f,this.get(e),_(this),!0}let p=new y(e,t,f,o,n);return p.length>this[r]?(this[c]&&this[c](e,t),!1):(this[i]+=p.length,this[u].unshift(p),this[d].set(e,this[u].head),_(this),!0)}has(e){if(!this[d].has(e))return!1;let t=this[d].get(e).value;return!g(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[d].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>h(this,t,!1))}},h=(e,t,n)=>{let r=e[d].get(t);if(r){let t=r.value;if(g(e,t)){if(v(e,r),!e[o])return}else n&&(e[f]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},_=e=>{if(e[i]>e[r])for(let t=e[u].tail;e[i]>e[r]&&t!==null;){let n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){let n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[d].delete(n.key),e[u].removeNode(t)}},y=class{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}},b=(e,t,n,r)=>{let i=n.value;g(e,i)&&(v(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};t.exports=m}),cg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){let t={individual:{},range:[]};for(let r of e)n(t,r);return t}e.default=t;function n(e,t){for(let[n,i]of Object.entries(t.individual))if(e.individual[n])r(e.individual[n],i);else{let t=!1;for(let[o,{range:c,entry:l}]of e.range.entries()){let u=a(Number(n),c);if(u.both!==null){t=!0,e.individual[n]=i,r(e.individual[n],s(l)),e.range.splice(o,1);for(let t of u.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l)}}t||(e.individual[n]=i)}for(let{range:n,entry:o}of t.range){let t=[n];for(let n=0;n<e.range.length;n++){let{range:c,entry:l}=e.range[n];for(let[u,d]of t.entries())if(Array.isArray(d)){let a=i(d,c);if(a.both===null)continue;e.range.splice(n,1),n--;let u=s(l);Array.isArray(a.both)?e.range.push({range:a.both,entry:u}):e.individual[a.both]=u,r(u,s(o));for(let t of a.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t=a.first}else{let i=a(d,c);if(i.both===null)continue;e.individual[d]=s(o),r(e.individual[d],s(l)),e.range.splice(n,1),n--;for(let t of i.second)Array.isArray(t)?e.range.push({range:t,entry:s(l)}):e.individual[t]=s(l);t.splice(u,1,...i.first);break}}for(let n of Object.keys(e.individual))for(let[i,c]of t.entries())if(Array.isArray(c)){let l=a(Number(n),c);if(l.both===null)continue;r(e.individual[n],s(o)),t.splice(i,1,...l.second);break}else if(Number(n)===c){r(e.individual[n],s(o));break}for(let n of t)Array.isArray(n)?e.range.push({range:n,entry:s(o)}):e.individual[n]=s(o)}}function r(e,t){t.lookup&&(!e.lookup||e.lookup.index>t.lookup.index||e.lookup.index===t.lookup.index&&e.lookup.subIndex>t.lookup.subIndex)&&(e.lookup=t.lookup),t.forward&&(e.forward?n(e.forward,t.forward):e.forward=t.forward),t.reverse&&(e.reverse?n(e.reverse,t.reverse):e.reverse=t.reverse)}function i(e,t){let n={first:[],second:[],both:null};if(e[0]<t[1]&&t[0]<e[1]&&(n.both=o(Math.max(e[0],t[0]),Math.min(e[1],t[1]))),e[0]<t[0]){let r=e[0],i=Math.min(t[0],e[1]);n.first.push(o(r,i))}else if(t[0]<e[0]){let r=t[0],i=Math.min(t[1],e[0]);n.second.push(o(r,i))}if(e[1]>t[1]){let r=Math.max(e[0],t[1]),i=e[1];n.first.push(o(r,i))}else if(t[1]>e[1]){let r=Math.max(e[1],t[0]),i=t[1];n.second.push(o(r,i))}return n}function a(e,t){if(e<t[0]||e>t[1])return{first:[e],second:[t],both:null};let n={first:[],second:[],both:e};return t[0]<e&&n.second.push(o(t[0],e)),t[1]>e&&n.second.push(o(e+1,t[1])),n}function o(e,t){return t-e===1?e:[e,t]}function s(e){let t={};return e.forward&&(t.forward=c(e.forward)),e.reverse&&(t.reverse=c(e.reverse)),e.lookup&&(t.lookup={contextRange:e.lookup.contextRange.slice(),index:e.lookup.index,length:e.lookup.length,subIndex:e.lookup.subIndex,substitutions:e.lookup.substitutions.slice()}),t}function c(e){let t={};for(let[n,r]of Object.entries(e.individual))t[n]=s(r);return{individual:t,range:e.range.map(({range:e,entry:t})=>({range:e.slice(),entry:s(t)}))}}}),lg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,r,i,a){let o=e[r[a]];if(!o)return;let s=o.lookup;if(o.reverse){let e=n(o.reverse,r,i);(!s&&e||e&&s&&(s.index>e.index||s.index===e.index&&s.subIndex>e.subIndex))&&(s=e)}if(++a>=r.length||!o.forward)return s;let c=t(o.forward,r,i,a);return(!s&&c||c&&s&&(s.index>c.index||s.index===c.index&&s.subIndex>c.subIndex))&&(s=c),s}e.default=t;function n(e,t,n){let r=e[t[--n]],i=r&&r.lookup;for(;r&&((!i&&r.lookup||r.lookup&&i&&i.index>r.lookup.index)&&(i=r.lookup),!(--n<0||!r.reverse));)r=r.reverse[t[n]];return i}}),ug=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t,n){let r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(r){if(n<=a[0])return e[i-1][1]=n,e;if(n<=a[1])return e[i-1][1]=Math.max(n,a[1]),e.splice(i,1),r=!1,e;e.splice(i,1),i--}else{if(n<=a[0])return e.splice(i,0,[t,n]),e;if(n<=a[1])return a[0]=Math.min(t,a[0]),e;if(t<a[1])a[0]=Math.min(t,a[0]),r=!0;else continue}}return r?e[e.length-1][1]=n:e.push([t,n]),e}e.default=t}),dg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){switch(e.format){case 1:let n=e.glyphs.indexOf(t);return n===-1?null:n;case 2:let r=e.ranges.find(e=>e.start<=t&&e.end>=t);return r?r.index:null}}e.default=t;function n(e){switch(e.format){case 1:return e.glyphs.map((e,t)=>({glyphId:e,index:t}));case 2:let t=[];for(let[n,r]of e.ranges.entries())r.end===r.start?t.push({glyphId:r.start,index:n}):t.push({glyphId:[r.start,r.end+1],index:n});return t}}e.listGlyphsByIndex=n}),fg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=dg();function n(e,t){let n=t[0],i=r(e,n),a=t[0]+1,o=new Map;for(;a<t[1];)r(e,a)!==i&&(a-n<=1?o.set(n,i):o.set([n,a],i)),a++;return a-n<=1?o.set(n,i):o.set([n,a],i),o}e.getRangeSubstitutionGlyphs=n;function r(e,n){let r=t.default(e.coverage,n);if(r===null)return null;switch(e.substFormat){case 1:return(n+e.deltaGlyphId)%2**16;case 2:return e.substitute[r]==null?null:e.substitute[r]}}e.getIndividualSubstitutionGlyph=r}),pg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=fg();function n(e,t,n,r,i){let o=[];for(let s of n){s.entry.forward={individual:{},range:[]};for(let n of e)o.push(...a(s.entry.forward,r,i,t,n).map(({entry:e,substitution:t})=>({entry:e,substitutions:[...s.substitutions,t]})))}return o}e.processInputPosition=n;function r(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.forward||(r.entry.forward={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.forward.range.push({entry:e,range:t}):r.entry.forward.individual[t]=e}return n}e.processLookaheadPosition=r;function i(e,t){let n=[];for(let r of t)for(let t of e){let e={};r.entry.reverse||(r.entry.reverse={individual:{},range:[]}),n.push({entry:e,substitutions:r.substitutions}),Array.isArray(t)?r.entry.reverse.range.push({entry:e,range:t}):r.entry.reverse.individual[t]=e}return n}e.processBacktrackPosition=i;function a(e,t,n,r,i){let a=[];if(!Array.isArray(i))e.individual[i]={},a.push({entry:e.individual[i],substitution:s(t,n,r,i)});else{let s=o(t,n,r,i);for(let[t,n]of s){let r={};Array.isArray(t)?e.range.push({range:t,entry:r}):e.individual[t]={},a.push({entry:r,substitution:n})}}return a}e.getInputTree=a;function o(e,n,r,i){for(let a of e.filter(e=>e.sequenceIndex===r))for(let e of n[a.lookupListIndex].subtables){let n=t.getRangeSubstitutionGlyphs(e,i);if(!Array.from(n.values()).every(e=>e!==null))return n}return new Map([[i,null]])}function s(e,n,r,i){for(let a of e.filter(e=>e.sequenceIndex===r))for(let e of n[a.lookupListIndex].subtables){let n=t.getIndividualSubstitutionGlyph(e,i);if(n!==null)return n}return null}}),mg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=dg(),n=pg();function r(e,r,i){let a={individual:{},range:[]},o=t.listGlyphsByIndex(e.coverage);for(let{glyphId:t,index:s}of o){let o=e.chainRuleSets[s];if(o)for(let[e,s]of o.entries()){let o=n.getInputTree(a,s.lookupRecords,r,0,t).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[e,t]of s.input.entries())o=n.processInputPosition([t],e+1,o,s.lookupRecords,r);for(let e of s.lookahead)o=n.processLookaheadPosition([e],o);for(let e of s.backtrack)o=n.processBacktrackPosition([e],o);for(let{entry:t,substitutions:n}of o)t.lookup={substitutions:n,length:s.input.length+1,index:i,subIndex:e,contextRange:[-1*s.backtrack.length,1+s.input.length+s.lookahead.length]}}}return a}e.default=r}),hg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){switch(e.format){case 2:return Array.isArray(t)?n(e,t):new Map([[t,r(e,t)]]);default:return new Map([[t,null]])}}e.default=t;function n(e,t){let n=t[0],i=r(e,n),a=t[0]+1,o=new Map;for(;a<t[1];)r(e,a)!==i&&(a-n<=1?o.set(n,i):o.set([n,a],i)),a++;return a-n<=1?o.set(n,i):o.set([n,a],i),o}function r(e,t){for(let n of e.ranges)if(n.start<=t&&n.end>=t)return n.classId;return null}function i(e,t){switch(e.format){case 2:let n=[];for(let r of e.ranges)r.classId===t&&(r.end===r.start?n.push(r.start):n.push([r.start,r.end+1]));return n;default:return[]}}e.listClassGlyphs=i}),gg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=cg(),n=dg(),r=hg(),i=pg();function a(e,a,o){let s=[],c=n.listGlyphsByIndex(e.coverage);for(let{glyphId:t}of c){let n=r.default(e.inputClassDef,t);for(let[t,c]of n.entries()){if(c===null)continue;let n=e.chainClassSet[c];if(n)for(let[c,l]of n.entries()){let n={individual:{},range:[]},u=i.getInputTree(n,l.lookupRecords,a,0,t).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[t,n]of l.input.entries())u=i.processInputPosition(r.listClassGlyphs(e.inputClassDef,n),t+1,u,l.lookupRecords,a);for(let t of l.lookahead)u=i.processLookaheadPosition(r.listClassGlyphs(e.lookaheadClassDef,t),u);for(let t of l.backtrack)u=i.processBacktrackPosition(r.listClassGlyphs(e.backtrackClassDef,t),u);for(let{entry:e,substitutions:t}of u)e.lookup={substitutions:t,index:o,subIndex:c,length:l.input.length+1,contextRange:[-1*l.backtrack.length,1+l.input.length+l.lookahead.length]};s.push(n)}}}return t.default(s)}e.default=a}),_g=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=dg(),n=pg();function r(e,r,i){let a={individual:{},range:[]},o=t.listGlyphsByIndex(e.inputCoverage[0]);for(let{glyphId:s}of o){let o=n.getInputTree(a,e.lookupRecords,r,0,s).map(({entry:e,substitution:t})=>({entry:e,substitutions:[t]}));for(let[i,a]of e.inputCoverage.slice(1).entries())o=n.processInputPosition(t.listGlyphsByIndex(a).map(e=>e.glyphId),i+1,o,e.lookupRecords,r);for(let r of e.lookaheadCoverage)o=n.processLookaheadPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),o);for(let r of e.backtrackCoverage)o=n.processBacktrackPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),o);for(let{entry:t,substitutions:n}of o)t.lookup={substitutions:n,index:i,subIndex:0,length:e.inputCoverage.length,contextRange:[-1*e.backtrackCoverage.length,e.inputCoverage.length+e.lookaheadCoverage.length]}}return a}e.default=r}),vg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=dg(),n=pg();function r(e,r){let i={individual:{},range:[]},a=t.listGlyphsByIndex(e.coverage);for(let{glyphId:o,index:s}of a){let a={};Array.isArray(o)?i.range.push({entry:a,range:o}):i.individual[o]=a;let c=[{entry:a,substitutions:[e.substitutes[s]]}];for(let r of e.lookaheadCoverage)c=n.processLookaheadPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),c);for(let r of e.backtrackCoverage)c=n.processBacktrackPosition(t.listGlyphsByIndex(r).map(e=>e.glyphId),c);for(let{entry:t,substitutions:n}of c)t.lookup={substitutions:n,index:r,subIndex:0,length:1,contextRange:[-1*e.backtrackCoverage.length,1+e.lookaheadCoverage.length]}}return i}e.default=r}),yg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){let t={};for(let[r,i]of Object.entries(e.individual))t[r]=n(i);for(let{range:r,entry:i}of e.range){let e=n(i);for(let n=r[0];n<r[1];n++)t[n]=e}return t}e.default=t;function n(e){let n={};return e.forward&&(n.forward=t(e.forward)),e.reverse&&(n.reverse=t(e.reverse)),e.lookup&&(n.lookup=e.lookup),n}}),bg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tg(`fs`),n=tg(`util`),r=tg(`path`),i=n.promisify(t.readdir),a=n.promisify(t.stat);async function o(e,t){let n=new Set;return await Promise.all(e.map(async e=>{let i=await s(r.resolve(e),RegExp(`\\.${t.map(e=>`(?:${e})`).join(`|`)}$`,`i`));for(let e of i)n.add(e)})),[...n]}e.default=o;async function s(e,t,n=10){if(n<=0)return[];let o;try{o=await i(e)}catch{return[]}let c=[];return await Promise.all(o.map(async i=>{let o=r.join(e,i),l;try{l=await a(o)}catch{return}l.isFile()&&t.test(o)?c.push(o):l.isDirectory()&&c.push(...await s(o,t,n-1))})),c}}),xg=$((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=tg(`path`),r=tg(`os`),i=bg(),a={win32:()=>{let e=n.join({}.WINDIR||`C:\\Windows`,`Fonts`),t=`Microsoft\\Windows\\Fonts`,r;return{}.LOCALAPPDATA?r=n.join({}.LOCALAPPDATA,t):{}.APPDATA?r=n.join({}.APPDATA,`Local`,t):{}.USERPROFILE&&(r=n.join({}.USERPROFILE,`AppData`,`Local`,t)),r?[e,r]:[e]},darwin:()=>{let e=r.homedir();return[...e?[n.join(e,`/Library/Fonts`)]:[],`/Library/Fonts`,`/Network/Library/Fonts`,`/System/Library/Fonts`,`/System Folder/Fonts`]},linux:()=>{let e=r.homedir();return[`/usr/share/fonts`,`/usr/local/share/fonts`,...e?[n.join(e,`.fonts`),n.join(e,`.local/share/fonts`)]:[]]}};function o(e){let t=Object.assign({extensions:[`ttf`,`otf`,`ttc`,`woff`,`woff2`],additionalFolders:[]},e),n=r.platform(),o=a[n];if(!o)throw Error(`Unsupported platform: ${n}`);let s=o();return i.default([...s,...t.additionalFolders],t.extensions)}t.exports=Object.assign(o,{default:o}),e.default=o}),Sg=$((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=tg(`stream`),r=class extends n.Writable{constructor(){super(...arguments),this.offset=0,this._waiters=[],this._closed=!1}_write(e,t,n){let r=0,i=()=>{for(;this._waiters.length>0;){let t=this._waiters[0];if(this._buffer){let i=this._buffer.size-this._buffer.offset;if(i+e.length>=t.size){if(t.skip)this._buffer=void 0,t.resolve();else{let n=Math.min(i,t.size),r=Buffer.alloc(t.size);this._buffer.buf.copy(r,0,this._buffer.offset,this._buffer.offset+n),e.copy(r,n,0,t.size-n),t.resolve(r)}if(this.offset+=t.size,this._waiters.shift(),this._buffer=void 0,i+e.length===t.size){n();break}else r+=t.size-i}else{if(!t.skip){let t=Buffer.alloc(i+e.length);this._buffer.buf.copy(t,0,this._buffer.offset,this._buffer.size),e.copy(t,i,0,e.length),this._buffer.buf=t}this._buffer.offset=0,this._buffer.size=i+e.length,n();break}}else if(e.length-r>=t.size){if(t.skip?t.resolve():t.resolve(e.slice(r,r+t.size)),this.offset+=t.size,this._waiters.shift(),r+=t.size,e.length===r){n();break}}else{this._buffer={buf:t.skip?void 0:e.slice(r),offset:0,size:e.length-r},r=e.length,n();break}}this._processTrigger=e.length-r>0?i:void 0};i()}_destroy(e,t){this._processTrigger=void 0;for(let t of this._waiters)t.reject(e||Error(`stream destroyed`));this._waiters=[],this._closed=!0}_final(e){this._processTrigger=void 0;for(let e of this._waiters)e.reject(Error(`not enough data in stream`));this._waiters=[],this._closed=!0}read(e){return new Promise((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!1}),this._processTrigger&&this._processTrigger()})}skip(e){return new Promise((t,n)=>{this._closed&&n(Error(`stream is closed`)),this._waiters.push({resolve:t,reject:n,size:e,skip:!0}),this._processTrigger&&this._processTrigger()})}};function i(){return new r}t.exports=Object.assign(i,{default:i}),e.default=i}),Cg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=[`copyright`,`fontFamily`,`fontSubfamily`,`uniqueID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`manufacturerURL`,`designerURL`,`license`,`licenseURL`,`reserved`,`preferredFamily`,`preferredSubfamily`,`compatibleFullName`,`sampleText`,`postScriptFindFontName`,`wwsFamily`,`wwsSubfamily`],n={0:`en`,1:`fr`,2:`de`,3:`it`,4:`nl`,5:`sv`,6:`es`,7:`da`,8:`pt`,9:`no`,10:`he`,11:`ja`,12:`ar`,13:`fi`,14:`el`,15:`is`,16:`mt`,17:`tr`,18:`hr`,19:`zh-Hant`,20:`ur`,21:`hi`,22:`th`,23:`ko`,24:`lt`,25:`pl`,26:`hu`,27:`es`,28:`lv`,29:`se`,30:`fo`,31:`fa`,32:`ru`,33:`zh`,34:`nl-BE`,35:`ga`,36:`sq`,37:`ro`,38:`cz`,39:`sk`,40:`si`,41:`yi`,42:`sr`,43:`mk`,44:`bg`,45:`uk`,46:`be`,47:`uz`,48:`kk`,49:`az-Cyrl`,50:`az-Arab`,51:`hy`,52:`ka`,53:`mo`,54:`ky`,55:`tg`,56:`tk`,57:`mn-CN`,58:`mn`,59:`ps`,60:`ks`,61:`ku`,62:`sd`,63:`bo`,64:`ne`,65:`sa`,66:`mr`,67:`bn`,68:`as`,69:`gu`,70:`pa`,71:`or`,72:`ml`,73:`kn`,74:`ta`,75:`te`,76:`si`,77:`my`,78:`km`,79:`lo`,80:`vi`,81:`id`,82:`tl`,83:`ms`,84:`ms-Arab`,85:`am`,86:`ti`,87:`om`,88:`so`,89:`sw`,90:`rw`,91:`rn`,92:`ny`,93:`mg`,94:`eo`,128:`cy`,129:`eu`,130:`ca`,131:`la`,132:`qu`,133:`gn`,134:`ay`,135:`tt`,136:`ug`,137:`dz`,138:`jv`,139:`su`,140:`gl`,141:`af`,142:`br`,143:`iu`,144:`gd`,145:`gv`,146:`ga`,147:`to`,148:`el-polyton`,149:`kl`,150:`az`,151:`nn`},r={1078:`af`,1052:`sq`,1156:`gsw`,1118:`am`,5121:`ar-DZ`,15361:`ar-BH`,3073:`ar`,2049:`ar-IQ`,11265:`ar-JO`,13313:`ar-KW`,12289:`ar-LB`,4097:`ar-LY`,6145:`ary`,8193:`ar-OM`,16385:`ar-QA`,1025:`ar-SA`,10241:`ar-SY`,7169:`aeb`,14337:`ar-AE`,9217:`ar-YE`,1067:`hy`,1101:`as`,2092:`az-Cyrl`,1068:`az`,1133:`ba`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn-IN`,8218:`bs-Cyrl`,5146:`bs`,1150:`br`,1026:`bg`,1027:`ca`,3076:`zh-HK`,5124:`zh-MO`,2052:`zh`,4100:`zh-SG`,1028:`zh-TW`,1155:`co`,1050:`hr`,4122:`hr-BA`,1029:`cs`,1030:`da`,1164:`prs`,1125:`dv`,2067:`nl-BE`,1043:`nl`,3081:`en-AU`,10249:`en-BZ`,4105:`en-CA`,9225:`en-029`,16393:`en-IN`,6153:`en-IE`,8201:`en-JM`,17417:`en-MY`,5129:`en-NZ`,13321:`en-PH`,18441:`en-SG`,7177:`en-ZA`,11273:`en-TT`,2057:`en-GB`,1033:`en`,12297:`en-ZW`,1061:`et`,1080:`fo`,1124:`fil`,1035:`fi`,2060:`fr-BE`,3084:`fr-CA`,1036:`fr`,5132:`fr-LU`,6156:`fr-MC`,4108:`fr-CH`,1122:`fy`,1110:`gl`,1079:`ka`,3079:`de-AT`,1031:`de`,5127:`de-LI`,4103:`de-LU`,2055:`de-CH`,1032:`el`,1135:`kl`,1095:`gu`,1128:`ha`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig`,1057:`id`,1117:`iu`,2141:`iu-Latn`,2108:`ga`,1076:`xh`,1077:`zu`,1040:`it`,2064:`it-CH`,1041:`ja`,1099:`kn`,1087:`kk`,1107:`km`,1158:`quc`,1159:`rw`,1089:`sw`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1062:`lv`,1063:`lt`,2094:`dsb`,1134:`lb`,1071:`mk`,2110:`ms-BN`,1086:`ms`,1100:`ml`,1082:`mt`,1153:`mi`,1146:`arn`,1102:`mr`,1148:`moh`,1104:`mn`,2128:`mn-CN`,1121:`ne`,1044:`nb`,2068:`nn`,1154:`oc`,1096:`or`,1123:`ps`,1045:`pl`,1046:`pt`,2070:`pt-PT`,1094:`pa`,1131:`qu-BO`,2155:`qu-EC`,3179:`qu`,1048:`ro`,1047:`rm`,1049:`ru`,9275:`smn`,4155:`smj-NO`,5179:`smj`,3131:`se-FI`,1083:`se`,2107:`se-SE`,8251:`sms`,6203:`sma-NO`,7227:`sms`,1103:`sa`,7194:`sr-Cyrl-BA`,3098:`sr`,6170:`sr-Latn-BA`,2074:`sr-Latn`,1132:`nso`,1074:`tn`,1115:`si`,1051:`sk`,1060:`sl`,11274:`es-AR`,16394:`es-BO`,13322:`es-CL`,9226:`es-CO`,5130:`es-CR`,7178:`es-DO`,12298:`es-EC`,17418:`es-SV`,4106:`es-GT`,18442:`es-HN`,2058:`es-MX`,19466:`es-NI`,6154:`es-PA`,15370:`es-PY`,10250:`es-PE`,20490:`es-PR`,3082:`es`,1034:`es`,21514:`es-US`,14346:`es-UY`,8202:`es-VE`,2077:`sv-FI`,1053:`sv`,1114:`syr`,1064:`tg`,2143:`tzm`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1055:`tr`,1090:`tk`,1152:`ug`,1058:`uk`,1070:`hsb`,1056:`ur`,2115:`uz-Cyrl`,1091:`uz`,1066:`vi`,1106:`cy`,1160:`wo`,1157:`sah`,1144:`ii`,1130:`yo`};function i(e,t,i){switch(e){case 0:if(t===65535)return`und`;if(i)return i[t];break;case 1:return n[t];case 3:return r[t]}}var a=`utf-16`,o={0:`macintosh`,1:`x-mac-japanese`,2:`x-mac-chinesetrad`,3:`x-mac-korean`,6:`x-mac-greek`,7:`x-mac-cyrillic`,9:`x-mac-devanagai`,10:`x-mac-gurmukhi`,11:`x-mac-gujarati`,12:`x-mac-oriya`,13:`x-mac-bengali`,14:`x-mac-tamil`,15:`x-mac-telugu`,16:`x-mac-kannada`,17:`x-mac-malayalam`,18:`x-mac-sinhalese`,19:`x-mac-burmese`,20:`x-mac-khmer`,21:`x-mac-thai`,22:`x-mac-lao`,23:`x-mac-georgian`,24:`x-mac-armenian`,25:`x-mac-chinesesimp`,26:`x-mac-tibetan`,27:`x-mac-mongolian`,28:`x-mac-ethiopic`,29:`x-mac-ce`,30:`x-mac-vietnamese`,31:`x-mac-extarabic`},s={15:`x-mac-icelandic`,17:`x-mac-turkish`,18:`x-mac-croatian`,24:`x-mac-ce`,25:`x-mac-ce`,26:`x-mac-ce`,27:`x-mac-ce`,28:`x-mac-ce`,30:`x-mac-icelandic`,37:`x-mac-romanian`,38:`x-mac-ce`,39:`x-mac-ce`,40:`x-mac-ce`,143:`x-mac-inuit`,146:`x-mac-gaelic`};function c(e,t,n){switch(e){case 0:return a;case 1:return s[n]||o[t];case 3:if(t===1||t===10)return a;break}}function l(e,n){let r={},o=e.readUInt16BE(2),s=e.readUInt16BE(4),l=6;for(let u=0;u<o;u++){let o=e.readUInt16BE(l+0),u=e.readUInt16BE(l+2),f=e.readUInt16BE(l+4),p=e.readUInt16BE(l+6),m=t[p]||String(p),h=e.readUInt16BE(l+8),g=e.readUInt16BE(l+10),_=i(o,f,n),v=c(o,u,f);if(l+=12,v!==void 0&&_!==void 0){let t;if(v===a){let n=h/2,r=Array(n);for(let t=0;t<n;t++)r[t]=e.readUInt16BE(s+g+t*2);t=String.fromCharCode(...r)}else t=d(e,s+g,h,v);if(t){let e=r[m];e===void 0&&(e=r[m]={}),e[_]=t}}}return r}e.default=l;var u={"x-mac-croatian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`,"x-mac-cyrillic":`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю`,"x-mac-gaelic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ`,"x-mac-greek":`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­`,"x-mac-icelandic":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-inuit":`ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł`,"x-mac-ce":`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,macintosh:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-romanian":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,"x-mac-turkish":`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ`};function d(e,t,n,r){let i=u[r];if(i===void 0)return;let a=``;for(let r=0;r<n;r++){let n=e.readUInt8(t+r);n<=127?a+=String.fromCharCode(n):a+=i[n&127]}return a}}),wg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){if(e.readUInt32BE(0)!==1)throw Error(`Unsupported ltag table version.`);let t=e.readUInt32BE(8),n=[];for(let r=0;r<t;r++){let t=``,i=e.readUInt16BE(12+r*4),a=e.readUInt16BE(14+r*4);for(let n=i;n<i+a;++n)t+=String.fromCharCode(e.readInt8(n));n.push(t)}return n}e.default=t}),Tg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){if(e.length<78)return;let t={version:e.readUInt16BE(0),xAvgCharWidth:e.readUInt16BE(2),usWeightClass:e.readUInt16BE(4),usWidthClass:e.readUInt16BE(6),fsType:e.readUInt16BE(8),ySubscriptXSize:e.readInt16BE(10),ySubscriptYSize:e.readInt16BE(12),ySubscriptXOffset:e.readInt16BE(14),ySubscriptYOffset:e.readInt16BE(16),ySuperscriptXSize:e.readInt16BE(18),ySuperscriptYSize:e.readInt16BE(20),ySuperscriptXOffset:e.readInt16BE(22),ySuperscriptYOffset:e.readInt16BE(24),yStrikeoutSize:e.readInt16BE(26),yStrikeoutPosition:e.readInt16BE(28),sFamilyClass:e.readInt16BE(30),panose:[e.readUInt8(32),e.readUInt8(33),e.readUInt8(34),e.readUInt8(35),e.readUInt8(36),e.readUInt8(37),e.readUInt8(38),e.readUInt8(39),e.readUInt8(40),e.readUInt8(41)],ulUnicodeRange1:e.readUInt32BE(42),ulUnicodeRange2:e.readUInt32BE(46),ulUnicodeRange3:e.readUInt32BE(50),ulUnicodeRange4:e.readUInt32BE(54),achVendID:String.fromCharCode(e.readUInt8(58),e.readUInt8(59),e.readUInt8(60),e.readUInt8(61)),fsSelection:e.readUInt16BE(62),usFirstCharIndex:e.readUInt16BE(64),usLastCharIndex:e.readUInt16BE(66),sTypoAscender:e.readInt16BE(68),sTypoDescender:e.readInt16BE(70),sTypoLineGap:e.readInt16BE(72),usWinAscent:e.readUInt16BE(74),usWinDescent:e.readUInt16BE(76)};return t.version>=1&&e.length>=86&&(t.ulCodePageRange1=e.readUInt32BE(78),t.ulCodePageRange2=e.readUInt32BE(82)),t.version>=2&&e.length>=96&&(t.sxHeight=e.readInt16BE(86),t.sCapHeight=e.readInt16BE(88),t.usDefaultChar=e.readUInt16BE(90),t.usBreakChar=e.readUInt16BE(92),t.usMaxContent=e.readUInt16BE(94)),t}e.default=t}),Eg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){return e+t/2**16}e.formatFixed=t;function n(e,t){return(e*2**32+t-2082844800)*1e3}e.formatLongDateTime=n}),Dg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Eg();function n(e){return{version:t.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),fontRevision:t.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),checkSumAdjustment:e.readUInt32BE(8),magicNumber:e.readUInt32BE(12),flags:e.readUInt16BE(16),unitsPerEm:e.readUInt16BE(18),created:t.formatLongDateTime(e.readUInt32BE(20),e.readUInt32BE(24)),modified:t.formatLongDateTime(e.readUInt32BE(28),e.readUInt32BE(32)),xMin:e.readInt16BE(36),yMin:e.readInt16BE(38),xMax:e.readInt16BE(40),yMax:e.readInt16BE(42),macStyle:e.readUInt16BE(44),lowestRecPPEM:e.readUInt16BE(46),fontDirectionHint:e.readInt16BE(48),indexToLocFormat:e.readInt16BE(50),glyphDataFormat:e.readInt16BE(52)}}e.default=n}),Og=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Eg();function n(e){return{version:t.formatFixed(e.readUInt16BE(0),e.readUInt16BE(2)),italicAngle:t.formatFixed(e.readUInt16BE(4),e.readUInt16BE(6)),underlinePosition:e.readInt16BE(8),underlineThickness:e.readInt16BE(10),isFixedPitch:e.readUInt32BE(12),minMemType42:e.readUInt32BE(16),maxMemType42:e.readUInt32BE(20),minMemType1:e.readUInt32BE(24),maxMemType1:e.readUInt32BE(28)}}e.default=n}),kg=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tg(`fs`),n=Sg(),r=Cg(),i=wg(),a=Tg(),o=Dg(),s=Og(),c;(function(e){e[e.TrueType=0]=`TrueType`,e[e.CFF=1]=`CFF`,e[e.Woff=2]=`Woff`})(c||={});var l={name:{tag:Buffer.from(`name`),parse:r.default},ltag:{tag:Buffer.from(`ltag`),parse:i.default},os2:{tag:Buffer.from(`OS/2`),parse:a.default},head:{tag:Buffer.from(`head`),parse:o.default},post:{tag:Buffer.from(`post`),parse:s.default}};async function u(e){return new Promise((r,i)=>{(async()=>{let r=n.default(),a=t.createReadStream(e),o=!1,s=()=>{o=!0};a.once(`close`,s),a.once(`end`,s),a.once(`error`,e=>{o=!0,i(e)}),a.pipe(r);try{switch(f(await r.read(4))){case c.TrueType:case c.CFF:let t=(await r.read(2)).readUInt16BE(0);await r.skip(6);let n=await p(r,t),i=Object.entries(n).sort((e,t)=>e[1].offset-t[1].offset),a={};for(let[e,t]of i)await r.skip(t.offset-r.offset),a[e]=await r.read(t.length);let o=[];if(a.ltag&&(o=l.ltag.parse(a.ltag)),!a.name)throw Error(`missing required OpenType table 'name' in font file: ${e}`);return{names:l.name.parse(a.name,o),os2:a.os2&&l.os2.parse(a.os2),head:a.head&&l.head.parse(a.head),post:a.post&&l.post.parse(a.post)};case c.Woff:default:throw Error(`provided font type is not supported yet`)}}finally{a.unpipe(r),o||(a.destroy(),r.destroy())}})().then(r,i)})}e.default=u;var d={one:Buffer.from([0,1,0,0]),otto:Buffer.from(`OTTO`),true:Buffer.from(`true`),typ1:Buffer.from(`typ1`),woff:Buffer.from(`wOFF`)};function f(e){if(e.equals(d.one)||e.equals(d.true)||e.equals(d.typ1))return c.TrueType;if(e.equals(d.otto))return c.CFF;if(e.equals(d.woff))return c.Woff;throw Error(`Unsupported signature type: ${e}`)}async function p(e,t){let n={};for(let r=0;r<t;r++){let t=await e.read(4),r=await e.read(12);for(let[e,i]of Object.entries(l))if(t.equals(i.tag)&&(n[e]={offset:r.readUInt32BE(4),length:r.readUInt32BE(8)},n.name&&n.ltag&&n.os2))return n}return n}}),Ag=$(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tg(`os`),n;(function(e){e.Serif=`serif`,e.SansSerif=`sansSerif`,e.Monospace=`monospace`,e.Cursive=`cursive`,e.Unknown=`unknown`})(n=e.Type||={});var r;(function(e){e.Regular=`regular`,e.Italic=`italic`,e.Oblique=`oblique`,e.Bold=`bold`,e.BoldItalic=`boldItalic`,e.BoldOblique=`boldOblique`,e.Other=`other`})(r=e.Style||={});var i=[` Regular`,` Bold`,` Bold Italic`,` Bold Oblique`,` Italic`,` Oblique`];function a(e,n){let r=e.names.preferredFamily&&e.names.preferredFamily[n]?e.names.preferredFamily[n]:e.names.fontFamily[n];if(t.platform()===`win32`){let t=`${r} ${e.names.preferredSubfamily&&e.names.preferredSubfamily[n]?e.names.preferredSubfamily[n]:e.names.fontSubfamily[n]}`,a=-1;for(let e of i){let n=t.lastIndexOf(e);if(n!==-1){a=n;break}}return a===-1?t:t.substring(0,a)}return r}e.name=a;function o(e){if(e.os2)switch(e.os2.panose[0]){case 2:return e.os2.panose[3]===9?n.Monospace:e.os2.panose[1]>=11&&e.os2.panose[1]<=15||e.os2.panose[1]===0?n.SansSerif:n.Serif;case 3:return n.Cursive}else if(e.post&&e.post.isFixedPitch)return n.Monospace;return n.Unknown}e.type=o;function s(e){if(!e.os2&&!e.head)return r.Other;let t=e.os2?e.os2.fsSelection&32:e.head.macStyle&1,n=e.os2?e.os2.fsSelection&1:e.post?e.post.italicAngle<0:e.head.macStyle&2,i=e.os2?e.os2.fsSelection&512:e.post?e.post.italicAngle>0:0,a=e.os2?e.os2.fsSelection&320:1;return t?i?r.BoldOblique:n?r.BoldItalic:r.Bold:i?r.Oblique:n?r.Italic:a?r.Regular:r.Other}e.style=s;var c=[r.Bold,r.BoldItalic,r.BoldOblique];function l(e){return e.os2?e.os2.usWeightClass:c.includes(s(e))?700:400}e.weight=l}),jg=$(e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,`__esModule`,{value:!0});var n=xg(),r=kg(),i=Ag(),a=Ag();e.Type=a.Type,e.Style=a.Style;async function o(e){let i=Object.assign({concurrency:4,language:`en`,onFontError:null},e),a=await u(async e=>{try{return l(e,await r.default(e),i.language)}catch(t){i.onFontError&&i.onFontError(e,t)}},await n.default({extensions:[`ttf`,`otf`]}),i.concurrency),o={};for(let e of a.filter(e=>e)){let{name:n}=e,r=t(e,[`name`]);o[n]||(o[n]=[]),o[n].push(r)}return o}e.list=o;async function s(e,t){return(await o(t))[e]||[]}e.listVariants=s;async function c(e,t){let n=Object.assign({language:`en`},t);return l(e,await r.default(e),n.language)}e.get=c;function l(e,t,n){return{name:i.name(t,n),path:e,type:i.type(t),weight:i.weight(t),style:i.style(t)}}async function u(e,t,n){let r=[],i=0,a=async n=>{r.push(await e(t[n])),i<t.length&&await a(i++)},o=[];for(;i<t.length&&i<n;i++)o.push(a(i));return await Promise.all(o),r}}),Mg=rg($(e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ig(),n=sg(),r=cg(),i=lg(),a=ug(),o=mg(),s=gg(),c=_g(),l=vg(),u=yg(),d=class{constructor(e,t){this._lookupTrees=[],this._glyphLookups={},this._font=e,t.cacheSize>0&&(this._cache=new n({max:t.cacheSize,length:(e,t)=>t.length}));let i=(this._font.tables.gsub&&this._font.tables.gsub.features.filter(e=>e.tag===`calt`)||[]).reduce((e,t)=>[...e,...t.feature.lookupListIndexes],[]),a=this._font.tables.gsub&&this._font.tables.gsub.lookups||[],d=a.filter((e,t)=>i.some(e=>e===t));for(let[e,t]of d.entries()){let n=[];switch(t.lookupType){case 6:for(let[e,r]of t.subtables.entries())switch(r.substFormat){case 1:n.push(o.default(r,a,e));break;case 2:n.push(s.default(r,a,e));break;case 3:n.push(c.default(r,a,e));break}break;case 8:for(let[e,r]of t.subtables.entries())n.push(l.default(r,e));break}let i=u.default(r.default(n));this._lookupTrees.push({tree:i,processForward:t.lookupType!==8});for(let t of Object.keys(i))this._glyphLookups[t]||(this._glyphLookups[t]=[]),this._glyphLookups[t].push(e)}}findLigatures(e){let t=this._cache&&this._cache.get(e);if(t&&!Array.isArray(t))return t;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));if(this._lookupTrees.length===0)return{inputGlyphs:n,outputGlyphs:n,contextRanges:[]};let r=this._findInternal(n.slice()),i={inputGlyphs:n,outputGlyphs:r.sequence,contextRanges:r.ranges};return this._cache&&this._cache.set(e,i),i}findLigatureRanges(e){if(this._lookupTrees.length===0)return[];let t=this._cache&&this._cache.get(e);if(t)return Array.isArray(t)?t:t.contextRanges;let n=[];for(let t of e)n.push(this._font.charToGlyphIndex(t));let r=this._findInternal(n);return this._cache&&this._cache.set(e,r.ranges),r.ranges}_findInternal(e){let t=[],n=this._getNextLookup(e,0);for(;n.index!==null;){let r=this._lookupTrees[n.index];if(r.processForward){let o=n.last;for(let s=n.first;s<o;s++){let n=i.default(r.tree,e,s,s);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[s+t]=r)}a.default(t,n.contextRange[0]+s,n.contextRange[1]+s),s+n.length>=o&&(o=s+n.length+1),s+=n.length-1}}}else for(let o=n.last-1;o>=n.first;o--){let n=i.default(r.tree,e,o,o);if(n){for(let t=0;t<n.substitutions.length;t++){let r=n.substitutions[t];r!==null&&(e[o+t]=r)}a.default(t,n.contextRange[0]+o,n.contextRange[1]+o),o-=n.length-1}}n=this._getNextLookup(e,n.index+1)}return{sequence:e,ranges:t}}_getNextLookup(e,t){let n={index:null,first:1/0,last:-1};for(let r=0;r<e.length;r++){let i=this._glyphLookups[e[r]];if(i)for(let e=0;e<i.length;e++){let a=i[e];if(a>=t){(n.index===null||a<=n.index)&&(n.index=a,n.first>r&&(n.first=r),n.last=r+1);break}}}return n}};async function f(e,t){let[n]=await Promise.resolve().then(()=>jg()).then(t=>t.listVariants(e));if(!n)throw Error(`Font ${e} not found`);return p(n.path,t)}e.load=f;async function p(e,n){return new d(await Promise.resolve().then(()=>tg(`util`)).then(n=>n.promisify(t.load)(e)),Object.assign({cacheSize:0},n))}e.loadFile=p;function m(e,n){return new d(t.parse(e),Object.assign({cacheSize:0},n))}e.loadBuffer=m})());function Ng(e){if(typeof e!=`string`)throw Error(`Font family must be a string`);let t={input:e,offset:0},n=[],r=``;for(;t.offset<t.input.length;){let e=t.input[t.offset++];switch(e){case`'`:case`"`:r+=Pg(t,e);break;case`,`:n.push(r),r=``;break;default:/\s/.test(e)||(t.offset--,r+=Fg(t),n.push(r),r=``)}}return n}function Pg(e,t){let n=``,r=!1;for(;e.offset<e.input.length;){let i=e.input[e.offset++];if(r)/[\dA-Fa-f]/.test(i)?(e.offset--,n+=Ig(e)):i!==`
172
172
  `&&(n+=i),r=!1;else switch(i){case t:return n;case`\\`:r=!0;break;default:n+=i}}throw Error(`Unterminated string`)}function Fg(e){let t=``,n=!1;for(;e.offset<e.input.length;){let r=e.input[e.offset++];if(n)/[\dA-Fa-f]/.test(r)?(e.offset--,t+=Ig(e)):t+=r,n=!1;else switch(r){case`\\`:n=!0;break;case`,`:return t;default:/\s/.test(r)?t.endsWith(` `)||(t+=` `):t+=r}}return t}function Ig(e){let t=``;for(;e.offset<e.input.length;){let n=e.input[e.offset++];if(/\s/.test(n))return Lg(t);if(t.length>=6||!/[\dA-Fa-f]/.test(n))return e.offset--,Lg(t);t+=n}return Lg(t)}function Lg(e){return String.fromCodePoint(parseInt(e,16))}var Rg;async function zg(e,t){if(!Rg){if(typeof navigator<`u`&&`fonts`in navigator){try{let e=await navigator.permissions.request?.({name:`local-fonts`});if(e&&e.state!==`granted`)throw Error(`Permission to access local fonts not granted.`)}catch(e){if(e.name!==`TypeError`)throw e}let e={};try{let t=await navigator.fonts.query();for(let n of t)e.hasOwnProperty(n.family)||(e[n.family]=[]),e[n.family].push(n);Rg=Promise.resolve(e)}catch(e){console.error(e.name,e.message)}}else if(typeof window<`u`&&`queryLocalFonts`in window){let e={};try{let t=await window.queryLocalFonts();for(let n of t)e.hasOwnProperty(n.family)||(e[n.family]=[]),e[n.family].push(n);Rg=Promise.resolve(e)}catch(e){console.error(e.name,e.message)}}Rg||=Promise.resolve({})}let n=await Rg;for(let r of Ng(e)){if(Bg.includes(r))return;if(n.hasOwnProperty(r)&&n[r].length>0){let e=n[r][0];if(`blob`in e){let n=await(await e.blob()).arrayBuffer();return(0,Mg.loadBuffer)(n,{cacheSize:t})}return}}}var Bg=[`serif`,`sans-serif`,`cursive`,`fantasy`,`monospace`,`system-ui`,`emoji`,`math`,`fangsong`],Vg=1e5;function Hg(e,t=[]){let n,r,i=0,a;return e.registerCharacterJoiner(o=>{let s=e.options.fontFamily;if(s&&(i===0||n!==s)){r=void 0,i=1,n=s;let t=n;zg(t,Vg).then(n=>{t===e.options.fontFamily&&(i=2,r=n,n&&e.refresh(0,e.rows-1))}).catch(n=>{t===e.options.fontFamily&&(i=3,e.options.logLevel===`debug`&&console.debug(a,Error(`Failure while loading font`)),r=void 0,a=n)})}return r&&i===2?r.findLigatureRanges(o).map(e=>[e[0],e[1]]):Ug(o,t)})}function Ug(e,t){let n=[];for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)if(e.startsWith(t[i],r)){n.push([r,r+t[i].length]),r+=t[i].length-1;break}return n}var Wg=class{constructor(e){this._fallbackLigatures=(e?.fallbackLigatures||`<--.<---.<<-.<-.->.->>.-->.--->.<==.<===.<<=.<=.=>.=>>.==>.===>.>=.>>=.<->.<-->.<--->.<---->.<=>.<==>.<===>.<====>.::.:::.<~~.</.</>./>.~~>.==.!=./=.~=.<>.===.!==.!===.<:.:=.*=.*+.<*.<*>.*>.<|.<|>.|>.+*.=*.=:.:>./*.*/.+++.<!--.<!---`.split(`.`)).sort((e,t)=>t.length-e.length),this._fontFeatureSettings=e?.fontFeatureSettings}activate(e){if(!e.element)throw Error(`Cannot activate LigaturesAddon before open is called`);this._terminal=e,this._characterJoinerId=Hg(e,this._fallbackLigatures),e.element.style.fontFeatureSettings=this._fontFeatureSettings??`"calt" on`}dispose(){this._characterJoinerId!==void 0&&(this._terminal?.deregisterCharacterJoiner(this._characterJoinerId),this._characterJoinerId=void 0),this._terminal?.element&&(this._terminal.element.style.fontFeatureSettings=``)}},Gg=r(),Kg={background:`#1a1c20`,foreground:`#dadbdc`,cursor:`#e1e4e8`,cursorAccent:`#1a1c20`,selectionBackground:`#3e4451`,black:`#3a3e44`,red:`#e06c75`,green:`#98c379`,yellow:`#e5c07b`,blue:`#61afef`,magenta:`#c678dd`,cyan:`#56b6c2`,white:`#dadbdc`,brightBlack:`#5c6370`,brightRed:`#e06c75`,brightGreen:`#98c379`,brightYellow:`#e5c07b`,brightBlue:`#61afef`,brightMagenta:`#c678dd`,brightCyan:`#56b6c2`,brightWhite:`#ffffff`},qg=[1e3,2e3,4e3,8e3,16e3];function Jg(e,t,n){return`${location.protocol===`https:`?`wss:`:`ws:`}//${location.host}/ws/loop/${e}/term?cols=${t}&rows=${n}`}function Yg({loopId:e,currentUserId:t,onStatusChange:n}){let r=(0,i.useRef)(null),a=(0,i.useRef)(null),o=(0,i.useRef)(null),s=(0,i.useRef)(null),c=(0,i.useRef)(null),l=(0,i.useRef)({attempt:0,timer:null}),[u,d]=(0,i.useState)(`connected`);function f(e){d(e),n?.(e)}(0,i.useEffect)(()=>{if(!r.current)return;let t=new Fs({cursorBlink:!0,cursorStyle:`block`,fontFamily:`"JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", Menlo, Consolas, "DejaVu Sans Mono", ui-monospace, monospace`,fontSize:12.5,lineHeight:1.3,letterSpacing:0,theme:Kg,convertEol:!0,scrollback:5e3,smoothScrollDuration:80,allowProposedApi:!0,drawBoldTextInBrightColors:!0,minimumContrastRatio:4,rightClickSelectsWord:!0,ignoreBracketedPasteMode:!0}),n=new Rs,i=new Xp;t.loadAddon(n),t.loadAddon(i);try{t.loadAddon(new Ef)}catch{}try{t.loadAddon(new Pm)}catch{}try{t.loadAddon(new Jh)}catch{}try{t.loadAddon(new Wg)}catch{}t.open(r.current);let u=r.current.querySelector(`.xterm-helper-textarea`);u&&u.setAttribute(`name`,`terminal-input`),n.fit(),t.focus(),a.current=t,s.current=n,c.current=i;function d(){let n=new WebSocket(Jg(e,t.cols,t.rows));o.current=n,n.onopen=()=>{l.current.attempt=0,f(`connected`),m()},n.onmessage=e=>{try{let n=JSON.parse(e.data);n.type===`data`?t.write(n.data):n.type===`exit`?t.write(`\r\n\x1b[2m[process exited ${n.code}]\x1b[0m\r\n`):n.type===`error`&&t.write(`\r\n\x1b[31m[error] ${n.message}\x1b[0m\r\n`)}catch{}},n.onclose=()=>{let{attempt:e}=l.current;if(e<qg.length){let n=qg[e];l.current.attempt=e+1,f(`reconnecting`),t.write(`\r\n\x1b[33m[Disconnected, reconnecting in ${n/1e3}s (${e+1}/${qg.length})...]\x1b[0m\r\n`),l.current.timer=setTimeout(d,n)}else f(`disconnected`),t.write(`\r
173
173
  \x1B[2m[Disconnected]\x1B[0m\r
174
174
  `)},n.onerror=()=>{}}let p=t.onData(e=>{o.current?.readyState===WebSocket.OPEN&&o.current.send(JSON.stringify({type:`data`,data:e}))}),m=()=>{let e=o.current;!e||e.readyState!==WebSocket.OPEN||e.send(JSON.stringify({type:`resize`,cols:t.cols,rows:t.rows}))},h=!1,g=()=>{try{if(n.fit(),h)m();else{if(t.cols<10)return;h=!0,d()}}catch{}};g(),window.addEventListener(`resize`,g);let _=new ResizeObserver(g);return r.current&&_.observe(r.current),t.attachCustomKeyEventHandler(e=>{if(e.ctrlKey&&e.shiftKey&&e.key===`F`){let e=prompt(`Terminal search:`);return e&&c.current&&c.current.findNext(e),!1}return!0}),()=>{window.removeEventListener(`resize`,g),_.disconnect(),p.dispose(),l.current.timer&&clearTimeout(l.current.timer);try{o.current?.close()}catch{}t.dispose(),a.current=null,s.current=null,c.current=null,o.current=null}},[e,t]);let p=u===`connected`?`#98c379`:u===`reconnecting`?`#e5c07b`:`#e06c75`;return(0,Gg.jsxs)(`div`,{style:{width:`100%`,height:`100%`,position:`relative`},children:[(0,Gg.jsx)(`div`,{ref:r,style:{width:`100%`,height:`100%`,background:Kg.background,padding:`10px 12px 4px`,boxSizing:`border-box`}}),(0,Gg.jsx)(`div`,{title:u===`connected`?`Connected`:u===`reconnecting`?`Reconnecting...`:`Disconnected`,style:{position:`absolute`,top:6,right:8,width:8,height:8,borderRadius:`50%`,background:p,boxShadow:`0 0 4px ${p}`,transition:`background 0.3s, box-shadow 0.3s`,zIndex:10,pointerEvents:`none`}})]})}export{Yg as Terminal};