@hippovideo/video-sdk 0.0.0-experimental-9e59d2b3318f-20230620 → 0.0.0-experimental-c64df1f49a4a-20230621

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.
Files changed (46) hide show
  1. package/app/107-bundle-hippo-126n29cijh7-3fad86f11646f0cd2296.js +1 -0
  2. package/app/157-bundle-hippo-126n29cijh7-90f61daceef36d92d765.js +1 -0
  3. package/app/238-bundle-hippo-126n29cijh7-b61acbf599b47f15e1ff.js +1 -0
  4. package/app/239-bundle-hippo-126n29cijh7-29765f212c5b82b9b5c9.js +1 -0
  5. package/app/{245-bundle-hippo-yrfznej8uuk-a779b7190910b127f176.js → 245-bundle-hippo-126n29cijh7-a45ef9d48a74dcfe6eac.js} +1 -1
  6. package/app/283-bundle-hippo-126n29cijh7-095a8772f0b647aa12ab.js +1 -0
  7. package/app/307-bundle-hippo-126n29cijh7-46ceaa5b69d013f1a160.js +1 -0
  8. package/app/362-bundle-hippo-126n29cijh7-28bf93bdaaaca6e8a7d1.js +1 -0
  9. package/app/37-bundle-hippo-126n29cijh7-e813c079958693323e0d.js +1 -0
  10. package/app/442-bundle-hippo-126n29cijh7-a40760aafd35feb385c9.js +1 -0
  11. package/app/454-bundle-hippo-126n29cijh7-640863e104cb8d4444b5.js +1 -0
  12. package/app/487-bundle-hippo-126n29cijh7-a8a4683af31cd239bdfa.js +1 -0
  13. package/app/{520-bundle-hippo-yrfznej8uuk-bc32ad6d1a9f7e43c32b.js → 520-bundle-hippo-126n29cijh7-a32d3c17569f9559c6e0.js} +1 -1
  14. package/app/525-bundle-hippo-126n29cijh7-9e22fb533f478807c968.js +1 -0
  15. package/app/528-bundle-hippo-126n29cijh7-e7c6879087f0bc809436.js +1 -0
  16. package/app/582-bundle-hippo-126n29cijh7-a9eac0a0dff2505acd77.js +1 -0
  17. package/app/605-bundle-hippo-126n29cijh7-3d6e46646daa3d9ffc77.js +1 -0
  18. package/app/611-bundle-hippo-126n29cijh7-f7d2a84b0b194f07a962.js +1 -0
  19. package/app/652-bundle-hippo-126n29cijh7-2446a2200548df5c62f3.js +1 -0
  20. package/app/66-bundle-hippo-126n29cijh7-d26ab7f3718ca8adb7b9.js +1 -0
  21. package/app/660-bundle-hippo-126n29cijh7-e4d99213565d245f92b3.js +1 -0
  22. package/app/692-bundle-hippo-126n29cijh7-98e2778801517c6d709f.js +1 -0
  23. package/app/751-bundle-hippo-126n29cijh7-d3e1ee01d1e1f8c54119.js +1 -0
  24. package/app/771-bundle-hippo-126n29cijh7-5a6062e3490ee9261b7e.js +1 -0
  25. package/app/780-bundle-hippo-126n29cijh7-4e7a932e3d7564dbfd08.js +1 -0
  26. package/app/795-bundle-hippo-126n29cijh7-fa5dee47c4eb61932834.js +1 -0
  27. package/app/823-bundle-hippo-126n29cijh7-2b0bbd0da340d8be2937.js +1 -0
  28. package/app/847-bundle-hippo-126n29cijh7-a7274fcf2651c06dc9cc.js +1 -0
  29. package/app/85-bundle-hippo-126n29cijh7-cee943b1271f7f21df76.js +1 -0
  30. package/app/869-bundle-hippo-126n29cijh7-13a727a5f462660b7c19.js +1 -0
  31. package/app/892-bundle-hippo-126n29cijh7-6dc5a8967bfd8695b74a.js +1 -0
  32. package/app/907-bundle-hippo-126n29cijh7-6b974d5b2e5cef32804d.js +1 -0
  33. package/app/963-bundle-hippo-126n29cijh7-abde1d79679a282d1de2.js +1 -0
  34. package/app/99-bundle-hippo-126n29cijh7-d4e79df05dcd313d5feb.js +1 -0
  35. package/app/hv_recorder.js +1 -1
  36. package/app/hv_recorder.js.LICENSE.txt +47 -0
  37. package/app/webpack-common-manifest.json +36 -7
  38. package/package.json +1 -1
  39. package/app/232-bundle-hippo-yrfznej8uuk-420a156f3d106dc3c208.js +0 -2
  40. package/app/232-bundle-hippo-yrfznej8uuk-420a156f3d106dc3c208.js.LICENSE.txt +0 -46
  41. package/app/617-bundle-hippo-yrfznej8uuk-b068922de2bf2af8ce61.js +0 -1
  42. package/app/697-bundle-hippo-yrfznej8uuk-b0d8971a5c657b55f78a.js +0 -1
  43. /package/app/{188-bundle-hippo-yrfznej8uuk-1036786bf949fd672026.js → 188-bundle-hippo-126n29cijh7-1036786bf949fd672026.js} +0 -0
  44. /package/app/{245-bundle-hippo-yrfznej8uuk-a779b7190910b127f176.js.LICENSE.txt → 245-bundle-hippo-126n29cijh7-a45ef9d48a74dcfe6eac.js.LICENSE.txt} +0 -0
  45. /package/app/{520-bundle-hippo-yrfznej8uuk-bc32ad6d1a9f7e43c32b.js.LICENSE.txt → 520-bundle-hippo-126n29cijh7-a32d3c17569f9559c6e0.js.LICENSE.txt} +0 -0
  46. /package/app/{881-bundle-hippo-yrfznej8uuk-1e41c84326fac8446b66.js → 881-bundle-hippo-126n29cijh7-1e41c84326fac8446b66.js} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 232-bundle-hippo-yrfznej8uuk-420a156f3d106dc3c208.js.LICENSE.txt */
2
- (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[232],{23013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:function(e,t,r){"use strict";var n,a,o,i=r(23013),s=r(19781),u=r(17854),l=r(60614),c=r(70111),p=r(92597),f=r(70648),h=r(66330),d=r(68880),g=r(98052),v=r(47045),m=r(47976),y=r(79518),b=r(27674),x=r(5112),S=r(69711),T=r(29909),w=T.enforce,k=T.get,U=u.Int8Array,C=U&&U.prototype,O=u.Uint8ClampedArray,E=O&&O.prototype,R=U&&y(U),A=C&&y(C),L=Object.prototype,D=u.TypeError,I=x("toStringTag"),M=S("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",B=i&&!!b&&"Opera"!==f(u.opera),F=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},G={BigInt64Array:8,BigUint64Array:8},_=function(e){var t=y(e);if(c(t)){var r=k(t);return r&&p(r,P)?r[P]:_(t)}},H=function(e){if(!c(e))return!1;var t=f(e);return p(N,t)||p(G,t)};for(n in N)(o=(a=u[n])&&a.prototype)?w(o)[P]=a:B=!1;for(n in G)(o=(a=u[n])&&a.prototype)&&(w(o)[P]=a);if((!B||!l(R)||R===Function.prototype)&&(R=function(){throw D("Incorrect invocation")},B))for(n in N)u[n]&&b(u[n],R);if((!B||!A||A===L)&&(A=R.prototype,B))for(n in N)u[n]&&b(u[n].prototype,A);if(B&&y(E)!==A&&b(E,A),s&&!p(A,I))for(n in F=!0,v(A,I,{configurable:!0,get:function(){return c(this)?this[M]:void 0}}),N)u[n]&&d(u[n],M,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:F&&M,aTypedArray:function(e){if(H(e))return e;throw D("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!b||m(R,e)))return e;throw D(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in N){var o=u[a];if(o&&p(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}A[e]&&!r||g(A,e,r?t:B&&C[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(b){if(r)for(n in N)if((a=u[n])&&p(a,e))try{delete a[e]}catch(e){}if(R[e]&&!r)return;try{return g(R,e,r?t:B&&R[e]||t)}catch(e){}}for(n in N)!(a=u[n])||a[e]&&!r||g(a,e,t)}},getTypedArrayConstructor:_,isView:function(e){if(!c(e))return!1;var t=f(e);return"DataView"===t||p(N,t)||p(G,t)},isTypedArray:H,TypedArray:R,TypedArrayPrototype:A}},13331:function(e,t,r){"use strict";var n=r(17854),a=r(1702),o=r(19781),i=r(23013),s=r(76530),u=r(68880),l=r(47045),c=r(89190),p=r(47293),f=r(25787),h=r(19303),d=r(17466),g=r(57067),v=r(11179),m=r(79518),y=r(27674),b=r(8006).f,x=r(21285),S=r(41589),T=r(58003),w=r(29909),k=s.PROPER,U=s.CONFIGURABLE,C="ArrayBuffer",O="DataView",E="prototype",R="Wrong index",A=w.getterFor(C),L=w.getterFor(O),D=w.set,I=n[C],M=I,P=M&&M[E],B=n[O],F=B&&B[E],N=Object.prototype,G=n.Array,_=n.RangeError,H=a(x),z=a([].reverse),W=v.pack,q=v.unpack,j=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Z=function(e){return W(e,23,4)},Q=function(e){return W(e,52,8)},K=function(e,t,r){l(e[E],t,{configurable:!0,get:function(){return r(this)[t]}})},J=function(e,t,r,n){var a=g(r),o=L(e);if(a+t>o.byteLength)throw _(R);var i=o.bytes,s=a+o.byteOffset,u=S(i,s,s+t);return n?u:z(u)},$=function(e,t,r,n,a,o){var i=g(r),s=L(e);if(i+t>s.byteLength)throw _(R);for(var u=s.bytes,l=i+s.byteOffset,c=n(+a),p=0;p<t;p++)u[l+p]=c[o?p:t-p-1]};if(i){var ee=k&&I.name!==C;if(p((function(){I(1)}))&&p((function(){new I(-1)}))&&!p((function(){return new I,new I(1.5),new I(NaN),1!=I.length||ee&&!U})))ee&&U&&u(I,"name",C);else{(M=function(e){return f(this,P),new I(g(e))})[E]=P;for(var te,re=b(I),ne=0;re.length>ne;)(te=re[ne++])in M||u(M,te,I[te]);P.constructor=M}y&&m(F)!==N&&y(F,N);var ae=new B(new M(2)),oe=a(F.setInt8);ae.setInt8(0,2147483648),ae.setInt8(1,2147483649),!ae.getInt8(0)&&ae.getInt8(1)||c(F,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else P=(M=function(e){f(this,P);var t=g(e);D(this,{type:C,bytes:H(G(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[E],F=(B=function(e,t,r){f(this,F),f(e,P);var n=A(e),a=n.byteLength,i=h(t);if(i<0||i>a)throw _("Wrong offset");if(i+(r=void 0===r?a-i:d(r))>a)throw _("Wrong length");D(this,{type:O,buffer:e,byteLength:r,byteOffset:i,bytes:n.bytes}),o||(this.buffer=e,this.byteLength=r,this.byteOffset=i)})[E],o&&(K(M,"byteLength",A),K(B,"buffer",L),K(B,"byteLength",L),K(B,"byteOffset",L)),c(F,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Y(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return q(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return q(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){$(this,1,e,j,t)},setUint8:function(e,t){$(this,1,e,j,t)},setInt16:function(e,t){$(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){$(this,2,e,V,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){$(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){$(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){$(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){$(this,8,e,Q,t,arguments.length>2?arguments[2]:void 0)}});T(M,C),T(B,O),e.exports={ArrayBuffer:M,DataView:B}},1048:function(e,t,r){"use strict";var n=r(47908),a=r(51400),o=r(26244),i=r(85117),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),u=o(r),l=a(e,u),c=a(t,u),p=arguments.length>2?arguments[2]:void 0,f=s((void 0===p?u:a(p,u))-c,u-l),h=1;for(c<l&&l<c+f&&(h=-1,c+=f-1,l+=f-1);f-- >0;)c in r?r[l]=r[c]:i(r,l),l+=h,c+=h;return r}},21285:function(e,t,r){"use strict";var n=r(47908),a=r(51400),o=r(26244);e.exports=function(e){for(var t=n(this),r=o(t),i=arguments.length,s=a(i>1?arguments[1]:void 0,r),u=i>2?arguments[2]:void 0,l=void 0===u?r:a(u,r);l>s;)t[s++]=e;return t}},97745:function(e,t,r){var n=r(26244);e.exports=function(e,t){for(var r=0,a=n(t),o=new e(a);a>r;)o[r]=t[r++];return o}},86583:function(e,t,r){"use strict";var n=r(22104),a=r(45656),o=r(19303),i=r(26244),s=r(9341),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,p=s("lastIndexOf"),f=c||!p;e.exports=f?function(e){if(c)return n(l,this,arguments)||0;var t=a(this),r=i(t),s=r-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},11179:function(e){var t=Array,r=Math.abs,n=Math.pow,a=Math.floor,o=Math.log,i=Math.LN2;e.exports={pack:function(e,s,u){var l,c,p,f=t(u),h=8*u-s-1,d=(1<<h)-1,g=d>>1,v=23===s?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=r(e))!=e||e===1/0?(c=e!=e?1:0,l=d):(l=a(o(e)/i),e*(p=n(2,-l))<1&&(l--,p*=2),(e+=l+g>=1?v/p:v*n(2,1-g))*p>=2&&(l++,p/=2),l+g>=d?(c=0,l=d):l+g>=1?(c=(e*p-1)*n(2,s),l+=g):(c=e*n(2,g-1)*n(2,s),l=0));s>=8;)f[y++]=255&c,c/=256,s-=8;for(l=l<<s|c,h+=s;h>0;)f[y++]=255&l,l/=256,h-=8;return f[--y]|=128*m,f},unpack:function(e,t){var r,a=e.length,o=8*a-t-1,i=(1<<o)-1,s=i>>1,u=o-7,l=a-1,c=e[l--],p=127&c;for(c>>=7;u>0;)p=256*p+e[l--],u-=8;for(r=p&(1<<-u)-1,p>>=-u,u+=t;u>0;)r=256*r+e[l--],u-=8;if(0===p)p=1-s;else{if(p===i)return r?NaN:c?-1/0:1/0;r+=n(2,t),p-=s}return(c?-1:1)*r*n(2,p-t)}}},44067:function(e,t,r){var n=r(70648);e.exports=function(e){var t=n(e);return"BigInt64Array"==t||"BigUint64Array"==t}},55988:function(e,t,r){var n=r(70111),a=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&a(e)===e}},64599:function(e,t,r){var n=r(57593),a=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw a("Can't convert number to bigint");return BigInt(t)}},57067:function(e,t,r){var n=r(19303),a=r(17466),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=a(t);if(t!==r)throw o("Wrong length or index");return r}},84590:function(e,t,r){var n=r(73002),a=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw a("Wrong offset");return r}},73002:function(e,t,r){var n=r(19303),a=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw a("The argument can't be less than 0");return t}},19843:function(e,t,r){"use strict";var n=r(82109),a=r(17854),o=r(46916),i=r(19781),s=r(63832),u=r(90260),l=r(13331),c=r(25787),p=r(79114),f=r(68880),h=r(55988),d=r(17466),g=r(57067),v=r(84590),m=r(34948),y=r(92597),b=r(70648),x=r(70111),S=r(52190),T=r(70030),w=r(47976),k=r(27674),U=r(8006).f,C=r(97321),O=r(42092).forEach,E=r(96340),R=r(47045),A=r(3070),L=r(31236),D=r(29909),I=r(79587),M=D.get,P=D.set,B=D.enforce,F=A.f,N=L.f,G=Math.round,_=a.RangeError,H=l.ArrayBuffer,z=H.prototype,W=l.DataView,q=u.NATIVE_ARRAY_BUFFER_VIEWS,j=u.TYPED_ARRAY_TAG,V=u.TypedArray,X=u.TypedArrayPrototype,Y=u.aTypedArrayConstructor,Z=u.isTypedArray,Q="BYTES_PER_ELEMENT",K="Wrong length",J=function(e,t){Y(e);for(var r=0,n=t.length,a=new e(n);n>r;)a[r]=t[r++];return a},$=function(e,t){R(e,t,{configurable:!0,get:function(){return M(this)[t]}})},ee=function(e){var t;return w(z,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},te=function(e,t){return Z(e)&&!S(t)&&t in e&&h(+t)&&t>=0},re=function(e,t){return t=m(t),te(e,t)?p(2,e[t]):N(e,t)},ne=function(e,t,r){return t=m(t),!(te(e,t)&&x(r)&&y(r,"value"))||y(r,"get")||y(r,"set")||r.configurable||y(r,"writable")&&!r.writable||y(r,"enumerable")&&!r.enumerable?F(e,t,r):(e[t]=r.value,e)};i?(q||(L.f=re,A.f=ne,$(X,"buffer"),$(X,"byteOffset"),$(X,"byteLength"),$(X,"length")),n({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:re,defineProperty:ne}),e.exports=function(e,t,r){var i=e.match(/\d+/)[0]/8,u=e+(r?"Clamped":"")+"Array",l="get"+e,p="set"+e,h=a[u],m=h,y=m&&m.prototype,b={},S=function(e,t){F(e,t,{get:function(){return function(e,t){var r=M(e);return r.view[l](t*i+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=M(e);r&&(n=(n=G(n))<0?0:n>255?255:255&n),a.view[p](t*i+a.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};q?s&&(m=t((function(e,t,r,n){return c(e,y),I(x(t)?ee(t)?void 0!==n?new h(t,v(r,i),n):void 0!==r?new h(t,v(r,i)):new h(t):Z(t)?J(m,t):o(C,m,t):new h(g(t)),e,m)})),k&&k(m,V),O(U(h),(function(e){e in m||f(m,e,h[e])})),m.prototype=y):(m=t((function(e,t,r,n){c(e,y);var a,s,u,l=0,p=0;if(x(t)){if(!ee(t))return Z(t)?J(m,t):o(C,m,t);a=t,p=v(r,i);var f=t.byteLength;if(void 0===n){if(f%i)throw _(K);if((s=f-p)<0)throw _(K)}else if((s=d(n)*i)+p>f)throw _(K);u=s/i}else u=g(t),a=new H(s=u*i);for(P(e,{buffer:a,byteOffset:p,byteLength:s,length:u,view:new W(a)});l<u;)S(e,l++)})),k&&k(m,V),y=m.prototype=T(X)),y.constructor!==m&&f(y,"constructor",m),B(y).TypedArrayConstructor=m,j&&f(y,j,u);var w=m!=h;b[u]=m,n({global:!0,constructor:!0,forced:w,sham:!q},b),Q in m||f(m,Q,i),Q in y||f(y,Q,i),E(u)}):e.exports=function(){}},63832:function(e,t,r){var n=r(17854),a=r(47293),o=r(17072),i=r(90260).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,u=n.Int8Array;e.exports=!i||!a((function(){u(1)}))||!a((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||a((function(){return 1!==new u(new s(2),1,void 0).length}))},43074:function(e,t,r){var n=r(97745),a=r(66304);e.exports=function(e,t){return n(a(e),t)}},97321:function(e,t,r){var n=r(49974),a=r(46916),o=r(39483),i=r(47908),s=r(26244),u=r(18554),l=r(71246),c=r(97659),p=r(44067),f=r(90260).aTypedArrayConstructor,h=r(64599);e.exports=function(e){var t,r,d,g,v,m,y,b,x=o(this),S=i(e),T=arguments.length,w=T>1?arguments[1]:void 0,k=void 0!==w,U=l(S);if(U&&!c(U))for(b=(y=u(S,U)).next,S=[];!(m=a(b,y)).done;)S.push(m.value);for(k&&T>2&&(w=n(w,arguments[2])),r=s(S),d=new(f(x))(r),g=p(d),t=0;r>t;t++)v=k?w(S[t],t):S[t],d[t]=g?h(v):+v;return d}},66304:function(e,t,r){var n=r(90260),a=r(36707),o=n.aTypedArrayConstructor,i=n.getTypedArrayConstructor;e.exports=function(e){return o(a(e,i(e)))}},39575:function(e,t,r){"use strict";var n=r(82109),a=r(21470),o=r(47293),i=r(13331),s=r(19670),u=r(51400),l=r(17466),c=r(36707),p=i.ArrayBuffer,f=i.DataView,h=f.prototype,d=a(p.prototype.slice),g=a(h.getUint8),v=a(h.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new p(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(d&&void 0===t)return d(s(this),e);for(var r=s(this).byteLength,n=u(e,r),a=u(void 0===t?r:t,r),o=new(c(this,p))(l(a-n)),i=new f(this),h=new f(o),m=0;n<a;)v(h,m++,g(i,n++));return o}})},34553:function(e,t,r){"use strict";var n=r(82109),a=r(42092).findIndex,o=r(51223),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},92990:function(e,t,r){"use strict";var n=r(1702),a=r(90260),o=n(r(1048)),i=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,r){"use strict";var n=r(90260),a=r(42092).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,r){"use strict";var n=r(90260),a=r(21285),o=r(64599),i=r(70648),s=r(46916),u=r(1702),l=r(47293),c=n.aTypedArray,p=n.exportTypedArrayMethod,f=u("".slice);p("fill",(function(e){var t=arguments.length;c(this);var r="Big"===f(i(this),0,3)?o(e):+e;return s(a,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},35035:function(e,t,r){"use strict";var n=r(90260),a=r(42092).filter,o=r(43074),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},7174:function(e,t,r){"use strict";var n=r(90260),a=r(42092).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,r){"use strict";var n=r(90260),a=r(42092).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,r){"use strict";var n=r(90260),a=r(42092).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,r){"use strict";var n=r(90260),a=r(41318).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,r){"use strict";var n=r(90260),a=r(41318).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,r){"use strict";var n=r(17854),a=r(47293),o=r(1702),i=r(90260),s=r(66992),u=r(5112)("iterator"),l=n.Uint8Array,c=o(s.values),p=o(s.keys),f=o(s.entries),h=i.aTypedArray,d=i.exportTypedArrayMethod,g=l&&l.prototype,v=!a((function(){g[u].call([1])})),m=!!g&&g.values&&g[u]===g.values&&"values"===g.values.name,y=function(){return c(h(this))};d("entries",(function(){return f(h(this))}),v),d("keys",(function(){return p(h(this))}),v),d("values",y,v||!m,{name:"values"}),d(u,y,v||!m,{name:"values"})},58867:function(e,t,r){"use strict";var n=r(90260),a=r(1702),o=n.aTypedArray,i=n.exportTypedArrayMethod,s=a([].join);i("join",(function(e){return s(o(this),e)}))},37789:function(e,t,r){"use strict";var n=r(90260),a=r(22104),o=r(86583),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(o,i(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,r){"use strict";var n=r(90260),a=r(42092).map,o=r(66304),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},14483:function(e,t,r){"use strict";var n=r(90260),a=r(53671).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,r){"use strict";var n=r(90260),a=r(53671).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,r){"use strict";var n=r(90260),a=n.aTypedArray,o=n.exportTypedArrayMethod,i=Math.floor;o("reverse",(function(){for(var e,t=this,r=a(t).length,n=i(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t}))},3462:function(e,t,r){"use strict";var n=r(17854),a=r(46916),o=r(90260),i=r(26244),s=r(84590),u=r(47908),l=r(47293),c=n.RangeError,p=n.Int8Array,f=p&&p.prototype,h=f&&f.set,d=o.aTypedArray,g=o.exportTypedArrayMethod,v=!l((function(){var e=new Uint8ClampedArray(2);return a(h,e,{length:1,0:3},1),3!==e[1]})),m=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){d(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(v)return a(h,this,r,t);var n=this.length,o=i(r),l=0;if(o+t>n)throw c("Wrong length");for(;l<o;)this[t+l]=r[l++]}),!v||m)},30678:function(e,t,r){"use strict";var n=r(90260),a=r(66304),o=r(47293),i=r(50206),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=i(s(this),e,t),n=a(this),o=0,u=r.length,l=new n(u);u>o;)l[o]=r[o++];return l}),o((function(){new Int8Array(1).slice()})))},27462:function(e,t,r){"use strict";var n=r(90260),a=r(42092).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,r){"use strict";var n=r(17854),a=r(21470),o=r(47293),i=r(19662),s=r(94362),u=r(90260),l=r(68886),c=r(30256),p=r(7392),f=r(98008),h=u.aTypedArray,d=u.exportTypedArrayMethod,g=n.Uint16Array,v=g&&a(g.prototype.sort),m=!(!v||o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),y=!!v&&!o((function(){if(p)return p<74;if(l)return l<67;if(c)return!0;if(f)return f<602;var e,t,r=new g(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(v(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));d("sort",(function(e){return void 0!==e&&i(e),y?v(this,e):s(h(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!y||m)},55021:function(e,t,r){"use strict";var n=r(90260),a=r(17466),o=r(51400),i=r(66304),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,u=o(e,n);return new(i(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,a((void 0===t?n:o(t,n))-u))}))},12974:function(e,t,r){"use strict";var n=r(17854),a=r(22104),o=r(90260),i=r(47293),s=r(50206),u=n.Int8Array,l=o.aTypedArray,c=o.exportTypedArrayMethod,p=[].toLocaleString,f=!!u&&i((function(){p.call(new u(1))}));c("toLocaleString",(function(){return a(p,f?s(l(this)):l(this),s(arguments))}),i((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!i((function(){u.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,r){"use strict";var n=r(90260).exportTypedArrayMethod,a=r(47293),o=r(17854),i=r(1702),s=o.Uint8Array,u=s&&s.prototype||{},l=[].toString,c=i([].join);a((function(){l.call({})}))&&(l=function(){return c(this)});var p=u.toString!=l;n("toString",l,p)},82472:function(e,t,r){r(19843)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},63762:function(e,t,r){var n,a,o,i=r(19755);!function(s){"use strict";a=[r(19755),r(59676),r(96921),r(85592)],n=function(e){var t,r="ui-effects-",n="ui-effects-style",a="ui-effects-animated";return e.effects={effect:{}},function(){var t,r=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function a(e){var t,r,n,a=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(a&&a.length&&a[0]&&a[a[0]])for(r=a.length;r--;)"string"==typeof a[t=a[r]]&&(o[(n=t,n.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})))]=a[t]);else for(t in a)"string"==typeof a[t]&&(o[t]=a[t]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,r){e.fx.step[r]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(i.style(e.elem,r,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,i,s){var u=e.speed(o,i,s);return this.queue((function(){var o,i=e(this),s=i.attr("class")||"",l=u.children?i.find("*").addBack():i;l=l.map((function(){return{el:e(this),start:a(this)}})),(o=function(){e.each(r,(function(e,r){t[r]&&i[r+"Class"](t[r])}))})(),l=l.map((function(){return this.end=a(this.el[0]),this.diff=function(t,r){var a,o,i={};for(a in r)o=r[a],t[a]!==o&&(n[a]||!e.fx.step[a]&&isNaN(parseFloat(o))||(i[a]=o));return i}(this.start,this.end),this})),i.attr("class",s),l=l.map((function(){var t=this,r=e.Deferred(),n=e.extend({},u,{queue:!1,complete:function(){r.resolve(t)}});return this.el.animate(this.diff,n),r.promise()})),e.when.apply(e,l.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),u.complete.call(i[0])}))}))},e.fn.extend({addClass:(t=e.fn.addClass,function(r,n,a,o){return n?e.effects.animateClass.call(this,{add:r},n,a,o):t.apply(this,arguments)}),removeClass:function(t){return function(r,n,a,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:r},n,a,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(r,n,a,o,i){return"boolean"==typeof n||void 0===n?a?e.effects.animateClass.call(this,n?{add:r}:{remove:r},a,o,i):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:r},n,a,o)}}(e.fn.toggleClass),switchClass:function(t,r,n,a,o){return e.effects.animateClass.call(this,{add:r,remove:t},n,a,o)}})}(),function(){var t;function o(t,r,n,a){return e.isPlainObject(t)&&(r=t,t=t.effect),t={effect:t},null==r&&(r={}),"function"==typeof r&&(a=r,n=null,r={}),("number"==typeof r||e.fx.speeds[r])&&(a=n,n=r,r={}),"function"==typeof n&&(a=n,n=null),r&&e.extend(t,r),n=n||r.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=a||r.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function s(e,t){var r=t.outerWidth(),n=t.outerHeight(),a=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,r,n,0];return{top:parseFloat(a[1])||0,right:"auto"===a[2]?r:parseFloat(a[2]),bottom:"auto"===a[3]?n:parseFloat(a[3]),left:parseFloat(a[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(t=e.expr.pseudos.animated,function(r){return!!e(r).data(a)||t(r)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,a=t.length;n<a;n++)null!==t[n]&&e.data(r+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,a=0,o=t.length;a<o;a++)null!==t[a]&&(n=e.data(r+t[a]),e.css(t[a],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var r={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(n),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(r,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){r[n]=t.css(n),isNaN(parseInt(r[n],10))&&(r[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(a),n.css(r).show()},removeWrapper:function(t){var r=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===r||e.contains(t[0],r))&&e(r).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,r,n){return n||(n=r,r="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=r,n},scaledDimensions:function(e,t,r){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==r?(t||100)/100:1,a="vertical"!==r?(t||100)/100:1;return{height:e.height()*a,width:e.width()*n,outerHeight:e.outerHeight()*a,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,r){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,r))),e.dequeue()},saveStyle:function(e){e.data(n,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(n)||"",e.removeData(n)},mode:function(e,t){var r=e.is(":hidden");return"toggle"===t&&(t=r?"show":"hide"),(r?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var r,n;switch(e[0]){case"top":r=0;break;case"middle":r=.5;break;case"bottom":r=1;break;default:r=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:r}},createPlaceholder:function(t){var n,a=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(a)&&(a="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(r+"placeholder",n)),t.css({position:a,left:o.left,top:o.top}),n},removePlaceholder:function(e){var t=r+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,r,n,a){return a=a||{},e.each(r,(function(e,r){var o=t.cssUnit(r);o[0]>0&&(a[r]=o[0]*n+o[1])})),a}}),e.fn.extend({effect:function(){var t=o.apply(this,arguments),r=e.effects.effect[t.effect],n=r.mode,i=t.queue,s=i||"fx",u=t.complete,l=t.mode,c=[],p=function(t){var r=e(this),o=e.effects.mode(r,l)||n;r.data(a,!0),c.push(o),n&&("show"===o||o===n&&"hide"===o)&&r.show(),n&&"none"===o||e.effects.saveStyle(r),"function"==typeof t&&t()};if(e.fx.off||!r)return l?this[l](t.duration,u):this.each((function(){u&&u.call(this)}));function f(o){var i=e(this);function s(){"function"==typeof u&&u.call(i[0]),"function"==typeof o&&o()}t.mode=c.shift(),!1===e.uiBackCompat||n?"none"===t.mode?(i[l](),s()):r.call(i[0],t,(function(){i.removeData(a),e.effects.cleanUp(i),"hide"===t.mode&&i.hide(),s()})):(i.is(":hidden")?"hide"===l:"show"===l)?(i[l](),s()):r.call(i[0],t,s)}return!1===i?this.each(p).each(f):this.queue(s,p).queue(s,f)},show:function(e){return function(t){if(i(t))return e.apply(this,arguments);var r=o.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(t){if(i(t))return e.apply(this,arguments);var r=o.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(t){if(i(t)||"boolean"==typeof t)return e.apply(this,arguments);var r=o.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var r=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){r.indexOf(t)>0&&(n=[parseFloat(r),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):s(this.css("clip"),this)},transfer:function(t,r){var n=e(this),a=e(t.to),o="fixed"===a.css("position"),i=e("body"),s=o?i.scrollTop():0,u=o?i.scrollLeft():0,l=a.offset(),c={top:l.top-s,left:l.left-u,height:a.innerHeight(),width:a.innerWidth()},p=n.offset(),f=e("<div class='ui-effects-transfer'></div>");f.appendTo("body").addClass(t.className).css({top:p.top-s,left:p.left-u,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(c,t.duration,t.easing,(function(){f.remove(),"function"==typeof r&&r()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=s(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,r){t[r]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,r=4;e<((t=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,r){e.easing["easeIn"+t]=r,e.easing["easeOut"+t]=function(e){return 1-r(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?r(2*e)/2:1-r(-2*e+2)/2}})),e.effects},void 0===(o=n.apply(t,a))||(e.exports=o)}()},68573:function(e,t,r){var n,a,o;!function(i){"use strict";a=[r(19755),r(85592),r(63762)],void 0===(o="function"==typeof(n=function(e){return e.effects.define("fade","toggle",(function(t,r){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:r})}))})?n.apply(t,a):n)||(e.exports=o)}()},85341:function(e,t,r){var n,a,o;!function(i){"use strict";a=[r(19755),r(85592),r(63762)],void 0===(o="function"==typeof(n=function(e){return e.effects.define("size",(function(t,r){var n,a,o,i=e(this),s=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.mode,p="effect"!==c,f=t.scale||"both",h=t.origin||["middle","center"],d=i.css("position"),g=i.position(),v=e.effects.scaledDimensions(i),m=t.from||v,y=t.to||e.effects.scaledDimensions(i,0);e.effects.createPlaceholder(i),"show"===c&&(o=m,m=y,y=o),a={from:{y:m.height/v.height,x:m.width/v.width},to:{y:y.height/v.height,x:y.width/v.width}},"box"!==f&&"both"!==f||(a.from.y!==a.to.y&&(m=e.effects.setTransition(i,u,a.from.y,m),y=e.effects.setTransition(i,u,a.to.y,y)),a.from.x!==a.to.x&&(m=e.effects.setTransition(i,l,a.from.x,m),y=e.effects.setTransition(i,l,a.to.x,y))),"content"!==f&&"both"!==f||a.from.y!==a.to.y&&(m=e.effects.setTransition(i,s,a.from.y,m),y=e.effects.setTransition(i,s,a.to.y,y)),h&&(n=e.effects.getBaseline(h,v),m.top=(v.outerHeight-m.outerHeight)*n.y+g.top,m.left=(v.outerWidth-m.outerWidth)*n.x+g.left,y.top=(v.outerHeight-y.outerHeight)*n.y+g.top,y.left=(v.outerWidth-y.outerWidth)*n.x+g.left),delete m.outerHeight,delete m.outerWidth,i.css(m),"content"!==f&&"both"!==f||(u=u.concat(["marginTop","marginBottom"]).concat(s),l=l.concat(["marginLeft","marginRight"]),i.find("*[width]").each((function(){var r=e(this),n=e.effects.scaledDimensions(r),o={height:n.height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},i={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x};a.from.y!==a.to.y&&(o=e.effects.setTransition(r,u,a.from.y,o),i=e.effects.setTransition(r,u,a.to.y,i)),a.from.x!==a.to.x&&(o=e.effects.setTransition(r,l,a.from.x,o),i=e.effects.setTransition(r,l,a.to.x,i)),p&&e.effects.saveStyle(r),r.css(o),r.animate(i,t.duration,t.easing,(function(){p&&e.effects.restoreStyle(r)}))}))),i.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=i.offset();0===y.opacity&&i.css("opacity",m.opacity),p||(i.css("position","static"===d?"relative":d).offset(t),e.effects.saveStyle(i)),r()}})}))})?n.apply(t,a):n)||(e.exports=o)}()},59676:function(e,t,r){var n,a,o;!function(i){"use strict";a=[r(19755),r(85592)],void 0===(o="function"==typeof(n=function(e){})?n.apply(t,a):n)||(e.exports=o)}()},96921:function(e,t,r){var n,a,o;a=[r(19755)],n=function(e,t){var r,n={},a=n.toString,o=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],s=e.Color=function(t,r,n,a){return new e.Color.fn.parse(t,r,n,a)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},l={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=s.support={},p=e("<p>")[0],f=e.each;function h(e){return null==e?e+"":"object"==typeof e?n[a.call(e)]||"object":typeof e}function d(e,t,r){var n=l[t.type]||{};return null==e?r||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:Math.min(n.max,Math.max(0,e)))}function g(t){var n=s(),a=n._rgba=[];return t=t.toLowerCase(),f(i,(function(e,r){var o,i=r.re.exec(t),s=i&&r.parse(i),l=r.space||"rgba";if(s)return o=n[l](s),n[u[l].cache]=o[u[l].cache],a=n._rgba=o._rgba,!1})),a.length?("0,0,0,0"===a.join()&&e.extend(a,r.transparent),n):r[t]}function v(e,t,r){return 6*(r=(r+1)%1)<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){n["[object "+t+"]"]=t.toLowerCase()})),s.fn=e.extend(s.prototype,{parse:function(n,a,o,i){if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(a),a=t);var l=this,c=h(n),p=this._rgba=[];return a!==t&&(n=[n,a,o,i],c="array"),"string"===c?this.parse(g(n)||r._default):"array"===c?(f(u.rgba.props,(function(e,t){p[t.idx]=d(n[t.idx],t)})),this):"object"===c?(f(u,n instanceof s?function(e,t){n[t.cache]&&(l[t.cache]=n[t.cache].slice())}:function(t,r){var a=r.cache;f(r.props,(function(e,t){if(!l[a]&&r.to){if("alpha"===e||null==n[e])return;l[a]=r.to(l._rgba)}l[a][t.idx]=d(n[e],t,!0)})),l[a]&&e.inArray(null,l[a].slice(0,3))<0&&(null==l[a][3]&&(l[a][3]=1),r.from&&(l._rgba=r.from(l[a])))}),this):void 0},is:function(e){var t=s(e),r=!0,n=this;return f(u,(function(e,a){var o,i=t[a.cache];return i&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,(function(e,t){if(null!=i[t.idx])return r=i[t.idx]===o[t.idx]}))),r})),r},_space:function(){var e=[],t=this;return f(u,(function(r,n){t[n.cache]&&e.push(r)})),e.pop()},transition:function(e,t){var r=s(e),n=r._space(),a=u[n],o=0===this.alpha()?s("transparent"):this,i=o[a.cache]||a.to(o._rgba),c=i.slice();return r=r[a.cache],f(a.props,(function(e,n){var a=n.idx,o=i[a],s=r[a],u=l[n.type]||{};null!==s&&(null===o?c[a]=s:(u.mod&&(s-o>u.mod/2?o+=u.mod:o-s>u.mod/2&&(o-=u.mod)),c[a]=d((s-o)*t+o,n)))})),this[n](c)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),n=r.pop(),a=s(t)._rgba;return s(e.map(r,(function(e,t){return(1-n)*a[t]+n*e})))},toRgbaString:function(){var t="rgba(",r=e.map(this._rgba,(function(e,t){return null!=e?e:t>2?1:0}));return 1===r[3]&&(r.pop(),t="rgb("),t+r.join()+")"},toHslaString:function(){var t="hsla(",r=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===r[3]&&(r.pop(),t="hsl("),t+r.join()+")"},toHexString:function(t){var r=this._rgba.slice(),n=r.pop();return t&&r.push(~~(255*n)),"#"+e.map(r,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),s.fn.parse.prototype=s.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,i=e[3],s=Math.max(n,a,o),u=Math.min(n,a,o),l=s-u,c=s+u,p=.5*c;return t=u===s?0:n===s?60*(a-o)/l+360:a===s?60*(o-n)/l+120:60*(n-a)/l+240,r=0===l?0:p<=.5?l/c:l/(2-c),[Math.round(t)%360,r,p,null==i?1:i]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,r=e[1],n=e[2],a=e[3],o=n<=.5?n*(1+r):n+r-n*r,i=2*n-o;return[Math.round(255*v(i,o,t+1/3)),Math.round(255*v(i,o,t)),Math.round(255*v(i,o,t-1/3)),a]},f(u,(function(e,r){var n=r.props,a=r.cache,i=r.to,u=r.from;s.fn[e]=function(e){if(i&&!this[a]&&(this[a]=i(this._rgba)),e===t)return this[a].slice();var r,o=h(e),l="array"===o||"object"===o?e:arguments,c=this[a].slice();return f(n,(function(e,t){var r=l["object"===o?e:t.idx];null==r&&(r=c[t.idx]),c[t.idx]=d(r,t)})),u?((r=s(u(c)))[a]=c,r):s(c)},f(n,(function(t,r){s.fn[t]||(s.fn[t]=function(n){var a,i,s,u,l=h(n);return i=(a=this[u="alpha"===t?this._hsla?"hsla":"rgba":e]())[r.idx],"undefined"===l?i:("function"===l&&(l=h(n=n.call(this,i))),null==n&&r.empty?this:("string"===l&&(s=o.exec(n))&&(n=i+parseFloat(s[2])*("+"===s[1]?1:-1)),a[r.idx]=n,this[u](a)))})}))})),s.hook=function(t){var r=t.split(" ");f(r,(function(t,r){e.cssHooks[r]={set:function(t,n){var a,o,i="";if("transparent"!==n&&("string"!==h(n)||(a=g(n)))){if(n=s(a||n),!c.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===r?t.parentNode:t;(""===i||"transparent"===i)&&o&&o.style;)try{i=e.css(o,"backgroundColor"),o=o.parentNode}catch(e){}n=n.blend(i&&"transparent"!==i?i:"_default")}n=n.toRgbaString()}try{t.style[r]=n}catch(e){}}},e.fx.step[r]=function(t){t.colorInit||(t.start=s(t.elem,r),t.end=s(t.end),t.colorInit=!0),e.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}}))},s.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],(function(r,n){t["border"+n+"Color"]=e})),t}},r=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}},void 0===(o=n.apply(t,a))||(e.exports=o)},66709:function(e,t,r){var n,a,o;!function(i){"use strict";a=[r(19755),r(87285),r(66177),r(85592),r(26891)],n=function(e){return e.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,r=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof r?r:function(e){return e.is(r)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,r){if("accept"===t)this.accept="function"==typeof r?r:function(e){return e.is(r)};else if("scope"===t){var n=e.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(r)}this._super(t,r)},_activate:function(t){var r=e.ui.ddmanager.current;this._addActiveClass(),r&&this._trigger("activate",t,this.ui(r))},_deactivate:function(t){var r=e.ui.ddmanager.current;this._removeActiveClass(),r&&this._trigger("deactivate",t,this.ui(r))},_over:function(t){var r=e.ui.ddmanager.current;r&&(r.currentItem||r.element)[0]!==this.element[0]&&this.accept.call(this.element[0],r.currentItem||r.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(r)))},_out:function(t){var r=e.ui.ddmanager.current;r&&(r.currentItem||r.element)[0]!==this.element[0]&&this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(r)))},_drop:function(t,r){var n=r||e.ui.ddmanager.current,a=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var r=e(this).droppable("instance");if(r.options.greedy&&!r.options.disabled&&r.options.scope===n.options.scope&&r.accept.call(r.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(r,{offset:r.element.offset()}),r.options.tolerance,t))return a=!0,!1})),!a&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(n)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(){function e(e,t,r){return e>=t&&e<t+r}return function(t,r,n,a){if(!r.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,i=(t.positionAbs||t.position.absolute).top+t.margins.top,s=o+t.helperProportions.width,u=i+t.helperProportions.height,l=r.offset.left,c=r.offset.top,p=l+r.proportions().width,f=c+r.proportions().height;switch(n){case"fit":return l<=o&&s<=p&&c<=i&&u<=f;case"intersect":return l<o+t.helperProportions.width/2&&s-t.helperProportions.width/2<p&&c<i+t.helperProportions.height/2&&u-t.helperProportions.height/2<f;case"pointer":return e(a.pageY,c,r.proportions().height)&&e(a.pageX,l,r.proportions().width);case"touch":return(i>=c&&i<=f||u>=c&&u<=f||i<c&&u>f)&&(o>=l&&o<=p||s>=l&&s<=p||o<l&&s>p);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,r){var n,a,o=e.ui.ddmanager.droppables[t.options.scope]||[],i=r?r.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||t&&!o[n].accept.call(o[n].element[0],t.currentItem||t.element))){for(a=0;a<s.length;a++)if(s[a]===o[n].element[0]){o[n].proportions().height=0;continue e}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===i&&o[n]._activate.call(o[n],r),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(t,r){var n=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,r)&&(n=this._drop.call(this,r)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,r)))})),n},dragStart:function(t,r){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,r)}))},drag:function(t,r){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,r),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,a,o,i=e.ui.intersect(t,this,this.options.tolerance,r),s=!i&&this.isover?"isout":i&&!this.isover?"isover":null;s&&(this.options.greedy&&(a=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===a}))).length&&((n=e(o[0]).droppable("instance")).greedyChild="isover"===s)),n&&"isover"===s&&(n.isover=!1,n.isout=!0,n._out.call(n,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),n&&"isout"===s&&(n.isout=!1,n.isover=!0,n._over.call(n,r)))}}))},dragStop:function(t,r){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,r)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable},void 0===(o=n.apply(t,a))||(e.exports=o)}()},91272:function(e,t,r){!function(e){"use strict";var t,n;String.prototype.codePointAt||(t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}(),n=function(e){if(null==this)throw TypeError();var t=String(this),r=t.length,n=e?Number(e):0;if(n!=n&&(n=0),!(n<0||r<=n)){var a,o=t.charCodeAt(n);return 55296<=o&&o<=56319&&n+1<r&&56320<=(a=t.charCodeAt(n+1))&&a<=57343?1024*(o-55296)+a-56320+65536:o}},t?t(String.prototype,"codePointAt",{value:n,configurable:!0,writable:!0}):String.prototype.codePointAt=n);function a(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function o(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new a,this.dtree=new a}var i=new a,s=new a,u=new Uint8Array(30),l=new Uint16Array(30),c=new Uint8Array(30),p=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=new a,d=new Uint8Array(320);function g(e,t,r,n){var a,o;for(a=0;a<r;++a)e[a]=0;for(a=0;a<30-r;++a)e[a+r]=a/r|0;for(o=n,a=0;a<30;++a)t[a]=o,o+=1<<e[a]}var v=new Uint16Array(16);function m(e,t,r,n){var a,o;for(a=0;a<16;++a)e.table[a]=0;for(a=0;a<n;++a)e.table[t[r+a]]++;for(a=o=e.table[0]=0;a<16;++a)v[a]=o,o+=e.table[a];for(a=0;a<n;++a)t[r+a]&&(e.trans[v[t[r+a]]++]=a)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function b(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,n=0,a=0,o=e.tag;n=2*n+(1&o),o>>>=1,++a,r+=t.table[a],0<=(n-=t.table[a]););return e.tag=o,e.bitcount-=a,t.trans[r+n]}function S(e,t,r){var n,a,o,i,s,u;for(n=b(e,5,257),a=b(e,5,1),o=b(e,4,4),i=0;i<19;++i)d[i]=0;for(i=0;i<o;++i){var l=b(e,3,0);d[f[i]]=l}for(m(h,d,0,19),s=0;s<n+a;){var c=x(e,h);switch(c){case 16:var p=d[s-1];for(u=b(e,2,3);u;--u)d[s++]=p;break;case 17:for(u=b(e,3,3);u;--u)d[s++]=0;break;case 18:for(u=b(e,7,11);u;--u)d[s++]=0;break;default:d[s++]=c}}m(t,d,0,n),m(r,d,n,a)}function T(e,t,r){for(;;){var n,a,o,i,s=x(e,t);if(256===s)return 0;if(s<256)e.dest[e.destLen++]=s;else for(n=b(e,u[s-=257],l[s]),a=x(e,r),i=o=e.destLen-b(e,c[a],p[a]);i<o+n;++i)e.dest[e.destLen++]=e.dest[i]}}function w(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(i,s),g(u,l,4,3),g(c,p,2,1),u[28]=0,l[28]=258;var k=function(e,t){var r,n,a=new o(e,t);do{switch(r=y(a),b(a,2,0)){case 0:n=w(a);break;case 1:n=T(a,i,s);break;case 2:S(a,a.ltree,a.dtree),n=T(a,a.ltree,a.dtree);break;default:n=-3}if(0!==n)throw new Error("Data error")}while(!r);return a.destLen<a.dest.length?"function"==typeof a.dest.slice?a.dest.slice(0,a.destLen):a.dest.subarray(0,a.destLen):a.dest};function U(e,t,r,n,a){return Math.pow(1-a,3)*e+3*Math.pow(1-a,2)*a*t+3*(1-a)*Math.pow(a,2)*r+Math.pow(a,3)*n}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function O(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}function E(e){throw new Error(e)}function R(e,t){e||E(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){"number"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,n,a,o,i,s){var u=this,l=[e,t],c=[r,n],p=[a,o],f=[i,s];this.addPoint(e,t),this.addPoint(i,s);for(var h=0;h<=1;h++){var d=6*l[h]-12*c[h]+6*p[h],g=-3*l[h]+9*c[h]-9*p[h]+3*f[h],v=3*c[h]-3*l[h];if(0!==g){var m=Math.pow(d,2)-4*v*g;if(!(m<0)){var y=(-d+Math.sqrt(m))/(2*g);0<y&&y<1&&(0===h&&u.addX(U(l[h],c[h],p[h],f[h],y)),1===h&&u.addY(U(l[h],c[h],p[h],f[h],y)));var b=(-d-Math.sqrt(m))/(2*g);0<b&&b<1&&(0===h&&u.addX(U(l[h],c[h],p[h],f[h],b)),1===h&&u.addY(U(l[h],c[h],p[h],f[h],b)))}}else{if(0===d)continue;var x=-v/d;0<x&&x<1&&(0===h&&u.addX(U(l[h],c[h],p[h],f[h],x)),1===h&&u.addY(U(l[h],c[h],p[h],f[h],x)))}}},C.prototype.addQuad=function(e,t,r,n,a,o){var i=e+2/3*(r-e),s=t+2/3*(n-t),u=i+1/3*(a-e),l=s+1/3*(o-t);this.addBezier(e,t,i,s,u,l,a,o)},O.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},O.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},O.prototype.curveTo=O.prototype.bezierCurveTo=function(e,t,r,n,a,o){this.commands.push({type:"C",x1:e,y1:t,x2:r,y2:n,x:a,y:o})},O.prototype.quadTo=O.prototype.quadraticCurveTo=function(e,t,r,n){this.commands.push({type:"Q",x1:e,y1:t,x:r,y:n})},O.prototype.close=O.prototype.closePath=function(){this.commands.push({type:"Z"})},O.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},O.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,n=0,a=0,o=0;o<this.commands.length;o++){var i=this.commands[o];switch(i.type){case"M":e.addPoint(i.x,i.y),t=n=i.x,r=a=i.y;break;case"L":e.addPoint(i.x,i.y),n=i.x,a=i.y;break;case"Q":e.addQuad(n,a,i.x1,i.y1,i.x,i.y),n=i.x,a=i.y;break;case"C":e.addBezier(n,a,i.x1,i.y1,i.x2,i.y2,i.x,i.y),n=i.x,a=i.y;break;case"Z":n=t,a=r;break;default:throw new Error("Unexpected path command "+i.type)}}return e.isEmpty()&&e.addPoint(0,0),e},O.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];"M"===r.type?e.moveTo(r.x,r.y):"L"===r.type?e.lineTo(r.x,r.y):"C"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):"Q"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):"Z"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},O.prototype.toPathData=function(e){function t(){for(var t,r=arguments,n="",a=0;a<arguments.length;a+=1){var o=r[a];0<=o&&0<a&&(n+=" "),n+=(t=o,Math.round(t)===t?""+Math.round(t):t.toFixed(e))}return n}e=void 0!==e?e:2;for(var r="",n=0;n<this.commands.length;n+=1){var a=this.commands[n];"M"===a.type?r+="M"+t(a.x,a.y):"L"===a.type?r+="L"+t(a.x,a.y):"C"===a.type?r+="C"+t(a.x1,a.y1,a.x2,a.y2,a.x,a.y):"Q"===a.type?r+="Q"+t(a.x1,a.y1,a.x,a.y):"Z"===a.type&&(r+="Z")}return r},O.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&&"black"!==this.fill&&(null===this.fill?t+=' fill="none"':t+=' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+"/>"},O.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),r};var A={fail:E,argument:R,assert:R},L=2147483648,D={},I={},M={};function P(e){return function(){return e}}I.BYTE=function(e){return A.argument(0<=e&&e<=255,"Byte value should be between 0 and 255."),[e]},M.BYTE=P(1),I.CHAR=function(e){return[e.charCodeAt(0)]},M.CHAR=P(1),I.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},M.CHARARRAY=function(e){return e.length},I.USHORT=function(e){return[e>>8&255,255&e]},M.USHORT=P(2),I.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},M.SHORT=P(2),I.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},M.UINT24=P(3),I.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},M.ULONG=P(4),I.LONG=function(e){return L<=e&&(e=-(2*L-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},M.LONG=P(4),I.FIXED=I.ULONG,M.FIXED=M.ULONG,I.FWORD=I.SHORT,M.FWORD=M.SHORT,I.UFWORD=I.USHORT,M.UFWORD=M.USHORT,I.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},M.LONGDATETIME=P(8),I.TAG=function(e){return A.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},M.TAG=P(4),I.Card8=I.BYTE,M.Card8=M.BYTE,I.Card16=I.USHORT,M.Card16=M.USHORT,I.OffSize=I.BYTE,M.OffSize=M.BYTE,I.SID=I.USHORT,M.SID=M.USHORT,I.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?I.NUMBER16(e):I.NUMBER32(e)},M.NUMBER=function(e){return I.NUMBER(e).length},I.NUMBER16=function(e){return[28,e>>8&255,255&e]},M.NUMBER16=P(3),I.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},M.NUMBER32=P(5),I.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}for(var a="",o=0,i=t.length;o<i;o+=1){var s=t[o];a+="e"===s?"-"===t[++o]?"c":"b":"."===s?"a":"-"===s?"e":s}for(var u=[30],l=0,c=(a+=1&a.length?"f":"ff").length;l<c;l+=2)u.push(parseInt(a.substr(l,2),16));return u},M.REAL=function(e){return I.REAL(e).length},I.NAME=I.CHARARRAY,M.NAME=M.CHARARRAY,I.STRING=I.CHARARRAY,M.STRING=M.CHARARRAY,D.UTF8=function(e,t,r){for(var n=[],a=r,o=0;o<a;o++,t+=1)n[o]=e.getUint8(t);return String.fromCharCode.apply(null,n)},D.UTF16=function(e,t,r){for(var n=[],a=r/2,o=0;o<a;o++,t+=2)n[o]=e.getUint16(t);return String.fromCharCode.apply(null,n)},I.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t[t.length]=n>>8&255,t[t.length]=255&n}return t},M.UTF16=function(e){return 2*e.length};var B={"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":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};D.MACSTRING=function(e,t,r,n){var a=B[n];if(void 0!==a){for(var o="",i=0;i<r;i++){var s=e.getUint8(t+i);o+=s<=127?String.fromCharCode(s):a[127&s]}return o}};var F,N="function"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function _(e,t,r){for(var n=0,a=e.length;t<a&&n<64&&0===e[t];)++t,++n;return r.push(128|n-1),t}function H(e,t,r){for(var n=0,a=e.length,o=t;o<a&&n<64;){var i=e[o];if(!G(i))break;if(0===i&&o+1<a&&0===e[o+1])break;++o,++n}r.push(n-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var n=0,a=e.length,o=t;o<a&&n<64;){var i=e[o];if(0===i)break;if(G(i)&&o+1<a&&G(e[o+1]))break;++o,++n}r.push(64|n-1);for(var s=t;s<o;++s){var u=e[s];r.push(u+65536>>8&255,u+256&255)}return o}I.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},B)F[t]=new String(t);var r=F[e];if(void 0!==r){if(N){var n=N.get(r);if(void 0!==n)return n}var a=B[e];if(void 0!==a){for(var o={},i=0;i<a.length;i++)o[a.charCodeAt(i)]=i+128;return N&&N.set(r,o),o}}}(t);if(void 0!==r){for(var n=[],a=0;a<e.length;a++){var o=e.charCodeAt(a);if(128<=o&&void 0===(o=r[o]))return;n[a]=o}return n}},M.MACSTRING=function(e,t){var r=I.MACSTRING(e,t);return void 0!==r?r.length:0},I.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var n=e[t];t=0===n?_(e,t,r):-128<=n&&n<=127?H(e,t,r):z(e,t,r)}return r},I.INDEX=function(e){for(var t=1,r=[t],n=[],a=0;a<e.length;a+=1){var o=I.OBJECT(e[a]);Array.prototype.push.apply(n,o),t+=o.length,r.push(t)}if(0===n.length)return[0,0];for(var i=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,u=[void 0,I.BYTE,I.USHORT,I.UINT24,I.ULONG][s],l=0;l<r.length;l+=1){var c=u(r[l]);Array.prototype.push.apply(i,c)}return Array.prototype.concat(I.Card16(e.length),I.OffSize(s),i,n)},M.INDEX=function(e){return I.INDEX(e).length},I.DICT=function(e){for(var t=[],r=Object.keys(e),n=r.length,a=0;a<n;a+=1){var o=parseInt(r[a],0),i=e[o];t=(t=t.concat(I.OPERAND(i.value,i.type))).concat(I.OPERATOR(o))}return t},M.DICT=function(e){return I.DICT(e).length},I.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},I.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var n=0;n<t.length;n+=1)A.argument(e.length===t.length,"Not enough arguments given for type"+t),r=r.concat(I.OPERAND(e[n],t[n]));else if("SID"===t)r=r.concat(I.NUMBER(e));else if("offset"===t)r=r.concat(I.NUMBER32(e));else if("number"===t)r=r.concat(I.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);r=r.concat(I.REAL(e))}return r},I.OP=I.BYTE,M.OP=M.BYTE;var W="function"==typeof WeakMap&&new WeakMap;function q(e,t,r){for(var n=0;n<t.length;n+=1){var a=t[n];this[a.name]=a.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),i=0;i<o.length;i+=1){var s=o[i],u=r[s];void 0!==this[s]&&(this[s]=u)}}function j(e,t,r){void 0===r&&(r=t.length);var n=new Array(t.length+1);n[0]={name:e+"Count",type:"USHORT",value:r};for(var a=0;a<t.length;a++)n[a+1]={name:e+a,type:"USHORT",value:t[a]};return n}function V(e,t,r){var n=t.length,a=new Array(n+1);a[0]={name:e+"Count",type:"USHORT",value:n};for(var o=0;o<n;o++)a[o+1]={name:e+o,type:"TABLE",value:r(t[o],o)};return a}function X(e,t,r){var n=t.length,a=[];a[0]={name:e+"Count",type:"USHORT",value:n};for(var o=0;o<n;o++)a=a.concat(r(t[o],o));return a}function Y(e){1===e.format?q.call(this,"coverageTable",[{name:"coverageFormat",type:"USHORT",value:1}].concat(j("glyph",e.glyphs))):A.assert(!1,"Can't create coverage table format 2 yet.")}function Z(e){q.call(this,"scriptListTable",X("scriptRecord",e,(function(e,t){var r=e.script,n=r.defaultLangSys;return A.assert(!!n,"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 q("scriptTable",[{name:"defaultLangSys",type:"TABLE",value:new q("defaultLangSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:n.reqFeatureIndex}].concat(j("featureIndex",n.featureIndexes)))}].concat(X("langSys",r.langSysRecords,(function(e,t){var r=e.langSys;return[{name:"langSysTag"+t,type:"TAG",value:e.tag},{name:"langSys"+t,type:"TABLE",value:new q("langSys",[{name:"lookupOrder",type:"USHORT",value:0},{name:"reqFeatureIndex",type:"USHORT",value:r.reqFeatureIndex}].concat(j("featureIndex",r.featureIndexes)))}]}))))}]})))}function Q(e){q.call(this,"featureListTable",X("featureRecord",e,(function(e,t){var r=e.feature;return[{name:"featureTag"+t,type:"TAG",value:e.tag},{name:"feature"+t,type:"TABLE",value:new q("featureTable",[{name:"featureParams",type:"USHORT",value:r.featureParams}].concat(j("lookupListIndex",r.lookupListIndexes)))}]})))}function K(e,t){q.call(this,"lookupListTable",V("lookup",e,(function(e){var r=t[e.lookupType];return A.assert(!!r,"Unable to write GSUB lookup type "+e.lookupType+" tables."),new q("lookupTable",[{name:"lookupType",type:"USHORT",value:e.lookupType},{name:"lookupFlag",type:"USHORT",value:e.lookupFlag}].concat(V("subtable",e.subtables,r)))})))}I.CHARSTRING=function(e){if(W){var t=W.get(e);if(void 0!==t)return t}for(var r=[],n=e.length,a=0;a<n;a+=1){var o=e[a];r=r.concat(I[o.type](o.value))}return W&&W.set(e,r),r},M.CHARSTRING=function(e){return I.CHARSTRING(e).length},I.OBJECT=function(e){var t=I[e.type];return A.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},M.OBJECT=function(e){var t=M[e.type];return A.argument(void 0!==t,"No sizeOf function for type "+e.type),t(e.value)},I.TABLE=function(e){for(var t=[],r=e.fields.length,n=[],a=[],o=0;o<r;o+=1){var i=e.fields[o],s=I[i.type];A.argument(void 0!==s,"No encoding function for field type "+i.type+" ("+i.name+")");var u=e[i.name];void 0===u&&(u=i.value);var l=s(u);"TABLE"===i.type?(a.push(t.length),t=t.concat([0,0]),n.push(l)):t=t.concat(l)}for(var c=0;c<n.length;c+=1){var p=a[c],f=t.length;A.argument(f<65536,"Table "+e.tableName+" too big."),t[p]=f>>8,t[p+1]=255&f,t=t.concat(n[c])}return t},M.TABLE=function(e){for(var t=0,r=e.fields.length,n=0;n<r;n+=1){var a=e.fields[n],o=M[a.type];A.argument(void 0!==o,"No sizeOf function for field type "+a.type+" ("+a.name+")");var i=e[a.name];void 0===i&&(i=a.value),t+=o(i),"TABLE"===a.type&&(t+=2)}return t},I.RECORD=I.TABLE,M.RECORD=M.TABLE,I.LITERAL=function(e){return e},M.LITERAL=function(e){return e.length},q.prototype.encode=function(){return I.TABLE(this)},q.prototype.sizeOf=function(){return M.TABLE(this)};var J={Table:q,Record:q,Coverage:(Y.prototype=Object.create(q.prototype)).constructor=Y,ScriptList:(Z.prototype=Object.create(q.prototype)).constructor=Z,FeatureList:(Q.prototype=Object.create(q.prototype)).constructor=Q,LookupList:(K.prototype=Object.create(q.prototype)).constructor=K,ushortList:j,tableList:V,recordList:X};function $(e,t){return e.getUint8(t)}function ee(e,t){return e.getUint16(t,!1)}function te(e,t){return e.getUint32(t,!1)}function re(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function ae(e,t){this.data=e,this.offset=t,this.relativeOffset=0}ae.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},ae.prototype.parseCard8=ae.prototype.parseByte,ae.prototype.parseCard16=ae.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseSID=ae.prototype.parseUShort,ae.prototype.parseOffset16=ae.prototype.parseUShort,ae.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},ae.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},ae.prototype.parseOffset32=ae.prototype.parseULong=function(){var e=te(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseFixed=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},ae.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,n="";this.relativeOffset+=e;for(var a=0;a<e;a++)n+=String.fromCharCode(t.getUint8(r+a));return n},ae.prototype.parseTag=function(){return this.parseString(4)},ae.prototype.parseLongDateTime=function(){var e=te(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},ae.prototype.parseVersion=function(e){var t=ee(this.data,this.offset+this.relativeOffset),r=ee(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},ae.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},ae.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint32(n),n+=4;return this.relativeOffset+=4*e,t},ae.prototype.parseOffset16List=ae.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint16(n),n+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getInt16(n),n+=2;return this.relativeOffset+=2*e,t},ae.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,n=this.offset+this.relativeOffset,a=0;a<e;a++)t[a]=r.getUint8(n++);return this.relativeOffset+=e,t},ae.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},ae.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=0;n<e;n++)r[n]=t.call(this);return r},ae.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),n=Object.keys(t),a=0;a<e;a++){for(var o={},i=0;i<n.length;i++){var s=n[i],u=t[s];o[s]=u.call(this)}r[a]=o}return r},ae.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),n=Object.keys(t),a=0;a<e;a++){for(var o={},i=0;i<n.length;i++){var s=n[i],u=t[s];o[s]=u.call(this)}r[a]=o}return r},ae.prototype.parseStruct=function(e){if("function"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n],o=e[a];r[a]=o.call(this)}return r},ae.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},ae.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),n=0;n<t;n++)r[n]=this.parseValueRecord(e);return r},ae.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new ae(this.data,this.offset+t).parseStruct(e)},ae.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),n=r.length,a=this.relativeOffset,o=new Array(n),i=0;i<n;i++){var s=r[i];if(0!==s)if(t.relativeOffset=s,e){for(var u=t.parseOffset16List(),l=new Array(u.length),c=0;c<u.length;c++)t.relativeOffset=s+u[c],l[c]=e.call(t);o[i]=l}else o[i]=t.parseUShortList();else o[i]=void 0}return this.relativeOffset=a,o},ae.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error("0x"+e.toString(16)+": Coverage format must be 1 or 2.");for(var n=new Array(r),a=0;a<r;a++)n[a]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:n}},ae.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:ae.uShort,end:ae.uShort,classId:ae.uShort})};throw new Error("0x"+e.toString(16)+": ClassDef format must be 1 or 2.")},ae.list=function(e,t){return function(){return this.parseList(e,t)}},ae.list32=function(e,t){return function(){return this.parseList32(e,t)}},ae.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},ae.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},ae.pointer=function(e){return function(){return this.parsePointer(e)}},ae.pointer32=function(e){return function(){return this.parsePointer32(e)}},ae.tag=ae.prototype.parseTag,ae.byte=ae.prototype.parseByte,ae.uShort=ae.offset16=ae.prototype.parseUShort,ae.uShortList=ae.prototype.parseUShortList,ae.uLong=ae.offset32=ae.prototype.parseULong,ae.uLongList=ae.prototype.parseULongList,ae.struct=ae.prototype.parseStruct,ae.coverage=ae.prototype.parseCoverage,ae.classDef=ae.prototype.parseClassDef;var oe={reserved:ae.uShort,reqFeatureIndex:ae.uShort,featureIndexes:ae.uShortList};ae.prototype.parseScriptList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,script:ae.pointer({defaultLangSys:ae.pointer(oe),langSysRecords:ae.recordList({tag:ae.tag,langSys:ae.pointer(oe)})})}))||[]},ae.prototype.parseFeatureList=function(){return this.parsePointer(ae.recordList({tag:ae.tag,feature:ae.pointer({featureParams:ae.offset16,lookupListIndexes:ae.uShortList})}))||[]},ae.prototype.parseLookupList=function(e){return this.parsePointer(ae.list(ae.pointer((function(){var t=this.parseUShort();A.argument(1<=t&&t<=9,"GPOS/GSUB lookup type "+t+" unknown.");var r=this.parseUShort(),n=16&r;return{lookupType:t,lookupFlag:r,subtables:this.parseList(ae.pointer(e[t])),markFilteringSet:n?this.parseUShort():void 0}}))))||[]},ae.prototype.parseFeatureVariationsList=function(){return this.parsePointer32((function(){var e=this.parseUShort(),t=this.parseUShort();return A.argument(1===e&&t<1,"GPOS/GSUB feature variations table unknown."),this.parseRecordList32({conditionSetOffset:ae.offset32,featureTableSubstitutionOffset:ae.offset32})}))||[]};var ie={getByte:$,getCard8:$,getUShort:ee,getCard16:ee,getShort:function(e,t){return e.getInt16(t,!1)},getULong:te,getFixed:re,getTag:function(e,t){for(var r="",n=t;n<t+4;n+=1)r+=String.fromCharCode(e.getInt8(n));return r},getOffset:function(e,t,r){for(var n=0,a=0;a<r;a+=1)n<<=8,n+=e.getUint8(t+a);return n},getBytes:function(e,t,r){for(var n=[],a=t;a<r;a+=1)n.push(e.getUint8(a));return n},bytesToString:function(e){for(var t="",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:ae},se=function(e,t){var r={};r.version=ie.getUShort(e,t),A.argument(0===r.version,"cmap table version should be 0."),r.numTables=ie.getUShort(e,t+2);for(var n=-1,a=r.numTables-1;0<=a;a-=1){var o=ie.getUShort(e,t+4+8*a),i=ie.getUShort(e,t+4+8*a+2);if(3===o&&(0===i||1===i||10===i)||0===o&&(0===i||1===i||2===i||3===i||4===i)){n=ie.getULong(e,t+4+8*a+4);break}}if(-1===n)throw new Error("No valid cmap sub-tables found.");var s=new ie.Parser(e,t+n);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var n=0;n<r;n+=1)for(var a=t.parseULong(),o=t.parseULong(),i=t.parseULong(),s=a;s<=o;s+=1)e.glyphIndexMap[s]=i,i++}(r,s);else{if(4!==r.format)throw new Error("Only format 4 and 12 cmap tables are supported (found format "+r.format+").");!function(e,t,r,n,a){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip("uShort",3),e.glyphIndexMap={};for(var i=new ie.Parser(r,n+a+14),s=new ie.Parser(r,n+a+16+2*o),u=new ie.Parser(r,n+a+16+4*o),l=new ie.Parser(r,n+a+16+6*o),c=n+a+16+8*o,p=0;p<o-1;p+=1)for(var f=void 0,h=i.parseUShort(),d=s.parseUShort(),g=u.parseShort(),v=l.parseUShort(),m=d;m<=h;m+=1)0!==v?(c=l.offset+l.relativeOffset-2,c+=v,c+=2*(m-d),0!==(f=ie.getUShort(r,c))&&(f=f+g&65535)):f=m+g&65535,e.glyphIndexMap[m]=f}(r,s,e,t,n)}return r},ue=function(e){var t,r=!0;for(t=e.length-1;0<t;t-=1)if(65535<e.get(t).unicode){console.log("Adding CMAP format 12 (needed!)"),r=!1;break}var n=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:r?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:r?12:20}];r||(n=n.concat([{name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}])),n=n.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 a,o,i,s=new J.Table("cmap",n);for(s.segments=[],t=0;t<e.length;t+=1){for(var u=e.get(t),l=0;l<u.unicodes.length;l+=1)a=s,o=u.unicodes[l],i=t,a.segments.push({end:o,start:o,delta:-(o-i),offset:0,glyphIndex:i});s.segments=s.segments.sort((function(e,t){return e.start-t.start}))}s.segments.push({end:65535,start:65535,delta:1,offset:0});var c=s.segments.length,p=0,f=[],h=[],d=[],g=[],v=[],m=[];for(t=0;t<c;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:"end_"+t,type:"USHORT",value:y.end}),h=h.concat({name:"start_"+t,type:"USHORT",value:y.start}),d=d.concat({name:"idDelta_"+t,type:"SHORT",value:y.delta}),g=g.concat({name:"idRangeOffset_"+t,type:"USHORT",value:y.offset}),void 0!==y.glyphId&&(v=v.concat({name:"glyph_"+t,type:"USHORT",value:y.glyphId}))):p+=1,r||void 0===y.glyphIndex||(m=(m=(m=m.concat({name:"cmap12Start_"+t,type:"ULONG",value:y.start})).concat({name:"cmap12End_"+t,type:"ULONG",value:y.end})).concat({name:"cmap12Glyph_"+t,type:"ULONG",value:y.glyphIndex}))}if(s.segCountX2=2*(c-p),s.searchRange=2*Math.pow(2,Math.floor(Math.log(c-p)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:"reservedPad",type:"USHORT",value:0}),s.fields=s.fields.concat(h),s.fields=s.fields.concat(d),s.fields=s.fields.concat(g),s.fields=s.fields.concat(v),s.cmap4Length=14+2*f.length+2+2*h.length+2*d.length+2*g.length+2*v.length,!r){var b=16+4*m.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:"cmap12Format",type:"USHORT",value:12},{name:"cmap12Reserved",type:"USHORT",value:0},{name:"cmap12Length",type:"ULONG",value:b},{name:"cmap12Language",type:"ULONG",value:0},{name:"cmap12nGroups",type:"ULONG",value:m.length/3}]),s.fields=s.fields.concat(m)}return s},le=[".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"],ce=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],pe=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],fe=[".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"];function he(e){this.font=e}function de(e){this.cmap=e}function ge(e,t){this.encoding=e,this.charset=t}function ve(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;default:this.names=[]}}he.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var n=0;n<r.length;n+=1)for(var a=r.get(n),o=0;o<a.unicodes.length;o+=1)if(a.unicodes[o]===t)return n;return null},de.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},ge.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ve.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ve.prototype.glyphIndexToName=function(e){return this.names[e]};var me=function(e,t,r,n,a){e.beginPath(),e.moveTo(t,r),e.lineTo(n,a),e.stroke()};function ye(e){this.bindConstructorValues(e)}function be(e,t,r){Object.defineProperty(e,t,{get:function(){return e.path,e[r]},set:function(t){e[r]=t},enumerable:!0,configurable:!0})}function xe(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[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",(t=e.path,r=t||new O,{configurable:!0,get:function(){return"function"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,n,a){var o,i;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72,n||(n={});var s=n.xScale,u=n.yScale;if(n.hinting&&a&&a.hinting&&(i=this.path&&a.hinting.exec(this,r)),i)o=a.hinting.getCommands(i),e=Math.round(e),t=Math.round(t),s=u=1;else{o=this.path.commands;var l=1/this.path.unitsPerEm*r;void 0===s&&(s=l),void 0===u&&(u=l)}for(var c=new O,p=0;p<o.length;p+=1){var f=o[p];"M"===f.type?c.moveTo(e+f.x*s,t+-f.y*u):"L"===f.type?c.lineTo(e+f.x*s,t+-f.y*u):"Q"===f.type?c.quadraticCurveTo(e+f.x1*s,t+-f.y1*u,e+f.x*s,t+-f.y*u):"C"===f.type?c.curveTo(e+f.x1*s,t+-f.y1*u,e+f.x2*s,t+-f.y2*u,e+f.x*s,t+-f.y*u):"Z"===f.type&&c.closePath()}return c},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var n=this.points[r];t.push(n),n.lastPointOfContour&&(e.push(t),t=[])}return A.argument(0===t.length,"There are still points left in the current contour."),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],n=0;n<e.length;n+=1){var a=e[n];"Z"!==a.type&&(t.push(a.x),r.push(a.y)),"Q"!==a.type&&"C"!==a.type||(t.push(a.x1),r.push(a.y1)),"C"===a.type&&(t.push(a.x2),r.push(a.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,n,a){this.getPath(t,r,n,a).draw(e)},ye.prototype.drawPoints=function(e,t,r,n){function a(t,r,n,a){var o=2*Math.PI;e.beginPath();for(var i=0;i<t.length;i+=1)e.moveTo(r+t[i].x*a,n+t[i].y*a),e.arc(r+t[i].x*a,n+t[i].y*a,2,0,o,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:24;for(var o=1/this.path.unitsPerEm*n,i=[],s=[],u=this.path,l=0;l<u.commands.length;l+=1){var c=u.commands[l];void 0!==c.x&&i.push({x:c.x,y:-c.y}),void 0!==c.x1&&s.push({x:c.x1,y:-c.y1}),void 0!==c.x2&&s.push({x:c.x2,y:-c.y2})}e.fillStyle="blue",a(i,t,r,o),e.fillStyle="red",a(s,t,r,o)},ye.prototype.drawMetrics=function(e,t,r,n){var a;t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:24,a=1/this.path.unitsPerEm*n,e.lineWidth=1,e.strokeStyle="black",me(e,t,-1e4,t,1e4),me(e,-1e4,r,1e4,r);var o=this.xMin||0,i=this.yMin||0,s=this.xMax||0,u=this.yMax||0,l=this.advanceWidth||0;e.strokeStyle="blue",me(e,t+o*a,-1e4,t+o*a,1e4),me(e,t+s*a,-1e4,t+s*a,1e4),me(e,-1e4,r+-i*a,1e4,r+-i*a),me(e,-1e4,r+-u*a,1e4,r+-u*a),e.strokeStyle="green",me(e,t+l*a,-1e4,t+l*a,1e4)},xe.prototype.get=function(e){return"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},xe.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var Se={GlyphSet:xe,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(e,t,r,n,a,o){return function(){var i=new ye({index:t,font:e});return i.path=function(){r(i,n,a);var t=o(e.glyphs,i);return t.unitsPerEm=e.unitsPerEm,t},be(i,"xMin","_xMin"),be(i,"xMax","_xMax"),be(i,"yMin","_yMin"),be(i,"yMax","_yMax"),i}},cffGlyphLoader:function(e,t,r,n){return function(){var a=new ye({index:t,font:e});return a.path=function(){var t=r(e,a,n);return t.unitsPerEm=e.unitsPerEm,t},a}}};function Te(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!Te(e[r],t[r]))return!1;return!0}return!1}function we(e){return e.length<1240?107:e.length<33900?1131:32768}function ke(e,t,r){var n,a,o=[],i=[],s=ie.getCard16(e,t);if(0!==s){var u=ie.getByte(e,t+2);n=t+(s+1)*u+2;for(var l=t+3,c=0;c<s+1;c+=1)o.push(ie.getOffset(e,l,u)),l+=u;a=n+o[s]}else a=t+2;for(var p=0;p<o.length-1;p+=1){var f=ie.getBytes(e,n+o[p],n+o[p+1]);r&&(f=r(f)),i.push(f)}return{objects:i,startOffset:t,endOffset:a}}function Ue(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t="",r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var n=e.parseByte(),a=n>>4,o=15&n;if(15===a)break;if(t+=r[a],15===o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function Ce(e,t,r){t=void 0!==t?t:0;var n=new ie.Parser(e,t),a=[],o=[];for(r=void 0!==r?r:e.length;n.relativeOffset<r;){var i=n.parseByte();i<=21?(12===i&&(i=1200+n.parseByte()),a.push([i,o]),o=[]):o.push(Ue(n,i))}return function(e){for(var t={},r=0;r<e.length;r+=1){var n,a=e[r][0],o=e[r][1];if(n=1===o.length?o[0]:o,t.hasOwnProperty(a)&&!isNaN(t[a]))throw new Error("Object "+t+" already has key "+a);t[a]=n}return t}(a)}function Oe(e,t){return t<=390?le[t]:e[t-391]}function Ee(e,t,r){for(var n,a={},o=0;o<t.length;o+=1){var i=t[o];if(Array.isArray(i.type)){var s=[];s.length=i.type.length;for(var u=0;u<i.type.length;u++)void 0===(n=void 0!==e[i.op]?e[i.op][u]:void 0)&&(n=void 0!==i.value&&void 0!==i.value[u]?i.value[u]:null),"SID"===i.type[u]&&(n=Oe(r,n)),s[u]=n;a[i.name]=s}else void 0===(n=e[i.op])&&(n=void 0!==i.value?i.value:null),"SID"===i.type&&(n=Oe(r,n)),a[i.name]=n}return a}var Re=[{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"}],Ae=[{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 Le(e,t,r,n){return Ee(Ce(e,t,r),Ae,n)}function De(e,t,r,n){for(var a,o,i=[],s=0;s<r.length;s+=1){var u=(o=n,Ee(Ce(a=new DataView(new Uint8Array(r[s]).buffer),0,a.byteLength),Re,o));u._subrs=[],u._subrsBias=0;var l=u.private[0],c=u.private[1];if(0!==l&&0!==c){var p=Le(e,c+t,l,n);if(u._defaultWidthX=p.defaultWidthX,u._nominalWidthX=p.nominalWidthX,0!==p.subrs){var f=ke(e,c+p.subrs+t);u._subrs=f.objects,u._subrsBias=we(u._subrs)}u._privateDict=p}i.push(u)}return i}function Ie(e,t,r){var n,a,o,i,s,u,l,c,p=new O,f=[],h=0,d=!1,g=!1,v=0,m=0;if(e.isCIDFont){var y=e.tables.cff.topDict._fdSelect[t.index],b=e.tables.cff.topDict._fdArray[y];s=b._subrs,u=b._subrsBias,l=b._defaultWidthX,c=b._nominalWidthX}else s=e.tables.cff.topDict._subrs,u=e.tables.cff.topDict._subrsBias,l=e.tables.cff.topDict._defaultWidthX,c=e.tables.cff.topDict._nominalWidthX;var x=l;function S(e,t){g&&p.closePath(),p.moveTo(e,t),g=!0}function T(){f.length%2!=0&&!d&&(x=f.shift()+c),h+=f.length>>1,f.length=0,d=!0}return function r(l){for(var y,b,w,k,U,C,O,E,R,A,L,D,I=0;I<l.length;){var M=l[I];switch(I+=1,M){case 1:case 3:case 18:case 23:T();break;case 4:1<f.length&&!d&&(x=f.shift()+c,d=!0),m+=f.pop(),S(v,m);break;case 5:for(;0<f.length;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 6:for(;0<f.length&&(v+=f.shift(),p.lineTo(v,m),0!==f.length);)m+=f.shift(),p.lineTo(v,m);break;case 7:for(;0<f.length&&(m+=f.shift(),p.lineTo(v,m),0!==f.length);)v+=f.shift(),p.lineTo(v,m);break;case 8:for(;0<f.length;)n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i+f.shift(),p.curveTo(n,a,o,i,v,m);break;case 10:U=f.pop()+u,(C=s[U])&&r(C);break;case 11:return;case 12:switch(M=l[I],I+=1,M){case 35:n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),O=o+f.shift(),E=i+f.shift(),R=O+f.shift(),A=E+f.shift(),L=R+f.shift(),D=A+f.shift(),v=L+f.shift(),m=D+f.shift(),f.shift(),p.curveTo(n,a,o,i,O,E),p.curveTo(R,A,L,D,v,m);break;case 34:n=v+f.shift(),a=m,o=n+f.shift(),i=a+f.shift(),O=o+f.shift(),E=i,R=O+f.shift(),A=i,L=R+f.shift(),D=m,v=L+f.shift(),p.curveTo(n,a,o,i,O,E),p.curveTo(R,A,L,D,v,m);break;case 36:n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),O=o+f.shift(),E=i,R=O+f.shift(),A=i,L=R+f.shift(),D=A+f.shift(),v=L+f.shift(),p.curveTo(n,a,o,i,O,E),p.curveTo(R,A,L,D,v,m);break;case 37:n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),O=o+f.shift(),E=i+f.shift(),R=O+f.shift(),A=E+f.shift(),L=R+f.shift(),D=A+f.shift(),Math.abs(L-v)>Math.abs(D-m)?v=L+f.shift():m=D+f.shift(),p.curveTo(n,a,o,i,O,E),p.curveTo(R,A,L,D,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+M),f.length=0}break;case 14:0<f.length&&!d&&(x=f.shift()+c,d=!0),g&&(p.closePath(),g=!1);break;case 19:case 20:T(),I+=h+7>>3;break;case 21:2<f.length&&!d&&(x=f.shift()+c,d=!0),m+=f.pop(),S(v+=f.pop(),m);break;case 22:1<f.length&&!d&&(x=f.shift()+c,d=!0),S(v+=f.pop(),m);break;case 24:for(;2<f.length;)n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i+f.shift(),p.curveTo(n,a,o,i,v,m);v+=f.shift(),m+=f.shift(),p.lineTo(v,m);break;case 25:for(;6<f.length;)v+=f.shift(),m+=f.shift(),p.lineTo(v,m);n=v+f.shift(),a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i+f.shift(),p.curveTo(n,a,o,i,v,m);break;case 26:for(f.length%2&&(v+=f.shift());0<f.length;)n=v,a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o,m=i+f.shift(),p.curveTo(n,a,o,i,v,m);break;case 27:for(f.length%2&&(m+=f.shift());0<f.length;)n=v+f.shift(),a=m,o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i,p.curveTo(n,a,o,i,v,m);break;case 28:y=l[I],b=l[I+1],f.push((y<<24|b<<16)>>16),I+=2;break;case 29:U=f.pop()+e.gsubrsBias,(C=e.gsubrs[U])&&r(C);break;case 30:for(;0<f.length&&(n=v,a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,a,o,i,v,m),0!==f.length);)n=v+f.shift(),a=m,o=n+f.shift(),i=a+f.shift(),m=i+f.shift(),v=o+(1===f.length?f.shift():0),p.curveTo(n,a,o,i,v,m);break;case 31:for(;0<f.length&&(n=v+f.shift(),a=m,o=n+f.shift(),i=a+f.shift(),m=i+f.shift(),v=o+(1===f.length?f.shift():0),p.curveTo(n,a,o,i,v,m),0!==f.length);)n=v,a=m+f.shift(),o=n+f.shift(),i=a+f.shift(),v=o+f.shift(),m=i+(1===f.length?f.shift():0),p.curveTo(n,a,o,i,v,m);break;default:M<32?console.log("Glyph "+t.index+": unknown operator "+M):M<247?f.push(M-139):M<251?(y=l[I],I+=1,f.push(256*(M-247)+y+108)):M<255?(y=l[I],I+=1,f.push(256*-(M-251)-y-108)):(y=l[I],b=l[I+1],w=l[I+2],k=l[I+3],I+=4,f.push((y<<24|b<<16|w<<8|k)/65536))}}}(r),t.advanceWidth=x,p}function Me(e,t){var r,n=le.indexOf(e);return 0<=n&&(r=n),0<=(n=t.indexOf(e))?r=n+le.length:(r=le.length+t.length,t.push(e)),r}function Pe(e,t,r){for(var n={},a=0;a<e.length;a+=1){var o=e[a],i=t[o.name];void 0===i||Te(i,o.value)||("SID"===o.type&&(i=Me(i,r)),n[o.op]={name:o.name,type:o.type,value:i})}return n}function Be(e,t){var r=new J.Record("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return r.dict=Pe(Re,e,t),r}function Fe(e){var t=new J.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Ne(e){var t=[],r=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var n=0,a=0,o=0;o<r.commands.length;o+=1){var i=void 0,s=void 0,u=r.commands[o];if("Q"===u.type&&(u={type:"C",x:u.x,y:u.y,x1:1/3*n+2/3*u.x1,y1:1/3*a+2/3*u.y1,x2:1/3*u.x+2/3*u.x1,y2:1/3*u.y+2/3*u.y1}),"M"===u.type)i=Math.round(u.x-n),s=Math.round(u.y-a),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),n=Math.round(u.x),a=Math.round(u.y);else if("L"===u.type)i=Math.round(u.x-n),s=Math.round(u.y-a),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),n=Math.round(u.x),a=Math.round(u.y);else if("C"===u.type){var l=Math.round(u.x1-n),c=Math.round(u.y1-a),p=Math.round(u.x2-u.x1),f=Math.round(u.y2-u.y1);i=Math.round(u.x-u.x2),s=Math.round(u.y-u.y2),t.push({name:"dx1",type:"NUMBER",value:l}),t.push({name:"dy1",type:"NUMBER",value:c}),t.push({name:"dx2",type:"NUMBER",value:p}),t.push({name:"dy2",type:"NUMBER",value:f}),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),n=Math.round(u.x),a=Math.round(u.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}var Ge=function(e,t,r){r.tables.cff={};var n,a,o,i=ke(e,ke(e,(n=e,a=t,(o={}).formatMajor=ie.getCard8(n,a),o.formatMinor=ie.getCard8(n,a+1),o.size=ie.getCard8(n,a+2),o.offsetSize=ie.getCard8(n,a+3),o.startOffset=a,o.endOffset=a+4,o).endOffset,ie.bytesToString).endOffset),s=ke(e,i.endOffset,ie.bytesToString),u=ke(e,s.endOffset);r.gsubrs=u.objects,r.gsubrsBias=we(r.gsubrs);var l=De(e,t,i.objects,s.objects);if(1!==l.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+l.length);var c=l[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var p=c.fdArray,f=c.fdSelect;if(0===p||0===f)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");var h=De(e,t,ke(e,p+=t).objects,s.objects);c._fdArray=h,f+=t,c._fdSelect=function(e,t,r,n){var a,o=[],i=new ie.Parser(e,t),s=i.parseCard8();if(0===s)for(var u=0;u<r;u++){if(n<=(a=i.parseCard8()))throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");o.push(a)}else{if(3!==s)throw new Error("CFF Table CID Font FDSelect table has unsupported format "+s);var l,c=i.parseCard16(),p=i.parseCard16();if(0!==p)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+p);for(var f=0;f<c;f++){if(a=i.parseCard8(),l=i.parseCard16(),n<=a)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+n+")");if(r<l)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+l);for(;p<l;p++)o.push(a);p=l}if(l!==r)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+l)}return o}(e,f,r.numGlyphs,h.length)}var d=t+c.private[1],g=Le(e,d,c.private[0],s.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=ke(e,d+g.subrs);r.subrs=v.objects,r.subrsBias=we(r.subrs)}else r.subrs=[],r.subrsBias=0;var m=ke(e,t+c.charStrings);r.nGlyphs=m.objects.length;var y=function(e,t,r,n){var a,o,i=new ie.Parser(e,t);r-=1;var s=[".notdef"],u=i.parseCard8();if(0===u)for(var l=0;l<r;l+=1)a=i.parseSID(),s.push(Oe(n,a));else if(1===u)for(;s.length<=r;){a=i.parseSID(),o=i.parseCard8();for(var c=0;c<=o;c+=1)s.push(Oe(n,a)),a+=1}else{if(2!==u)throw new Error("Unknown charset format "+u);for(;s.length<=r;){a=i.parseSID(),o=i.parseCard16();for(var p=0;p<=o;p+=1)s.push(Oe(n,a)),a+=1}}return s}(e,t+c.charset,r.nGlyphs,s.objects);0===c.encoding?r.cffEncoding=new ge(ce,y):1===c.encoding?r.cffEncoding=new ge(pe,y):r.cffEncoding=function(e,t,r){var n,a={},o=new ie.Parser(e,t),i=o.parseCard8();if(0===i)for(var s=o.parseCard8(),u=0;u<s;u+=1)a[n=o.parseCard8()]=u;else{if(1!==i)throw new Error("Unknown encoding format "+i);var l=o.parseCard8();n=1;for(var c=0;c<l;c+=1)for(var p=o.parseCard8(),f=o.parseCard8(),h=p;h<=p+f;h+=1)a[h]=n,n+=1}return new ge(a,r)}(e,t+c.encoding,y),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new Se.GlyphSet(r);for(var b=0;b<r.nGlyphs;b+=1){var x=m.objects[b];r.glyphs.push(b,Se.cffGlyphLoader(r,b,Ie,x))}},_e=function(e,t){for(var r,n=new J.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"}]),a=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[a,0,0,a,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},i=[],s=1;s<e.length;s+=1)r=e.get(s),i.push(r.name);var u=[];n.header=new J.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}]),n.nameIndex=function(e){var t=new J.Record("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:"name_"+r,type:"NAME",value:e[r]});return t}([t.postScriptName]);var l,c,p,f=Be(o,u);n.topDictIndex=Fe(f),n.globalSubrIndex=new J.Record("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}]),n.charsets=function(e,t){for(var r=new J.Record("Charsets",[{name:"format",type:"Card8",value:0}]),n=0;n<e.length;n+=1){var a=Me(e[n],t);r.fields.push({name:"glyph_"+n,type:"SID",value:a})}return r}(i,u),n.charStringsIndex=function(e){for(var t=new J.Record("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),r=0;r<e.length;r+=1){var n=e.get(r),a=Ne(n);t.charStrings.push({name:n.name,type:"CHARSTRING",value:a})}return t}(e),n.privateDict=(l={},c=u,(p=new J.Record("Private DICT",[{name:"dict",type:"DICT",value:{}}])).dict=Pe(Ae,l,c),p),n.stringIndex=function(e){var t=new J.Record("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:"string_"+r,type:"STRING",value:e[r]});return t}(u);var h=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf();return o.charset=h,o.encoding=0,o.charStrings=o.charset+n.charsets.sizeOf(),o.private[1]=o.charStrings+n.charStringsIndex.sizeOf(),f=Be(o,u),n.topDictIndex=Fe(f),n},He=function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.fontRevision=Math.round(1e3*n.parseFixed())/1e3,r.checkSumAdjustment=n.parseULong(),r.magicNumber=n.parseULong(),A.argument(1594834165===r.magicNumber,"Font header has wrong magic number."),r.flags=n.parseUShort(),r.unitsPerEm=n.parseUShort(),r.created=n.parseLongDateTime(),r.modified=n.parseLongDateTime(),r.xMin=n.parseShort(),r.yMin=n.parseShort(),r.xMax=n.parseShort(),r.yMax=n.parseShort(),r.macStyle=n.parseUShort(),r.lowestRecPPEM=n.parseUShort(),r.fontDirectionHint=n.parseShort(),r.indexToLocFormat=n.parseShort(),r.glyphDataFormat=n.parseShort(),r},ze=function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new J.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:r},{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)},We=function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.ascender=n.parseShort(),r.descender=n.parseShort(),r.lineGap=n.parseShort(),r.advanceWidthMax=n.parseUShort(),r.minLeftSideBearing=n.parseShort(),r.minRightSideBearing=n.parseShort(),r.xMaxExtent=n.parseShort(),r.caretSlopeRise=n.parseShort(),r.caretSlopeRun=n.parseShort(),r.caretOffset=n.parseShort(),n.relativeOffset+=8,r.metricDataFormat=n.parseShort(),r.numberOfHMetrics=n.parseUShort(),r},qe=function(e){return new J.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)},je=function(e,t,r,n,a){for(var o,i,s=new ie.Parser(e,t),u=0;u<n;u+=1){u<r&&(o=s.parseUShort(),i=s.parseShort());var l=a.get(u);l.advanceWidth=o,l.leftSideBearing=i}},Ve=function(e){for(var t=new J.Table("hmtx",[]),r=0;r<e.length;r+=1){var n=e.get(r),a=n.advanceWidth||0,o=n.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:a}),t.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:o})}return t},Xe=function(e){for(var t=new J.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",n=12+4*e.length,a=0;a<e.length;++a){var o=r.indexOf(e[a]);o<0&&(o=r.length,r+=e[a]),t.fields.push({name:"offset "+a,type:"USHORT",value:n+o}),t.fields.push({name:"length "+a,type:"USHORT",value:e[a].length})}return t.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),t},Ye=function(e,t){var r=new ie.Parser(e,t),n=r.parseULong();A.argument(1===n,"Unsupported ltag table version."),r.skip("uLong",1);for(var a=r.parseULong(),o=[],i=0;i<a;i++){for(var s="",u=t+r.parseUShort(),l=r.parseUShort(),c=u;c<u+l;++c)s+=String.fromCharCode(e.getInt8(c));o.push(s)}return o},Ze=function(e,t){var r={},n=new ie.Parser(e,t);return r.version=n.parseVersion(),r.numGlyphs=n.parseUShort(),1===r.version&&(r.maxPoints=n.parseUShort(),r.maxContours=n.parseUShort(),r.maxCompositePoints=n.parseUShort(),r.maxCompositeContours=n.parseUShort(),r.maxZones=n.parseUShort(),r.maxTwilightPoints=n.parseUShort(),r.maxStorage=n.parseUShort(),r.maxFunctionDefs=n.parseUShort(),r.maxInstructionDefs=n.parseUShort(),r.maxStackElements=n.parseUShort(),r.maxSizeOfInstructions=n.parseUShort(),r.maxComponentElements=n.parseUShort(),r.maxComponentDepth=n.parseUShort()),r},Qe=function(e){return new J.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])},Ke=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],Je={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"},$e={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},et={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 tt(e,t,r){switch(e){case 0:if(65535===t)return"und";if(r)return r[t];break;case 1:return Je[t];case 3:return et[t]}}var rt="utf-16",nt={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"},at={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 ot(e,t,r){switch(e){case 0:return rt;case 1:return at[r]||nt[t];case 3:if(1===t||10===t)return rt}}function it(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function st(e,t,r,n,a,o){return new J.Record("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:r},{name:"nameID",type:"USHORT",value:n},{name:"length",type:"USHORT",value:a},{name:"offset",type:"USHORT",value:o}])}function ut(e,t){var r=function(e,t){var r=e.length,n=t.length-r+1;e:for(var a=0;a<n;a++)for(;a<n;a++){for(var o=0;o<r;o++)if(t[a+o]!==e[o])continue e;return a}return-1}(e,t);if(r<0){r=t.length;for(var n=0,a=e.length;n<a;++n)t.push(e[n])}return r}var lt=function(e,t,r){for(var n={},a=new ie.Parser(e,t),o=a.parseUShort(),i=a.parseUShort(),s=a.offset+a.parseUShort(),u=0;u<i;u++){var l=a.parseUShort(),c=a.parseUShort(),p=a.parseUShort(),f=a.parseUShort(),h=Ke[f]||f,d=a.parseUShort(),g=a.parseUShort(),v=tt(l,p,r),m=ot(l,c,p);if(void 0!==m&&void 0!==v){var y;if(y=m===rt?D.UTF16(e,s+g,d):D.MACSTRING(e,s+g,d,m)){var b=n[h];void 0===b&&(b=n[h]={}),b[v]=y}}}return 1===o&&a.parseUShort(),n},ct=function(e,t){var r,n=[],a={},o=it(Ke);for(var i in e){var s=o[i];if(void 0===s&&(s=i),r=parseInt(s),isNaN(r))throw new Error('Name table entry "'+i+'" does not exist, see nameTableNames for complete list.');a[r]=e[i],n.push(r)}for(var u=it(Je),l=it(et),c=[],p=[],f=0;f<n.length;f++){var h=a[r=n[f]];for(var d in h){var g=h[d],v=1,m=u[d],y=$e[m],b=ot(v,y,m),x=I.MACSTRING(g,b);void 0===x&&(v=0,(m=t.indexOf(d))<0&&(m=t.length,t.push(d)),y=4,x=I.UTF16(g));var S=ut(x,p);c.push(st(v,y,m,r,x.length,S));var T=l[d];if(void 0!==T){var w=I.UTF16(g),k=ut(w,p);c.push(st(3,1,T,r,w.length,k))}}}c.sort((function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID}));for(var U=new J.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:c.length},{name:"stringOffset",type:"USHORT",value:6+12*c.length}]),C=0;C<c.length;C++)U.fields.push({name:"record_"+C,type:"RECORD",value:c[C]});return U.fields.push({name:"strings",type:"LITERAL",value:p}),U},pt=[{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}],ft=function(e,t){var r={},n=new ie.Parser(e,t);r.version=n.parseUShort(),r.xAvgCharWidth=n.parseShort(),r.usWeightClass=n.parseUShort(),r.usWidthClass=n.parseUShort(),r.fsType=n.parseUShort(),r.ySubscriptXSize=n.parseShort(),r.ySubscriptYSize=n.parseShort(),r.ySubscriptXOffset=n.parseShort(),r.ySubscriptYOffset=n.parseShort(),r.ySuperscriptXSize=n.parseShort(),r.ySuperscriptYSize=n.parseShort(),r.ySuperscriptXOffset=n.parseShort(),r.ySuperscriptYOffset=n.parseShort(),r.yStrikeoutSize=n.parseShort(),r.yStrikeoutPosition=n.parseShort(),r.sFamilyClass=n.parseShort(),r.panose=[];for(var a=0;a<10;a++)r.panose[a]=n.parseByte();return r.ulUnicodeRange1=n.parseULong(),r.ulUnicodeRange2=n.parseULong(),r.ulUnicodeRange3=n.parseULong(),r.ulUnicodeRange4=n.parseULong(),r.achVendID=String.fromCharCode(n.parseByte(),n.parseByte(),n.parseByte(),n.parseByte()),r.fsSelection=n.parseUShort(),r.usFirstCharIndex=n.parseUShort(),r.usLastCharIndex=n.parseUShort(),r.sTypoAscender=n.parseShort(),r.sTypoDescender=n.parseShort(),r.sTypoLineGap=n.parseShort(),r.usWinAscent=n.parseUShort(),r.usWinDescent=n.parseUShort(),1<=r.version&&(r.ulCodePageRange1=n.parseULong(),r.ulCodePageRange2=n.parseULong()),2<=r.version&&(r.sxHeight=n.parseShort(),r.sCapHeight=n.parseShort(),r.usDefaultChar=n.parseUShort(),r.usBreakChar=n.parseUShort(),r.usMaxContent=n.parseUShort()),r},ht=function(e){return new J.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)},dt=function(e){for(var t=0;t<pt.length;t+=1){var r=pt[t];if(e>=r.begin&&e<r.end)return t}return-1},gt=function(e,t){var r={},n=new ie.Parser(e,t);switch(r.version=n.parseVersion(),r.italicAngle=n.parseFixed(),r.underlinePosition=n.parseShort(),r.underlineThickness=n.parseShort(),r.isFixedPitch=n.parseULong(),r.minMemType42=n.parseULong(),r.maxMemType42=n.parseULong(),r.minMemType1=n.parseULong(),r.maxMemType1=n.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=n.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var a=0;a<r.numberOfGlyphs;a++)r.glyphNameIndex[a]=n.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var i=n.parseChar();r.names.push(n.parseString(i))}break;case 2.5:r.numberOfGlyphs=n.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=n.parseChar()}return r},vt=function(){return new J.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}])},mt=new Array(9);mt[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),substitute:this.parseOffset16List()}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 1 format must be 1 or 2.")},mt[2]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),sequences:this.parseListOfLists()}},mt[3]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),alternateSets:this.parseListOfLists()}},mt[4]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB ligature table identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),ligatureSets:this.parseListOfLists((function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}}))}};var yt={sequenceIndex:ae.uShort,lookupListIndex:ae.uShort};mt[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),ruleSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,yt)}}))};if(2===t)return{substFormat:t,coverage:this.parsePointer(ae.coverage),classDef:this.parsePointer(ae.classDef),classSets:this.parseListOfLists((function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,yt)}}))};if(3===t){var r=this.parseUShort(),n=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(n,yt)}}A.assert(!1,"0x"+e.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},mt[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(ae.coverage),chainRuleSets:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(yt)}}))}:2===t?{substFormat:2,coverage:this.parsePointer(ae.coverage),backtrackClassDef:this.parsePointer(ae.classDef),inputClassDef:this.parsePointer(ae.classDef),lookaheadClassDef:this.parsePointer(ae.classDef),chainClassSet:this.parseListOfLists((function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(yt)}}))}:3===t?{substFormat:3,backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),inputCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),lookupRecords:this.parseRecordList(yt)}:void A.assert(!1,"0x"+e.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},mt[7]=function(){var e=this.parseUShort();A.argument(1===e,"GSUB Extension Substitution subtable identifier-format must be 1");var t=this.parseUShort(),r=new ae(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:mt[t].call(r)}},mt[8]=function(){var e=this.parseUShort();return A.argument(1===e,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:e,coverage:this.parsePointer(ae.coverage),backtrackCoverage:this.parseList(ae.pointer(ae.coverage)),lookaheadCoverage:this.parseList(ae.pointer(ae.coverage)),substitutes:this.parseUShortList()}};var bt=new Array(9);bt[1]=function(e){return 1===e.substFormat?new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)},{name:"deltaGlyphID",type:"USHORT",value:e.deltaGlyphId}]):new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.ushortList("substitute",e.substitute)))},bt[3]=function(e){return A.assert(1===e.substFormat,"Lookup type 3 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("altSet",e.alternateSets,(function(e){return new J.Table("alternateSetTable",J.ushortList("alternate",e))}))))},bt[4]=function(e){return A.assert(1===e.substFormat,"Lookup type 4 substFormat must be 1."),new J.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new J.Coverage(e.coverage)}].concat(J.tableList("ligSet",e.ligatureSets,(function(e){return new J.Table("ligatureSetTable",J.tableList("ligature",e,(function(e){return new J.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:e.ligGlyph}].concat(J.ushortList("component",e.components,e.components.length+1)))})))}))))};var xt=function(e,t){var r=new ae(e,t=t||0),n=r.parseVersion(1);return A.argument(1===n||1.1===n,"Unsupported GSUB table version."),1===n?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(mt)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(mt),variations:r.parseFeatureVariationsList()}},St=function(e){return new J.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new J.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new J.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new J.LookupList(e.lookups,bt)}])},Tt=function(e,t){var r=new ie.Parser(e,t),n=r.parseULong();A.argument(1===n,"Unsupported META table version."),r.parseULong(),r.parseULong();for(var a=r.parseULong(),o={},i=0;i<a;i++){var s=r.parseTag(),u=r.parseULong(),l=r.parseULong(),c=D.UTF8(e,t+u,l);o[s]=c}return o},wt=function(e){var t=Object.keys(e).length,r="",n=16+12*t,a=new J.Table("meta",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"offset",type:"ULONG",value:n},{name:"numTags",type:"ULONG",value:t}]);for(var o in e){var i=r.length;r+=e[o],a.fields.push({name:"tag "+o,type:"TAG",value:o}),a.fields.push({name:"offset "+o,type:"ULONG",value:n+i}),a.fields.push({name:"length "+o,type:"ULONG",value:e[o].length})}return a.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),a};function kt(e){return Math.log(e)/Math.log(2)|0}function Ut(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%Math.pow(2,32)}function Ct(e,t,r,n){return new J.Record("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==r?r:0},{name:"length",type:"ULONG",value:void 0!==n?n:0}])}function Ot(e){var t=new J.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 r=Math.pow(2,kt(t.numTables));t.searchRange=16*r,t.entrySelector=kt(r),t.rangeShift=16*t.numTables-t.searchRange;for(var n=[],a=[],o=t.sizeOf()+Ct().sizeOf()*t.numTables;o%4!=0;)o+=1,a.push({name:"padding",type:"BYTE",value:0});for(var i=0;i<e.length;i+=1){var s=e[i];A.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var u=s.sizeOf(),l=Ct(s.tableName,Ut(s.encode()),o,u);for(n.push({name:l.tag+" Table Record",type:"RECORD",value:l}),a.push({name:s.tableName+" table",type:"RECORD",value:s}),o+=u,A.argument(!isNaN(o),"Something went wrong calculating the offset.");o%4!=0;)o+=1,a.push({name:"padding",type:"BYTE",value:0})}return n.sort((function(e,t){return e.value.tag>t.value.tag?1:-1})),t.fields=t.fields.concat(n),t.fields=t.fields.concat(a),t}function Et(e,t,r){for(var n=0;n<t.length;n+=1){var a=e.charToGlyphIndex(t[n]);if(0<a)return e.glyphs.get(a).getMetrics()}return r}var Rt=function(e){for(var t,r=[],n=[],a=[],o=[],i=[],s=[],u=[],l=0,c=0,p=0,f=0,h=0,d=0;d<e.glyphs.length;d+=1){var g=e.glyphs.get(d),v=0|g.unicode;if(isNaN(g.advanceWidth))throw new Error("Glyph "+g.name+" ("+d+"): advanceWidth is not a number.");(v<t||void 0===t)&&0<v&&(t=v),l<v&&(l=v);var m=dt(v);if(m<32)c|=1<<m;else if(m<64)p|=1<<m-32;else if(m<96)f|=1<<m-64;else{if(!(m<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");h|=1<<m-96}if(".notdef"!==g.name){var y=g.getMetrics();r.push(y.xMin),n.push(y.yMin),a.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),u.push(y.rightSideBearing),i.push(g.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,a),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,i),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(i),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,u)};b.ascender=e.ascender,b.descender=e.descender;var x=ze({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),S=qe({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),T=Qe(e.glyphs.length),w=ht({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:l,ulUnicodeRange1:c,ulUnicodeRange2:p,ulUnicodeRange3:f,ulUnicodeRange4:h,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:Et(e,"xyvw",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:Et(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",b).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),k=Ve(e.glyphs),U=ue(e.glyphs),C=e.getEnglishName("fontFamily"),O=e.getEnglishName("fontSubfamily"),E=C+" "+O,R=e.getEnglishName("postScriptName");R||(R=C.replace(/\s/g,"")+"-"+O);var A={};for(var L in e.names)A[L]=e.names[L];A.uniqueID||(A.uniqueID={en:e.getEnglishName("manufacturer")+":"+E}),A.postScriptName||(A.postScriptName={en:R}),A.preferredFamily||(A.preferredFamily=e.names.fontFamily),A.preferredSubfamily||(A.preferredSubfamily=e.names.fontSubfamily);var D=[],I=ct(A,D),M=0<D.length?Xe(D):void 0,P=vt(),B=_e(e.glyphs,{version:e.getEnglishName("version"),fullName:E,familyName:C,weightName:O,postScriptName:R,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),F=e.metas&&0<Object.keys(e.metas).length?wt(e.metas):void 0,N=[x,S,T,w,I,U,P,B,k];M&&N.push(M),e.tables.gsub&&N.push(St(e.tables.gsub)),F&&N.push(F);for(var G=Ot(N),_=Ut(G.encode()),H=G.fields,z=!1,W=0;W<H.length;W+=1)if("head table"===H[W].name){H[W].value.checkSumAdjustment=2981146554-_,z=!0;break}if(!z)throw new Error("Could not find head table with checkSum to adjust.");return G};function At(e,t){for(var r=0,n=e.length-1;r<=n;){var a=r+n>>>1,o=e[a].tag;if(o===t)return a;o<t?r=a+1:n=a-1}return-r-1}function Lt(e,t){for(var r=0,n=e.length-1;r<=n;){var a=r+n>>>1,o=e[a];if(o===t)return a;o<t?r=a+1:n=a-1}return-r-1}function Dt(e,t){for(var r,n=0,a=e.length-1;n<=a;){var o=n+a>>>1,i=(r=e[o]).start;if(i===t)return r;i<t?n=o+1:a=o-1}if(0<n)return t>(r=e[n-1]).end?0:r}function It(e,t){this.font=e,this.tableName=t}function Mt(e){It.call(this,e,"gpos")}function Pt(e){It.call(this,e,"gsub")}function Bt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Ft(e,t,r){for(var n=e.subtables,a=0;a<n.length;a++){var o=n[a];if(o.substFormat===t)return o}if(r)return n.push(r),r}function Nt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;++n)r[n]=e[n];return t}function Gt(e,t){if(!e)throw t}function _t(e,t,r,n,a){var o;return 0<(t&n)?(o=e.parseByte(),0==(t&a)&&(o=-o),r+o):0<(t&a)?r:r+e.parseShort()}function Ht(e,t,r){var n,a,o=new ie.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var i=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)i.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var u=0;u<e.instructionLength;u+=1)e.instructions.push(o.parseByte());var l=i[i.length-1]+1;n=[];for(var c=0;c<l;c+=1)if(a=o.parseByte(),n.push(a),0<(8&a))for(var p=o.parseByte(),f=0;f<p;f+=1)n.push(a),c+=1;if(A.argument(n.length===l,"Bad flags."),0<i.length){var h,d=[];if(0<l){for(var g=0;g<l;g+=1)a=n[g],(h={}).onCurve=!!(1&a),h.lastPointOfContour=0<=i.indexOf(g),d.push(h);for(var v=0,m=0;m<l;m+=1)a=n[m],(h=d[m]).x=_t(o,a,v,2,16),v=h.x;for(var y=0,b=0;b<l;b+=1)a=n[b],(h=d[b]).y=_t(o,a,y,4,32),y=h.y}e.points=d}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var x=!0;x;){n=o.parseUShort();var S={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&n)?0<(2&n)?(S.dx=o.parseShort(),S.dy=o.parseShort()):S.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&n)?(S.dx=o.parseChar(),S.dy=o.parseChar()):S.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&n)?S.xScale=S.yScale=o.parseF2Dot14():0<(64&n)?(S.xScale=o.parseF2Dot14(),S.yScale=o.parseF2Dot14()):0<(128&n)&&(S.xScale=o.parseF2Dot14(),S.scale01=o.parseF2Dot14(),S.scale10=o.parseF2Dot14(),S.yScale=o.parseF2Dot14()),e.components.push(S),x=!!(32&n)}if(256&n){e.instructionLength=o.parseUShort(),e.instructions=[];for(var T=0;T<e.instructionLength;T+=1)e.instructions.push(o.parseByte())}}}function zt(e,t){for(var r=[],n=0;n<e.length;n+=1){var a=e[n],o={x:t.xScale*a.x+t.scale01*a.y+t.dx,y:t.scale10*a.x+t.yScale*a.y+t.dy,onCurve:a.onCurve,lastPointOfContour:a.lastPointOfContour};r.push(o)}return r}function Wt(e){var t=new O;if(!e)return t;for(var r=function(e){for(var t=[],r=[],n=0;n<e.length;n+=1){var a=e[n];r.push(a),a.lastPointOfContour&&(t.push(r),r=[])}return A.argument(0===r.length,"There are still points left in the current contour."),t}(e),n=0;n<r.length;++n){var a=r[n],o=null,i=a[a.length-1],s=a[0];if(i.onCurve)t.moveTo(i.x,i.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var u={x:.5*(i.x+s.x),y:.5*(i.y+s.y)};t.moveTo(u.x,u.y)}for(var l=0;l<a.length;++l)if(o=i,i=s,s=a[(l+1)%a.length],i.onCurve)t.lineTo(i.x,i.y);else{var c=s;o.onCurve||(i.x,o.x,i.y,o.y),s.onCurve||(c={x:.5*(i.x+s.x),y:.5*(i.y+s.y)}),t.quadraticCurveTo(i.x,i.y,c.x,c.y)}t.closePath()}return t}function qt(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var n=t.components[r],a=e.get(n.glyphIndex);if(a.getPath(),a.points){var o=void 0;if(void 0===n.matchedPoints)o=zt(a.points,n);else{if(n.matchedPoints[0]>t.points.length-1||n.matchedPoints[1]>a.points.length-1)throw Error("Matched points out of range in "+t.name);var i=t.points[n.matchedPoints[0]],s=a.points[n.matchedPoints[1]],u={xScale:n.xScale,scale01:n.scale01,scale10:n.scale10,yScale:n.yScale,dx:0,dy:0};s=zt([s],u)[0],u.dx=i.x-s.x,u.dy=i.y-s.y,o=zt(a.points,u)}t.points=t.points.concat(o)}}return Wt(t.points)}(Mt.prototype=It.prototype={searchTag:At,binSearch:Lt,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,r=0;r<e.scripts.length;r++){var n=e.scripts[r].tag;if("DFLT"===n)return n;"latn"===n&&(t=!0)}return t?"latn":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||"DFLT";var n=r.scripts,a=At(r.scripts,e);if(0<=a)return n[a].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return n.splice(-1-a,0,o),o.script}}},getLangSysTable:function(e,t,r){var n=this.getScriptTable(e,r);if(n){if(!t||"dflt"===t||"DFLT"===t)return n.defaultLangSys;var a=At(n.langSysRecords,t);if(0<=a)return n.langSysRecords[a].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return n.langSysRecords.splice(-1-a,0,o),o.langSys}}},getFeatureTable:function(e,t,r,n){var a=this.getLangSysTable(e,t,n);if(a){for(var o,i=a.featureIndexes,s=this.font.tables[this.tableName].features,u=0;u<i.length;u++)if((o=s[i[u]]).tag===r)return o.feature;if(n){var l=s.length;return A.assert(0===l||r>=s[l-1].tag,"Features must be added in alphabetical order."),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),i.push(l),o.feature}}},getLookupTables:function(e,t,r,n,a){var o=this.getFeatureTable(e,t,r,a),i=[];if(o){for(var s,u=o.lookupListIndexes,l=this.font.tables[this.tableName].lookups,c=0;c<u.length;c++)(s=l[u[c]]).lookupType===n&&i.push(s);if(0===i.length&&a){s={lookupType:n,lookupFlag:0,subtables:[],markFilteringSet:void 0};var p=l.length;return l.push(s),u.push(p),[s]}}return i},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 r=Dt(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=Lt(e.glyphs,t);return 0<=r?r:-1;case 2:var n=Dt(e.ranges,t);return n?n.index+t-n.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,n=0;n<r.length;n++)for(var a=r[n],o=a.start,i=a.end,s=o;s<=i;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},Mt.prototype.getKerningValue=function(e,t,r){for(var n=0;n<e.length;n++)for(var a=e[n].subtables,o=0;o<a.length;o++){var i=a[o],s=this.getCoverageIndex(i.coverage,t);if(!(s<0))switch(i.posFormat){case 1:for(var u=i.pairSets[s],l=0;l<u.length;l++){var c=u[l];if(c.secondGlyph===r)return c.value1&&c.value1.xAdvance||0}break;case 2:var p=this.getGlyphClass(i.classDef1,t),f=this.getGlyphClass(i.classDef2,r),h=i.classRecords[p][f];return h.value1&&h.value1.xAdvance||0}}return 0},Mt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,"kern",2)},(Pt.prototype=It.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},Pt.prototype.getSingle=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,1),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++){var u=i[s],l=this.expandCoverage(u.coverage),c=void 0;if(1===u.substFormat){var p=u.deltaGlyphId;for(c=0;c<l.length;c++){var f=l[c];n.push({sub:f,by:f+p})}}else{var h=u.substitute;for(c=0;c<l.length;c++)n.push({sub:l[c],by:h[c]})}}return n},Pt.prototype.getAlternates=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,3),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++)for(var u=i[s],l=this.expandCoverage(u.coverage),c=u.alternateSets,p=0;p<l.length;p++)n.push({sub:l[p],by:c[p]});return n},Pt.prototype.getLigatures=function(e,t,r){for(var n=[],a=this.getLookupTables(t,r,e,4),o=0;o<a.length;o++)for(var i=a[o].subtables,s=0;s<i.length;s++)for(var u=i[s],l=this.expandCoverage(u.coverage),c=u.ligatureSets,p=0;p<l.length;p++)for(var f=l[p],h=c[p],d=0;d<h.length;d++){var g=h[d];n.push({sub:[f].concat(g.components),by:g.ligGlyph})}return n},Pt.prototype.addSingle=function(e,t,r,n){var a=Ft(this.getLookupTables(r,n,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});A.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=t.sub,i=this.binSearch(a.coverage.glyphs,o);i<0&&(i=-1-i,a.coverage.glyphs.splice(i,0,o),a.substitute.splice(i,0,0)),a.substitute[i]=t.by},Pt.prototype.addAlternate=function(e,t,r,n){var a=Ft(this.getLookupTables(r,n,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});A.assert(1===a.coverage.format,"Ligature: unable to modify coverage table format "+a.coverage.format);var o=t.sub,i=this.binSearch(a.coverage.glyphs,o);i<0&&(i=-1-i,a.coverage.glyphs.splice(i,0,o),a.alternateSets.splice(i,0,0)),a.alternateSets[i]=t.by},Pt.prototype.addLigature=function(e,t,r,n){var a=this.getLookupTables(r,n,e,4,!0)[0],o=a.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},a.subtables[0]=o),A.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);var i=t.sub[0],s=t.sub.slice(1),u={ligGlyph:t.by,components:s},l=this.binSearch(o.coverage.glyphs,i);if(0<=l){for(var c=o.ligatureSets[l],p=0;p<c.length;p++)if(Bt(c[p].components,s))return;c.push(u)}else l=-1-l,o.coverage.glyphs.splice(l,0,i),o.ligatureSets.splice(l,0,[u])},Pt.prototype.getFeature=function(e,t,r){if(/ss\d\d/.test(e))return this.getSingle(e,t,r);switch(e){case"aalt":case"salt":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case"dlig":case"liga":case"rlig":return this.getLigatures(e,t,r)}},Pt.prototype.add=function(e,t,r,n){if(/ss\d\d/.test(e))return this.addSingle(e,t,r,n);switch(e){case"aalt":case"salt":return"number"==typeof t.by?this.addSingle(e,t,r,n):this.addAlternate(e,t,r,n);case"dlig":case"liga":case"rlig":return this.addLigature(e,t,r,n)}};var jt,Vt,Xt,Yt,Zt={getPath:Wt,parse:function(e,t,r,n){for(var a=new Se.GlyphSet(n),o=0;o<r.length-1;o+=1){var i=r[o];i!==r[o+1]?a.push(o,Se.ttfGlyphLoader(n,o,Ht,e,t+i,qt)):a.push(o,Se.glyphLoader(n,o))}return a}};function Qt(e){this.font=e,this.getCommands=function(e){return Zt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Kt(e){return e}function Jt(e){return Math.sign(e)*Math.round(Math.abs(e))}function $t(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function er(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function tr(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function rr(e){return Math.sign(e)*Math.floor(Math.abs(e))}var nr=function(e){var t=this.srPeriod,r=this.srPhase,n=1;return e<0&&(e=-e,n=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*n:e*n},ar={x:1,y:0,axis:"x",distance:function(e,t,r,n){return(r?e.xo:e.x)-(n?t.xo:t.x)},interpolate:function(e,t,r,n){var a,o,i,s,u,l,c;if(!n||n===this)return a=e.xo-t.xo,o=e.xo-r.xo,u=t.x-t.xo,l=r.x-r.xo,0===(c=(i=Math.abs(a))+(s=Math.abs(o)))?void(e.x=e.xo+(u+l)/2):void(e.x=e.xo+(u*s+l*i)/c);a=n.distance(e,t,!0,!0),o=n.distance(e,r,!0,!0),u=n.distance(t,t,!1,!0),l=n.distance(r,r,!1,!0),0!==(c=(i=Math.abs(a))+(s=Math.abs(o)))?ar.setRelative(e,e,(u*s+l*i)/c,n,!0):ar.setRelative(e,e,(u+l)/2,n,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,n,a){if(n&&n!==this){var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y;e.x=s+(e.y-u)/n.normalSlope}else e.x=(a?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},or={x:0,y:1,axis:"y",distance:function(e,t,r,n){return(r?e.yo:e.y)-(n?t.yo:t.y)},interpolate:function(e,t,r,n){var a,o,i,s,u,l,c;if(!n||n===this)return a=e.yo-t.yo,o=e.yo-r.yo,u=t.y-t.yo,l=r.y-r.yo,0===(c=(i=Math.abs(a))+(s=Math.abs(o)))?void(e.y=e.yo+(u+l)/2):void(e.y=e.yo+(u*s+l*i)/c);a=n.distance(e,t,!0,!0),o=n.distance(e,r,!0,!0),u=n.distance(t,t,!1,!0),l=n.distance(r,r,!1,!0),0!==(c=(i=Math.abs(a))+(s=Math.abs(o)))?or.setRelative(e,e,(u*s+l*i)/c,n,!0):or.setRelative(e,e,(u+l)/2,n,!0)},normalSlope:0,setRelative:function(e,t,r,n,a){if(n&&n!==this){var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y;e.y=u+n.normalSlope*(e.x-s)}else e.y=(a?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function ir(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function sr(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1==(e/=r)&&0===t?ar:0===e&&1===t?or:new ir(e,t)}function ur(e,t,r,n){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=n,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(ar),Object.freeze(or),ir.prototype.distance=function(e,t,r,n){return this.x*ar.distance(e,t,r,n)+this.y*or.distance(e,t,r,n)},ir.prototype.interpolate=function(e,t,r,n){var a,o,i,s,u,l,c;i=n.distance(e,t,!0,!0),s=n.distance(e,r,!0,!0),a=n.distance(t,t,!1,!0),o=n.distance(r,r,!1,!0),0!==(c=(u=Math.abs(i))+(l=Math.abs(s)))?this.setRelative(e,e,(a*l+o*u)/c,n,!0):this.setRelative(e,e,(a+o)/2,n,!0)},ir.prototype.setRelative=function(e,t,r,n,a){n=n||this;var o=a?t.xo:t.x,i=a?t.yo:t.y,s=o+r*n.x,u=i+r*n.y,l=n.normalSlope,c=this.slope,p=e.x,f=e.y;e.x=(c*p-l*s+u-f)/(c-l),e.y=c*(e.x-p)+f},ir.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},ur.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},ur.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var lr=Object.freeze(new ur(0,0)),cr={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function pr(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=ar,this.round=Jt}}function fr(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new ur(0,0)}function hr(e,t){var r,n=e.prog,a=e.ip,o=1;do{if(88===(r=n[++a]))o++;else if(89===r)o--;else if(64===r)a+=n[a+1]+1;else if(65===r)a+=2*n[a+1]+1;else if(176<=r&&r<=183)a+=r-176+1;else if(184<=r&&r<=191)a+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=a}function dr(t,r){e.DEBUG&&console.log(r.step,"SVTCA["+t.axis+"]"),r.fv=r.pv=r.dpv=t}function gr(t,r){e.DEBUG&&console.log(r.step,"SPVTCA["+t.axis+"]"),r.pv=r.dpv=t}function vr(t,r){e.DEBUG&&console.log(r.step,"SFVTCA["+t.axis+"]"),r.fv=t}function mr(t,r){var n,a,o=r.stack,i=o.pop(),s=o.pop(),u=r.z2[i],l=r.z1[s];e.DEBUG&&console.log("SPVTL["+t+"]",i,s),a=t?(n=u.y-l.y,l.x-u.x):(n=l.x-u.x,l.y-u.y),r.pv=r.dpv=sr(n,a)}function yr(t,r){var n,a,o=r.stack,i=o.pop(),s=o.pop(),u=r.z2[i],l=r.z1[s];e.DEBUG&&console.log("SFVTL["+t+"]",i,s),a=t?(n=u.y-l.y,l.x-u.x):(n=l.x-u.x,l.y-u.y),r.fv=sr(n,a)}function br(t){e.DEBUG&&console.log(t.step,"POP[]"),t.stack.pop()}function xr(t,r){var n=r.stack.pop(),a=r.z0[n],o=r.fv,i=r.pv;e.DEBUG&&console.log(r.step,"MDAP["+t+"]",n);var s=i.distance(a,lr);t&&(s=r.round(s)),o.setRelative(a,lr,s,i),o.touch(a),r.rp0=r.rp1=n}function Sr(t,r){var n,a,o,i=r.z2,s=i.length-2;e.DEBUG&&console.log(r.step,"IUP["+t.axis+"]");for(var u=0;u<s;u++)n=i[u],t.touched(n)||(a=n.prevTouched(t))!==n&&(a===(o=n.nextTouched(t))&&t.setRelative(n,n,t.distance(a,a,!1,!0),t,!0),t.interpolate(n,a,o,t))}function Tr(t,r){for(var n=r.stack,a=t?r.rp1:r.rp2,o=(t?r.z0:r.z1)[a],i=r.fv,s=r.pv,u=r.loop,l=r.z2;u--;){var c=n.pop(),p=l[c],f=s.distance(o,o,!1,!0);i.setRelative(p,p,f,s),i.touch(p),e.DEBUG&&console.log(r.step,(1<r.loop?"loop "+(r.loop-u)+": ":"")+"SHP["+(t?"rp1":"rp2")+"]",c)}r.loop=1}function wr(t,r){var n=r.stack,a=t?r.rp1:r.rp2,o=(t?r.z0:r.z1)[a],i=r.fv,s=r.pv,u=n.pop(),l=r.z2[r.contours[u]],c=l;e.DEBUG&&console.log(r.step,"SHC["+t+"]",u);for(var p=s.distance(o,o,!1,!0);c!==o&&i.setRelative(c,c,p,s),(c=c.nextPointOnContour)!==l;);}function kr(t,r){var n,a,o=r.stack,i=t?r.rp1:r.rp2,s=(t?r.z0:r.z1)[i],u=r.fv,l=r.pv,c=o.pop();switch(e.DEBUG&&console.log(r.step,"SHZ["+t+"]",c),c){case 0:n=r.tZone;break;case 1:n=r.gZone;break;default:throw new Error("Invalid zone")}for(var p=l.distance(s,s,!1,!0),f=n.length-2,h=0;h<f;h++)a=n[h],u.setRelative(a,a,p,l)}function Ur(t,r){var n=r.stack,a=n.pop()/64,o=n.pop(),i=r.z1[o],s=r.z0[r.rp0],u=r.fv,l=r.pv;u.setRelative(i,s,a,l),u.touch(i),e.DEBUG&&console.log(r.step,"MSIRP["+t+"]",a,o),r.rp1=r.rp0,r.rp2=o,t&&(r.rp0=o)}function Cr(t,r){var n=r.stack,a=n.pop(),o=n.pop(),i=r.z0[o],s=r.fv,u=r.pv,l=r.cvt[a];e.DEBUG&&console.log(r.step,"MIAP["+t+"]",a,"(",l,")",o);var c=u.distance(i,lr);t&&(Math.abs(c-l)<r.cvCutIn&&(c=l),c=r.round(c)),s.setRelative(i,lr,c,u),0===r.zp0&&(i.xo=i.x,i.yo=i.y),s.touch(i),r.rp0=r.rp1=o}function Or(t,r){var n=r.stack,a=n.pop(),o=r.z2[a];e.DEBUG&&console.log(r.step,"GC["+t+"]",a),n.push(64*r.dpv.distance(o,lr,t,!1))}function Er(t,r){var n=r.stack,a=n.pop(),o=n.pop(),i=r.z1[a],s=r.z0[o],u=r.dpv.distance(s,i,t,t);e.DEBUG&&console.log(r.step,"MD["+t+"]",a,o,"->",u),r.stack.push(Math.round(64*u))}function Rr(t,r){var n=r.stack,a=n.pop(),o=r.fv,i=r.pv,s=r.ppem,u=r.deltaBase+16*(t-1),l=r.deltaShift,c=r.z0;e.DEBUG&&console.log(r.step,"DELTAP["+t+"]",a,n);for(var p=0;p<a;p++){var f=n.pop(),h=n.pop();if(u+((240&h)>>4)===s){var d=(15&h)-8;0<=d&&d++,e.DEBUG&&console.log(r.step,"DELTAPFIX",f,"by",d*l);var g=c[f];o.setRelative(g,g,d*l,i)}}}function Ar(t,r){var n=r.stack,a=n.pop();e.DEBUG&&console.log(r.step,"ROUND[]"),n.push(64*r.round(a/64))}function Lr(t,r){var n=r.stack,a=n.pop(),o=r.ppem,i=r.deltaBase+16*(t-1),s=r.deltaShift;e.DEBUG&&console.log(r.step,"DELTAC["+t+"]",a,n);for(var u=0;u<a;u++){var l=n.pop(),c=n.pop();if(i+((240&c)>>4)===o){var p=(15&c)-8;0<=p&&p++;var f=p*s;e.DEBUG&&console.log(r.step,"DELTACFIX",l,"by",f),r.cvt[l]+=f}}}function Dr(t,r){var n,a,o=r.stack,i=o.pop(),s=o.pop(),u=r.z2[i],l=r.z1[s];e.DEBUG&&console.log(r.step,"SDPVTL["+t+"]",i,s),a=t?(n=u.y-l.y,l.x-u.x):(n=l.x-u.x,l.y-u.y),r.dpv=sr(n,a)}function Ir(t,r){var n=r.stack,a=r.prog,o=r.ip;e.DEBUG&&console.log(r.step,"PUSHB["+t+"]");for(var i=0;i<t;i++)n.push(a[++o]);r.ip=o}function Mr(t,r){var n=r.ip,a=r.prog,o=r.stack;e.DEBUG&&console.log(r.ip,"PUSHW["+t+"]");for(var i=0;i<t;i++){var s=a[++n]<<8|a[++n];32768&s&&(s=-(1+(65535^s))),o.push(s)}r.ip=n}function Pr(t,r,n,a,o,i){var s,u,l,c,p=i.stack,f=t&&p.pop(),h=p.pop(),d=i.rp0,g=i.z0[d],v=i.z1[h],m=i.minDis,y=i.fv,b=i.dpv;l=0<=(u=s=b.distance(v,g,!0,!0))?1:-1,u=Math.abs(u),t&&(c=i.cvt[f],a&&Math.abs(u-c)<i.cvCutIn&&(u=c)),n&&u<m&&(u=m),a&&(u=i.round(u)),y.setRelative(v,g,l*u,b),y.touch(v),e.DEBUG&&console.log(i.step,(t?"MIRP[":"MDRP[")+(r?"M":"m")+(n?">":"_")+(a?"R":"_")+(0===o?"Gr":1===o?"Bl":2===o?"Wh":"")+"]",t?f+"("+i.cvt[f]+","+c+")":"",h,"(d =",s,"->",l*u,")"),i.rp1=i.rp0,i.rp2=h,r&&(i.rp0=h)}function Br(e){this.char=e,this.state={},this.activeState=null}function Fr(e,t,r){this.contextName=r,this.startIndex=e,this.endOffset=t}function Nr(e,t,r){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=r}function Gr(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function _r(e){this.eventId=e,this.subscribers=[]}function Hr(e){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],function(e){var t=this,r=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];r.forEach((function(e){Object.defineProperty(t.events,e,{value:new _r(e)})})),e&&r.forEach((function(r){var n=e[r];"function"==typeof n&&t.events[r].subscribe(n)})),["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"].forEach((function(e){t.events[e].subscribe(t.updateContextsRanges)}))}.call(this,e)}function zr(e){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e)}function Wr(e){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e)}function qr(e){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e)}Qt.prototype.exec=function(t,r){if("number"!=typeof r)throw new Error("Point size is not a number!");if(!(2<this._errorState)){var n=this.font,a=this._prepState;if(!a||a.ppem!==r){var o=this._fpgmState;if(!o){pr.prototype=cr,(o=this._fpgmState=new pr("fpgm",n.tables.fpgm)).funcs=[],o.font=n,e.DEBUG&&(console.log("---EXEC FPGM---"),o.step=-1);try{Vt(o)}catch(t){return console.log("Hinting error in FPGM:"+t),void(this._errorState=3)}}pr.prototype=o,(a=this._prepState=new pr("prep",n.tables.prep)).ppem=r;var i=n.tables.cvt;if(i)for(var s=a.cvt=new Array(i.length),u=r/n.unitsPerEm,l=0;l<i.length;l++)s[l]=i[l]*u;else a.cvt=[];e.DEBUG&&(console.log("---EXEC PREP---"),a.step=-1);try{Vt(a)}catch(t){this._errorState<2&&console.log("Hinting error in PREP:"+t),this._errorState=2}}if(!(1<this._errorState))try{return Xt(t,a)}catch(t){return this._errorState<1&&(console.log("Hinting error:"+t),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}}},Xt=function(t,r){var n,a,o,i=r.ppem/r.font.unitsPerEm,s=i,u=t.components;if(pr.prototype=r,u){var l=r.font;a=[],n=[];for(var c=0;c<u.length;c++){var p=u[c],f=l.glyphs.get(p.glyphIndex);o=new pr("glyf",f.instructions),e.DEBUG&&(console.log("---EXEC COMP "+c+"---"),o.step=-1),Yt(f,o,i,s);for(var h=Math.round(p.dx*i),d=Math.round(p.dy*s),g=o.gZone,v=o.contours,m=0;m<g.length;m++){var y=g[m];y.xTouched=y.yTouched=!1,y.xo=y.x=y.x+h,y.yo=y.y=y.y+d}var b=a.length;a.push.apply(a,g);for(var x=0;x<v.length;x++)n.push(v[x]+b)}t.instructions&&!o.inhibitGridFit&&((o=new pr("glyf",t.instructions)).gZone=o.z0=o.z1=o.z2=a,o.contours=n,a.push(new ur(0,0),new ur(Math.round(t.advanceWidth*i),0)),e.DEBUG&&(console.log("---EXEC COMPOSITE---"),o.step=-1),Vt(o),a.length-=2)}else o=new pr("glyf",t.instructions),e.DEBUG&&(console.log("---EXEC GLYPH---"),o.step=-1),Yt(t,o,i,s),a=o.gZone;return a},Yt=function(t,r,n,a){for(var o,i,s,u=t.points||[],l=u.length,c=r.gZone=r.z0=r.z1=r.z2=[],p=r.contours=[],f=0;f<l;f++)o=u[f],c[f]=new ur(o.x*n,o.y*a,o.lastPointOfContour,o.onCurve);for(var h=0;h<l;h++)o=c[h],i||(i=o,p.push(h)),o.lastPointOfContour?((o.nextPointOnContour=i).prevPointOnContour=o,i=void 0):(s=c[h+1],(o.nextPointOnContour=s).prevPointOnContour=o);if(!r.inhibitGridFit){if(e.DEBUG){console.log("PROCESSING GLYPH",r.stack);for(var d=0;d<l;d++)console.log(d,c[d].x,c[d].y)}if(c.push(new ur(0,0),new ur(Math.round(t.advanceWidth*n),0)),Vt(r),c.length-=2,e.DEBUG){console.log("FINISHED GLYPH",r.stack);for(var g=0;g<l;g++)console.log(g,c[g].x,c[g].y)}}},Vt=function(t){var r=t.prog;if(r){var n,a=r.length;for(t.ip=0;t.ip<a;t.ip++){if(e.DEBUG&&t.step++,!(n=jt[r[t.ip]]))throw new Error("unknown instruction: 0x"+Number(r[t.ip]).toString(16));n(t)}}},jt=[dr.bind(void 0,or),dr.bind(void 0,ar),gr.bind(void 0,or),gr.bind(void 0,ar),vr.bind(void 0,or),vr.bind(void 0,ar),mr.bind(void 0,0),mr.bind(void 0,1),yr.bind(void 0,0),yr.bind(void 0,1),function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",n,a),t.pv=t.dpv=sr(a,n)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"SPVFS[]",n,a),t.fv=sr(a,n)},function(t){var r=t.stack,n=t.pv;e.DEBUG&&console.log(t.step,"GPV[]"),r.push(16384*n.x),r.push(16384*n.y)},function(t){var r=t.stack,n=t.fv;e.DEBUG&&console.log(t.step,"GFV[]"),r.push(16384*n.x),r.push(16384*n.y)},function(t){t.fv=t.pv,e.DEBUG&&console.log(t.step,"SFVTPV[]")},function(t){var r=t.stack,n=r.pop(),a=r.pop(),o=r.pop(),i=r.pop(),s=r.pop(),u=t.z0,l=t.z1,c=u[n],p=u[a],f=l[o],h=l[i],d=t.z2[s];e.DEBUG&&console.log("ISECT[], ",n,a,o,i,s);var g=c.x,v=c.y,m=p.x,y=p.y,b=f.x,x=f.y,S=h.x,T=h.y,w=(g-m)*(x-T)-(v-y)*(b-S),k=g*y-v*m,U=b*T-x*S;d.x=(k*(b-S)-U*(g-m))/w,d.y=(k*(x-T)-U*(v-y))/w},function(t){t.rp0=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP0[]",t.rp0)},function(t){t.rp1=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP1[]",t.rp1)},function(t){t.rp2=t.stack.pop(),e.DEBUG&&console.log(t.step,"SRP2[]",t.rp2)},function(t){var r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP0[]",r),t.zp0=r){case 0:t.tZone||fr(t),t.z0=t.tZone;break;case 1:t.z0=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP1[]",r),t.zp1=r){case 0:t.tZone||fr(t),t.z1=t.tZone;break;case 1:t.z1=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZP2[]",r),t.zp2=r){case 0:t.tZone||fr(t),t.z2=t.tZone;break;case 1:t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){var r=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SZPS[]",r),t.zp0=t.zp1=t.zp2=r,r){case 0:t.tZone||fr(t),t.z0=t.z1=t.z2=t.tZone;break;case 1:t.z0=t.z1=t.z2=t.gZone;break;default:throw new Error("Invalid zone pointer")}},function(t){t.loop=t.stack.pop(),e.DEBUG&&console.log(t.step,"SLOOP[]",t.loop)},function(t){e.DEBUG&&console.log(t.step,"RTG[]"),t.round=Jt},function(t){e.DEBUG&&console.log(t.step,"RTHG[]"),t.round=er},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SMD[]",r),t.minDis=r/64},function(t){e.DEBUG&&console.log(t.step,"ELSE[]"),hr(t,!1)},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"JMPR[]",r),t.ip+=r-1},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SCVTCI[]",r),t.cvCutIn=r/64},void 0,void 0,function(t){var r=t.stack;e.DEBUG&&console.log(t.step,"DUP[]"),r.push(r[r.length-1])},br,function(t){e.DEBUG&&console.log(t.step,"CLEAR[]"),t.stack.length=0},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"SWAP[]"),r.push(n),r.push(a)},function(t){var r=t.stack;e.DEBUG&&console.log(t.step,"DEPTH[]"),r.push(r.length)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"CINDEX[]",n),r.push(r[r.length-n])},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"MINDEX[]",n),r.push(r.splice(r.length-n,1)[0])},void 0,void 0,void 0,function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"LOOPCALL[]",n,a);var o=t.ip,i=t.prog;t.prog=t.funcs[n];for(var s=0;s<a;s++)Vt(t),e.DEBUG&&console.log(++t.step,s+1<a?"next loopcall":"done loopcall",s);t.ip=o,t.prog=i},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"CALL[]",r);var n=t.ip,a=t.prog;t.prog=t.funcs[r],Vt(t),t.ip=n,t.prog=a,e.DEBUG&&console.log(++t.step,"returning from",r)},function(t){if("fpgm"!==t.env)throw new Error("FDEF not allowed here");var r=t.stack,n=t.prog,a=t.ip,o=r.pop(),i=a;for(e.DEBUG&&console.log(t.step,"FDEF[]",o);45!==n[++a];);t.ip=a,t.funcs[o]=n.slice(i+1,a)},void 0,xr.bind(void 0,0),xr.bind(void 0,1),Sr.bind(void 0,or),Sr.bind(void 0,ar),Tr.bind(void 0,0),Tr.bind(void 0,1),wr.bind(void 0,0),wr.bind(void 0,1),kr.bind(void 0,0),kr.bind(void 0,1),function(t){for(var r=t.stack,n=t.loop,a=t.fv,o=r.pop()/64,i=t.z2;n--;){var s=r.pop(),u=i[s];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-n)+": ":"")+"SHPIX[]",s,o),a.setRelative(u,u,o),a.touch(u)}t.loop=1},function(t){for(var r=t.stack,n=t.rp1,a=t.rp2,o=t.loop,i=t.z0[n],s=t.z1[a],u=t.fv,l=t.dpv,c=t.z2;o--;){var p=r.pop(),f=c[p];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-o)+": ":"")+"IP[]",p,n,"<->",a),u.interpolate(f,i,s,l),u.touch(f)}t.loop=1},Ur.bind(void 0,0),Ur.bind(void 0,1),function(t){for(var r=t.stack,n=t.rp0,a=t.z0[n],o=t.loop,i=t.fv,s=t.pv,u=t.z1;o--;){var l=r.pop(),c=u[l];e.DEBUG&&console.log(t.step,(1<t.loop?"loop "+(t.loop-o)+": ":"")+"ALIGNRP[]",l),i.setRelative(c,a,0,s),i.touch(c)}t.loop=1},function(t){e.DEBUG&&console.log(t.step,"RTDG[]"),t.round=$t},Cr.bind(void 0,0),Cr.bind(void 0,1),function(t){var r=t.prog,n=t.ip,a=t.stack,o=r[++n];e.DEBUG&&console.log(t.step,"NPUSHB[]",o);for(var i=0;i<o;i++)a.push(r[++n]);t.ip=n},function(t){var r=t.ip,n=t.prog,a=t.stack,o=n[++r];e.DEBUG&&console.log(t.step,"NPUSHW[]",o);for(var i=0;i<o;i++){var s=n[++r]<<8|n[++r];32768&s&&(s=-(1+(65535^s))),a.push(s)}t.ip=r},function(t){var r=t.stack,n=t.store;n||(n=t.store=[]);var a=r.pop(),o=r.pop();e.DEBUG&&console.log(t.step,"WS",a,o),n[o]=a},function(t){var r=t.stack,n=t.store,a=r.pop();e.DEBUG&&console.log(t.step,"RS",a);var o=n&&n[a]||0;r.push(o)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"WCVTP",n,a),t.cvt[a]=n/64},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"RCVT",n),r.push(64*t.cvt[n])},Or.bind(void 0,0),Or.bind(void 0,1),void 0,Er.bind(void 0,0),Er.bind(void 0,1),function(t){e.DEBUG&&console.log(t.step,"MPPEM[]"),t.stack.push(t.ppem)},void 0,function(t){e.DEBUG&&console.log(t.step,"FLIPON[]"),t.autoFlip=!0},void 0,void 0,function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"LT[]",n,a),r.push(a<n?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"LTEQ[]",n,a),r.push(a<=n?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"GT[]",n,a),r.push(n<a?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"GTEQ[]",n,a),r.push(n<=a?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"EQ[]",n,a),r.push(n===a?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"NEQ[]",n,a),r.push(n!==a?1:0)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"ODD[]",n),r.push(Math.trunc(n)%2?1:0)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"EVEN[]",n),r.push(Math.trunc(n)%2?0:1)},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"IF[]",r),r||(hr(t,!0),e.DEBUG&&console.log(t.step,"EIF[]"))},function(t){e.DEBUG&&console.log(t.step,"EIF[]")},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"AND[]",n,a),r.push(n&&a?1:0)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"OR[]",n,a),r.push(n||a?1:0)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"NOT[]",n),r.push(n?0:1)},Rr.bind(void 0,1),function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SDB[]",r),t.deltaBase=r},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SDS[]",r),t.deltaShift=Math.pow(.5,r)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"ADD[]",n,a),r.push(a+n)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"SUB[]",n,a),r.push(a-n)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"DIV[]",n,a),r.push(64*a/n)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"MUL[]",n,a),r.push(a*n/64)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"ABS[]",n),r.push(Math.abs(n))},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"NEG[]",n),r.push(-n)},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"FLOOR[]",n),r.push(64*Math.floor(n/64))},function(t){var r=t.stack,n=r.pop();e.DEBUG&&console.log(t.step,"CEILING[]",n),r.push(64*Math.ceil(n/64))},Ar.bind(void 0,0),Ar.bind(void 0,1),Ar.bind(void 0,2),Ar.bind(void 0,3),void 0,void 0,void 0,void 0,function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"WCVTF[]",n,a),t.cvt[a]=n*t.ppem/t.font.unitsPerEm},Rr.bind(void 0,2),Rr.bind(void 0,3),Lr.bind(void 0,1),Lr.bind(void 0,2),Lr.bind(void 0,3),function(t){var r,n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"SROUND[]",n),t.round=nr,192&n){case 0:r=.5;break;case 64:r=1;break;case 128:r=2;break;default:throw new Error("invalid SROUND value")}switch(t.srPeriod=r,48&n){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 new Error("invalid SROUND value")}n&=15,t.srThreshold=0===n?0:(n/8-.5)*r},function(t){var r,n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"S45ROUND[]",n),t.round=nr,192&n){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 new Error("invalid S45ROUND value")}switch(t.srPeriod=r,48&n){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 new Error("invalid S45ROUND value")}n&=15,t.srThreshold=0===n?0:(n/8-.5)*r},void 0,void 0,function(t){e.DEBUG&&console.log(t.step,"ROFF[]"),t.round=Kt},void 0,function(t){e.DEBUG&&console.log(t.step,"RUTG[]"),t.round=tr},function(t){e.DEBUG&&console.log(t.step,"RDTG[]"),t.round=rr},br,br,void 0,void 0,void 0,void 0,void 0,function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANCTRL[]",r)},Dr.bind(void 0,0),Dr.bind(void 0,1),function(t){var r=t.stack,n=r.pop(),a=0;e.DEBUG&&console.log(t.step,"GETINFO[]",n),1&n&&(a=35),32&n&&(a|=4096),r.push(a)},void 0,function(t){var r=t.stack,n=r.pop(),a=r.pop(),o=r.pop();e.DEBUG&&console.log(t.step,"ROLL[]"),r.push(a),r.push(n),r.push(o)},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"MAX[]",n,a),r.push(Math.max(a,n))},function(t){var r=t.stack,n=r.pop(),a=r.pop();e.DEBUG&&console.log(t.step,"MIN[]",n,a),r.push(Math.min(a,n))},function(t){var r=t.stack.pop();e.DEBUG&&console.log(t.step,"SCANTYPE[]",r)},function(t){var r=t.stack.pop(),n=t.stack.pop();switch(e.DEBUG&&console.log(t.step,"INSTCTRL[]",r,n),r){case 1:return void(t.inhibitGridFit=!!n);case 2:return void(t.ignoreCvt=!!n);default:throw new Error("invalid INSTCTRL[] selector")}},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,Ir.bind(void 0,1),Ir.bind(void 0,2),Ir.bind(void 0,3),Ir.bind(void 0,4),Ir.bind(void 0,5),Ir.bind(void 0,6),Ir.bind(void 0,7),Ir.bind(void 0,8),Mr.bind(void 0,1),Mr.bind(void 0,2),Mr.bind(void 0,3),Mr.bind(void 0,4),Mr.bind(void 0,5),Mr.bind(void 0,6),Mr.bind(void 0,7),Mr.bind(void 0,8),Pr.bind(void 0,0,0,0,0,0),Pr.bind(void 0,0,0,0,0,1),Pr.bind(void 0,0,0,0,0,2),Pr.bind(void 0,0,0,0,0,3),Pr.bind(void 0,0,0,0,1,0),Pr.bind(void 0,0,0,0,1,1),Pr.bind(void 0,0,0,0,1,2),Pr.bind(void 0,0,0,0,1,3),Pr.bind(void 0,0,0,1,0,0),Pr.bind(void 0,0,0,1,0,1),Pr.bind(void 0,0,0,1,0,2),Pr.bind(void 0,0,0,1,0,3),Pr.bind(void 0,0,0,1,1,0),Pr.bind(void 0,0,0,1,1,1),Pr.bind(void 0,0,0,1,1,2),Pr.bind(void 0,0,0,1,1,3),Pr.bind(void 0,0,1,0,0,0),Pr.bind(void 0,0,1,0,0,1),Pr.bind(void 0,0,1,0,0,2),Pr.bind(void 0,0,1,0,0,3),Pr.bind(void 0,0,1,0,1,0),Pr.bind(void 0,0,1,0,1,1),Pr.bind(void 0,0,1,0,1,2),Pr.bind(void 0,0,1,0,1,3),Pr.bind(void 0,0,1,1,0,0),Pr.bind(void 0,0,1,1,0,1),Pr.bind(void 0,0,1,1,0,2),Pr.bind(void 0,0,1,1,0,3),Pr.bind(void 0,0,1,1,1,0),Pr.bind(void 0,0,1,1,1,1),Pr.bind(void 0,0,1,1,1,2),Pr.bind(void 0,0,1,1,1,3),Pr.bind(void 0,1,0,0,0,0),Pr.bind(void 0,1,0,0,0,1),Pr.bind(void 0,1,0,0,0,2),Pr.bind(void 0,1,0,0,0,3),Pr.bind(void 0,1,0,0,1,0),Pr.bind(void 0,1,0,0,1,1),Pr.bind(void 0,1,0,0,1,2),Pr.bind(void 0,1,0,0,1,3),Pr.bind(void 0,1,0,1,0,0),Pr.bind(void 0,1,0,1,0,1),Pr.bind(void 0,1,0,1,0,2),Pr.bind(void 0,1,0,1,0,3),Pr.bind(void 0,1,0,1,1,0),Pr.bind(void 0,1,0,1,1,1),Pr.bind(void 0,1,0,1,1,2),Pr.bind(void 0,1,0,1,1,3),Pr.bind(void 0,1,1,0,0,0),Pr.bind(void 0,1,1,0,0,1),Pr.bind(void 0,1,1,0,0,2),Pr.bind(void 0,1,1,0,0,3),Pr.bind(void 0,1,1,0,1,0),Pr.bind(void 0,1,1,0,1,1),Pr.bind(void 0,1,1,0,1,2),Pr.bind(void 0,1,1,0,1,3),Pr.bind(void 0,1,1,1,0,0),Pr.bind(void 0,1,1,1,0,1),Pr.bind(void 0,1,1,1,0,2),Pr.bind(void 0,1,1,1,0,3),Pr.bind(void 0,1,1,1,1,0),Pr.bind(void 0,1,1,1,1,1),Pr.bind(void 0,1,1,1,1,2),Pr.bind(void 0,1,1,1,1,3)],Br.prototype.setState=function(e,t){return this.state[e]=t,this.activeState={key:e,value:this.state[e]},this.activeState},Br.prototype.getState=function(e){return this.state[e]||null},Hr.prototype.inboundIndex=function(e){return 0<=e&&e<this.tokens.length},Hr.prototype.composeRUD=function(e){var t=this,r=e.map((function(e){return t[e[0]].apply(t,e.slice(1).concat(!0))})),n=function(e){return"object"==typeof e&&e.hasOwnProperty("FAIL")};if(r.every(n))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:r.filter(n)};this.dispatch("composeRUD",[r.filter((function(e){return!n(e)}))])},Hr.prototype.replaceRange=function(e,t,r,n){t=null!==t?t:this.tokens.length;var a=r.every((function(e){return e instanceof Br}));if(!isNaN(e)&&this.inboundIndex(e)&&a){var o=this.tokens.splice.apply(this.tokens,[e,t].concat(r));return n||this.dispatch("replaceToken",[e,t,r]),[o,r]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Hr.prototype.replaceToken=function(e,t,r){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Br){var n=this.tokens.splice(e,1,t);return r||this.dispatch("replaceToken",[e,t]),[n[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Hr.prototype.removeRange=function(e,t,r){t=isNaN(t)?this.tokens.length:t;var n=this.tokens.splice(e,t);return r||this.dispatch("removeRange",[n,e,t]),n},Hr.prototype.removeToken=function(e,t){if(isNaN(e)||!this.inboundIndex(e))return{FAIL:"removeToken: invalid token index."};var r=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[r,e]),r},Hr.prototype.insertToken=function(e,t,r){return e.every((function(e){return e instanceof Br}))?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),r||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Hr.prototype.registerModifier=function(e,t,r){this.events.newToken.subscribe((function(n,a){var o=[n,a],i=[n,a];if(null===t||!0===t.apply(this,o)){var s=r.apply(this,i);n.setState(e,s)}})),this.registeredModifiers.push(e)},_r.prototype.subscribe=function(e){return"function"==typeof e?this.subscribers.push(e)-1:{FAIL:"invalid '"+this.eventId+"' event handler"}},_r.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},Gr.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},Gr.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case 0<e&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Hr.prototype.rangeToText=function(e){if(e instanceof Fr)return this.getRangeTokens(e).map((function(e){return e.char})).join("")},Hr.prototype.getText=function(){return this.tokens.map((function(e){return e.char})).join("")},Hr.prototype.getContext=function(e){return this.registeredContexts[e]||null},Hr.prototype.on=function(e,t){var r=this.events[e];return r?r.subscribe(t):null},Hr.prototype.dispatch=function(e,t){var r=this,n=this.events[e];n instanceof _r&&n.subscribers.forEach((function(e){e.apply(r,t||[])}))},Hr.prototype.registerContextChecker=function(e,t,r){if(this.getContext(e))return{FAIL:"context name '"+e+"' is already registered."};if("function"!=typeof t)return{FAIL:"missing context start check."};if("function"!=typeof r)return{FAIL:"missing context end check."};var n=new Nr(e,t,r);return this.registeredContexts[e]=n,this.contextCheckers.push(n),n},Hr.prototype.getRangeTokens=function(e){var t=e.startIndex+e.endOffset;return[].concat(this.tokens.slice(e.startIndex,t))},Hr.prototype.getContextRanges=function(e){var t=this.getContext(e);return t?t.ranges:{FAIL:"context checker '"+e+"' is not registered."}},Hr.prototype.resetContextsRanges=function(){var e=this.registeredContexts;for(var t in e)e.hasOwnProperty(t)&&(e[t].ranges=[])},Hr.prototype.updateContextsRanges=function(){this.resetContextsRanges();for(var e=this.tokens.map((function(e){return e.char})),t=0;t<e.length;t++){var r=new Gr(e,t);this.runContextCheck(r)}this.dispatch("updateContextsRanges",[this.registeredContexts])},Hr.prototype.setEndOffset=function(e,t){var r=new Fr(this.getContext(t).openRange.startIndex,e,t),n=this.getContext(t).ranges;return r.rangeId=t+"."+n.length,n.push(r),this.getContext(t).openRange=null,r},Hr.prototype.runContextCheck=function(e){var t=this,r=e.index;this.contextCheckers.forEach((function(n){var a=n.contextName,o=t.getContext(a).openRange;if(!o&&n.checkStart(e)&&(o=new Fr(r,null,a),t.getContext(a).openRange=o,t.dispatch("contextStart",[a,r])),o&&n.checkEnd(e)){var i=r-o.startIndex+1,s=t.setEndOffset(i,a);t.dispatch("contextEnd",[a,s])}}))},Hr.prototype.tokenize=function(e){this.tokens=[],this.resetContextsRanges();var t=Array.from(e);this.dispatch("start");for(var r=0;r<t.length;r++){var n=t[r],a=new Gr(t,r);this.dispatch("next",[a]),this.runContextCheck(a);var o=new Br(n);this.tokens.push(o),this.dispatch("newToken",[o,a])}return this.dispatch("end",[this.tokens]),this.tokens};var jr={arabicWordStartCheck:function(e){var t=e.current,r=e.get(-1);return null===r&&zr(t)||!zr(r)&&zr(t)},arabicWordEndCheck:function(e){var t=e.get(1);return null===t||!zr(t)}},Vr={arabicSentenceStartCheck:function(e){var t=e.current,r=e.get(-1);return(zr(t)||qr(t))&&!zr(r)},arabicSentenceEndCheck:function(e){var t=e.get(1);switch(!0){case null===t:return!0;case!zr(t)&&!qr(t):var r=/\s/.test(t);if(!r)return!0;if(r&&!e.lookahead.some((function(e){return zr(e)||qr(e)})))return!0;break;default:return!1}}};function Xr(e){var t=this.features.arab,r=this.tokenizer.getRangeTokens(e);if(1!==r.length){var n=function(e,r,n){if(t.hasOwnProperty(e)){var a,o=(a=t[e].lookup(n)||null,1===a.length&&12===a[0].id&&a[0].substitution)[0];return 0<=o?r.setState(e,o):void 0}},a=new Gr(r,0),o=new Gr(r.map((function(e){return e.char})),0);r.forEach((function(e,t){if(!qr(e.char)){a.setCurrentIndex(t),o.setCurrentIndex(t);var r=0;switch(function(e){for(var t=[].concat(e.backtrack),r=t.length-1;0<=r;r--){var n=t[r],a=Wr(n),o=qr(n);if(!a&&!o)return!0;if(a)return!1}return!1}(o)&&(r|=1),function(e){if(Wr(e.current))return!1;for(var t=0;t<e.lookahead.length;t++)if(!qr(e.lookahead[t]))return!0;return!1}(o)&&(r|=2),r){case 0:return;case 1:n("fina",e,a);break;case 2:n("init",e,a);break;case 3:n("medi",e,a)}}}))}}function Yr(e){this.baseDir=e||"ltr",this.tokenizer=new Hr,this.features=[]}function Zr(){if(-1===this.tokenizer.registeredModifiers.indexOf("glyphIndex"))throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function Qr(){var e=this;this.features.hasOwnProperty("arab")&&this.features.arab.hasOwnProperty("rlig")&&(Zr.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){(function(e){var t=this.features.arab;if(t.hasOwnProperty("rlig"))for(var r=this.tokenizer.getRangeTokens(e),n=0;n<r.length;n++){var a=new Gr(r,n),o=t.rlig.lookup(a)||null,i=1===o.length&&63===o[0].id&&o[0].substitution,s=1===o.length&&41===o[0].id&&o[0].substitution[0],u=r[n];if(s){u.setState("rlig",[s.ligGlyph]);for(var l=0;l<s.components.length;l++){var c=s.components[l],p=a.get(l+1);p.activeState.value===c&&(p.state.deleted=!0)}}else if(i){var f=i&&1===i.length&&12===i[0].id&&i[0].substitution;f&&0<=f&&u.setState("rlig",f)}}}).call(e,t)})))}Yr.prototype.setText=function(e){this.text=e},Yr.prototype.contextChecks={arabicWordCheck:jr,arabicSentenceCheck:Vr},Yr.prototype.subscribeArabicForms=function(e){var t=this;this.tokenizer.events.contextEnd.subscribe((function(r,n){if("arabicWord"===r)return Xr.call(t.tokenizer,n,e)}))},Yr.prototype.applyFeatures=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r){var n=r.script;this.features[n]||(this.features[n]={}),this.features[n][r.tag]=r}}},Yr.prototype.registerModifier=function(e,t,r){this.tokenizer.registerModifier(e,t,r)},Yr.prototype.processText=function(e){this.text&&this.text===e||(this.setText(e),function(){return function(){var e=this.contextChecks.arabicWordCheck;return this.tokenizer.registerContextChecker("arabicWord",e.arabicWordStartCheck,e.arabicWordEndCheck)}.call(this),function(){var e=this.contextChecks.arabicSentenceCheck;return this.tokenizer.registerContextChecker("arabicSentence",e.arabicSentenceStartCheck,e.arabicSentenceEndCheck)}.call(this),this.tokenizer.tokenize(this.text)}.call(this),function(){var e=this;this.features.hasOwnProperty("arab")&&(Zr.call(this),this.tokenizer.getContextRanges("arabicWord").forEach((function(t){Xr.call(e,t)})))}.call(this),Qr.call(this),function(){var e=this;this.tokenizer.getContextRanges("arabicSentence").forEach((function(t){var r=e.tokenizer.getRangeTokens(t);e.tokenizer.replaceRange(t.startIndex,t.endOffset,r.reverse())}))}.call(this))},Yr.prototype.getBidiText=function(e){return this.processText(e),this.tokenizer.getText()},Yr.prototype.getTextGlyphs=function(e){this.processText(e);for(var t=[],r=0;r<this.tokenizer.tokens.length;r++){var n=this.tokenizer.tokens[r];if(!n.state.deleted){var a=n.activeState.value;t.push(Array.isArray(a)?a[0]:a)}}return t};var Kr="ltr";function Jr(e,t){this.font=e,this.features={},Kr=t||Kr}function $r(e,t,r,n){this.tag=e,this.featureRef=t,this.lookups=r.lookups,this.script=n}function en(e){this.table=e}function tn(e){this.ligatureSets=e}function rn(e,t,r){this.lookups=e,this.subtable=r,this.lookupTable=t,r.hasOwnProperty("coverage")&&(this.coverage=new en(r.coverage)),r.hasOwnProperty("inputCoverage")&&(this.inputCoverage=r.inputCoverage.map((function(e){return new en(e)}))),r.hasOwnProperty("backtrackCoverage")&&(this.backtrackCoverage=r.backtrackCoverage.map((function(e){return new en(e)}))),r.hasOwnProperty("lookaheadCoverage")&&(this.lookaheadCoverage=r.lookaheadCoverage.map((function(e){return new en(e)}))),r.hasOwnProperty("ligatureSets")&&(this.ligatureSets=new tn(r.ligatureSets))}function nn(e,t){this.index=e,this.subtables=t[e].subtables.map((function(r){return new rn(t,t[e],r)}))}function an(e,t){this.lookups=t.map((function(t){return new nn(t,e)}))}function on(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],o=t.current.activeState.value;o=Array.isArray(o)?o[0]:o;var i=a.lookup(o);-1!==i&&r.push(i)}return r.length!==e.length?-1:r}function sn(e){(e=e||{}).empty||(Gt(e.familyName,"When creating a new Font object, familyName is required."),Gt(e.styleName,"When creating a new Font object, styleName is required."),Gt(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),Gt(e.ascender,"When creating a new Font object, ascender is required."),Gt(e.descender,"When creating a new Font object, descender is required."),Gt(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).replace(/\s/g,"")},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 Se.GlyphSet(this,e.glyphs||[]),this.encoding=new he(this),this.position=new Mt(this),this.substitution=new Pt(this),this.tables=this.tables||{},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Qt(this):void 0}})}function un(e,t,r,n){var a={},o=new ie.Parser(e,t);a.name=n[o.parseUShort()]||{},o.skip("uShort",1),a.coordinates={};for(var i=0;i<r.length;++i)a.coordinates[r[i].tag]=o.parseFixed();return a}tn.prototype.lookup=function(e,t){for(var r=this.ligatureSets[t],n=function(e,t){if(e.length>t.length)return null;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},a=0;a<r.length;a++){var o=r[a],i=e.lookahead.map((function(e){return e.activeState.value}));if("rtl"===Kr&&i.reverse(),n(o.components,i))return o}return null},nn.prototype.lookup=function(e){for(var t=[],r=0;r<this.subtables.length;r++){var n=this.subtables[r].lookup(e);(null!==n||n.length)&&(t=t.concat(n))}return t},rn.prototype.lookup=function(e){var t=[],r=this.lookupTable.lookupType,n=this.subtable.substFormat;if(1===r&&2===n){var a=function(e){var t=e.current.activeState.value;t=Array.isArray(t)?t[0]:t;var r=this.coverage.lookup(t);return-1===r?[]:[this.subtable.substitute[r]]}.call(this,e);0<a.length&&t.push({id:12,substitution:a})}if(6===r&&3===n){var o=function(e){var t=this.inputCoverage.length+this.lookaheadCoverage.length+this.backtrackCoverage.length;if(e.context.length<t)return[];var r=on(this.inputCoverage,e);if(-1===r)return[];var n=this.inputCoverage.length-1;if(e.lookahead.length<this.lookaheadCoverage.length)return[];for(var a=e.lookahead.slice(n);a.length&&qr(a[0].char);)a.shift();var o=new Gr(a,0),i=on(this.lookaheadCoverage,o),s=[].concat(e.backtrack);for(s.reverse();s.length&&qr(s[0].char);)s.shift();if(s.length<this.backtrackCoverage.length)return[];var u=new Gr(s,0),l=on(this.backtrackCoverage,u),c=[];if(r.length===this.inputCoverage.length&&i.length===this.lookaheadCoverage.length&&l.length===this.backtrackCoverage.length)for(var p=this.subtable.lookupRecords,f=0;f<p.length;f++)for(var h=p[f],d=0;d<r.length;d++){var g=new Gr([e.get(d)],0),v=new nn(h.lookupListIndex,this.lookups).lookup(g);c=c.concat(v)}return c}.call(this,e);0<o.length&&t.push({id:63,substitution:o})}if(4===r&&1===n){var i=function(e){var t=e.current.activeState.value,r=this.coverage.lookup(t);if(-1===r)return[];var n=this.ligatureSets.lookup(e,r);return n?[n]:[]}.call(this,e);0<i.length&&t.push({id:41,substitution:i})}return t},en.prototype.lookup=function(e){if(!e)return-1;switch(this.table.format){case 1:return this.table.glyphs.indexOf(e);case 2:for(var t=this.table.ranges,r=0;r<t.length;r++){var n=t[r];if(e>=n.start&&e<=n.end){var a=e-n.start;return n.index+a}}break;default:return-1}return-1},$r.prototype.lookup=function(e){for(var t=[],r=0;r<this.lookups.length;r++){var n=this.lookups[r].lookup(e);(null!==n||n.length)&&(t=t.concat(n))}return t},Jr.prototype.getScriptFeaturesIndexes=function(e){if(!e)return[];if(!this.font.tables.gsub)return[];for(var t=this.font.tables.gsub.scripts,r=0;r<t.length;r++){var n=t[r];if(n.tag===e)return n.script.defaultLangSys.featureIndexes;var a=n.langSysRecords;if(a)for(var o=0;o<a.length;o++){var i=a[o];if(i.tag===e)return i.langSys.featureIndexes}}return[]},Jr.prototype.mapTagsToFeatures=function(e,t){for(var r={},n=0;n<e.length;n++){var a=e[n].feature,o=e[n].tag,i=new an(this.font.tables.gsub.lookups,a.lookupListIndexes);r[o]=new $r(o,a,i,t)}this.features[t].tags=r},Jr.prototype.getScriptFeatures=function(e){var t=this.features[e];if(this.features.hasOwnProperty(e))return t;var r=this.getScriptFeaturesIndexes(e);if(!r)return null;var n=this.font.tables.gsub;return t=r.map((function(e){return n.features[e]})),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Jr.prototype.getFeature=function(e){return this.font?(this.features.hasOwnProperty(e.script)||this.getScriptFeatures(e.script),this.features[e.script].tags[e.tag]||null):{FAIL:"No font was found"}},sn.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},sn.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},sn.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r},sn.prototype.stringToGlyphs=function(e,t){var r=this;t=t||this.defaultRenderOptions;var n=new Yr;n.registerModifier("glyphIndex",null,(function(e){return r.charToGlyphIndex(e.char)}));var a=new Jr(this);n.applyFeatures(["init","medi","fina","rlig"].map((function(e){var t={tag:e,script:"arab"},r=a.getFeature(t);if(r)return r})));var o=n.getTextGlyphs(e),i=o.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),u=[];t.features.liga&&(u=u.concat(this.substitution.getFeature("liga",s,t.language))),t.features.rlig&&(u=u.concat(this.substitution.getFeature("rlig",s,t.language)));for(var l=0;l<i;l+=1)for(var c=0;c<u.length;c++){for(var p=u[c],f=p.sub,h=f.length,d=0;d<h&&f[d]===o[l+d];)d++;d===h&&(o.splice(l,h,p.by),i=i-h+1)}}for(var g=new Array(i),v=this.glyphs.get(0),m=0;m<i;m+=1)g[m]=r.glyphs.get(o[m])||v;return g},sn.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},sn.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r||(r=this.glyphs.get(0)),r},sn.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},sn.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+","+t]||0},sn.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},sn.prototype.forEachGlyph=function(e,t,r,n,a,o){t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:72,a=a||this.defaultRenderOptions;var i,s=1/this.unitsPerEm*n,u=this.stringToGlyphs(e,a);if(a.kerning){var l=a.script||this.position.getDefaultScriptName();i=this.position.getKerningTables(l,a.language)}for(var c=0;c<u.length;c+=1){var p=u[c];o.call(this,p,t,r,n,a),p.advanceWidth&&(t+=p.advanceWidth*s),a.kerning&&c<u.length-1&&(t+=(i?this.position.getKerningValue(i,p.index,u[c+1].index):this.getKerningValue(p,u[c+1]))*s),a.letterSpacing?t+=a.letterSpacing*n:a.tracking&&(t+=a.tracking/1e3*n)}return t},sn.prototype.getPath=function(e,t,r,n,a){var o=new O;return this.forEachGlyph(e,t,r,n,a,(function(e,t,r,n){var i=e.getPath(t,r,n,a,this);o.extend(i)})),o},sn.prototype.getPaths=function(e,t,r,n,a){var o=[];return this.forEachGlyph(e,t,r,n,a,(function(e,t,r,n){var i=e.getPath(t,r,n,a,this);o.push(i)})),o},sn.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,(function(){}))},sn.prototype.draw=function(e,t,r,n,a,o){this.getPath(t,r,n,a,o).draw(e)},sn.prototype.drawPoints=function(e,t,r,n,a,o){this.forEachGlyph(t,r,n,a,o,(function(t,r,n,a){t.drawPoints(e,r,n,a)}))},sn.prototype.drawMetrics=function(e,t,r,n,a,o){this.forEachGlyph(t,r,n,a,o,(function(t,r,n,a){t.drawMetrics(e,r,n,a)}))},sn.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},sn.prototype.validate=function(){var e=this;function t(t){var r=e.getEnglishName(t);r&&r.trim().length}t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),this.unitsPerEm},sn.prototype.toTables=function(){return Rt(this)},sn.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},sn.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n<e.length;n++)r[n]=e[n];return t},sn.prototype.download=function(e){var t=this.getEnglishName("fontFamily"),n=this.getEnglishName("fontSubfamily");e=e||t.replace(/\s/g,"")+"-"+n+".otf";var a=this.toArrayBuffer();if("undefined"!=typeof window)if(window.URL=window.URL||window.webkitURL,window.URL){var o=new DataView(a),i=new Blob([o],{type:"font/opentype"}),s=document.createElement("a");s.href=window.URL.createObjectURL(i),s.download=e;var u=document.createEvent("MouseEvents");u.initEvent("click",!0,!1),s.dispatchEvent(u)}else console.warn("Font file could not be downloaded. Try using a different browser.");else{var l=r(46102),c=function(e){for(var t=new Buffer(e.byteLength),r=new Uint8Array(e),n=0;n<t.length;++n)t[n]=r[n];return t}(a);l.writeFileSync(e,c)}},sn.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},sn.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},sn.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var ln=function(e,t,r){var n=new ie.Parser(e,t),a=n.parseULong();A.argument(65536===a,"Unsupported fvar table version.");var o=n.parseOffset16();n.skip("uShort",1);for(var i,s,u,l,c,p=n.parseUShort(),f=n.parseUShort(),h=n.parseUShort(),d=n.parseUShort(),g=[],v=0;v<p;v++)g.push((i=e,s=t+o+v*f,u=r,c=l=void 0,l={},c=new ie.Parser(i,s),l.tag=c.parseTag(),l.minValue=c.parseFixed(),l.defaultValue=c.parseFixed(),l.maxValue=c.parseFixed(),c.skip("uShort",1),l.name=u[c.parseUShort()]||{},l));for(var m=[],y=t+o+p*f,b=0;b<h;b++)m.push(un(e,y+b*d,g,r));return{axes:g,instances:m}},cn=new Array(10);cn[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(ae.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(ae.coverage),values:this.parseValueRecordList()}:void A.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},cn[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();A.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var r=this.parsePointer(ae.coverage),n=this.parseUShort(),a=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:a,pairSets:this.parseList(ae.pointer(ae.list((function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(n),value2:this.parseValueRecord(a)}}))))};if(2===t){var o=this.parsePointer(ae.classDef),i=this.parsePointer(ae.classDef),s=this.parseUShort(),u=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:n,valueFormat2:a,classDef1:o,classDef2:i,class1Count:s,class2Count:u,classRecords:this.parseList(s,ae.list(u,(function(){return{value1:this.parseValueRecord(n),value2:this.parseValueRecord(a)}})))}}},cn[3]=function(){return{error:"GPOS Lookup 3 not supported"}},cn[4]=function(){return{error:"GPOS Lookup 4 not supported"}},cn[5]=function(){return{error:"GPOS Lookup 5 not supported"}},cn[6]=function(){return{error:"GPOS Lookup 6 not supported"}},cn[7]=function(){return{error:"GPOS Lookup 7 not supported"}},cn[8]=function(){return{error:"GPOS Lookup 8 not supported"}},cn[9]=function(){return{error:"GPOS Lookup 9 not supported"}};new Array(10);var pn=function(e,t){var r=new ae(e,t=t||0),n=r.parseVersion(1);return A.argument(1===n||1.1===n,"Unsupported GPOS table version "+n),1===n?{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(cn)}:{version:n,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(cn),variations:r.parseFeatureVariationsList()}},fn=function(e,t){var r=new ie.Parser(e,t),n=r.parseUShort();if(0===n)return function(e){var t={};e.skip("uShort");var r=e.parseUShort();A.argument(0===r,"Unsupported kern sub-table version."),e.skip("uShort",2);var n=e.parseUShort();e.skip("uShort",3);for(var a=0;a<n;a+=1){var o=e.parseUShort(),i=e.parseUShort(),s=e.parseShort();t[o+","+i]=s}return t}(r);if(1===n)return function(e){var t={};e.skip("uShort"),1<e.parseULong()&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");var r=255&e.parseUShort();if(e.skip("uShort"),0===r){var n=e.parseUShort();e.skip("uShort",3);for(var a=0;a<n;a+=1){var o=e.parseUShort(),i=e.parseUShort(),s=e.parseShort();t[o+","+i]=s}}return t}(r);throw new Error("Unsupported kern table version ("+n+").")},hn=function(e,t,r,n){for(var a=new ie.Parser(e,t),o=n?a.parseUShort:a.parseULong,i=[],s=0;s<r+1;s+=1){var u=o.call(a);n&&(u*=2),i.push(u)}return i};function dn(e,t){r(46102).readFile(e,(function(e,r){if(e)return t(e.message);t(null,Nt(r))}))}function gn(e,t){var r=new XMLHttpRequest;r.open("get",e,!0),r.responseType="arraybuffer",r.onload=function(){return r.response?t(null,r.response):t("Font could not be loaded: "+r.statusText)},r.onerror=function(){t("Font could not be loaded")},r.send()}function vn(e,t){for(var r=[],n=12,a=0;a<t;a+=1){var o=ie.getTag(e,n),i=ie.getULong(e,n+4),s=ie.getULong(e,n+8),u=ie.getULong(e,n+12);r.push({tag:o,checksum:i,offset:s,length:u,compression:!1}),n+=16}return r}function mn(e,t){if("WOFF"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),n=new Uint8Array(t.length);if(k(r,n),n.byteLength!==t.length)throw new Error("Decompression error: "+t.tag+" decompressed length doesn't match recorded length");return{data:new DataView(n.buffer,0),offset:0}}function yn(e){var t,r,n,a,o,i,s,u,l,c,p,f,h,d,g=new sn({empty:!0}),v=new DataView(e,0),m=[],y=ie.getTag(v,0);if(y===String.fromCharCode(0,1,0,0)||"true"===y||"typ1"===y)g.outlinesFormat="truetype",m=vn(v,n=ie.getUShort(v,4));else if("OTTO"===y)g.outlinesFormat="cff",m=vn(v,n=ie.getUShort(v,4));else{if("wOFF"!==y)throw new Error("Unsupported OpenType signature "+y);var b=ie.getTag(v,4);if(b===String.fromCharCode(0,1,0,0))g.outlinesFormat="truetype";else{if("OTTO"!==b)throw new Error("Unsupported OpenType flavor "+y);g.outlinesFormat="cff"}m=function(e,t){for(var r=[],n=44,a=0;a<t;a+=1){var o,i=ie.getTag(e,n),s=ie.getULong(e,n+4),u=ie.getULong(e,n+8),l=ie.getULong(e,n+12);o=u<l&&"WOFF",r.push({tag:i,offset:s,compression:o,compressedLength:u,length:l}),n+=20}return r}(v,n=ie.getUShort(v,12))}for(var x=0;x<n;x+=1){var S=m[x],T=void 0;switch(S.tag){case"cmap":T=mn(v,S),g.tables.cmap=se(T.data,T.offset),g.encoding=new de(g.tables.cmap);break;case"cvt ":T=mn(v,S),d=new ie.Parser(T.data,T.offset),g.tables.cvt=d.parseShortList(S.length/2);break;case"fvar":o=S;break;case"fpgm":T=mn(v,S),d=new ie.Parser(T.data,T.offset),g.tables.fpgm=d.parseByteList(S.length);break;case"head":T=mn(v,S),g.tables.head=He(T.data,T.offset),g.unitsPerEm=g.tables.head.unitsPerEm,t=g.tables.head.indexToLocFormat;break;case"hhea":T=mn(v,S),g.tables.hhea=We(T.data,T.offset),g.ascender=g.tables.hhea.ascender,g.descender=g.tables.hhea.descender,g.numberOfHMetrics=g.tables.hhea.numberOfHMetrics;break;case"hmtx":l=S;break;case"ltag":T=mn(v,S),r=Ye(T.data,T.offset);break;case"maxp":T=mn(v,S),g.tables.maxp=Ze(T.data,T.offset),g.numGlyphs=g.tables.maxp.numGlyphs;break;case"name":f=S;break;case"OS/2":T=mn(v,S),g.tables.os2=ft(T.data,T.offset);break;case"post":T=mn(v,S),g.tables.post=gt(T.data,T.offset),g.glyphNames=new ve(g.tables.post);break;case"prep":T=mn(v,S),d=new ie.Parser(T.data,T.offset),g.tables.prep=d.parseByteList(S.length);break;case"glyf":i=S;break;case"loca":p=S;break;case"CFF ":a=S;break;case"kern":c=S;break;case"GPOS":s=S;break;case"GSUB":u=S;break;case"meta":h=S}}var w=mn(v,f);if(g.tables.name=lt(w.data,w.offset,r),g.names=g.tables.name,i&&p){var k=0===t,U=mn(v,p),C=hn(U.data,U.offset,g.numGlyphs,k),O=mn(v,i);g.glyphs=Zt.parse(O.data,O.offset,C,g)}else{if(!a)throw new Error("Font doesn't contain TrueType or CFF outlines.");var E=mn(v,a);Ge(E.data,E.offset,g)}var R=mn(v,l);if(je(R.data,R.offset,g.numberOfHMetrics,g.numGlyphs,g.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,n=Object.keys(r),a=0;a<n.length;a+=1){var o=n[a],i=r[o];(t=e.glyphs.get(i)).addUnicode(parseInt(o))}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))}(g),c){var A=mn(v,c);g.kerningPairs=fn(A.data,A.offset)}else g.kerningPairs={};if(s){var L=mn(v,s);g.tables.gpos=pn(L.data,L.offset),g.position.init()}if(u){var D=mn(v,u);g.tables.gsub=xt(D.data,D.offset)}if(o){var I=mn(v,o);g.tables.fvar=ln(I.data,I.offset,g.names)}if(h){var M=mn(v,h);g.tables.meta=Tt(M.data,M.offset),g.metas=g.tables.meta}return g}e.Font=sn,e.Glyph=ye,e.Path=O,e.BoundingBox=C,e._parse=ie,e.parse=yn,e.load=function(e,t){("undefined"==typeof window?dn:gn)(e,(function(e,r){if(e)return t(e);var n;try{n=yn(r)}catch(e){return t(e,null)}return t(null,n)}))},e.loadSync=function(e){return yn(Nt(r(46102).readFileSync(e)))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},25911:function(e,t,r){var n,a,o;!function(i){"use strict";a=[r(19755)],n=function(e,t){var r={beforeShow:c,move:c,change:c,show:c,hide:c,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},n=[],a=!!/msie/i.exec(window.navigator.userAgent),o=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div").style;return t.cssText="background-color:rgba(0,0,0,.5)",e(t.backgroundColor,"rgba")||e(t.backgroundColor,"hsla")}(),i=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),s=function(){var e="";if(a)for(var t=1;t<=6;t++)e+="<div class='sp-"+t+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function u(t,r,n,a){for(var i=[],s=0;s<t.length;s++){var u=t[s];if(u){var l=tinycolor(u),c=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(r,u)?" sp-thumb-active":"";var p=l.toString(a.preferredFormat||"rgb"),f=o?"background-color:"+l.toRgbString():"filter:"+l.toFilter();i.push('<span title="'+p+'" data-color="'+l.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+f+';"></span></span>')}else{i.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",a.noColorSelectedText)).html())}}return"<div class='sp-cf "+n+"'>"+i.join("")+"</div>"}function l(l,c){var g,v,m,y,b=function(t,n){var a=e.extend({},r,t);return a.callbacks={move:f(a.move,n),change:f(a.change,n),show:f(a.show,n),hide:f(a.hide,n),beforeShow:f(a.beforeShow,n)},a}(c,l),x=b.flat,S=b.showSelectionPalette,T=b.localStorageKey,w=b.theme,k=b.callbacks,U=(g=We,v=10,function(){var e=this,t=arguments,r=function(){y=null,g.apply(e,t)};m&&clearTimeout(y),!m&&y||(y=setTimeout(r,v))}),C=!1,O=!1,E=0,R=0,A=0,L=0,D=0,I=0,M=0,P=0,B=0,F=0,N=1,G=[],_=[],H={},z=b.selectionPalette.slice(0),W=b.maxSelectionSize,q="sp-dragging",j=null,V=l.ownerDocument,X=(V.body,e(l)),Y=!1,Z=e(s,V).addClass(w),Q=Z.find(".sp-picker-container"),K=Z.find(".sp-color"),J=Z.find(".sp-dragger"),$=Z.find(".sp-hue"),ee=Z.find(".sp-slider"),te=Z.find(".sp-alpha-inner"),re=Z.find(".sp-alpha"),ne=Z.find(".sp-alpha-handle"),ae=Z.find(".sp-input"),oe=Z.find(".sp-palette"),ie=Z.find(".sp-initial"),se=Z.find(".sp-cancel"),ue=Z.find(".sp-clear"),le=Z.find(".sp-choose"),ce=Z.find(".sp-palette-toggle"),pe=X.is("input"),fe=pe&&"color"===X.attr("type")&&d(),he=pe&&!x,de=he?e(i).addClass(w).addClass(b.className).addClass(b.replacerClassName):e([]),ge=he?de:X,ve=de.find(".sp-preview-inner"),me=b.color||pe&&X.val(),ye=!1,be=b.preferredFormat,xe=!b.showButtons||b.clickoutFiresChange,Se=!me,Te=b.allowEmpty&&!fe;function we(){if(b.showPaletteOnly&&(b.showPalette=!0),ce.text(b.showPaletteOnly?b.togglePaletteMoreText:b.togglePaletteLessText),b.palette){G=b.palette.slice(0),_=e.isArray(G[0])?G:[G],H={};for(var t=0;t<_.length;t++)for(var r=0;r<_[t].length;r++){var n=tinycolor(_[t][r]).toRgbString();H[n]=!0}}Z.toggleClass("sp-flat",x),Z.toggleClass("sp-input-disabled",!b.showInput),Z.toggleClass("sp-alpha-enabled",b.showAlpha),Z.toggleClass("sp-clear-enabled",Te),Z.toggleClass("sp-buttons-disabled",!b.showButtons),Z.toggleClass("sp-palette-buttons-disabled",!b.togglePaletteOnly),Z.toggleClass("sp-palette-disabled",!b.showPalette),Z.toggleClass("sp-palette-only",b.showPaletteOnly),Z.toggleClass("sp-initial-disabled",!b.showInitial),Z.addClass(b.className).addClass(b.containerClassName),We()}function ke(){if(T&&window.localStorage){try{var t=window.localStorage[T].split(",#");t.length>1&&(delete window.localStorage[T],e.each(t,(function(e,t){Ue(t)})))}catch(e){}try{z=window.localStorage[T].split(";")}catch(e){}}}function Ue(t){if(S){var r=tinycolor(t).toRgbString();if(!H[r]&&-1===e.inArray(r,z))for(z.push(r);z.length>W;)z.shift();if(T&&window.localStorage)try{window.localStorage[T]=z.join(";")}catch(e){}}}function Ce(){var t=Ne(),r=e.map(_,(function(e,r){return u(e,t,"sp-palette-row sp-palette-row-"+r,b)}));ke(),z&&r.push(u(function(){var e=[];if(b.showPalette)for(var t=0;t<z.length;t++){var r=tinycolor(z[t]).toRgbString();H[r]||e.push(z[t])}return e.reverse().slice(0,b.maxSelectionSize)}(),t,"sp-palette-row sp-palette-row-selection",b)),oe.html(r.join(""))}function Oe(){if(b.showInitial){var e=ye,t=Ne();ie.html(u([e,t],t,"sp-palette-row-initial",b))}}function Ee(){(R<=0||E<=0||L<=0)&&We(),O=!0,Z.addClass(q),j=null,X.trigger("dragstart.spectrum",[Ne()])}function Re(){O=!1,Z.removeClass(q),X.trigger("dragstop.spectrum",[Ne()])}function Ae(){var e=ae.val();if(null!==e&&""!==e||!Te){var t=tinycolor(e);t.isValid()?(Fe(t),Ge(),ze()):ae.addClass("sp-validation-error")}else Fe(null),Ge(),ze()}function Le(){C?Pe():De()}function De(){var t=e.Event("beforeShow.spectrum");C?We():(X.trigger(t,[Ne()]),!1===k.beforeShow(Ne())||t.isDefaultPrevented()||(function(){for(var e=0;e<n.length;e++)n[e]&&n[e].hide()}(),C=!0,e(V).on("keydown.spectrum",Ie),e(V).on("click.spectrum",Me),e(window).on("resize.spectrum",U),de.addClass("sp-active"),Z.removeClass("sp-hidden"),We(),_e(),ye=Ne(),Oe(),k.show(ye),X.trigger("show.spectrum",[ye])))}function Ie(e){27===e.keyCode&&Pe()}function Me(e){2!=e.button&&(O||(xe?ze(!0):Be(),Pe()))}function Pe(){C&&!x&&(C=!1,e(V).off("keydown.spectrum",Ie),e(V).off("click.spectrum",Me),e(window).off("resize.spectrum",U),de.removeClass("sp-active"),Z.addClass("sp-hidden"),k.hide(Ne()),X.trigger("hide.spectrum",[Ne()]))}function Be(){Fe(ye,!0),ze(!0)}function Fe(e,t){var r,n;tinycolor.equals(e,Ne())?_e():(!e&&Te?Se=!0:(Se=!1,n=(r=tinycolor(e)).toHsv(),P=n.h%360/360,B=n.s,F=n.v,N=n.a),_e(),r&&r.isValid()&&!t&&(be=b.preferredFormat||r.getFormat()))}function Ne(e){return e=e||{},Te&&Se?null:tinycolor.fromRatio({h:P,s:B,v:F,a:Math.round(1e3*N)/1e3},{format:e.format||be})}function Ge(){_e(),k.move(Ne()),X.trigger("move.spectrum",[Ne()])}function _e(){ae.removeClass("sp-validation-error"),He();var e=tinycolor.fromRatio({h:P,s:1,v:1});K.css("background-color",e.toHexString());var t=be;N<1&&(0!==N||"name"!==t)&&("hex"!==t&&"hex3"!==t&&"hex6"!==t&&"name"!==t||(t="rgb"));var r=Ne({format:t}),n="";if(ve.removeClass("sp-clear-display"),ve.css("background-color","transparent"),!r&&Te)ve.addClass("sp-clear-display");else{var i=r.toHexString(),s=r.toRgbString();if(o||1===r.alpha?ve.css("background-color",s):(ve.css("background-color","transparent"),ve.css("filter",r.toFilter())),b.showAlpha){var u=r.toRgb();u.a=0;var l=tinycolor(u).toRgbString(),c="linear-gradient(left, "+l+", "+i+")";a?te.css("filter",tinycolor(l).toFilter({gradientType:1},i)):(te.css("background","-webkit-"+c),te.css("background","-moz-"+c),te.css("background","-ms-"+c),te.css("background","linear-gradient(to right, "+l+", "+i+")"))}n=r.toString(t)}b.showInput&&ae.val(n),b.showPalette&&Ce(),Oe()}function He(){var e=B,t=F;if(Te&&Se)ne.hide(),ee.hide(),J.hide();else{ne.show(),ee.show(),J.show();var r=e*E,n=R-t*R;r=Math.max(-A,Math.min(E-A,r-A)),n=Math.max(-A,Math.min(R-A,n-A)),J.css({top:n+"px",left:r+"px"});var a=N*D;ne.css({left:a-I/2+"px"});var o=P*L;ee.css({top:o-M+"px"})}}function ze(e){var t=Ne(),r="",n=!tinycolor.equals(t,ye);t&&(r=t.toString(be),Ue(t)),pe&&X.val(r),e&&n&&(k.change(t),X.trigger("change",[t]))}function We(){C&&(E=K.width(),R=K.height(),A=J.height(),$.width(),L=$.height(),M=ee.height(),D=re.width(),I=ne.width(),x||(Z.css("position","absolute"),b.offset?Z.offset(b.offset):Z.offset(function(t,r){var n=0,a=t.outerWidth(),o=t.outerHeight(),i=r.outerHeight(),s=t[0].ownerDocument,u=s.documentElement,l=u.clientWidth+e(s).scrollLeft(),c=u.clientHeight+e(s).scrollTop(),p=r.offset(),f=p.left,h=p.top;return h+=i,f-=Math.min(f,f+a>l&&l>a?Math.abs(f+a-l):0),{top:h-=Math.min(h,h+o>c&&c>o?Math.abs(o+i-n):n),bottom:p.bottom,left:f,right:p.right,width:p.width,height:p.height}}(Z,ge))),He(),b.showPalette&&Ce(),X.trigger("reflow.spectrum"))}function qe(){Pe(),Y=!0,X.attr("disabled",!0),ge.addClass("sp-disabled")}!function(){if(a&&Z.find("*:not(input)").attr("unselectable","on"),we(),he&&X.after(de).hide(),Te||ue.hide(),x)X.after(Z).hide();else{var t="parent"===b.appendTo?X.parent():e(b.appendTo);1!==t.length&&(t=e("body")),t.append(Z)}function r(t){return t.data&&t.data.ignore?(Fe(e(t.target).closest(".sp-thumb-el").data("color")),Ge()):(Fe(e(t.target).closest(".sp-thumb-el").data("color")),Ge(),b.hideAfterPaletteSelect?(ze(!0),Pe()):ze()),!1}ke(),ge.on("click.spectrum touchstart.spectrum",(function(t){Y||Le(),t.stopPropagation(),e(t.target).is("input")||t.preventDefault()})),(X.is(":disabled")||!0===b.disabled)&&qe(),Z.click(p),ae.change(Ae),ae.on("paste",(function(){setTimeout(Ae,1)})),ae.keydown((function(e){13==e.keyCode&&Ae()})),se.text(b.cancelText),se.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),Be(),Pe()})),ue.attr("title",b.clearText),ue.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),Se=!0,Ge(),x&&ze(!0)})),le.text(b.chooseText),le.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),a&&ae.is(":focus")&&ae.trigger("change"),!ae.hasClass("sp-validation-error")&&(ze(!0),Pe())})),ce.text(b.showPaletteOnly?b.togglePaletteMoreText:b.togglePaletteLessText),ce.on("click.spectrum",(function(e){e.stopPropagation(),e.preventDefault(),b.showPaletteOnly=!b.showPaletteOnly,b.showPaletteOnly||x||Z.css("left","-="+(Q.outerWidth(!0)+5)),we()})),h(re,(function(e,t,r){N=e/D,Se=!1,r.shiftKey&&(N=Math.round(10*N)/10),Ge()}),Ee,Re),h($,(function(e,t){P=parseFloat(t/L),Se=!1,b.showAlpha||(N=1),Ge()}),Ee,Re),h(K,(function(e,t,r){if(r.shiftKey){if(!j){var n=B*E,a=R-F*R,o=Math.abs(e-n)>Math.abs(t-a);j=o?"x":"y"}}else j=null;var i=!j||"y"===j;(!j||"x"===j)&&(B=parseFloat(e/E)),i&&(F=parseFloat((R-t)/R)),Se=!1,b.showAlpha||(N=1),Ge()}),Ee,Re),me?(Fe(me),_e(),be=b.preferredFormat||tinycolor(me).format,Ue(me)):_e(),x&&De();var n=a?"mousedown.spectrum":"click.spectrum touchstart.spectrum";oe.on(n,".sp-thumb-el",r),ie.on(n,".sp-thumb-el:nth-child(1)",{ignore:!0},r)}();var je={show:De,hide:Pe,toggle:Le,reflow:We,option:function(r,n){return r===t?e.extend({},b):n===t?b[r]:(b[r]=n,"preferredFormat"===r&&(be=b.preferredFormat),void we())},enable:function(){Y=!1,X.attr("disabled",!1),ge.removeClass("sp-disabled")},disable:qe,offset:function(e){b.offset=e,We()},set:function(e){Fe(e),ze()},get:Ne,destroy:function(){X.show(),ge.off("click.spectrum touchstart.spectrum"),Z.remove(),de.remove(),n[je.id]=null},container:Z};return je.id=n.push(je)-1,je}function c(){}function p(e){e.stopPropagation()}function f(e,t){var r=Array.prototype.slice,n=r.call(arguments,2);return function(){return e.apply(t,n.concat(r.call(arguments)))}}function h(t,r,n,o){r=r||function(){},n=n||function(){},o=o||function(){};var i=document,s=!1,u={},l=0,c=0,p="ontouchstart"in window,f={};function h(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function d(e){if(s){if(a&&i.documentMode<9&&!e.button)return g();var n=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],o=n&&n.pageX||e.pageX,f=n&&n.pageY||e.pageY,d=Math.max(0,Math.min(o-u.left,c)),v=Math.max(0,Math.min(f-u.top,l));p&&h(e),r.apply(t,[d,v,e])}}function g(){s&&(e(i).off(f),e(i.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(t,arguments)}),0)),s=!1}f.selectstart=h,f.dragstart=h,f["touchmove mousemove"]=d,f["touchend mouseup"]=g,e(t).on("touchstart mousedown",(function(r){(r.which?3==r.which:2==r.button)||s||!1!==n.apply(t,arguments)&&(s=!0,l=e(t).height(),c=e(t).width(),u=e(t).offset(),e(i).on(f),e(i.body).addClass("sp-dragging"),d(r),h(r))}))}function d(){return e.fn.spectrum.inputTypeColorSupport()}var g="spectrum.id";e.fn.spectrum=function(t,r){if("string"==typeof t){var a=this,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var r=n[e(this).data(g)];if(r){var i=r[t];if(!i)throw new Error("Spectrum: no such method: '"+t+"'");"get"==t?a=r.get():"container"==t?a=r.container:"option"==t?a=r.option.apply(r,o):"destroy"==t?(r.destroy(),e(this).removeData(g)):i.apply(r,o)}})),a}return this.spectrum("destroy").each((function(){var r=l(this,e.extend({},e(this).data(),t));e(this).data(g,r.id)}))},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=h,e.fn.spectrum.defaults=r,e.fn.spectrum.inputTypeColorSupport=function t(){if(void 0===t._cachedResult){var r=e("<input type='color'/>")[0];t._cachedResult="color"===r.type&&""!==r.value}return t._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var t=e("input[type=color]");t.length&&!d()&&t.spectrum({preferredFormat:"hex6"})},function(){var e=/^[\s,#]+/,t=/\s+$/,r=0,n=Math,a=n.round,o=n.min,i=n.max,s=n.random,u=function(s,l){if(l=l||{},(s=s||"")instanceof u)return s;if(!(this instanceof u))return new u(s,l);var c=function(r){var a={r:0,g:0,b:0},s=1,u=!1,l=!1;return"string"==typeof r&&(r=function(r){r=r.replace(e,"").replace(t,"").toLowerCase();var n,a=!1;if(C[r])r=C[r],a=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};return(n=N.rgb.exec(r))?{r:n[1],g:n[2],b:n[3]}:(n=N.rgba.exec(r))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=N.hsl.exec(r))?{h:n[1],s:n[2],l:n[3]}:(n=N.hsla.exec(r))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=N.hsv.exec(r))?{h:n[1],s:n[2],v:n[3]}:(n=N.hsva.exec(r))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=N.hex8.exec(r))?{a:M(n[1]),r:L(n[2]),g:L(n[3]),b:L(n[4]),format:a?"name":"hex8"}:(n=N.hex6.exec(r))?{r:L(n[1]),g:L(n[2]),b:L(n[3]),format:a?"name":"hex"}:!!(n=N.hex3.exec(r))&&{r:L(n[1]+""+n[1]),g:L(n[2]+""+n[2]),b:L(n[3]+""+n[3]),format:a?"name":"hex"}}(r)),"object"==typeof r&&(r.hasOwnProperty("r")&&r.hasOwnProperty("g")&&r.hasOwnProperty("b")?(c=r.r,p=r.g,f=r.b,a={r:255*R(c,255),g:255*R(p,255),b:255*R(f,255)},u=!0,l="%"===String(r.r).substr(-1)?"prgb":"rgb"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("v")?(r.s=I(r.s),r.v=I(r.v),a=function(e,t,r){e=6*R(e,360),t=R(t,100),r=R(r,100);var a=n.floor(e),o=e-a,i=r*(1-t),s=r*(1-o*t),u=r*(1-(1-o)*t),l=a%6;return{r:255*[r,s,i,i,u,r][l],g:255*[u,r,r,s,i,i][l],b:255*[i,i,u,r,r,s][l]}}(r.h,r.s,r.v),u=!0,l="hsv"):r.hasOwnProperty("h")&&r.hasOwnProperty("s")&&r.hasOwnProperty("l")&&(r.s=I(r.s),r.l=I(r.l),a=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=R(e,360),t=R(t,100),r=R(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=i(u,s,e+1/3),a=i(u,s,e),o=i(u,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(r.h,r.s,r.l),u=!0,l="hsl"),r.hasOwnProperty("a")&&(s=r.a)),s=E(s),{ok:u,format:r.format||l,r:o(255,i(a.r,0)),g:o(255,i(a.g,0)),b:o(255,i(a.b,0)),a:s};var c,p,f}(s);this._originalInput=s,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=a(1e3*this._a)/1e3,this._format=l.format||c.format,this._gradientType=l.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=c.ok,this._tc_id=r++};function l(e,t,r){e=R(e,255),t=R(t,255),r=R(r,255);var n,a,s=i(e,t,r),u=o(e,t,r),l=(s+u)/2;if(s==u)n=a=0;else{var c=s-u;switch(a=l>.5?c/(2-s-u):c/(s+u),s){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,l:l}}function c(e,t,r){e=R(e,255),t=R(t,255),r=R(r,255);var n,a,s=i(e,t,r),u=o(e,t,r),l=s,c=s-u;if(a=0===s?0:c/s,s==u)n=0;else{switch(s){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:a,v:l}}function p(e,t,r,n){var o=[D(a(e).toString(16)),D(a(t).toString(16)),D(a(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e,t,r,n){return[D((o=n,Math.round(255*parseFloat(o)).toString(16))),D(a(e).toString(16)),D(a(t).toString(16)),D(a(r).toString(16))].join("");var o}function h(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s-=t/100,r.s=A(r.s),u(r)}function d(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.s+=t/100,r.s=A(r.s),u(r)}function g(e){return u(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l+=t/100,r.l=A(r.l),u(r)}function m(e,t){t=0===t?0:t||10;var r=u(e).toRgb();return r.r=i(0,o(255,r.r-a(-t/100*255))),r.g=i(0,o(255,r.g-a(-t/100*255))),r.b=i(0,o(255,r.b-a(-t/100*255))),u(r)}function y(e,t){t=0===t?0:t||10;var r=u(e).toHsl();return r.l-=t/100,r.l=A(r.l),u(r)}function b(e,t){var r=u(e).toHsl(),n=(a(r.h)+t)%360;return r.h=n<0?360+n:n,u(r)}function x(e){var t=u(e).toHsl();return t.h=(t.h+180)%360,u(t)}function S(e){var t=u(e).toHsl(),r=t.h;return[u(e),u({h:(r+120)%360,s:t.s,l:t.l}),u({h:(r+240)%360,s:t.s,l:t.l})]}function T(e){var t=u(e).toHsl(),r=t.h;return[u(e),u({h:(r+90)%360,s:t.s,l:t.l}),u({h:(r+180)%360,s:t.s,l:t.l}),u({h:(r+270)%360,s:t.s,l:t.l})]}function w(e){var t=u(e).toHsl(),r=t.h;return[u(e),u({h:(r+72)%360,s:t.s,l:t.l}),u({h:(r+216)%360,s:t.s,l:t.l})]}function k(e,t,r){t=t||6,r=r||30;var n=u(e).toHsl(),a=360/r,o=[u(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(u(n));return o}function U(e,t){t=t||6;for(var r=u(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(u({h:n,s:a,v:o})),o=(o+s)%1;return i}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},setAlpha:function(e){return this._a=E(e),this._roundA=a(1e3*this._a)/1e3,this},toHsv:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=c(this._r,this._g,this._b),t=a(360*e.h),r=a(100*e.s),n=a(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=a(360*e.h),r=a(100*e.s),n=a(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return f(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*R(this._r,255))+"%",g:a(100*R(this._g,255))+"%",b:a(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*R(this._r,255))+"%, "+a(100*R(this._g,255))+"%, "+a(100*R(this._b,255))+"%)":"rgba("+a(100*R(this._r,255))+"%, "+a(100*R(this._g,255))+"%, "+a(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+f(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";return e&&(r=u(e).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:I(e[n]));e=r}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:s(),g:s(),b:s()})},u.mix=function(e,t,r){r=0===r?0:r||50;var n,a=u(e).toRgb(),o=u(t).toRgb(),i=r/100,s=2*i-1,l=o.a-a.a,c=1-(n=((n=s*l==-1?s:(s+l)/(1+s*l))+1)/2),p={r:o.r*n+a.r*c,g:o.g*n+a.g*c,b:o.b*n+a.b*c,a:o.a*i+a.a*(1-i)};return u(p)},u.readability=function(e,t){var r=u(e),n=u(t),a=r.toRgb(),o=n.toRgb(),i=r.getBrightness(),s=n.getBrightness(),l=Math.max(a.r,o.r)-Math.min(a.r,o.r)+Math.max(a.g,o.g)-Math.min(a.g,o.g)+Math.max(a.b,o.b)-Math.min(a.b,o.b);return{brightness:Math.abs(i-s),color:l}},u.isReadable=function(e,t){var r=u.readability(e,t);return r.brightness>125&&r.color>500},u.mostReadable=function(e,t){for(var r=null,n=0,a=!1,o=0;o<t.length;o++){var i=u.readability(e,t[o]),s=i.brightness>125&&i.color>500,l=i.brightness/125*3+i.color/500;(s&&!a||s&&a&&l>n||!s&&!a&&l>n)&&(a=s,n=l,r=u(t[o]))}return r};var C=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=u.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(C);function E(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=o(t,i(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),n.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return o(1,i(0,e))}function L(e){return parseInt(e,16)}function D(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function M(e){return L(e)/255}var P,B,F,N=(B="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",F="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+F),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=u}(),e((function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()}))},void 0===(o=n.apply(t,a))||(e.exports=o)}()}}]);