PageSourceSearch

https://vyomix.vercel.app/default-node_modules_sutton-signwriting_…8d_js-node_modul-6427a6.e70cfa3e8d5e2029.js

js vyomix.vercel.app collected 2026-10-09 22:08:18 UTC 20,949 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksign_translate=self.webpackChunksign_translate||[]).push([["default-node_modules_sutton-signwriting_sgnw-components_dist_esm_style-fd531f8d_js-node_modul-6427a6"],{35346:(de,q,T)=>{T.d(q,{s:()=>J});var J=(0,T(70345).c)(function(re,Q){!function(z){let x={colorize:"C",colorhex:"(?:[0-9a-fA-F]{3}){1,2}",colorname:"[a-zA-Z]+",padding:"P[0-9]{2}",zoom:"Z(?:[0-9]+(?:\\.[0-9]+)?|x)",classbase:"-?[_a-zA-Z][_a-zA-Z0-9-]{0,100}",id:"[a-zA-Z][_a-zA-Z0-9-]{0,100}"};x.colorbase=`(?:${x.colorhex}|${x.colorname})`,x.color=`_${x.colorbase}_`,x.colors=`_${x.colorbase}(?:,${x.colorbase})?_`,x.background=`G${x.color}`,x.detail=`D${x.colors}`,x.detailsym=`D[0-9]{2}${x.colors}`,x.classes=`${x.classbase}(?: ${x.classbase})*`,x.full=`-(${x.colorize})?(${x.padding})?(${x.background})?(${x.detail})?(${x.zoom})?(?:-((?:${x.detailsym})*))?(?:-(${x.classes})?!(?:(${x.id})!)?)?`;const Z=u=>(new RegExp(`^${x.colorhex}$`).test(u)?"#":"")+u,H=u=>"string"!=typeof u?[0,0,0]:u.replace(/rgba?\((.+?)\)/gi,(b,$)=>$).split(",").map(Number),A=u=>u.slice(0,3).map(b=>b.toString(16).padStart(2,"0")).join("");z.compose=u=>{if("object"!=typeof u||null===u)return;let b="-";b+=u.colorize?"C":"";const $=parseInt(u.padding);b+=!$||$<=0||$>99?"":"P"+($>9?$:"0"+$);const S=u.background&&"string"==typeof u.background?u.background.match(x.colorbase)[0]:void 0;b+=S?"G_"+S+"_":"";const D=u.detail&&u.detail[0]&&"string"==typeof u.detail[0]?u.detail[0].match(x.colorbase)[0]:void 0,I=u.detail&&u.detail[1]&&"string"==typeof u.detail[1]?u.detail[1].match(x.colorbase)[0]:void 0;D&&(b+="D_"+D,I&&(b+=","+I),b+="_");const h="x"===u.zoom?"x":parseFloat(u.zoom);b+=!h||h<=0?"":"Z"+h;let R="";R+=(u.detailsym&&Array.isArray(u.detailsym)?u.detailsym.map(y=>{const E=parseInt(y.index);if(!E||E<=0||E>99)return"";let W="D"+(E>9?E:"0"+E);const K=y.detail&&y.detail[0]?y.detail[0].match(x.colorbase)[0]:void 0,N=y.detail&&y.detail[1]?y.detail[1].match(x.colorbase)[0]:void 0;return K&&(W+="_"+K,N&&(W+=","+N),W+="_"),W}):[]).join("");let _="";const M=u.classes&&"string"==typeof u.classes?u.classes.match(x.classes)[0]:void 0;_+=M||"";const w=u.id&&"string"==typeof u.id?u.id.match(x.id)[0]:void 0;return _+=M||w?"!":"",_+=w?w+"!":"",b+(R||_?"-"+R:"")+(_?"-"+_:"")},z.merge=(u,b)=>{"object"!=typeof u&&(u={}),"object"!=typeof b&&(b={});const $="zoom"in u?u.zoom:1,S="zoom"in b?b.zoom:1;return{...u,...b,zoom:$*S}},z.parse=u=>{const $=("string"==typeof u?u.match(new RegExp(`^${x.full}`)):[])||[];return(u=>Object.fromEntries(Object.entries(u).filter(([b,$])=>void 0!==$)))({colorize:$[1]?!!$[1]:void 0,padding:$[2]?parseInt($[2].slice(1)):void 0,background:$[3]?Z($[3].slice(2,-1)):void 0,detail:$[4]?$[4].slice(2,-1).split(",").map(Z):void 0,zoom:$[5]?"Zx"===$[5]?"x":parseFloat($[5].slice(1)):void 0,detailsym:$[6]?$[6].match(new RegExp(x.detailsym,"g")).map(S=>{const D=S.split("_"),I=D[1].split(",").map(Z);
1return{index:parseInt(D[0].slice(1)),detail:I}}):void 0,classes:$[7]?$[7]:void 0,id:$[8]?$[8]:void 0})},z.re=x,z.rgb2hex=(u,b=0)=>{const $=H(u);return 4==$.length&&$[3]<=b?"transparent":A($)},z.rgba2hex=(u,b)=>{const $=H(b),S=H(u),D=4==S.length?S[3]:1;return 0==D?"transparent":A(S.map((I,h)=>parseInt((1-D)*$[h]+D*I)))},Object.defineProperty(z,"__esModule",{value:!0})}(Q)})},70978:(de,q,T)=>{T.d(q,{s:()=>J});var J=(0,T(70345).c)(function(re,Q){!function(z){const Z=n=>n.map(t=>(n=>String.fromCodePoint(120844+parseInt(n)-250))(t)).join(""),L=n=>(n=>parseInt(n.codePointAt(0)))(n)-262144;let A,G={};const P=function(n){return function(n){if(n in G)return[...G[n]];if(!A){const a=document.createElement("canvas");a.width=152,a.height=152,A=a.getContext("2d")}A.clearRect(0,0,152,152),A.font="60px 'SuttonSignWritingLine'",A.fillText(String.fromCodePoint(n+983040),0,0);const t=A.getImageData(0,0,152,152).data;let e,o,s,i;e:for(e=151;e>=0;e--)for(o=0;o<152;o+=1)for(i=0;i<4;i+=1)if(s=4*e+4*o*152+i,t[s])break e;var d=e;e:for(o=151;o>=0;o--)for(e=0;e<d;e+=1)for(i=0;i<4;i+=1)if(s=4*e+4*o*152+i,t[s])break e;var f=o+1;if(d=Math.ceil(d/2),f=Math.ceil(f/2),14394==n&&(d=19),[10468,10480,10496,10512,10500,10532,10548,10862,10878,10894,11058,11074,11476,11488,11492,11504,11508,11520,10516,10910,10926,11042,11082,10942].includes(n)&&(d=20),31921==n&&(d=22),38460==n&&(d=23),[20164,20212].includes(n)&&(d=25),31894==n&&(d=28),46698==n&&(d=29),29606==n&&(d=30),44855==n&&(d=40),32667==n&&(d=50),[11088,11474,11490,11506].includes(n)&&(f=20),6285==n&&(f=21),40804==n&&(f=31),41475==n&&(f=36),0==d&&0==f){const a={9:[15,30],10:[21,30],11:[30,15],12:[30,21],13:[15,30],14:[21,30]};n in a&&(d=a[n][0],f=a[n][1])}return 0!=d||0!=f?(G[n]=[d,f],[d,f]):void 0}(L(n))},u=function(n){return String.fromCodePoint(n+983040)},b=function(n){return String.fromCodePoint(n+1048576)},S=function(n){return u(L(n))},D=function(n){return b(L(n))},I=function(n){return function(n){return`    <text class="sym-fill" fill="white" style="pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;">${b(n)}</text>\n    <text class="sym-line" fill="black" style="pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;">${u(n)}</text>`}(L(n))};let h={colorize:"C",colorhex:"(?:[0-9a-fA-F]{3}){1,2}",colorname:"[a-zA-Z]+",padding:"P[0-9]{2}",zoom:"Z(?:[0-9]+(?:\\.[0-9]+)?|x)",classbase:"-?[_a-zA-Z][_a-zA-Z0-9-]{0,100}",id:"[a-zA-Z][_a-zA-Z0-9-]{0,100}"};h.colorbase=`(?:${h.colorhex}|${h.colorname})`,h.color=`_${h.colorbase}_`,h.colors=`_${h.colorbase}(?:,${h.colorbase})?_`,h.background=`G${h.color}`,h.detail=`D${h.colors}`,h.detailsym=`D[0-9]{2}${h.colors}`,h.classes=`${h.classbase}(?: ${h.classbase})*`,h.full=`-(${h.colorize})?(${h.padding})?(${h.background})?(${h.detail})?(${h.zoom})?(?:-((?:${h.detailsym})*))?(?:-(${h.classes})?!(?:(${h.id})!)?)?`;const R=n=>(new RegExp(`^${h.colorhex}$`).test(n)?"#":"")+n,_=n=>{const e=("string"==typeof n?n.match(new RegExp(`^${h.full}`)):[])||[];return(n=>Object.fromEntries(Object.entries(n).filter(([t,e])=>void 0!==e)))({colorize:e[1]?!!e[1]:void 0,padding:e[2]?parseInt(e[2].slice(1)):void 0,background:e[3]?R(e[3].slice(2,-1)):void 0,detail:e[4]?e[4].slice(2,-1).split(",").map(R):void 0,zoom:e[5]?"Zx"===e[5]?"x":parseFloat(e[5].slice(1)):void 0,detailsym:e[6]?e[6].match(new RegExp(h.detailsym,"g")).map(o=>{const s=o.split("_"),i=s[1].split(",").map(R);
1return{index:parseInt(s[0].slice(1)),detail:i}}):void 0,classes:e[7]?e[7]:void 0,id:e[8]?e[8]:void 0})},M=n=>{if("object"!=typeof n||null===n)return;let t="-";t+=n.colorize?"C":"";const e=parseInt(n.padding);t+=!e||e<=0||e>99?"":"P"+(e>9?e:"0"+e);const o=n.background&&"string"==typeof n.background?n.background.match(h.colorbase)[0]:void 0;t+=o?"G_"+o+"_":"";const s=n.detail&&n.detail[0]&&"string"==typeof n.detail[0]?n.detail[0].match(h.colorbase)[0]:void 0,i=n.detail&&n.detail[1]&&"string"==typeof n.detail[1]?n.detail[1].match(h.colorbase)[0]:void 0;s&&(t+="D_"+s,i&&(t+=","+i),t+="_");const d="x"===n.zoom?"x":parseFloat(n.zoom);t+=!d||d<=0?"":"Z"+d;let f="";f+=(n.detailsym&&Array.isArray(n.detailsym)?n.detailsym.map(l=>{const m=parseInt(l.index);if(!m||m<=0||m>99)return"";let r="D"+(m>9?m:"0"+m);const v=l.detail&&l.detail[0]?l.detail[0].match(h.colorbase)[0]:void 0,F=l.detail&&l.detail[1]?l.detail[1].match(h.colorbase)[0]:void 0;return v&&(r+="_"+v,F&&(r+=","+F),r+="_"),r}):[]).join("");let p="";const g=n.classes&&"string"==typeof n.classes?n.classes.match(h.classes)[0]:void 0;p+=g||"";const c=n.id&&"string"==typeof n.id?n.id.match(h.id)[0]:void 0;return p+=g||c?"!":"",p+=c?c+"!":"",t+(f||p?"-"+f:"")+(p?"-"+p:"")};let w={symbol:"(?:(?:\ud8c0[\udc01-\udfff])|(?:[\ud8c1-\ud8fc][\udc00-\udfff])|(?:\ud8fd[\udc00-\udc80]))",coord:"(?:\ud836[\udc0c-\uddff]){2}",sort:"\u{1d800}",box:"\ud836[\udc01-\udc04]"};w.prefix=`(?:${w.sort}(?:${w.symbol})+)`,w.spatial=`${w.symbol}${w.coord}`,w.signbox=`${w.box}${w.coord}(?:${w.spatial})*`,w.sign=`${w.prefix}?${w.signbox}`,w.sortable=`${w.prefix}${w.signbox}`;let y={colorize:"C",colorhex:"(?:[0-9a-fA-F]{3}){1,2}",colorname:"[a-zA-Z]+",padding:"P[0-9]{2}",zoom:"Z(?:[0-9]+(?:\\.[0-9]+)?|x)",classbase:"-?[_a-zA-Z][_a-zA-Z0-9-]{0,100}",id:"[a-zA-Z][_a-zA-Z0-9-]{0,100}"};y.colorbase=`(?:${y.colorhex}|${y.colorname})`,y.color=`_${y.colorbase}_`,y.colors=`_${y.colorbase}(?:,${y.colorbase})?_`,y.background=`G${y.color}`,y.detail=`D${y.colors}`,y.detailsym=`D[0-9]{2}${y.colors}`,y.classes=`${y.classbase}(?: ${y.classbase})*`,y.full=`-(${y.colorize})?(${y.padding})?(${y.background})?(${y.detail})?(${y.zoom})?(?:-((?:${y.detailsym})*))?(?:-(${y.classes})?!(?:(${y.id})!)?)?`;const E=n=>(new RegExp(`^${y.colorhex}$`).test(n)?"#":"")+n,K=n=>{const e=("string"==typeof n?n.match(new RegExp(`^${y.full}`)):[])||[];return(n=>Object.fromEntries(Object.entries(n).filter(([t,e])=>void 0!==e)))({colorize:e[1]?!!e[1]:void 0,padding:e[2]?parseInt(e[2].slice(1)):void 0,background:e[3]?E(e[3].slice(2,-1)):void 0,detail:e[4]?e[4].slice(2,-1).split(",").map(E):void 0,zoom:e[5]?"Zx"===e[5]?"x":parseFloat(e[5].slice(1)):void 0,detailsym:e[6]?e[6].match(new RegExp(y.detailsym,"g")).map(o=>{const s=o.split("_"),i=s[1].split(",").map(E);
1return{index:parseInt(s[0].slice(1)),detail:i}}):void 0,classes:e[7]?e[7]:void 0,id:e[8]?e[8]:void 0})},N=n=>parseInt(n.codePointAt(0))-120844+250,ee=n=>[N(n.slice(0,2)),N(n.slice(2,4))],C_symbol=n=>{const e="string"==typeof n?n.match(new RegExp(`^(${w.symbol})(${w.coord})?(${y.full})?`)):void 0;return{symbol:e?e[1]:void 0,coord:e&&e[2]?ee(e[2]):void 0,style:e?e[3]:void 0}},C_sign=n=>{const e="string"==typeof n?n.match(new RegExp(`^(${w.prefix})?(${w.signbox})(${y.full})?`)):void 0;return e?{sequence:e[1]?e[1].slice(2).match(/.{2}/g):void 0,box:e[2].slice(0,2),max:ee(e[2].slice(2,6)),spatials:e[2].length<7?void 0:e[2].slice(6).match(/(.{6})/g).map(o=>({symbol:o.slice(0,2),coord:ee(o.slice(2))})),style:e[3]}:{}},C_text=n=>{if("string"!=typeof n)return[];const e=n.match(new RegExp(`(${w.sign}(${y.full})?|${w.spatial}(${y.full})?)`,"g"));return e?[...e]:[]},fe=n=>{let o,s,i,d,f,a,p,g,e=C_sign(n);e.spatials?(d=Math.min(...e.spatials.map(r=>r.coord[0])),f=e.max[0],o=f-d,a=Math.min(...e.spatials.map(r=>r.coord[1])),p=e.max[1],s=p-a,i="sign",g=e.box):(e=C_symbol(n),g="\u{1d803}",e.coord?(d=e.coord[0],o=2*(500-d),a=e.coord[1],s=2*(500-a),i="symbol"):(d=490,o=20,a=490,s=20,i="none"));let c=K(e.style);return{minX:d,minY:a,width:o,height:s,segment:i,lane:{"\u{1d801}":0,"\u{1d802}":-1,"\u{1d803}":0,"\u{1d804}":1}[g],padding:c.padding||0,zoom:c.zoom||1}},U={height:500,width:150,offset:50,pad:20,margin:5,dynamic:!1,background:void 0,punctuation:{spacing:!0,pad:30,pull:!0},style:{detail:["black","white"],zoom:1}},ie=(n,t)=>{if("string"!=typeof n)return{};const e=(n=>("object"!=typeof n&&(n={}),{...U,...n,punctuation:{...U.punctuation,...n.punctuation},style:{...U.style,...n.style}}))(t);let o=C_text(n),s=0,i=[],d=[],f=0,a=parseInt(e.width/2),p=e.height-e.margin,g=!0,c=!1;for(let m of o){let r=fe(m);s+=f,s+=e.punctuation.spacing?"sign"==r.segment?e.pad:0:e.pad,c=s+r.height>p,c&&"symbol"==r.segment&&e.punctuation.pull&&g&&(c=!1,g=!1),0==d.length&&(c=!1),c&&(s=e.pad,i.push(d),d=[],g=!0),d.push(Object.assign(r,{x:a+e.offset*r.lane-(500-r.minX)*r.zoom*e.style.zoom,y:s,text:m})),s+=r.height*r.zoom*e.style.zoom,f=e.punctuation.spacing?"sign"==r.segment?e.pad:e.punctuation.pad:e.pad}if(d.length&&i.push(d),e.punctuation.pull)for(let m of i){let r=m[m.length-1],v=r.y+r.height-(e.height-e.margin);if(v>0){let F=parseInt(v/m.length)+1;for(let k in m)m[k].y-=F*k+F}}let l=[];for(let m of i){let r=[a-e.offset-e.pad],v=[a+e.offset+e.pad];for(let Y of m)r.push(Y.x-e.pad),v.push(Y.x+Y.width+e.pad);
1r=Math.min(...r),v=Math.max(...v);let F=e.width,k=0;e.dynamic?(F=v-r,k=-r):k=a-parseInt((r+v)/2);for(let Y of m)Y.x+=k;l.push(F)}return{options:e,widths:l,columns:i}},ue=[262145,287201,310433,311201,321761,323489,324257],se_hcenter=[311201,321760],se_vcenter=[311201,322624],me=["#0000CC","#CC0000","#FF0099","#006600","#000000","#884411","#FF9900"],X=n=>{const t=C_symbol(n);let e="#000000";if(t.symbol){const o=(n=>parseInt(n.codePointAt(0)))(t.symbol),s=ue.findIndex(i=>i>o);e=me[s<0?6:s-1]}return e},ne=n=>{const t=C_symbol(n);if(!t.symbol)return"";let s,i,d,f,o=_(t.style);if(t.coord)s=t.coord[0],i=t.coord[1],d=500-s+500,f=500-i+500;else{let l=P(t.symbol);if(!l)return"";s=500-parseInt((l[0]+1)/2),i=500-parseInt((l[1]+1)/2),d=500-s+500,f=500-i+500}let p,a=I(t.symbol);a=`  <g transform="translate(${s},${i})">\n${a}\n  </g>`,o.colorize?p=X(t.symbol):o.detail&&(p=o.detail[0]),p&&(a=a.replace(/class="sym-line" fill="black"/,`class="sym-line" fill="${p}"`));let g=o.detail&&o.detail[1];g&&(a=a.replace(/class="sym-fill" fill="white"/,`class="sym-fill" fill="${g}"`));let c="";return o.padding&&(s-=o.padding,i-=o.padding,d+=o.padding,f+=o.padding),o.background&&(c=`\n  <rect x="${s}" y="${i}" width="${d-s}" height="${f-i}" style="fill:${o.background};" />`),`  <text font-size="0">${n}</text>${c}\n${a}`},te=n=>{let t=C_sign(n);if(t.spatials){let o=_(t.style);o.detailsym&&o.detailsym.forEach(l=>{t.spatials[l.index-1]&&(t.spatials[l.index-1].detail=l.detail)});let s=Math.min(...t.spatials.map(l=>l.coord[0])),i=Math.min(...t.spatials.map(l=>l.coord[1])),d=t.max[0],f=t.max[1],a="";o.padding&&(s-=o.padding,i-=o.padding,d+=o.padding,f+=o.padding),o.background&&(a=`\n  <rect x="${s}" y="${i}" width="${d-s}" height="${f-i}" style="fill:${o.background};" />`);let p=`  <text font-size="0">${n}</text>${a}`;const g=o.detail&&o.detail[0],c=o.detail&&o.detail[1];return p+="\n"+t.spatials.map(l=>{let m=I(l.symbol),r=g;l.detail?r=l.detail[0]:o.colorize&&(r=X(l.symbol)),r&&(m=m.replace(/class="sym-line" fill="black"/,`class="sym-line" fill="${r}"`));let v=c;return l.detail&&l.detail[1]&&(v=l.detail[1]),v&&(m=m.replace(/class="sym-fill" fill="white"/,`class="sym-fill" fill="${v}"`)),`  <g transform="translate(${l.coord[0]},${l.coord[1]})">\n${m}\n  </g>`}).join("\n"),p}return""},le=(n,t)=>{"object"!=typeof t&&(t={});const e=Object.assign(U,t);let i=e.width,d=e.height,f="";e.background&&(f=`\n  <rect x="0" y="0" width="${i-0}" height="${d-0}" style="fill:${e.background};" />`);let p=`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="${e.width}" height="${e.height}" viewBox="0 0 ${i-0} ${d-0}">\n  <text font-size="0">0</text>${f}`;return p+=n.map(g=>{const c=g.text.indexOf("-");if(c>0){const l=g.text.substring(c),m={...e.style,..._(l)};g.text=g.text.replace(l,M(m))}else g.text+=M(e.style);return g.zoom=g.zoom*e.style.zoom,'<g transform="translate('+g.x+","+g.y+") scale("+g.zoom+") translate("+-g.minX+","+-g.minY+') ">'+("sign"==g.segment?te(g.text):ne(g.text))+"</g>"}).join("\n"),p+="\n</svg>",p},ae=(n,t)=>{const e=function(n,t){"object"!=typeof t&&(t={});const e=Object.assign(U,t),o=document.createElement("canvas");o.width=e.width,o.height=e.height;const s=o.getContext("2d");return e.background&&(s.rect(0,0,e.width,e.height),s.fillStyle=e.background,s.fill()),n.map(i=>{const d=i.text.indexOf("-");if(d>0){const c=i.text.substring(d),l={...e.style,..._(c)};i.text=i.text.replace(c,M(l))}else i.text+=M(e.style);i.zoom=i.zoom*e.style.zoom;let f={};if("sign"==i.segment)f=C_sign(i.text);else{let c=C_symbol(i.text);f.style=c.style,f.spatials=[c]}let a=_(f.style);a.background&&(s.fillStyle=a.background,s.fillRect(i.x-a.padding*i.zoom,i.y-a.padding*i.zoom,(i.width+2*a.padding)*i.zoom,(i.height+2*a.padding)*i.zoom)),a.detailsym&&a.detailsym.forEach(c=>{f.spatials[c.index-1]&&(f.spatials[c.index-1].detail=c.detail)});const p=a.detail&&a.detail[0]||"black",g=a.detail&&a.detail[1]||"white";f.spatials.forEach(c=>{let l=p;c.detail?l=c.detail[0]:a.colorize&&(l=X(c.symbol));let m=g;c.detail&&c.detail[1]&&(m=c.detail[1]),s.font=30*i.zoom+"px 'SuttonSignWritingFill'",s.fillStyle=m,s.fillText(D(c.symbol),i.x+(c.coord[0]-i.minX)*i.zoom,i.y+(c.coord[1]-i.minY)*i.zoom),s.font=30*i.zoom+"px 'SuttonSignWritingLine'",s.fillStyle=l,s.fillText(S(c.symbol),i.x+(c.coord[0]-i.minX)*i.zoom,i.y+(c.coord[1]-i.minY)*i.zoom)})}),o}(n,t),o=e.toDataURL("image/png");return e.remove(),o};z.columnPng=ae,z.columnSvg=le,z.columnsPng=function(n,t){"object"!=typeof t&&(t={});let e=ie(n,t);return e.columns.map((s,i)=>ae(s,{...e.options,width:e.widths[i]}))}
1,z.columnsSvg=function(n,t){"object"!=typeof t&&(t={});let e=ie(n,t);return e.columns.map((s,i)=>le(s,{...e.options,width:e.widths[i]}))},z.signNormalize=n=>{const t=C_sign(n);if(t.spatials){const e=t.spatials.reduce((l,m)=>{const r=P(m.symbol);return l[m.symbol]={width:r[0],height:r[1]},l},{}),o=l=>({x1:Math.min(...l.map(k=>k.coord[0])),y1:Math.min(...l.map(k=>k.coord[1])),x2:Math.max(...l.map(k=>k.coord[0]+parseInt(e[k.symbol].width))),y2:Math.max(...l.map(k=>k.coord[1]+parseInt(e[k.symbol].height)))}),s=se_hcenter,i=t.spatials.filter(l=>{const m=parseInt(l.symbol.slice(1,4),16);return s[0]<=m&&s[1]>=m}),d=se_vcenter,f=t.spatials.filter(l=>{const m=parseInt(l.symbol.slice(1,4),16);return d[0]<=m&&d[1]>=m});let a=o(t.spatials),p=[a.x2,a.y2];if(i.length){const l=o(i);a.x1=l.x1,a.x2=l.x2}if(f.length){const l=o(f);a.y1=l.y1,a.y2=l.y2}const g=[parseInt((a.x2+a.x1)/2)-500,parseInt((a.y2+a.y1)/2)-500];return(t.sequence?"\u{1d800}"+t.sequence.join(""):"")+t.box+Z([p[0]-g[0],p[1]-g[1]])+t.spatials.map(l=>l.symbol+Z([l.coord[0]-g[0],l.coord[1]-g[1]])).join("")+(t.style||"")}},z.signPng=n=>{const t=function(n){const t=C_sign(n);if(t.spatials){const e=document.createElement("canvas"),o=e.getContext("2d");let s=_(t.style);s.detailsym&&s.detailsym.forEach(r=>{t.spatials[r.index-1]&&(t.spatials[r.index-1].detail=r.detail)});let i=Math.min(...t.spatials.map(r=>r.coord[0])),d=Math.min(...t.spatials.map(r=>r.coord[1])),f=t.max[0],a=t.max[1];s.padding&&(i-=s.padding,d-=s.padding,f+=s.padding,a+=s.padding);let p=1;"x"!=s.zoom&&(p=s.zoom);let g=(f-i)*p,c=(a-d)*p;e.width=g||1,e.height=c||1,s.background&&(o.rect(0,0,g,c),o.fillStyle=s.background,o.fill());const l=s.detail&&s.detail[0]||"black",m=s.detail&&s.detail[1]||"white";return t.spatials.forEach(r=>{let v=l;r.detail?v=r.detail[0]:s.colorize&&(v=X(r.symbol));let F=m;r.detail&&r.detail[1]&&(F=r.detail[1]),o.font=30*p+"px 'SuttonSignWritingFill'",o.fillStyle=F,o.fillText(D(r.symbol),(r.coord[0]-i)*p,(r.coord[1]-d)*p),o.font=30*p+"px 'SuttonSignWritingLine'",o.fillStyle=v,o.fillText(S(r.symbol),(r.coord[0]-i)*p,(r.coord[1]-d)*p)}),e}}(n),e=t.toDataURL("image/png");return t.remove(),e},z.signSvg=n=>{let t=C_sign(n);if(t.spatials){let o=_(t.style),s=Math.min(...t.spatials.map(l=>l.coord[0])),i=Math.min(...t.spatials.map(l=>l.coord[1])),d=t.max[0],f=t.max[1],a="";o.classes&&(a=` class="${o.classes}"`);let p="";o.id&&(p=` id="${o.id}"`),o.padding&&(s-=o.padding,i-=o.padding,d+=o.padding,f+=o.padding);let g="";"x"!=o.zoom&&(g=` width="${(d-s)*(o.zoom?o.zoom:1)}" height="${(f-i)*(o.zoom?o.zoom:1)}"`);let c=`<svg${a}${p} version="1.1" xmlns="http://www.w3.org/2000/svg"${g} viewBox="${s} ${i} ${d-s} ${f-i}">\n`;return c+=te(n),c+="\n</svg>",c}return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>'},z.signSvgBody=te,z.symbolFill=D,z.symbolLine=S,z.symbolNormalize=n=>{const t=C_symbol(n);if(!t.symbol)return null;{let e=P(t.symbol);if(e)return`${t.symbol}${Z([500-parseInt((e[0]+1)/2),500-parseInt((e[1]+1)/2)])}${t.style||""}`}},z.symbolPng=n=>{const t=function(n){const t=C_symbol(n);if(t.symbol){let e=P(t.symbol);if(e){const o=document.createElement("canvas"),s=o.getContext("2d");let i=_(t.style),d="black";i.colorize?d=X(t.symbol):i.detail&&(d=i.detail[0]);let f=i.detail&&i.detail[1]||"white",a=500,p=a+e[0],g=500,c=g+e[1];i.padding&&(a-=i.padding,g-=i.padding,p+=i.padding,c+=i.padding);let l=1;"x"!=i.zoom&&(l=i.zoom);let m=(p-a)*l,r=(c-g)*l;return o.width=m||1,o.height=r||1,i.background&&(s.rect(0,0,m,r),s.fillStyle=i.background,s.fill()),s.font=30*l+"px 'SuttonSignWritingFill'",s.fillStyle=f,s.fillText(D(t.symbol),(500-a)*l,(500-g)*l),s.font=30*l+"px 'SuttonSignWritingLine'",s.fillStyle=d,s.fillText(S(t.symbol),(500-a)*l,(500-g)*l),o}}}(n),e=t.toDataURL("image/png");return t.remove(),e},z.symbolSize=P,z.symbolSvg=n=>{const t=C_symbol(n),e='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>';if(!t.symbol)return e;let s,i,d,f,o=_(t.style);if(t.coord)s=t.coord[0],i=t.coord[1],d=500-s+500,f=500-i+500;else{let c=P(t.symbol);if(!c)return e;s=parseInt(500-c[0]/2),i=parseInt(500-c[1]/2),d=s+c[0],f=i+c[1]}let a="";o.classes&&(a=` class="${o.classes}"`);let p="";o.id&&(p=` id="${o.id}"`),o.padding&&(s-=o.padding,i-=o.padding,d+=o.padding,f+=o.padding);let g="";return"x"!=o.zoom&&(g=` width="${(d-s)*(o.zoom?o.zoom:1)}" height="${(f-i)*(o.zoom?o.zoom:1)}"`),`<svg${a}${p} version="1.1" xmlns="http://www.w3.org/2000/svg"${g} viewBox="${s} ${i} ${d-s} ${f-i}">\n${ne(n)}\n</svg>`},z.symbolSvgBody=ne,z.symbolText=I,Object.defineProperty(z,"__esMo
1dule",{value:!0})}(Q)})}}]);
2//# sourceMappingURL=default-node_modules_sutton-signwriting_sgnw-components_dist_esm_style-fd531f8d_js-node_modul-6427a6.e70cfa3e8d5e2029.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.