astro-ghostcms/.pnpm-store/v3/files/62/cd8e433d93421e73c16cad547b1...

2 lines
90 KiB
Plaintext
Raw Permalink Normal View History

2024-02-14 14:10:47 +00:00
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.t?define(["exports"],t):t((r=r||self).i={})}(this,function(y){"use strict";function h(){this.o=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function i(r){this.font=r}function F(r){this.u=r}function v(r,t){this.encoding=r,this.charset=t}function E(r,c){if(c.l){var t=r;t.h={};for(var e=t.m.u.v,i=Object.keys(e),n=0;n<i.length;n+=1){var o=i[n],a=e[o];void 0===t.h[a]?t.h[a]={p:[parseInt(o)]}:t.h[a].p.push(parseInt(o))}}else for(var s=r,u=s.m.u.v,l=Object.keys(u),f=0;f<l.length;f+=1){var h=l[f],v=u[h];s.k.get(v).g(parseInt(h))}}function n(r){throw new Error(r)}function o(r,t){r||n(t)}function s(r){this.S(r)}function f(t,r,e){Object.defineProperty(t,r,{get:function(){return t.path,t[e]},set:function(r){t[e]=r},F:!0,D:!0})}function a(r,t){if(this.font=r,this.k={},Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];i.path.A=r.A,this.k[e]=i}this.length=t&&t.length||0}function c(r,t){for(var e=0,i=r.length-1;e<=i;){var n=e+i>>>1,o=r[n].tag;if(o===t)return n;o<t?e=1+n:i=n-1}return-e-1}function l(r,t){for(var e=0,i=r.length-1;e<=i;){var n=e+i>>>1,o=r[n];if(o===t)return n;o<t?e=1+n:i=n-1}return-e-1}function d(r,t){for(var e=0,i=r.length-1;e<=i;){var n,o=e+i>>>1,a=(n=r[o]).start;if(a===t)return n;a<t?e=1+o:i=o-1}if(0<e)return t>(n=r[e-1]).end?0:n}function m(r,t){this.font=r,this.M=t}function p(r){m.call(this,r,"gpos")}function b(r){m.call(this,r,"gsub")}function g(r,t,e){for(var i=r.C,n=0;n<i.length;n++){var o=i[n];if(o.O===t)return o}if(e)return i.push(e),e}function w(r,t){if(!r)throw t}function k(r,t){return r.getUint8(t)}function D(r,t){return r.getUint16(t,!1)}function A(r,t){return r.getUint32(t,!1)}function M(r,t){return r.getInt16(t,!1)+r.getUint16(t+2,!1)/65535}function u(r,t){this.data=r,this.offset=t,this.I=0}function C(r,t,e,i,n){var o=0<(t&i)?(o=r.T(),e+(o=0==(t&n)?-o:o)):0<(t&n)?e:e+r.L();return o}function O(r,c,l){var t,e=new U.U(c,l);if(r.R=e.L(),r.N=e.L(),r.q=e.L(),r.G=e.L(),r.B=e.L(),0<r.R){for(var i=r.P=[],h=0;h<r.R;h+=1)i.push(e.j());r.W=e.j(),r._=[];for(var v=0;v<r.W;v+=1)r._.push(e.T());for(var n=i[i.length-1]+1,o=[],d=0;d<n;d+=1)if(t=e.T(),o.push(t),0<(8&t))for(var m=e.T(),p=0;p<m;p+=1)o.push(t),d+=1;if(L.X(o.length===n,"Bad flags."),0<i.length){var a,s=[];if(0<n){for(var u=0;u<n;u+=1)t=o[u],(a={}).Z=!!(1&t),a.Y=0<=i.indexOf(u),s.push(a);for(var b=0,g=0;g<n;g+=1)t=o[g],(a=s[g]).x=C(e,t,b,2,16),b=a.x;for(var w=0,y=0;y<n;y+=1)t=o[y],(a=s[y]).y=C(e,t,w,4,32),w=a.y}r.points=s}else r.points=[]}else if(0===r.R)r.points=[];else{r.V=!0,r.points=[],r.H=[];for(var k=!0;k;){o=e.j();var f={K:e.j(),J:1,$:0,rr:0,tr:1,dx:0,dy:0};0<(1&o)?0<(2&o)?(f.dx=e.L(),f.dy=e.L()):f.er=[e.j(),e.j()]:0<(2&o)?(f.dx=e.ir(),f.dy=e.ir()):f.er=[e.T(),e.T()],0<(8&o)?f.J=f.tr=e.nr():0<(64&o)?(f.J=e.nr(),f.tr=e.nr()):0<(128&o)&&(f.J=e.nr(),f.$=e.nr(),f.rr=e.nr(),f.tr=e.nr()),r.H.push(f),k=!!(32&o)}if(256&o){r.W=e.j(),r._=[];for(var x=0;x<r.W;x+=1)r._.push(e.T())}}}function I(r,t){for(var e=[],i=0;i<r.length;i+=1){var n=r[i],n={x:t.J*n.x+t.$*n.y+t.dx,y:t.rr*n.x+t.tr*n.y+t.dy,Z:n.Z,Y:n.Y};e.push(n)}return e}function T(r){var t=new h;if(!r)return t;for(var c=function(r){for(var t=[],e=[],i=0;i<r.length;i+=1){var n=r[i];e.push(n),n.Y&&(t.push(e),e=[])}return L.X(0===e.length,"There are still points left in the current contour."),t}(r),e=0;e<c.length;++e){var i,n=c[e],o=n[n.length-1],a=n[0];o.Z?t.moveTo(o.x,o.y):a.Z?t.moveTo(a.x,a.y):(i={x:.5*(o.x+a.x),y:.5*(o.y+a.y)},t.moveTo(i.x,i.y));for(var s=0;s<n.length;++s){var u,f=o,o=a,a=n[(s+1)%n.length];o.Z?t.lineTo(o.x,o.y):(u=a,f.Z||(o.x,f.x,o.y,f.y),a.Z||(u={x:.5*(o.x+a.x),y:.5*(o.y+a.y)}),t.quadraticCurveTo(o.x,o.y,u.x,u.y))}t.closePath()}return t}function R(r,t){if(t.V)for(var e=0;e<t.H.length;e+=1){var i=t.H[e],n=r.get(i.K);if(n.ar(),n.points){var o=void 0;if(void 0===i.er)o=I(n.points,i);else{if(i.er[0]>t.points.length-1||i.er[1]>n.points.length-1)throw Error("Matched points out of range in "+t.name);var a=t.points[i.er[0]],s=n.points[i.er[1]],i={J:i.J,$:i.$,rr:i.rr,tr:i.tr,dx
//# sourceMappingURL=opentype.min.js.map