@pksep/yui 0.1.240 → 0.1.241
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.
package/dist/sep-yui.umd.ts
CHANGED
|
@@ -1413,7 +1413,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1413
1413
|
`),position:p,pageIndex:y-1,rect:a.slice(0),rotation:d,annotationElementId:m,id:m,deleted:!1,popupRef:u,comment:(Z==null?void 0:Z.str)||null,richText:h,creationDate:G,modificationDate:w}}const A=await super.deserialize(I,e,t);return V(A,wi,I.fontSize),A.color=Rg.makeHexColor(...I.color),V(A,Gi,H(n=AC,Is,H5).call(n,I.value)),A._initialData=i,I.comment&&A.setCommentData(I),A}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const e=gC._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),t=Object.assign(super.serialize(I),{color:e,fontSize:c(this,wi),value:H(this,EC,Av).call(this)});return this.addComment(t),I?(t.isCopy=!0,t):this.annotationElementId&&!H(this,EC,nv).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){const e=super.renderAnnotationElement(I);if(!e)return null;const{style:t}=e;t.fontSize=`calc(${c(this,wi)}px * var(--total-scale-factor))`,t.color=this.color,e.replaceChildren();for(const i of c(this,Gi).split(`
|
|
1414
1414
|
`)){const A=document.createElement("div");A.append(i?document.createTextNode(i):document.createElement("br")),e.append(A)}return I.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:c(this,Gi)}}),e}resetAnnotationElement(I){super.resetAnnotationElement(I),I.resetEdited()}};Gi=new WeakMap,pZ=new WeakMap,ac=new WeakMap,wi=new WeakMap,EC=new WeakSet,ev=function(I){const e=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-c(this,wi))*this.parentScale),V(this,wi,i),H(this,EC,F2).call(this)},t=c(this,wi);this.addCommands({cmd:e.bind(this,I),undo:e.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},tv=function(I){const e=i=>{this.color=i,this.onUpdatedColor()},t=this.color;this.addCommands({cmd:e.bind(this,I),undo:e.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},iv=function(){var t;const I=[];this.editorDiv.normalize();let e=null;for(const i of this.editorDiv.childNodes)(e==null?void 0:e.nodeType)===Node.TEXT_NODE&&i.nodeName==="BR"||(I.push(H(t=AC,Is,z2).call(t,i)),e=i);return I.join(`
|
|
1415
1415
|
`)},F2=function(){const[I,e]=this.parentDimensions;let t;if(this.isAttachedToDOM)t=this.div.getBoundingClientRect();else{const{currentLayer:i,div:A}=this,n=A.style.display,l=A.classList.contains("hidden");A.classList.remove("hidden"),A.style.display="hidden",i.div.append(this.div),t=A.getBoundingClientRect(),A.remove(),A.style.display=n,A.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=t.width/I,this.height=t.height/e):(this.width=t.height/I,this.height=t.width/e),this.fixAndSetPosition()},Is=new WeakSet,z2=function(I){return(I.nodeType===Node.TEXT_NODE?I.nodeValue:I.innerText).replaceAll(mW,"")},J2=function(){if(this.editorDiv.replaceChildren(),!!c(this,Gi))for(const I of c(this,Gi).split(`
|
|
1416
|
-
`)){const e=document.createElement("div");e.append(I?document.createTextNode(I):document.createElement("br")),this.editorDiv.append(e)}},Av=function(){return c(this,Gi).replaceAll(" "," ")},H5=function(I){return I.replaceAll(" "," ")},nv=function(I){const{value:e,fontSize:t,color:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||I.value!==e||I.fontSize!==t||I.color.some((n,l)=>n!==i[l])||I.pageIndex!==A},f(AC,Is),cg(AC,"_freeTextDefaultContent",""),cg(AC,"_internalPadding",0),cg(AC,"_defaultColor",null),cg(AC,"_defaultFontSize",10),cg(AC,"_type","freetext"),cg(AC,"_editorType",Pg.FREETEXT);let TV=AC;class Ng{toSVGPath(){OI("Abstract method `toSVGPath` must be implemented.")}get box(){OI("Abstract getter `box` must be implemented.")}serialize(g,I){OI("Abstract method `serialize` must be implemented.")}static _rescale(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,l=g.length;n<l;n+=2)A[n]=I+g[n]*t,A[n+1]=e+g[n+1]*i;return A}static _rescaleAndSwap(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,l=g.length;n<l;n+=2)A[n]=I+g[n+1]*t,A[n+1]=e+g[n]*i;return A}static _translate(g,I,e,t){t||(t=new Float32Array(g.length));for(let i=0,A=g.length;i<A;i+=2)t[i]=I+g[i],t[i+1]=e+g[i+1];return t}static svgRound(g){return Math.round(g*1e4)}static _normalizePoint(g,I,e,t,i){switch(i){case 90:return[1-I/e,g/t];case 180:return[1-g/e,1-I/t];case 270:return[I/e,1-g/t];default:return[g/e,I/t]}}static _normalizePagePoint(g,I,e){switch(e){case 90:return[1-I,g];case 180:return[1-g,1-I];case 270:return[I,1-g];default:return[g,I]}}static createBezierPoints(g,I,e,t,i,A){return[(g+5*e)/6,(I+5*t)/6,(5*e+i)/6,(5*t+A)/6,(e+i)/2,(t+A)/2]}}cg(Ng,"PRECISION",1e-4);const Cs=class Cs{constructor({x:g,y:I},e,t,i,A,n=0){f(this,ee);f(this,Wi);f(this,xA,[]);f(this,Au);f(this,nu);f(this,Qn,[]);f(this,sI,new Float32Array(18));f(this,dc);f(this,cc);f(this,yZ);f(this,YZ);f(this,lu);f(this,su);f(this,Oo,[]);V(this,Wi,e),V(this,su,i*t),V(this,nu,A),c(this,sI).set([NaN,NaN,NaN,NaN,g,I],6),V(this,Au,n),V(this,YZ,c(Cs,VZ)*t),V(this,yZ,c(Cs,Vp)*t),V(this,lu,t),c(this,Oo).push(g,I)}isEmpty(){return isNaN(c(this,sI)[8])}add({x:g,y:I}){var J;V(this,dc,g),V(this,cc,I);const[e,t,i,A]=c(this,Wi);let[n,l,o,a]=c(this,sI).subarray(8,12);const d=g-o,m=I-a,u=Math.hypot(d,m);if(u<c(this,yZ))return!1;const h=u-c(this,YZ),Z=h/u,G=Z*d,w=Z*m;let B=n,p=l;n=o,l=a,o+=G,a+=w,(J=c(this,Oo))==null||J.push(g,I);const y=-w/h,Y=G/h,R=y*c(this,su),M=Y*c(this,su);return c(this,sI).set(c(this,sI).subarray(2,8),0),c(this,sI).set([o+R,a+M],4),c(this,sI).set(c(this,sI).subarray(14,18),12),c(this,sI).set([o-R,a-M],16),isNaN(c(this,sI)[6])?(c(this,Qn).length===0&&(c(this,sI).set([n+R,l+M],2),c(this,Qn).push(NaN,NaN,NaN,NaN,(n+R-e)/i,(l+M-t)/A),c(this,sI).set([n-R,l-M],14),c(this,xA).push(NaN,NaN,NaN,NaN,(n-R-e)/i,(l-M-t)/A)),c(this,sI).set([B,p,n,l,o,a],6),!this.isEmpty()):(c(this,sI).set([B,p,n,l,o,a],6),Math.abs(Math.atan2(p-l,B-n)-Math.atan2(w,G))<Math.PI/2?([n,l,o,a]=c(this,sI).subarray(2,6),c(this,Qn).push(NaN,NaN,NaN,NaN,((n+o)/2-e)/i,((l+a)/2-t)/A),[n,l,B,p]=c(this,sI).subarray(14,18),c(this,xA).push(NaN,NaN,NaN,NaN,((B+n)/2-e)/i,((p+l)/2-t)/A),!0):([B,p,n,l,o,a]=c(this,sI).subarray(0,6),c(this,Qn).push(((B+5*n)/6-e)/i,((p+5*l)/6-t)/A,((5*n+o)/6-e)/i,((5*l+a)/6-t)/A,((n+o)/2-e)/i,((l+a)/2-t)/A),[o,a,n,l,B,p]=c(this,sI).subarray(12,18),c(this,xA).push(((B+5*n)/6-e)/i,((p+5*l)/6-t)/A,((5*n+o)/6-e)/i,((5*l+a)/6-t)/A,((n+o)/2-e)/i,((l+a)/2-t)/A),!0))}toSVGPath(){if(this.isEmpty())return"";const g=c(this,Qn),I=c(this,xA);if(isNaN(c(this,sI)[6])&&!this.isEmpty())return H(this,ee,lv).call(this);const e=[];e.push(`M${g[4]} ${g[5]}`);for(let t=6;t<g.length;t+=6)isNaN(g[t])?e.push(`L${g[t+4]} ${g[t+5]}`):e.push(`C${g[t]} ${g[t+1]} ${g[t+2]} ${g[t+3]} ${g[t+4]} ${g[t+5]}`);H(this,ee,ov).call(this,e);for(let t=I.length-6;t>=6;t-=6)isNaN(I[t])?e.push(`L${I[t+4]} ${I[t+5]}`):e.push(`C${I[t]} ${I[t+1]} ${I[t+2]} ${I[t+3]} ${I[t+4]} ${I[t+5]}`);return H(this,ee,sv).call(this,e),e.join(" ")}newFreeDrawOutline(g,I,e,t,i,A){return new vS(g,I,e,t,i,A)}getOutlines(){var d;const g=c(this,Qn),I=c(this,xA),e=c(this,sI),[t,i,A,n]=c(this,Wi),l=new Float32Array((((d=c(this,Oo))==null?void 0:d.length)??0)+2);for(let m=0,u=l.length-2;m<u;m+=2)l[m]=(c(this,Oo)[m]-t)/A,l[m+1]=(c(this,Oo)[m+1]-i)/n;if(l[l.length-2]=(c(this,dc)-t)/A,l[l.length-1]=(c(this,cc)-i)/n,isNaN(e[6])&&!this.isEmpty())return H(this,ee,av).call(this,l);const o=new Float32Array(c(this,Qn).length+24+c(this,xA).length);let a=g.length;for(let m=0;m<a;m+=2){if(isNaN(g[m])){o[m]=o[m+1]=NaN;continue}o[m]=g[m],o[m+1]=g[m+1]}a=H(this,ee,cv).call(this,o,a);for(let m=I.length-6;m>=6;m-=6)for(let u=0;u<6;u+=2){if(isNaN(I[m+u])){o[a]=o[a+1]=NaN,a+=2;continue}o[a]=I[m+u],o[a+1]=I[m+u+1],a+=2}return H(this,ee,dv).call(this,o,a),this.newFreeDrawOutline(o,l,c(this,Wi),c(this,lu),c(this,Au),c(this,nu))}};Wi=new WeakMap,xA=new WeakMap,Au=new WeakMap,nu=new WeakMap,Qn=new WeakMap,sI=new WeakMap,dc=new WeakMap,cc=new WeakMap,yZ=new WeakMap,YZ=new WeakMap,lu=new WeakMap,su=new WeakMap,Oo=new WeakMap,VZ=new WeakMap,Yp=new WeakMap,Vp=new WeakMap,ee=new WeakSet,MG=function(){const g=c(this,sI).subarray(4,6),I=c(this,sI).subarray(16,18),[e,t,i,A]=c(this,Wi);return[(c(this,dc)+(g[0]-I[0])/2-e)/i,(c(this,cc)+(g[1]-I[1])/2-t)/A,(c(this,dc)+(I[0]-g[0])/2-e)/i,(c(this,cc)+(I[1]-g[1])/2-t)/A]},lv=function(){const[g,I,e,t]=c(this,Wi),[i,A,n,l]=H(this,ee,MG).call(this);return`M${(c(this,sI)[2]-g)/e} ${(c(this,sI)[3]-I)/t} L${(c(this,sI)[4]-g)/e} ${(c(this,sI)[5]-I)/t} L${i} ${A} L${n} ${l} L${(c(this,sI)[16]-g)/e} ${(c(this,sI)[17]-I)/t} L${(c(this,sI)[14]-g)/e} ${(c(this,sI)[15]-I)/t} Z`},sv=function(g){const I=c(this,xA);g.push(`L${I[4]} ${I[5]} Z`)},ov=function(g){const[I,e,t,i]=c(this,Wi),A=c(this,sI).subarray(4,6),n=c(this,sI).subarray(16,18),[l,o,a,d]=H(this,ee,MG).call(this);g.push(`L${(A[0]-I)/t} ${(A[1]-e)/i} L${l} ${o} L${a} ${d} L${(n[0]-I)/t} ${(n[1]-e)/i}`)},av=function(g){const I=c(this,sI),[e,t,i,A]=c(this,Wi),[n,l,o,a]=H(this,ee,MG).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(I[2]-e)/i,(I[3]-t)/A,NaN,NaN,NaN,NaN,(I[4]-e)/i,(I[5]-t)/A,NaN,NaN,NaN,NaN,n,l,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,(I[16]-e)/i,(I[17]-t)/A,NaN,NaN,NaN,NaN,(I[14]-e)/i,(I[15]-t)/A],0),this.newFreeDrawOutline(d,g,c(this,Wi),c(this,lu),c(this,Au),c(this,nu))},dv=function(g,I){const e=c(this,xA);return g.set([NaN,NaN,NaN,NaN,e[4],e[5]],I),I+=6},cv=function(g,I){const e=c(this,sI).subarray(4,6),t=c(this,sI).subarray(16,18),[i,A,n,l]=c(this,Wi),[o,a,d,m]=H(this,ee,MG).call(this);return g.set([NaN,NaN,NaN,NaN,(e[0]-i)/n,(e[1]-A)/l,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,d,m,NaN,NaN,NaN,NaN,(t[0]-i)/n,(t[1]-A)/l],I),I+=24},f(Cs,VZ,8),f(Cs,Yp,2),f(Cs,Vp,c(Cs,VZ)+c(Cs,Yp));let uW=Cs;class vS extends Ng{constructor(I,e,t,i,A,n){super();f(this,Np);f(this,ou);f(this,rc,new Float32Array(4));f(this,es);f(this,NZ);f(this,Bi);f(this,MZ);f(this,SC);V(this,SC,I),V(this,Bi,e),V(this,ou,t),V(this,MZ,i),V(this,es,A),V(this,NZ,n),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],H(this,Np,rv).call(this,n);const[l,o,a,d]=c(this,rc);for(let m=0,u=I.length;m<u;m+=2)I[m]=(I[m]-l)/a,I[m+1]=(I[m+1]-o)/d;for(let m=0,u=e.length;m<u;m+=2)e[m]=(e[m]-l)/a,e[m+1]=(e[m+1]-o)/d}toSVGPath(){const I=[`M${c(this,SC)[4]} ${c(this,SC)[5]}`];for(let e=6,t=c(this,SC).length;e<t;e+=6){if(isNaN(c(this,SC)[e])){I.push(`L${c(this,SC)[e+4]} ${c(this,SC)[e+5]}`);continue}I.push(`C${c(this,SC)[e]} ${c(this,SC)[e+1]} ${c(this,SC)[e+2]} ${c(this,SC)[e+3]} ${c(this,SC)[e+4]} ${c(this,SC)[e+5]}`)}return I.push("Z"),I.join(" ")}serialize([I,e,t,i],A){const n=t-I,l=i-e;let o,a;switch(A){case 0:o=Ng._rescale(c(this,SC),I,i,n,-l),a=Ng._rescale(c(this,Bi),I,i,n,-l);break;case 90:o=Ng._rescaleAndSwap(c(this,SC),I,e,n,l),a=Ng._rescaleAndSwap(c(this,Bi),I,e,n,l);break;case 180:o=Ng._rescale(c(this,SC),t,e,-n,l),a=Ng._rescale(c(this,Bi),t,e,-n,l);break;case 270:o=Ng._rescaleAndSwap(c(this,SC),t,i,-n,-l),a=Ng._rescaleAndSwap(c(this,Bi),t,i,-n,-l);break}return{outline:Array.from(o),points:[Array.from(a)]}}get box(){return c(this,rc)}newOutliner(I,e,t,i,A,n=0){return new uW(I,e,t,i,A,n)}getNewOutline(I,e){const[t,i,A,n]=c(this,rc),[l,o,a,d]=c(this,ou),m=A*a,u=n*d,h=t*a+l,Z=i*d+o,G=this.newOutliner({x:c(this,Bi)[0]*m+h,y:c(this,Bi)[1]*u+Z},c(this,ou),c(this,MZ),I,c(this,NZ),e??c(this,es));for(let w=2;w<c(this,Bi).length;w+=2)G.add({x:c(this,Bi)[w]*m+h,y:c(this,Bi)[w+1]*u+Z});return G.getOutlines()}}ou=new WeakMap,rc=new WeakMap,es=new WeakMap,NZ=new WeakMap,Bi=new WeakMap,MZ=new WeakMap,SC=new WeakMap,Np=new WeakSet,rv=function(I){const e=c(this,SC);let t=e[4],i=e[5];const A=[t,i,t,i];let n=t,l=i,o=t,a=i;const d=I?Math.max:Math.min,m=new Float32Array(4);for(let h=6,Z=e.length;h<Z;h+=6){const G=e[h+4],w=e[h+5];isNaN(e[h])?(Rg.pointBoundingBox(G,w,A),l>w?(n=G,l=w):l===w&&(n=d(n,G)),a<w?(o=G,a=w):a===w&&(o=d(o,G))):(m[0]=m[1]=1/0,m[2]=m[3]=-1/0,Rg.bezierBoundingBox(t,i,...e.slice(h,h+6),m),Rg.rectBoundingBox(m[0],m[1],m[2],m[3],A),l>m[1]?(n=m[0],l=m[1]):l===m[1]&&(n=d(n,m[0])),a<m[3]?(o=m[2],a=m[3]):a===m[3]&&(o=d(o,m[2]))),t=G,i=w}const u=c(this,rc);u[0]=A[0]-c(this,es),u[1]=A[1]-c(this,es),u[2]=A[2]-A[0]+2*c(this,es),u[3]=A[3]-A[1]+2*c(this,es),this.firstPoint=[n,l],this.lastPoint=[o,a]};class vV{constructor(g,I=0,e=0,t=!0){f(this,Bt);f(this,RZ);f(this,fZ);f(this,XZ);f(this,Qo,[]);f(this,OA,[]);const i=[1/0,1/0,-1/0,-1/0],n=10**-4;for(const{x:G,y:w,width:B,height:p}of g){const y=Math.floor((G-I)/n)*n,Y=Math.ceil((G+B+I)/n)*n,R=Math.floor((w-I)/n)*n,M=Math.ceil((w+p+I)/n)*n,K=[y,R,M,!0],J=[Y,R,M,!1];c(this,Qo).push(K,J),Rg.rectBoundingBox(y,R,Y,M,i)}const l=i[2]-i[0]+2*e,o=i[3]-i[1]+2*e,a=i[0]-e,d=i[1]-e;let m=t?-1/0:1/0,u=1/0;const h=c(this,Qo).at(t?-1:-2),Z=[h[0],h[2]];for(const G of c(this,Qo)){const[w,B,p,y]=G;!y&&t?B<u?(u=B,m=w):B===u&&(m=Math.max(m,w)):y&&!t&&(B<u?(u=B,m=w):B===u&&(m=Math.min(m,w))),G[0]=(w-a)/l,G[1]=(B-d)/o,G[2]=(p-d)/o}V(this,RZ,new Float32Array([a,d,l,o])),V(this,fZ,[m,u]),V(this,XZ,Z)}getOutlines(){c(this,Qo).sort((I,e)=>I[0]-e[0]||I[1]-e[1]||I[2]-e[2]);const g=[];for(const I of c(this,Qo))I[3]?(g.push(...H(this,Bt,D5).call(this,I)),H(this,Bt,uv).call(this,I)):(H(this,Bt,hv).call(this,I),g.push(...H(this,Bt,D5).call(this,I)));return H(this,Bt,mv).call(this,g)}}RZ=new WeakMap,fZ=new WeakMap,XZ=new WeakMap,Qo=new WeakMap,OA=new WeakMap,Bt=new WeakSet,mv=function(g){const I=[],e=new Set;for(const A of g){const[n,l,o]=A;I.push([n,l,A],[n,o,A])}I.sort((A,n)=>A[1]-n[1]||A[0]-n[0]);for(let A=0,n=I.length;A<n;A+=2){const l=I[A][2],o=I[A+1][2];l.push(o),o.push(l),e.add(l),e.add(o)}const t=[];let i;for(;e.size>0;){const A=e.values().next().value;let[n,l,o,a,d]=A;e.delete(A);let m=n,u=l;for(i=[n,o],t.push(i);;){let h;if(e.has(a))h=a;else if(e.has(d))h=d;else break;e.delete(h),[n,l,o,a,d]=h,m!==n&&(i.push(m,u,n,u===l?l:o),m=n),u=u===l?o:l}i.push(m,u)}return new mxg(t,c(this,RZ),c(this,fZ),c(this,XZ))},L2=function(g){const I=c(this,OA);let e=0,t=I.length-1;for(;e<=t;){const i=e+t>>1,A=I[i][0];if(A===g)return i;A<g?e=i+1:t=i-1}return t+1},uv=function([,g,I]){const e=H(this,Bt,L2).call(this,g);c(this,OA).splice(e,0,[g,I])},hv=function([,g,I]){const e=H(this,Bt,L2).call(this,g);for(let t=e;t<c(this,OA).length;t++){const[i,A]=c(this,OA)[t];if(i!==g)break;if(i===g&&A===I){c(this,OA).splice(t,1);return}}for(let t=e-1;t>=0;t--){const[i,A]=c(this,OA)[t];if(i!==g)break;if(i===g&&A===I){c(this,OA).splice(t,1);return}}},D5=function(g){const[I,e,t]=g,i=[[I,e,t]],A=H(this,Bt,L2).call(this,t);for(let n=0;n<A;n++){const[l,o]=c(this,OA)[n];for(let a=0,d=i.length;a<d;a++){const[,m,u]=i[a];if(!(o<=m||u<=l)){if(m>=l){if(u>o)i[a][1]=o;else{if(d===1)return[];i.splice(a,1),a--,d--}continue}i[a][2]=l,u>o&&i.push([I,o,u])}}}return i};class mxg extends Ng{constructor(I,e,t,i){super();f(this,HZ);f(this,au);V(this,au,I),V(this,HZ,e),this.firstPoint=t,this.lastPoint=i}toSVGPath(){const I=[];for(const e of c(this,au)){let[t,i]=e;I.push(`M${t} ${i}`);for(let A=2;A<e.length;A+=2){const n=e[A],l=e[A+1];n===t?(I.push(`V${l}`),i=l):l===i&&(I.push(`H${n}`),t=n)}I.push("Z")}return I.join(" ")}serialize([I,e,t,i],A){const n=[],l=t-I,o=i-e;for(const a of c(this,au)){const d=new Array(a.length);for(let m=0;m<a.length;m+=2)d[m]=I+a[m]*l,d[m+1]=i-a[m+1]*o;n.push(d)}return n}get box(){return c(this,HZ)}get classNamesForOutlining(){return["highlightOutline"]}}HZ=new WeakMap,au=new WeakMap;class jV extends uW{newFreeDrawOutline(g,I,e,t,i,A){return new uxg(g,I,e,t,i,A)}}class uxg extends vS{newOutliner(g,I,e,t,i,A=0){return new jV(g,I,e,t,i,A)}}const yI=class yI extends gC{constructor(I){super({...I,name:"highlightEditor"});f(this,CI);f(this,du,null);f(this,DZ,0);f(this,ts);f(this,mc,null);f(this,SZ,null);f(this,Pt,null);f(this,KZ,null);f(this,kZ,0);f(this,uc,null);f(this,pi,null);f(this,yi,null);f(this,De,!1);f(this,cu,null);f(this,ru,null);f(this,It,null);f(this,mu,"");f(this,oA);f(this,FZ,"");this.color=I.color||yI._defaultColor,V(this,oA,I.thickness||yI._defaultThickness),this.opacity=I.opacity||yI._defaultOpacity,V(this,ts,I.boxes||null),V(this,FZ,I.methodOfCreation||""),V(this,mu,I.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",I.highlightId>-1?(V(this,De,!0),H(this,CI,T2).call(this,I),H(this,CI,xc).call(this)):c(this,ts)&&(V(this,du,I.anchorNode),V(this,DZ,I.anchorOffset),V(this,KZ,I.focusNode),V(this,kZ,I.focusOffset),H(this,CI,S5).call(this),H(this,CI,xc).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}static get _keyboardManager(){const I=yI.prototype;return Qg(this,"_keyboardManager",new Oh([[["ArrowLeft","mac+ArrowLeft"],I._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],I._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],I._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],I._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:c(this,De)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:c(this,oA),methodOfCreation:c(this,FZ)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(I){return{numberOfColors:I.get("color").size}}static initialize(I,e){var t;gC.initialize(I,e),yI._defaultColor||(yI._defaultColor=((t=e.highlightColors)==null?void 0:t.values().next().value)||"#fff066")}static updateDefaultParams(I,e){switch(I){case uI.HIGHLIGHT_COLOR:yI._defaultColor=e;break;case uI.HIGHLIGHT_THICKNESS:yI._defaultThickness=e;break}}translateInPage(I,e){}get toolbarPosition(){return c(this,ru)}get commentButtonPosition(){return c(this,cu)}updateParams(I,e){switch(I){case uI.HIGHLIGHT_COLOR:H(this,CI,bv).call(this,e);break;case uI.HIGHLIGHT_THICKNESS:H(this,CI,Zv).call(this,e);break}}static get defaultPropertiesToUpdate(){return[[uI.HIGHLIGHT_COLOR,yI._defaultColor],[uI.HIGHLIGHT_THICKNESS,yI._defaultThickness]]}get propertiesToUpdate(){return[[uI.HIGHLIGHT_COLOR,this.color||yI._defaultColor],[uI.HIGHLIGHT_THICKNESS,c(this,oA)||yI._defaultThickness],[uI.HIGHLIGHT_FREE,c(this,De)]]}onUpdatedColor(){var I,e;(I=this.parent)==null||I.drawLayer.updateProperties(c(this,yi),{root:{fill:this.color,"fill-opacity":this.opacity}}),(e=c(this,SZ))==null||e.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",V(this,SZ,new dW({editor:this}))]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(H(this,CI,j2).call(this))}getBaseTranslation(){return[0,0]}getRect(I,e){return super.getRect(I,e,H(this,CI,j2).call(this))}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),I&&this.div.focus()}remove(){H(this,CI,K5).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,CI,xc).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?H(this,CI,K5).call(this):I&&(H(this,CI,xc).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),this.show(this._isVisible),e&&this.select()}rotate(I){var i,A,n;const{drawLayer:e}=this.parent;let t;c(this,De)?(I=(I-this.rotation+360)%360,t=H(i=yI,aA,Eu).call(i,c(this,pi).box,I)):t=H(A=yI,aA,Eu).call(A,[this.x,this.y,this.width,this.height],I),e.updateProperties(c(this,yi),{bbox:t,root:{"data-main-rotation":I}}),e.updateProperties(c(this,It),{bbox:H(n=yI,aA,Eu).call(n,c(this,Pt).box,I),root:{"data-main-rotation":I}})}render(){if(this.div)return this.div;const I=super.render();c(this,mu)&&(I.setAttribute("aria-label",c(this,mu)),I.setAttribute("role","mark")),c(this,De)?I.classList.add("free"):this.div.addEventListener("keydown",H(this,CI,wv).bind(this),{signal:this._uiManager._signal});const e=V(this,uc,document.createElement("div"));return I.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=c(this,mc),this.setDims(),eS(this,c(this,uc),["pointerover","pointerleave"]),this.enableEditing(),I}pointerover(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!0}})}pointerleave(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!1}})}_moveCaret(I){switch(this.parent.unselect(this),I){case 0:case 2:H(this,CI,v2).call(this,!0);break;case 1:case 3:H(this,CI,v2).call(this,!1);break}}select(){var I;super.select(),c(this,It)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var I;super.unselect(),c(this,It)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{selected:!1}}),c(this,De)||H(this,CI,v2).call(this,!1))}get _mustFixPosition(){return!c(this,De)}show(I=this._isVisible){super.show(I),this.parent&&(this.parent.drawLayer.updateProperties(c(this,yi),{rootClass:{hidden:!I}}),this.parent.drawLayer.updateProperties(c(this,It),{rootClass:{hidden:!I}}))}static startHighlighting(I,e,{target:t,x:i,y:A}){const{x:n,y:l,width:o,height:a}=t.getBoundingClientRect(),d=new AbortController,m=I.combinedSignal(d),u=h=>{d.abort(),H(this,aA,yv).call(this,I,h)};window.addEventListener("blur",u,{signal:m}),window.addEventListener("pointerup",u,{signal:m}),window.addEventListener("pointerdown",BC,{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",Ji,{signal:m}),t.addEventListener("pointermove",H(this,aA,pv).bind(this,I),{signal:m}),this._freeHighlight=new jV({x:i,y:A},[n,l,o,a],I.scale,this._defaultThickness/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=I.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(I,e,t){var Z,G,w,B;let i=null;if(I instanceof LS){const{data:{quadPoints:p,rect:y,rotation:Y,id:R,color:M,opacity:K,popupRef:J,richText:X,contentsObj:D,creationDate:z,modificationDate:j},parent:{page:{pageNumber:q}}}=I;i=I={annotationType:Pg.HIGHLIGHT,color:Array.from(M),opacity:K,quadPoints:p,boxes:null,pageIndex:q-1,rect:y.slice(0),rotation:Y,annotationElementId:R,id:R,deleted:!1,popupRef:J,richText:X,comment:(D==null?void 0:D.str)||null,creationDate:z,modificationDate:j}}else if(I instanceof JV){const{data:{inkLists:p,rect:y,rotation:Y,id:R,color:M,borderStyle:{rawWidth:K},popupRef:J,richText:X,contentsObj:D,creationDate:z,modificationDate:j},parent:{page:{pageNumber:q}}}=I;i=I={annotationType:Pg.HIGHLIGHT,color:Array.from(M),thickness:K,inkLists:p,boxes:null,pageIndex:q-1,rect:y.slice(0),rotation:Y,annotationElementId:R,id:R,deleted:!1,popupRef:J,richText:X,comment:(D==null?void 0:D.str)||null,creationDate:z,modificationDate:j}}const{color:A,quadPoints:n,inkLists:l,opacity:o}=I,a=await super.deserialize(I,e,t);a.color=Rg.makeHexColor(...A),a.opacity=o||1,l&&V(a,oA,I.thickness),a._initialData=i,I.comment&&a.setCommentData(I);const[d,m]=a.pageDimensions,[u,h]=a.pageTranslation;if(n){const p=V(a,ts,[]);for(let y=0;y<n.length;y+=8)p.push({x:(n[y]-u)/d,y:1-(n[y+1]-h)/m,width:(n[y+2]-n[y])/d,height:(n[y+1]-n[y+5])/m});H(Z=a,CI,S5).call(Z),H(G=a,CI,xc).call(G),a.rotate(a.rotation)}else if(l){V(a,De,!0);const p=l[0],y={x:p[0]-u,y:m-(p[1]-h)},Y=new jV(y,[0,0,d,m],1,c(a,oA)/2,!0,.001);for(let K=0,J=p.length;K<J;K+=2)y.x=p[K]-u,y.y=m-(p[K+1]-h),Y.add(y);const{id:R,clipPathId:M}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:a.color,"fill-opacity":a._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:Y.toSVGPath()}},!0,!0);H(w=a,CI,T2).call(w,{highlightOutlines:Y.getOutlines(),highlightId:R,clipPathId:M}),H(B=a,CI,xc).call(B),a.rotate(a.parentRotation)}return a}serialize(I=!1){if(this.isEmpty()||I)return null;if(this.deleted)return this.serializeDeleted();const e=gC._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),t=super.serialize(I);return Object.assign(t,{color:e,opacity:this.opacity,thickness:c(this,oA),quadPoints:H(this,CI,Wv).call(this),outlines:H(this,CI,Bv).call(this,t.rect)}),this.addComment(t),this.annotationElementId&&!H(this,CI,Yv).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}};du=new WeakMap,DZ=new WeakMap,ts=new WeakMap,mc=new WeakMap,SZ=new WeakMap,Pt=new WeakMap,KZ=new WeakMap,kZ=new WeakMap,uc=new WeakMap,pi=new WeakMap,yi=new WeakMap,De=new WeakMap,cu=new WeakMap,ru=new WeakMap,It=new WeakMap,mu=new WeakMap,oA=new WeakMap,FZ=new WeakMap,CI=new WeakSet,S5=function(){const I=new vV(c(this,ts),.001);V(this,pi,I.getOutlines()),[this.x,this.y,this.width,this.height]=c(this,pi).box;const e=new vV(c(this,ts),.0025,.001,this._uiManager.direction==="ltr");V(this,Pt,e.getOutlines());const{firstPoint:t}=c(this,pi);V(this,cu,[(t[0]-this.x)/this.width,(t[1]-this.y)/this.height]);const{lastPoint:i}=c(this,Pt);V(this,ru,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},T2=function({highlightOutlines:I,highlightId:e,clipPathId:t}){var m,u;if(V(this,pi,I),V(this,Pt,I.getNewOutline(c(this,oA)/2+1.5,.0025)),e>=0)V(this,yi,e),V(this,mc,t),this.parent.drawLayer.finalizeDraw(e,{bbox:I.box,path:{d:I.toSVGPath()}}),V(this,It,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:c(this,Pt).box,path:{d:c(this,Pt).toSVGPath()}},!0));else if(this.parent){const h=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(c(this,yi),{bbox:H(m=yI,aA,Eu).call(m,c(this,pi).box,(h-this.rotation+360)%360),path:{d:I.toSVGPath()}}),this.parent.drawLayer.updateProperties(c(this,It),{bbox:H(u=yI,aA,Eu).call(u,c(this,Pt).box,h),path:{d:c(this,Pt).toSVGPath()}})}const[A,n,l,o]=I.box;switch(this.rotation){case 0:this.x=A,this.y=n,this.width=l,this.height=o;break;case 90:{const[h,Z]=this.parentDimensions;this.x=n,this.y=1-A,this.width=l*Z/h,this.height=o*h/Z;break}case 180:this.x=1-A,this.y=1-n,this.width=l,this.height=o;break;case 270:{const[h,Z]=this.parentDimensions;this.x=1-n,this.y=A,this.width=l*Z/h,this.height=o*h/Z;break}}const{firstPoint:a}=I;V(this,cu,[(a[0]-A)/l,(a[1]-n)/o]);const{lastPoint:d}=c(this,Pt);V(this,ru,[(d[0]-A)/l,(d[1]-n)/o])},bv=function(I){const e=(A,n)=>{this.color=A,this.opacity=n,this.onUpdatedColor()},t=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,I,yI._defaultOpacity),undo:e.bind(this,t,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(I)},!0)},Zv=function(I){const e=c(this,oA),t=i=>{V(this,oA,i),H(this,CI,Gv).call(this,i)};this.addCommands({cmd:t.bind(this,I),undo:t.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:I},!0)},Gv=function(I){c(this,De)&&(H(this,CI,T2).call(this,{highlightOutlines:c(this,pi).getNewOutline(I/2)}),this.fixAndSetPosition(),this.setDims())},K5=function(){c(this,yi)===null||!this.parent||(this.parent.drawLayer.remove(c(this,yi)),V(this,yi,null),this.parent.drawLayer.remove(c(this,It)),V(this,It,null))},xc=function(I=this.parent){c(this,yi)===null&&({id:se(this,yi)._,clipPathId:se(this,mc)._}=I.drawLayer.draw({bbox:c(this,pi).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:c(this,De)},path:{d:c(this,pi).toSVGPath()}},!1,!0),V(this,It,I.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:c(this,De)},bbox:c(this,Pt).box,path:{d:c(this,Pt).toSVGPath()}},c(this,De))),c(this,uc)&&(c(this,uc).style.clipPath=c(this,mc)))},aA=new WeakSet,Eu=function([I,e,t,i],A){switch(A){case 90:return[1-e-i,I,i,t];case 180:return[1-I-t,1-e-i,t,i];case 270:return[e,1-I-t,i,t]}return[I,e,t,i]},wv=function(I){yI._keyboardManager.exec(this,I)},v2=function(I){if(!c(this,du))return;const e=window.getSelection();I?e.setPosition(c(this,du),c(this,DZ)):e.setPosition(c(this,KZ),c(this,kZ))},j2=function(){return c(this,De)?this.rotation:0},Wv=function(){if(c(this,De))return null;const[I,e]=this.pageDimensions,[t,i]=this.pageTranslation,A=c(this,ts),n=new Float32Array(A.length*8);let l=0;for(const{x:o,y:a,width:d,height:m}of A){const u=o*I+t,h=(1-a)*e+i;n[l]=n[l+4]=u,n[l+1]=n[l+3]=h,n[l+2]=n[l+6]=u+d*I,n[l+5]=n[l+7]=h-m*e,l+=8}return n},Bv=function(I){return c(this,pi).serialize(I,H(this,CI,j2).call(this))},pv=function(I,e){this._freeHighlight.add(e)&&I.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},yv=function(I,e){this._freeHighlight.isEmpty()?I.drawLayer.remove(this._freeHighlightId):I.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},Yv=function(I){const{color:e}=this._initialData;return this.hasEditedComment||I.color.some((t,i)=>t!==e[i])},f(yI,aA),cg(yI,"_defaultColor",null),cg(yI,"_defaultOpacity",1),cg(yI,"_defaultThickness",12),cg(yI,"_type","highlight"),cg(yI,"_editorType",Pg.HIGHLIGHT),cg(yI,"_freeHighlightId",-1),cg(yI,"_freeHighlight",null),cg(yI,"_freeHighlightClipId","");let hW=yI;class jS{constructor(){f(this,hc,Object.create(null))}updateProperty(g,I){this[g]=I,this.updateSVGProperty(g,I)}updateProperties(g){if(g)for(const[I,e]of Object.entries(g))I.startsWith("_")||this.updateProperty(I,e)}updateSVGProperty(g,I){c(this,hc)[g]=I}toSVGProperties(){const g=c(this,hc);return V(this,hc,Object.create(null)),{root:g}}reset(){V(this,hc,Object.create(null))}updateAll(g=this){this.updateProperties(g)}clone(){OI("Not implemented")}}hc=new WeakMap;const cI=class cI extends gC{constructor(I){super(I);f(this,GI);f(this,Yi,null);f(this,uu);cg(this,"_colorPicker",null);cg(this,"_drawId",null);V(this,uu,I.mustBeCommitted||!1),this._addOutlines(I)}onUpdatedColor(){var I;(I=this._colorPicker)==null||I.update(this.color),super.onUpdatedColor()}_addOutlines(I){I.drawOutlines&&(H(this,GI,k5).call(this,I),H(this,GI,RG).call(this))}static _mergeSVGProperties(I,e){const t=new Set(Object.keys(I));for(const[i,A]of Object.entries(e))t.has(i)?Object.assign(I[i],A):I[i]=A;return I}static getDefaultDrawingOptions(I){OI("Not implemented")}static get typesMap(){OI("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(I,e){const t=this.typesMap.get(I);t&&this._defaultDrawingOptions.updateProperty(t,e),this._currentParent&&(c(cI,be).updateProperty(t,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(I,e){const t=this.constructor.typesMap.get(I);t&&this._updateProperty(I,t,e)}static get defaultPropertiesToUpdate(){const I=[],e=this._defaultDrawingOptions;for(const[t,i]of this.typesMap)I.push([t,e[i]]);return I}get propertiesToUpdate(){const I=[],{_drawingOptions:e}=this;for(const[t,i]of this.constructor.typesMap)I.push([t,e[i]]);return I}_updateProperty(I,e,t){const i=this._drawingOptions,A=i[e],n=l=>{var a;i.updateProperty(e,l);const o=c(this,Yi).updateProperty(e,l);o&&H(this,GI,fG).call(this,o),(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),I===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,A),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:I,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathResizingSVGProperties(H(this,GI,x2).call(this)),{bbox:H(this,GI,Pu).call(this)}))}_onResized(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathResizedSVGProperties(H(this,GI,x2).call(this)),{bbox:H(this,GI,Pu).call(this)}))}_onTranslating(I,e){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{bbox:H(this,GI,Pu).call(this)})}_onTranslated(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathTranslatedSVGProperties(H(this,GI,x2).call(this),this.parentDimensions),{bbox:H(this,GI,Pu).call(this)}))}_onStartDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,c(this,uu)&&(V(this,uu,!1),this.commit(),this.parent.setSelected(this),I&&this.isOnScreen&&this.div.focus())}remove(){H(this,GI,z5).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,GI,RG).call(this),H(this,GI,fG).call(this,c(this,Yi).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?(this._uiManager.removeShouldRescale(this),H(this,GI,z5).call(this)):I&&(this._uiManager.addShouldRescale(this),H(this,GI,RG).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),e&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties({bbox:H(this,GI,Pu).call(this)},c(this,Yi).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&H(this,GI,fG).call(this,c(this,Yi).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let I,e;this._isCopy&&(I=this.x,e=this.y);const t=super.render();t.classList.add("draw");const i=document.createElement("div");return t.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(I,e),t}static createDrawerInstance(I,e,t,i,A){OI("Not implemented")}static startDrawing(I,e,t,i){var G;const{target:A,offsetX:n,offsetY:l,pointerId:o,pointerType:a}=i;if(Qe.isInitializedAndDifferentPointerType(a))return;const{viewport:{rotation:d}}=I,{width:m,height:u}=A.getBoundingClientRect(),h=V(cI,bc,new AbortController),Z=I.combinedSignal(h);if(Qe.setPointer(a,o),window.addEventListener("pointerup",w=>{Qe.isSamePointerIdOrRemove(w.pointerId)&&this._endDraw(w)},{signal:Z}),window.addEventListener("pointercancel",w=>{Qe.isSamePointerIdOrRemove(w.pointerId)&&this._currentParent.endDrawingSession()},{signal:Z}),window.addEventListener("pointerdown",w=>{Qe.isSamePointerType(w.pointerType)&&(Qe.initializeAndAddPointerId(w.pointerId),c(cI,be).isCancellable()&&(c(cI,be).removeLastElement(),c(cI,be).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:Z}),window.addEventListener("contextmenu",Ji,{signal:Z}),A.addEventListener("pointermove",this._drawMove.bind(this),{signal:Z}),A.addEventListener("touchmove",w=>{Qe.isSameTimeStamp(w.timeStamp)&&BC(w)},{signal:Z}),I.toggleDrawing(),(G=e._editorUndoBar)==null||G.hide(),c(cI,be)){I.drawLayer.updateProperties(this._currentDrawId,c(cI,be).startNew(n,l,m,u,d));return}e.updateUIForDefaultProperties(this),V(cI,be,this.createDrawerInstance(n,l,m,u,d)),V(cI,Zc,this.getDefaultDrawingOptions()),this._currentParent=I,{id:this._currentDrawId}=I.drawLayer.draw(this._mergeSVGProperties(c(cI,Zc).toSVGProperties(),c(cI,be).defaultSVGProperties),!0,!1)}static _drawMove(I){if(Qe.isSameTimeStamp(I.timeStamp),!c(cI,be))return;const{offsetX:e,offsetY:t,pointerId:i}=I;if(Qe.isSamePointerId(i)){if(Qe.isUsingMultiplePointers()){this._endDraw(I);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,c(cI,be).add(e,t)),Qe.setTimeStamp(I.timeStamp),BC(I)}}static _cleanup(I){I&&(this._currentDrawId=-1,this._currentParent=null,V(cI,be,null),V(cI,Zc,null),Qe.clearPointerType(),Qe.clearTimeStamp()),c(cI,bc)&&(c(cI,bc).abort(),V(cI,bc,null),Qe.clearPointerIds())}static _endDraw(I){const e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),(I==null?void 0:I.target)===e.div&&e.drawLayer.updateProperties(this._currentDrawId,c(cI,be).end(I.offsetX,I.offsetY)),this.supportMultipleDrawings){const t=c(cI,be),i=this._currentDrawId,A=t.getLastElement();e.addCommands({cmd:()=>{e.drawLayer.updateProperties(i,t.setLastElement(A))},undo:()=>{e.drawLayer.updateProperties(i,t.removeLastElement())},mustExec:!1,type:uI.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(I){const e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(uI.DRAW_STEP),!c(cI,be).isEmpty()){const{pageDimensions:[t,i],scale:A}=e,n=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:c(cI,be).getOutlines(t*A,i*A,A,this._INNER_MARGIN),drawingOptions:c(cI,Zc),mustBeCommitted:!I});return this._cleanup(!0),n}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(I){}static deserializeDraw(I,e,t,i,A,n){OI("Not implemented")}static async deserialize(I,e,t){var d,m;const{rawDims:{pageWidth:i,pageHeight:A,pageX:n,pageY:l}}=e.viewport,o=this.deserializeDraw(n,l,i,A,this._INNER_MARGIN,I),a=await super.deserialize(I,e,t);return a.createDrawingOptions(I),H(d=a,GI,k5).call(d,{drawOutlines:o}),H(m=a,GI,RG).call(m),a.onScaleChanging(),a.rotate(),a}serializeDraw(I){const[e,t]=this.pageTranslation,[i,A]=this.pageDimensions;return c(this,Yi).serialize([e,t,i,A],I)}renderAnnotationElement(I){return I.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};Yi=new WeakMap,uu=new WeakMap,be=new WeakMap,bc=new WeakMap,Zc=new WeakMap,GI=new WeakSet,k5=function({drawOutlines:I,drawId:e,drawingOptions:t}){V(this,Yi,I),this._drawingOptions||(this._drawingOptions=t),this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,I.defaultProperties)):this._drawId=H(this,GI,F5).call(this,I,this.parent),H(this,GI,fG).call(this,I.box)},F5=function(I,e){const{id:t}=e.drawLayer.draw(cI._mergeSVGProperties(this._drawingOptions.toSVGProperties(),I.defaultSVGProperties),!1,!1);return t},z5=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},RG=function(I=this.parent){if(!(this._drawId!==null&&this.parent===I)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,I.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=H(this,GI,F5).call(this,c(this,Yi),I)}},Vv=function([I,e,t,i]){const{parentDimensions:[A,n],rotation:l}=this;switch(l){case 90:return[e,1-I,t*(n/A),i*(A/n)];case 180:return[1-I,1-e,t,i];case 270:return[1-e,I,t*(n/A),i*(A/n)];default:return[I,e,t,i]}},x2=function(){const{x:I,y:e,width:t,height:i,parentDimensions:[A,n],rotation:l}=this;switch(l){case 90:return[1-e,I,t*(A/n),i*(n/A)];case 180:return[1-I,1-e,t,i];case 270:return[e,1-I,t*(A/n),i*(n/A)];default:return[I,e,t,i]}},fG=function(I){[this.x,this.y,this.width,this.height]=H(this,GI,Vv).call(this,I),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()},Pu=function(){const{x:I,y:e,width:t,height:i,rotation:A,parentRotation:n,parentDimensions:[l,o]}=this;switch((A*4+n)/90){case 1:return[1-e-i,I,i,t];case 2:return[1-I-t,1-e-i,t,i];case 3:return[e,1-I-t,i,t];case 4:return[I,e-t*(l/o),i*(o/l),t*(l/o)];case 5:return[1-e,I,t*(l/o),i*(o/l)];case 6:return[1-I-i*(o/l),1-e,i*(o/l),t*(l/o)];case 7:return[e-t*(l/o),1-I-i*(o/l),t*(l/o),i*(o/l)];case 8:return[I-t,e-i,t,i];case 9:return[1-e,I-t,i,t];case 10:return[1-I,1-e,t,i];case 11:return[e-i,1-I,i,t];case 12:return[I-i*(o/l),e,i*(o/l),t*(l/o)];case 13:return[1-e-t*(l/o),I-i*(o/l),t*(l/o),i*(o/l)];case 14:return[1-I,1-e-t*(l/o),i*(o/l),t*(l/o)];case 15:return[e,1-I,t*(l/o),i*(o/l)];default:return[I,e,t,i]}},cg(cI,"_currentDrawId",-1),cg(cI,"_currentParent",null),f(cI,be,null),f(cI,bc,null),f(cI,Zc,null),cg(cI,"_INNER_MARGIN",3);let bW=cI;class hxg{constructor(g,I,e,t,i,A){f(this,bu);f(this,Un,new Float64Array(6));f(this,Ze);f(this,Ge);f(this,Gc);f(this,hu);f(this,pt);f(this,Se,"");f(this,dA,0);f(this,wc,new g0);f(this,Wc);f(this,Bc);V(this,Wc,e),V(this,Bc,t),V(this,Gc,i),V(this,hu,A),[g,I]=H(this,bu,O2).call(this,g,I);const n=V(this,Ze,[NaN,NaN,NaN,NaN,g,I]);V(this,pt,[g,I]),V(this,Ge,[{line:n,points:c(this,pt)}]),c(this,Un).set(n,0)}updateProperty(g,I){g==="stroke-width"&&V(this,hu,I)}isEmpty(){return!c(this,Ge)||c(this,Ge).length===0}isCancellable(){return c(this,pt).length<=10}add(g,I){[g,I]=H(this,bu,O2).call(this,g,I);const[e,t,i,A]=c(this,Un).subarray(2,6),n=g-i,l=I-A;return Math.hypot(c(this,Wc)*n,c(this,Bc)*l)<=2?null:(c(this,pt).push(g,I),isNaN(e)?(c(this,Un).set([i,A,g,I],2),c(this,Ze).push(NaN,NaN,NaN,NaN,g,I),{path:{d:this.toSVGPath()}}):(isNaN(c(this,Un)[0])&&c(this,Ze).splice(6,6),c(this,Un).set([e,t,i,A,g,I],0),c(this,Ze).push(...Ng.createBezierPoints(e,t,i,A,g,I)),{path:{d:this.toSVGPath()}}))}end(g,I){const e=this.add(g,I);return e||(c(this,pt).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(g,I,e,t,i){V(this,Wc,e),V(this,Bc,t),V(this,Gc,i),[g,I]=H(this,bu,O2).call(this,g,I);const A=V(this,Ze,[NaN,NaN,NaN,NaN,g,I]);V(this,pt,[g,I]);const n=c(this,Ge).at(-1);return n&&(n.line=new Float32Array(n.line),n.points=new Float32Array(n.points)),c(this,Ge).push({line:A,points:c(this,pt)}),c(this,Un).set(A,0),V(this,dA,0),this.toSVGPath(),null}getLastElement(){return c(this,Ge).at(-1)}setLastElement(g){return c(this,Ge)?(c(this,Ge).push(g),V(this,Ze,g.line),V(this,pt,g.points),V(this,dA,0),{path:{d:this.toSVGPath()}}):c(this,wc).setLastElement(g)}removeLastElement(){if(!c(this,Ge))return c(this,wc).removeLastElement();c(this,Ge).pop(),V(this,Se,"");for(let g=0,I=c(this,Ge).length;g<I;g++){const{line:e,points:t}=c(this,Ge)[g];V(this,Ze,e),V(this,pt,t),V(this,dA,0),this.toSVGPath()}return{path:{d:c(this,Se)}}}toSVGPath(){const g=Ng.svgRound(c(this,Ze)[4]),I=Ng.svgRound(c(this,Ze)[5]);if(c(this,pt).length===2)return V(this,Se,`${c(this,Se)} M ${g} ${I} Z`),c(this,Se);if(c(this,pt).length<=6){const t=c(this,Se).lastIndexOf("M");V(this,Se,`${c(this,Se).slice(0,t)} M ${g} ${I}`),V(this,dA,6)}if(c(this,pt).length===4){const t=Ng.svgRound(c(this,Ze)[10]),i=Ng.svgRound(c(this,Ze)[11]);return V(this,Se,`${c(this,Se)} L ${t} ${i}`),V(this,dA,12),c(this,Se)}const e=[];c(this,dA)===0&&(e.push(`M ${g} ${I}`),V(this,dA,6));for(let t=c(this,dA),i=c(this,Ze).length;t<i;t+=6){const[A,n,l,o,a,d]=c(this,Ze).slice(t,t+6).map(Ng.svgRound);e.push(`C${A} ${n} ${l} ${o} ${a} ${d}`)}return V(this,Se,c(this,Se)+e.join(" ")),V(this,dA,c(this,Ze).length),c(this,Se)}getOutlines(g,I,e,t){const i=c(this,Ge).at(-1);return i.line=new Float32Array(i.line),i.points=new Float32Array(i.points),c(this,wc).build(c(this,Ge),g,I,e,c(this,Gc),c(this,hu),t),V(this,Un,null),V(this,Ze,null),V(this,Ge,null),V(this,Se,null),c(this,wc)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}Un=new WeakMap,Ze=new WeakMap,Ge=new WeakMap,Gc=new WeakMap,hu=new WeakMap,pt=new WeakMap,Se=new WeakMap,dA=new WeakMap,wc=new WeakMap,Wc=new WeakMap,Bc=new WeakMap,bu=new WeakSet,O2=function(g,I){return Ng._normalizePoint(g,I,c(this,Wc),c(this,Bc),c(this,Gc))};class g0 extends Ng{constructor(){super(...arguments);f(this,Ke);f(this,yt);f(this,zZ,0);f(this,JZ);f(this,Vi);f(this,En);f(this,Pn);f(this,Zu);f(this,Gu);f(this,pc)}build(I,e,t,i,A,n,l){V(this,En,e),V(this,Pn,t),V(this,Zu,i),V(this,Gu,A),V(this,pc,n),V(this,JZ,l??0),V(this,Vi,I),H(this,Ke,Mv).call(this)}get thickness(){return c(this,pc)}setLastElement(I){return c(this,Vi).push(I),{path:{d:this.toSVGPath()}}}removeLastElement(){return c(this,Vi).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const I=[];for(const{line:e}of c(this,Vi)){if(I.push(`M${Ng.svgRound(e[4])} ${Ng.svgRound(e[5])}`),e.length===6){I.push("Z");continue}if(e.length===12&&isNaN(e[6])){I.push(`L${Ng.svgRound(e[10])} ${Ng.svgRound(e[11])}`);continue}for(let t=6,i=e.length;t<i;t+=6){const[A,n,l,o,a,d]=e.subarray(t,t+6).map(Ng.svgRound);I.push(`C${A} ${n} ${l} ${o} ${a} ${d}`)}}return I.join("")}serialize([I,e,t,i],A){const n=[],l=[],[o,a,d,m]=H(this,Ke,Nv).call(this);let u,h,Z,G,w,B,p,y,Y;switch(c(this,Gu)){case 0:Y=Ng._rescale,u=I,h=e+i,Z=t,G=-i,w=I+o*t,B=e+(1-a-m)*i,p=I+(o+d)*t,y=e+(1-a)*i;break;case 90:Y=Ng._rescaleAndSwap,u=I,h=e,Z=t,G=i,w=I+a*t,B=e+o*i,p=I+(a+m)*t,y=e+(o+d)*i;break;case 180:Y=Ng._rescale,u=I+t,h=e,Z=-t,G=i,w=I+(1-o-d)*t,B=e+a*i,p=I+(1-o)*t,y=e+(a+m)*i;break;case 270:Y=Ng._rescaleAndSwap,u=I+t,h=e+i,Z=-t,G=-i,w=I+(1-a-m)*t,B=e+(1-o-d)*i,p=I+(1-a)*t,y=e+(1-o)*i;break}for(const{line:R,points:M}of c(this,Vi))n.push(Y(R,u,h,Z,G,A?new Array(R.length):null)),l.push(Y(M,u,h,Z,G,A?new Array(M.length):null));return{lines:n,points:l,rect:[w,B,p,y]}}static deserialize(I,e,t,i,A,{paths:{lines:n,points:l},rotation:o,thickness:a}){const d=[];let m,u,h,Z,G;switch(o){case 0:G=Ng._rescale,m=-I/t,u=e/i+1,h=1/t,Z=-1/i;break;case 90:G=Ng._rescaleAndSwap,m=-e/i,u=-I/t,h=1/i,Z=1/t;break;case 180:G=Ng._rescale,m=I/t+1,u=-e/i,h=-1/t,Z=1/i;break;case 270:G=Ng._rescaleAndSwap,m=e/i+1,u=I/t+1,h=-1/i,Z=-1/t;break}if(!n){n=[];for(const B of l){const p=B.length;if(p===2){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1]]));continue}if(p===4){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1],NaN,NaN,NaN,NaN,B[2],B[3]]));continue}const y=new Float32Array(3*(p-2));n.push(y);let[Y,R,M,K]=B.subarray(0,4);y.set([NaN,NaN,NaN,NaN,Y,R],0);for(let J=4;J<p;J+=2){const X=B[J],D=B[J+1];y.set(Ng.createBezierPoints(Y,R,M,K,X,D),(J-2)*3),[Y,R,M,K]=[M,K,X,D]}}}for(let B=0,p=n.length;B<p;B++)d.push({line:G(n[B].map(y=>y??NaN),m,u,h,Z),points:G(l[B].map(y=>y??NaN),m,u,h,Z)});const w=new this.prototype.constructor;return w.build(d,t,i,1,o,a,A),w}get box(){return c(this,yt)}updateProperty(I,e){return I==="stroke-width"?H(this,Ke,Rv).call(this,e):null}updateParentDimensions([I,e],t){const[i,A]=H(this,Ke,Bs).call(this);V(this,En,I),V(this,Pn,e),V(this,Zu,t);const[n,l]=H(this,Ke,Bs).call(this),o=n-i,a=l-A,d=c(this,yt);return d[0]-=o,d[1]-=a,d[2]+=2*o,d[3]+=2*a,d}updateRotation(I){return V(this,zZ,I),{path:{transform:this.rotationTransform}}}get viewBox(){return c(this,yt).map(Ng.svgRound).join(" ")}get defaultProperties(){const[I,e]=c(this,yt);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`}}}get rotationTransform(){const[,,I,e]=c(this,yt);let t=0,i=0,A=0,n=0,l=0,o=0;switch(c(this,zZ)){case 90:i=e/I,A=-I/e,l=I;break;case 180:t=-1,n=-1,l=I,o=e;break;case 270:i=-e/I,A=I/e,o=e;break;default:return""}return`matrix(${t} ${i} ${A} ${n} ${Ng.svgRound(l)} ${Ng.svgRound(o)})`}getPathResizingSVGProperties([I,e,t,i]){const[A,n]=H(this,Ke,Bs).call(this),[l,o,a,d]=c(this,yt);if(Math.abs(a-A)<=Ng.PRECISION||Math.abs(d-n)<=Ng.PRECISION){const G=I+t/2-(l+a/2),w=e+i/2-(o+d/2);return{path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:`${this.rotationTransform} translate(${G} ${w})`}}}const m=(t-2*A)/(a-2*A),u=(i-2*n)/(d-2*n),h=a/t,Z=d/i;return{path:{"transform-origin":`${Ng.svgRound(l)} ${Ng.svgRound(o)}`,transform:`${this.rotationTransform} scale(${h} ${Z}) translate(${Ng.svgRound(A)} ${Ng.svgRound(n)}) scale(${m} ${u}) translate(${Ng.svgRound(-A)} ${Ng.svgRound(-n)})`}}}getPathResizedSVGProperties([I,e,t,i]){const[A,n]=H(this,Ke,Bs).call(this),l=c(this,yt),[o,a,d,m]=l;if(l[0]=I,l[1]=e,l[2]=t,l[3]=i,Math.abs(d-A)<=Ng.PRECISION||Math.abs(m-n)<=Ng.PRECISION){const w=I+t/2-(o+d/2),B=e+i/2-(a+m/2);for(const{line:p,points:y}of c(this,Vi))Ng._translate(p,w,B,p),Ng._translate(y,w,B,y);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const u=(t-2*A)/(d-2*A),h=(i-2*n)/(m-2*n),Z=-u*(o+A)+I+A,G=-h*(a+n)+e+n;if(u!==1||h!==1||Z!==0||G!==0)for(const{line:w,points:B}of c(this,Vi))Ng._rescale(w,Z,G,u,h,w),Ng._rescale(B,Z,G,u,h,B);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([I,e],t){const[i,A]=t,n=c(this,yt),l=I-n[0],o=e-n[1];if(c(this,En)===i&&c(this,Pn)===A)for(const{line:a,points:d}of c(this,Vi))Ng._translate(a,l,o,a),Ng._translate(d,l,o,d);else{const a=c(this,En)/i,d=c(this,Pn)/A;V(this,En,i),V(this,Pn,A);for(const{line:m,points:u}of c(this,Vi))Ng._rescale(m,l,o,a,d,m),Ng._rescale(u,l,o,a,d,u);n[2]*=a,n[3]*=d}return n[0]=I,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`}}}get defaultSVGProperties(){const I=c(this,yt);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Ng.svgRound(I[0])} ${Ng.svgRound(I[1])}`,transform:this.rotationTransform||null},bbox:I}}}yt=new WeakMap,zZ=new WeakMap,JZ=new WeakMap,Vi=new WeakMap,En=new WeakMap,Pn=new WeakMap,Zu=new WeakMap,Gu=new WeakMap,pc=new WeakMap,Ke=new WeakSet,Bs=function(I=c(this,pc)){const e=c(this,JZ)+I/2*c(this,Zu);return c(this,Gu)%180===0?[e/c(this,En),e/c(this,Pn)]:[e/c(this,Pn),e/c(this,En)]},Nv=function(){const[I,e,t,i]=c(this,yt),[A,n]=H(this,Ke,Bs).call(this,0);return[I+A,e+n,t-2*A,i-2*n]},Mv=function(){const I=V(this,yt,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:i}of c(this,Vi)){if(i.length<=12){for(let l=4,o=i.length;l<o;l+=6)Rg.pointBoundingBox(i[l],i[l+1],I);continue}let A=i[4],n=i[5];for(let l=6,o=i.length;l<o;l+=6){const[a,d,m,u,h,Z]=i.subarray(l,l+6);Rg.bezierBoundingBox(A,n,a,d,m,u,h,Z,I),A=h,n=Z}}const[e,t]=H(this,Ke,Bs).call(this);I[0]=ut(I[0]-e,0,1),I[1]=ut(I[1]-t,0,1),I[2]=ut(I[2]+e,0,1),I[3]=ut(I[3]+t,0,1),I[2]-=I[0],I[3]-=I[1]},Rv=function(I){const[e,t]=H(this,Ke,Bs).call(this);V(this,pc,I);const[i,A]=H(this,Ke,Bs).call(this),[n,l]=[i-e,A-t],o=c(this,yt);return o[0]-=n,o[1]-=l,o[2]+=2*n,o[3]+=2*l,o};class ZW extends jS{constructor(g){super(),this._viewParameters=g,super.updateProperties({fill:"none",stroke:gC._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(g,I){g==="stroke-width"&&(I??(I=this["stroke-width"]),I*=this._viewParameters.realScale),super.updateSVGProperty(g,I)}clone(){const g=new ZW(this._viewParameters);return g.updateAll(this),g}}const wu=class wu extends bW{constructor(I){super({...I,name:"inkEditor"});f(this,Mp);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(I,e){gC.initialize(I,e),this._defaultDrawingOptions=new ZW(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return Qg(this,"typesMap",new Map([[uI.INK_THICKNESS,"stroke-width"],[uI.INK_COLOR,"stroke"],[uI.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(I,e,t,i,A){return new hxg(I,e,t,i,A,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(I,e,t,i,A,n){return g0.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){let i=null;if(I instanceof JV){const{data:{inkLists:n,rect:l,rotation:o,id:a,color:d,opacity:m,borderStyle:{rawWidth:u},popupRef:h,richText:Z,contentsObj:G,creationDate:w,modificationDate:B},parent:{page:{pageNumber:p}}}=I;i=I={annotationType:Pg.INK,color:Array.from(d),thickness:u,opacity:m,paths:{points:n},boxes:null,pageIndex:p-1,rect:l.slice(0),rotation:o,annotationElementId:a,id:a,deleted:!1,popupRef:h,richText:Z,comment:(G==null?void 0:G.str)||null,creationDate:w,modificationDate:B}}const A=await super.deserialize(I,e,t);return A._initialData=i,I.comment&&A.setCommentData(I),A}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new cW(this)),[["colorPicker",this._colorPicker]]}get colorType(){return uI.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:I,_drawingOptions:e,parent:t}=this;e.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(I,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const I=this._currentParent;I&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),I.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:I,thickness:e,opacity:t}){this._drawingOptions=wu.getDefaultDrawingOptions({stroke:Rg.makeHexColor(...I),"stroke-width":e,"stroke-opacity":t})}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{stroke:i,"stroke-opacity":A,"stroke-width":n}}=this,l=Object.assign(super.serialize(I),{color:gC._colorManager.convert(i),opacity:A,thickness:n,paths:{lines:e,points:t}});return this.addComment(l),I?(l.isCopy=!0,l):this.annotationElementId&&!H(this,Mp,fv).call(this,l)?null:(l.id=this.annotationElementId,l)}renderAnnotationElement(I){if(this.deleted)return I.hide(),null;const{points:e,rect:t}=this.serializeDraw(!1);return I.updateEdited({rect:t,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}};Mp=new WeakSet,fv=function(I){const{color:e,thickness:t,opacity:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||I.color.some((n,l)=>n!==e[l])||I.thickness!==t||I.opacity!==i||I.pageIndex!==A},cg(wu,"_type","ink"),cg(wu,"_editorType",Pg.INK),cg(wu,"_defaultDrawingOptions",null);let xV=wu;class OV extends g0{toSVGPath(){let g=super.toSVGPath();return g.endsWith("Z")||(g+="Z"),g}}const GW=8,I0=3;class al{static extractContoursFromText(g,{fontFamily:I,fontStyle:e,fontWeight:t},i,A,n,l){let o=new OffscreenCanvas(1,1),a=o.getContext("2d",{alpha:!1});const d=200,m=a.font=`${e} ${t} ${d}px ${I}`,{actualBoundingBoxLeft:u,actualBoundingBoxRight:h,actualBoundingBoxAscent:Z,actualBoundingBoxDescent:G,fontBoundingBoxAscent:w,fontBoundingBoxDescent:B,width:p}=a.measureText(g),y=1.5,Y=Math.ceil(Math.max(Math.abs(u)+Math.abs(h)||0,p)*y),R=Math.ceil(Math.max(Math.abs(Z)+Math.abs(G)||d,Math.abs(w)+Math.abs(B)||d)*y);o=new OffscreenCanvas(Y,R),a=o.getContext("2d",{alpha:!0,willReadFrequently:!0}),a.font=m,a.filter="grayscale(1)",a.fillStyle="white",a.fillRect(0,0,Y,R),a.fillStyle="black",a.fillText(g,Y*(y-1)/2,R*(3-y)/2);const M=H(this,VI,T5).call(this,a.getImageData(0,0,Y,R).data),K=H(this,VI,Kv).call(this,M),J=H(this,VI,v5).call(this,K),X=H(this,VI,L5).call(this,M,Y,R,J);return this.processDrawnLines({lines:{curves:X,width:Y,height:R},pageWidth:i,pageHeight:A,rotation:n,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(g,I,e,t,i){const[A,n,l]=H(this,VI,kv).call(this,g),[o,a]=H(this,VI,Sv).call(this,A,n,l,Math.hypot(n,l)*c(this,yc).sigmaSFactor,c(this,yc).sigmaR,c(this,yc).kernelSize),d=H(this,VI,v5).call(this,a),m=H(this,VI,L5).call(this,o,n,l,d);return this.processDrawnLines({lines:{curves:m,width:n,height:l},pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:g,pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:A,areContours:n}){t%180!==0&&([I,e]=[e,I]);const{curves:l,width:o,height:a}=g,d=g.thickness??0,m=[],u=Math.min(I/o,e/a),h=u/I,Z=u/e,G=[];for(const{points:B}of l){const p=A?H(this,VI,Dv).call(this,B):B;if(!p)continue;G.push(p);const y=p.length,Y=new Float32Array(y),R=new Float32Array(3*(y===2?2:y-2));if(m.push({line:R,points:Y}),y===2){Y[0]=p[0]*h,Y[1]=p[1]*Z,R.set([NaN,NaN,NaN,NaN,Y[0],Y[1]],0);continue}let[M,K,J,X]=p;M*=h,K*=Z,J*=h,X*=Z,Y.set([M,K,J,X],0),R.set([NaN,NaN,NaN,NaN,M,K],0);for(let D=4;D<y;D+=2){const z=Y[D]=p[D]*h,j=Y[D+1]=p[D+1]*Z;R.set(Ng.createBezierPoints(M,K,J,X,z,j),(D-2)*3),[M,K,J,X]=[J,X,z,j]}}if(m.length===0)return null;const w=n?new OV:new g0;return w.build(m,I,e,1,t,n?0:d,i),{outline:w,newCurves:G,areContours:n,thickness:d,width:o,height:a}}static async compressSignature({outlines:g,areContours:I,thickness:e,width:t,height:i}){let A=1/0,n=-1/0,l=0;for(const p of g){l+=p.length;for(let y=2,Y=p.length;y<Y;y++){const R=p[y]-p[y-2];A=Math.min(A,R),n=Math.max(n,R)}}let o;A>=-128&&n<=127?o=Int8Array:A>=-32768&&n<=32767?o=Int16Array:o=Int32Array;const a=g.length,d=GW+I0*a,m=new Uint32Array(d);let u=0;m[u++]=d*Uint32Array.BYTES_PER_ELEMENT+(l-2*a)*o.BYTES_PER_ELEMENT,m[u++]=0,m[u++]=t,m[u++]=i,m[u++]=I?0:1,m[u++]=Math.max(0,Math.floor(e??0)),m[u++]=a,m[u++]=o.BYTES_PER_ELEMENT;for(const p of g)m[u++]=p.length-2,m[u++]=p[0],m[u++]=p[1];const h=new CompressionStream("deflate-raw"),Z=h.writable.getWriter();await Z.ready,Z.write(m);const G=o.prototype.constructor;for(const p of g){const y=new G(p.length-2);for(let Y=2,R=p.length;Y<R;Y++)y[Y-2]=p[Y]-p[Y-2];Z.write(y)}Z.close();const w=await new Response(h.readable).arrayBuffer(),B=new Uint8Array(w);return UD(B)}static async decompressSignature(g){try{const I=Hvg(g),{readable:e,writable:t}=new DecompressionStream("deflate-raw"),i=t.getWriter();await i.ready,i.write(I).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let A=null,n=0;for await(const p of e)A||(A=new Uint8Array(new Uint32Array(p.buffer,0,4)[0])),A.set(p,n),n+=p.length;const l=new Uint32Array(A.buffer,0,A.length>>2),o=l[1];if(o!==0)throw new Error(`Invalid version: ${o}`);const a=l[2],d=l[3],m=l[4]===0,u=l[5],h=l[6],Z=l[7],G=[],w=(GW+I0*h)*Uint32Array.BYTES_PER_ELEMENT;let B;switch(Z){case Int8Array.BYTES_PER_ELEMENT:B=new Int8Array(A.buffer,w);break;case Int16Array.BYTES_PER_ELEMENT:B=new Int16Array(A.buffer,w);break;case Int32Array.BYTES_PER_ELEMENT:B=new Int32Array(A.buffer,w);break}n=0;for(let p=0;p<h;p++){const y=l[I0*p+GW],Y=new Float32Array(y+2);G.push(Y);for(let R=0;R<I0-1;R++)Y[R]=l[I0*p+GW+R+1];for(let R=0;R<y;R++)Y[R+2]=Y[R]+B[n++]}return{areContours:m,thickness:u,outlines:G,width:a,height:d}}catch(I){return Og(`decompressSignature: ${I}`),null}}}yc=new WeakMap,VI=new WeakSet,J5=function(g,I,e,t){return e-=g,t-=I,e===0?t>0?0:4:e===1?t+6:2-t},QA=new WeakMap,Xv=function(g,I,e,t,i,A,n){const l=H(this,VI,J5).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(-o+l-n+16)%8,d=c(this,QA)[2*a],m=c(this,QA)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},Hv=function(g,I,e,t,i,A,n){const l=H(this,VI,J5).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(o+l+n+16)%8,d=c(this,QA)[2*a],m=c(this,QA)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},L5=function(g,I,e,t){const i=g.length,A=new Int32Array(i);for(let a=0;a<i;a++)A[a]=g[a]<=t?1:0;for(let a=1;a<e-1;a++)A[a*I]=A[a*I+I-1]=0;for(let a=0;a<I;a++)A[a]=A[I*e-1-a]=0;let n=1,l;const o=[];for(let a=1;a<e-1;a++){l=1;for(let d=1;d<I-1;d++){const m=a*I+d,u=A[m];if(u===0)continue;let h=a,Z=d;if(u===1&&A[m-1]===0)n+=1,Z-=1;else if(u>=1&&A[m+1]===0)n+=1,Z+=1,u>1&&(l=u);else{u!==1&&(l=Math.abs(u));continue}const G=[d,a],w=Z===d+1,B={isHole:w,points:G,id:n,parent:0};o.push(B);let p;for(const D of o)if(D.id===l){p=D;break}p?p.isHole?B.parent=w?p.parent:l:B.parent=w?l:p.parent:B.parent=w?l:0;const y=H(this,VI,Xv).call(this,A,I,a,d,h,Z,0);if(y===-1){A[m]=-n,A[m]!==1&&(l=Math.abs(A[m]));continue}let Y=c(this,QA)[2*y],R=c(this,QA)[2*y+1];const M=a+Y,K=d+R;h=M,Z=K;let J=a,X=d;for(;;){const D=H(this,VI,Hv).call(this,A,I,J,X,h,Z,1);Y=c(this,QA)[2*D],R=c(this,QA)[2*D+1];const z=J+Y,j=X+R;G.push(j,z);const q=J*I+X;if(A[q+1]===0?A[q]=-n:A[q]===1&&(A[q]=n),z===a&&j===d&&J===M&&X===K){A[m]!==1&&(l=Math.abs(A[m]));break}else h=J,Z=X,J=z,X=j}}}return o},Q2=function(g,I,e,t){if(e-I<=4){for(let M=I;M<e-2;M+=2)t.push(g[M],g[M+1]);return}const i=g[I],A=g[I+1],n=g[e-4]-i,l=g[e-3]-A,o=Math.hypot(n,l),a=n/o,d=l/o,m=a*A-d*i,u=l/n,h=1/o,Z=Math.atan(u),G=Math.cos(Z),w=Math.sin(Z),B=h*(Math.abs(G)+Math.abs(w)),p=h*(1-B+B**2),y=Math.max(Math.atan(Math.abs(w+G)*p),Math.atan(Math.abs(w-G)*p));let Y=0,R=I;for(let M=I+2;M<e-2;M+=2){const K=Math.abs(m-a*g[M+1]+d*g[M]);K>Y&&(R=M,Y=K)}Y>(o*y)**2?(H(this,VI,Q2).call(this,g,I,R+2,t),H(this,VI,Q2).call(this,g,R,e,t)):t.push(i,A)},Dv=function(g){const I=[],e=g.length;return H(this,VI,Q2).call(this,g,0,e,I),I.push(g[e-2],g[e-1]),I.length<=4?null:I},Sv=function(g,I,e,t,i,A){const n=new Float32Array(A**2),l=-2*t**2,o=A>>1;for(let Z=0;Z<A;Z++){const G=(Z-o)**2;for(let w=0;w<A;w++)n[Z*A+w]=Math.exp((G+(w-o)**2)/l)}const a=new Float32Array(256),d=-2*i**2;for(let Z=0;Z<256;Z++)a[Z]=Math.exp(Z**2/d);const m=g.length,u=new Uint8Array(m),h=new Uint32Array(256);for(let Z=0;Z<e;Z++)for(let G=0;G<I;G++){const w=Z*I+G,B=g[w];let p=0,y=0;for(let R=0;R<A;R++){const M=Z+R-o;if(!(M<0||M>=e))for(let K=0;K<A;K++){const J=G+K-o;if(J<0||J>=I)continue;const X=g[M*I+J],D=n[R*A+K]*a[Math.abs(X-B)];p+=X*D,y+=D}}const Y=u[w]=Math.round(p/y);h[Y]++}return[u,h]},Kv=function(g){const I=new Uint32Array(256);for(const e of g)I[e]++;return I},T5=function(g){const I=g.length,e=new Uint8ClampedArray(I>>2);let t=-1/0,i=1/0;for(let n=0,l=e.length;n<l;n++){const o=e[n]=g[n<<2];t=Math.max(t,o),i=Math.min(i,o)}const A=255/(t-i);for(let n=0,l=e.length;n<l;n++)e[n]=(e[n]-i)*A;return e},v5=function(g){let I,e=-1/0,t=-1/0;const i=g.findIndex(l=>l!==0);let A=i,n=i;for(I=i;I<256;I++){const l=g[I];l>e&&(I-A>t&&(t=I-A,n=I-1),e=l,A=I)}for(I=n-1;I>=0&&!(g[I]>g[I+1]);I--);return I},kv=function(g){const I=g,{width:e,height:t}=g,{maxDim:i}=c(this,yc);let A=e,n=t;if(e>i||t>i){let m=e,u=t,h=Math.log2(Math.max(e,t)/i);const Z=Math.floor(h);h=h===Z?Z-1:Z;for(let w=0;w<h;w++){A=Math.ceil(m/2),n=Math.ceil(u/2);const B=new OffscreenCanvas(A,n);B.getContext("2d").drawImage(g,0,0,m,u,0,0,A,n),m=A,u=n,g!==I&&g.close(),g=B.transferToImageBitmap()}const G=Math.min(i/A,i/n);A=Math.round(A*G),n=Math.round(n*G)}const o=new OffscreenCanvas(A,n).getContext("2d",{willReadFrequently:!0});o.fillStyle="white",o.fillRect(0,0,A,n),o.filter="grayscale(1)",o.drawImage(g,0,0,g.width,g.height,0,0,A,n);const a=o.getImageData(0,0,A,n).data;return[H(this,VI,T5).call(this,a),A,n]},f(al,VI),f(al,yc,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),f(al,QA,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class QV extends jS{constructor(){super(),super.updateProperties({fill:gC._defaultLineColor,"stroke-width":0})}clone(){const g=new QV;return g.updateAll(this),g}}class UV extends ZW{constructor(g){super(g),super.updateProperties({stroke:gC._defaultLineColor,"stroke-width":1})}clone(){const g=new UV(this._viewParameters);return g.updateAll(this),g}}const Ni=class Ni extends bW{constructor(I){super({...I,mustBeCommitted:!0,name:"signatureEditor"});f(this,Uo,!1);f(this,_n,null);f(this,Eo,null);f(this,Yc,null);this._willKeepAspectRatio=!0,V(this,Eo,I.signatureData||null),V(this,_n,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(I,e){gC.initialize(I,e),this._defaultDrawingOptions=new QV,this._defaultDrawnSignatureOptions=new UV(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return Qg(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!c(this,_n)}}static computeTelemetryFinalData(I){const e=I.get("hasDescription");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let I,e;const{_isCopy:t}=this;if(t&&(this._isCopy=!1,I=this.x,e=this.y),super.render(),this._drawId===null)if(c(this,Eo)){const{lines:i,mustSmooth:A,areContours:n,description:l,uuid:o,heightInPage:a}=c(this,Eo),{rawDims:{pageWidth:d,pageHeight:m},rotation:u}=this.parent.viewport,h=al.processDrawnLines({lines:i,pageWidth:d,pageHeight:m,rotation:u,innerMargin:Ni._INNER_MARGIN,mustSmooth:A,areContours:n});this.addSignature(h,a,l,o)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:c(this,_n)||""}));return t&&(this._isCopy=!0,this._moveAfterPaste(I,e)),this.div}setUuid(I){V(this,Yc,I),this.addEditToolbar()}getUuid(){return c(this,Yc)}get description(){return c(this,_n)}set description(I){V(this,_n,I),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:I})),super.addEditToolbar().then(e=>{e==null||e.updateEditSignatureButton(I)}))}getSignaturePreview(){const{newCurves:I,areContours:e,thickness:t,width:i,height:A}=c(this,Eo),n=Math.max(i,A),l=al.processDrawnLines({lines:{curves:I.map(o=>({points:o})),thickness:t,width:i,height:A},pageWidth:n,pageHeight:n,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e});return{areContours:e,outline:l.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(I,e,t,i){const{x:A,y:n}=this,{outline:l}=V(this,Eo,I);V(this,Uo,l instanceof OV),this.description=t;let o;c(this,Uo)?o=Ni.getDefaultDrawingOptions():(o=Ni._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":l.thickness})),this._addOutlines({drawOutlines:l,drawingOptions:o});const[,a]=this.pageDimensions;let d=e/a;d=d>=1?.5:d,this.width*=d/this.height,this.width>=1&&(d*=.9/this.width,this.width=.9),this.height=d,this.setDims(),this.x=A,this.y=n,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!t}}),this.div.hidden=!1}getFromImage(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return al.process(I,e,t,i,Ni._INNER_MARGIN)}getFromText(I,e){const{rawDims:{pageWidth:t,pageHeight:i},rotation:A}=this.parent.viewport;return al.extractContoursFromText(I,e,t,i,A,Ni._INNER_MARGIN)}getDrawnSignature(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return al.processDrawnLines({lines:I,pageWidth:e,pageHeight:t,rotation:i,innerMargin:Ni._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:I,thickness:e}){I?this._drawingOptions=Ni.getDefaultDrawingOptions():(this._drawingOptions=Ni._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":e}))}serialize(I=!1){if(this.isEmpty())return null;const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{"stroke-width":i}}=this,A=Object.assign(super.serialize(I),{isSignature:!0,areContours:c(this,Uo),color:[0,0,0],thickness:c(this,Uo)?0:i});return this.addComment(A),I?(A.paths={lines:e,points:t},A.uuid=c(this,Yc),A.isCopy=!0):A.lines=e,c(this,_n)&&(A.accessibilityData={type:"Figure",alt:c(this,_n)}),A}static deserializeDraw(I,e,t,i,A,n){return n.areContours?OV.deserialize(I,e,t,i,A,n):g0.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){var A;const i=await super.deserialize(I,e,t);return V(i,Uo,I.areContours),i.description=((A=I.accessibilityData)==null?void 0:A.alt)||"",V(i,Yc,I.uuid),i}};Uo=new WeakMap,_n=new WeakMap,Eo=new WeakMap,Yc=new WeakMap,cg(Ni,"_type","signature"),cg(Ni,"_editorType",Pg.SIGNATURE),cg(Ni,"_defaultDrawingOptions",null);let EV=Ni;class PV extends gC{constructor(I){super({...I,name:"stampEditor"});f(this,wI);f(this,cC,null);f(this,we,null);f(this,Po,null);f(this,is,null);f(this,_o,null);f(this,Wu,"");f(this,As,null);f(this,Vc,!1);f(this,$n,null);f(this,Mi,!1);f(this,Bu,!1);V(this,is,I.bitmapUrl),V(this,_o,I.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(I,e){gC.initialize(I,e)}static isHandlingMimeForPasting(I){return mV.includes(I)}static paste(I,e){e.pasteEditor({mode:Pg.STAMP},{bitmapFile:I.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var I;return{type:"stamp",hasAltText:!!((I=this.altTextData)!=null&&I.altText)}}static computeTelemetryFinalData(I){const e=I.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}async mlGuessAltText(I=null,e=!0){if(this.hasAltTextData())return null;const{mlManager:t}=this._uiManager;if(!t)throw new Error("No ML.");if(!await t.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:A,height:n}=I||this.copyCanvas(null,null,!0).imageData,l=await t.guess({name:"altText",request:{data:i,width:A,height:n,channels:i.length/(A*n)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const o=l.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}remove(){var I;c(this,we)&&(V(this,cC,null),this._uiManager.imageManager.deleteId(c(this,we)),(I=c(this,As))==null||I.remove(),V(this,As,null),c(this,$n)&&(clearTimeout(c(this,$n)),V(this,$n,null))),super.remove()}rebuild(){if(!this.parent){c(this,we)&&H(this,wI,U2).call(this);return}super.rebuild(),this.div!==null&&(c(this,we)&&c(this,As)===null&&H(this,wI,U2).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(I){this._isDraggable=!0,I&&this.div.focus()}isEmpty(){return!(c(this,Po)||c(this,cC)||c(this,is)||c(this,_o)||c(this,we)||c(this,Vc))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let I,e;return this._isCopy&&(I=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),c(this,Vc)||(c(this,cC)?H(this,wI,E2).call(this):H(this,wI,U2).call(this)),this._isCopy&&this._moveAfterPaste(I,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(I,e){const{id:t,bitmap:i}=this._uiManager.imageManager.getFromCanvas(I,e);e.remove(),t&&this._uiManager.imageManager.isValidId(t)&&(V(this,we,t),i&&V(this,cC,i),V(this,Vc,!1),H(this,wI,E2).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;c(this,$n)!==null&&clearTimeout(c(this,$n)),V(this,$n,setTimeout(()=>{V(this,$n,null),H(this,wI,j5).call(this)},200))}copyCanvas(I,e,t=!1){I||(I=224);const{width:i,height:A}=c(this,cC),n=new Zn;let l=c(this,cC),o=i,a=A,d=null;if(e){if(i>e||A>e){const M=Math.min(e/i,e/A);o=Math.floor(i*M),a=Math.floor(A*M)}d=document.createElement("canvas");const u=d.width=Math.ceil(o*n.sx),h=d.height=Math.ceil(a*n.sy);c(this,Mi)||(l=H(this,wI,P2).call(this,u,h));const Z=d.getContext("2d");Z.filter=this._uiManager.hcmFilter;let G="white",w="#cfcfd8";this._uiManager.hcmFilter!=="none"?w="black":zvg.isDarkMode&&(G="#8f8f9d",w="#42414d");const B=15,p=B*n.sx,y=B*n.sy,Y=new OffscreenCanvas(p*2,y*2),R=Y.getContext("2d");R.fillStyle=G,R.fillRect(0,0,p*2,y*2),R.fillStyle=w,R.fillRect(0,0,p,y),R.fillRect(p,y,p,y),Z.fillStyle=Z.createPattern(Y,"repeat"),Z.fillRect(0,0,u,h),Z.drawImage(l,0,0,l.width,l.height,0,0,u,h)}let m=null;if(t){let u,h;if(n.symmetric&&l.width<I&&l.height<I)u=l.width,h=l.height;else if(l=c(this,cC),i>I||A>I){const w=Math.min(I/i,I/A);u=Math.floor(i*w),h=Math.floor(A*w),c(this,Mi)||(l=H(this,wI,P2).call(this,u,h))}const G=new OffscreenCanvas(u,h).getContext("2d",{willReadFrequently:!0});G.drawImage(l,0,0,l.width,l.height,0,0,u,h),m={width:u,height:h,data:G.getImageData(0,0,u,h).data}}return{canvas:d,width:o,height:a,imageData:m}}static async deserialize(I,e,t){var G;let i=null,A=!1;if(I instanceof TS){const{data:{rect:w,rotation:B,id:p,structParent:y,popupRef:Y,richText:R,contentsObj:M,creationDate:K,modificationDate:J},container:X,parent:{page:{pageNumber:D}},canvas:z}=I;let j,q;z?(delete I.canvas,{id:j,bitmap:q}=t.imageManager.getFromCanvas(X.id,z),z.remove()):(A=!0,I._hasNoCanvas=!0);const gg=((G=await e._structTree.getAriaAttributes(`${Zr}${p}`))==null?void 0:G.get("aria-label"))||"";i=I={annotationType:Pg.STAMP,bitmapId:j,bitmap:q,pageIndex:D-1,rect:w.slice(0),rotation:B,annotationElementId:p,id:p,deleted:!1,accessibilityData:{decorative:!1,altText:gg},isSvg:!1,structParent:y,popupRef:Y,richText:R,comment:(M==null?void 0:M.str)||null,creationDate:K,modificationDate:J}}const n=await super.deserialize(I,e,t),{rect:l,bitmap:o,bitmapUrl:a,bitmapId:d,isSvg:m,accessibilityData:u}=I;A?(t.addMissingCanvas(I.id,n),V(n,Vc,!0)):d&&t.imageManager.isValidId(d)?(V(n,we,d),o&&V(n,cC,o)):V(n,is,a),V(n,Mi,m);const[h,Z]=n.pageDimensions;return n.width=(l[2]-l[0])/h,n.height=(l[3]-l[1])/Z,u&&(n.altTextData=u),n._initialData=i,I.comment&&n.setCommentData(I),V(n,Bu,!!i),n}serialize(I=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=Object.assign(super.serialize(I),{bitmapId:c(this,we),isSvg:c(this,Mi)});if(this.addComment(t),I)return t.bitmapUrl=H(this,wI,_2).call(this,!0),t.accessibilityData=this.serializeAltText(!0),t.isCopy=!0,t;const{decorative:i,altText:A}=this.serializeAltText(!1);if(!i&&A&&(t.accessibilityData={type:"Figure",alt:A}),this.annotationElementId){const l=H(this,wI,Fv).call(this,t);return l.isSame?null:(l.isSameAltText?delete t.accessibilityData:t.accessibilityData.structParent=this._initialData.structParent??-1,t.id=this.annotationElementId,delete t.bitmapId,t)}if(e===null)return t;e.stamps||(e.stamps=new Map);const n=c(this,Mi)?(t.rect[2]-t.rect[0])*(t.rect[3]-t.rect[1]):null;if(!e.stamps.has(c(this,we)))e.stamps.set(c(this,we),{area:n,serialized:t}),t.bitmap=H(this,wI,_2).call(this,!1);else if(c(this,Mi)){const l=e.stamps.get(c(this,we));n>l.area&&(l.area=n,l.serialized.bitmap.close(),l.serialized.bitmap=H(this,wI,_2).call(this,!1))}return t}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}cC=new WeakMap,we=new WeakMap,Po=new WeakMap,is=new WeakMap,_o=new WeakMap,Wu=new WeakMap,As=new WeakMap,Vc=new WeakMap,$n=new WeakMap,Mi=new WeakMap,Bu=new WeakMap,wI=new WeakSet,XG=function(I,e=!1){if(!I){this.remove();return}V(this,cC,I.bitmap),e||(V(this,we,I.id),V(this,Mi,I.isSvg)),I.file&&V(this,Wu,I.file.name),H(this,wI,E2).call(this)},HG=function(){if(V(this,Po,null),this._uiManager.enableWaiting(!1),!!c(this,As)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,cC)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,cC)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},U2=function(){if(c(this,we)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(c(this,we)).then(t=>H(this,wI,XG).call(this,t,!0)).finally(()=>H(this,wI,HG).call(this));return}if(c(this,is)){const t=c(this,is);V(this,is,null),this._uiManager.enableWaiting(!0),V(this,Po,this._uiManager.imageManager.getFromUrl(t).then(i=>H(this,wI,XG).call(this,i)).finally(()=>H(this,wI,HG).call(this)));return}if(c(this,_o)){const t=c(this,_o);V(this,_o,null),this._uiManager.enableWaiting(!0),V(this,Po,this._uiManager.imageManager.getFromFile(t).then(i=>H(this,wI,XG).call(this,i)).finally(()=>H(this,wI,HG).call(this)));return}const I=document.createElement("input");I.type="file",I.accept=mV.join(",");const e=this._uiManager._signal;V(this,Po,new Promise(t=>{I.addEventListener("change",async()=>{if(!I.files||I.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(I.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),H(this,wI,XG).call(this,i)}t()},{signal:e}),I.addEventListener("cancel",()=>{this.remove(),t()},{signal:e})}).finally(()=>H(this,wI,HG).call(this))),I.click()},E2=function(){var o;const{div:I}=this;let{width:e,height:t}=c(this,cC);const[i,A]=this.pageDimensions,n=.75;if(this.width)e=this.width*i,t=this.height*A;else if(e>n*i||t>n*A){const a=Math.min(n*i/e,n*A/t);e*=a,t*=a}this._uiManager.enableWaiting(!1);const l=V(this,As,document.createElement("canvas"));l.setAttribute("role","img"),this.addContainer(l),this.width=e/i,this.height=t/A,this.setDims(),(o=this._initialOptions)!=null&&o.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(I.hidden=!1),H(this,wI,j5).call(this),c(this,Bu)||(this.parent.addUndoableEditor(this),V(this,Bu,!0)),this._reportTelemetry({action:"inserted_image"}),c(this,Wu)&&this.div.setAttribute("aria-description",c(this,Wu)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")},P2=function(I,e){const{width:t,height:i}=c(this,cC);let A=t,n=i,l=c(this,cC);for(;A>2*I||n>2*e;){const o=A,a=n;A>2*I&&(A=A>=16384?Math.floor(A/2)-1:Math.ceil(A/2)),n>2*e&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2));const d=new OffscreenCanvas(A,n);d.getContext("2d").drawImage(l,0,0,o,a,0,0,A,n),l=d.transferToImageBitmap()}return l},j5=function(){const[I,e]=this.parentDimensions,{width:t,height:i}=this,A=new Zn,n=Math.ceil(t*I*A.sx),l=Math.ceil(i*e*A.sy),o=c(this,As);if(!o||o.width===n&&o.height===l)return;o.width=n,o.height=l;const a=c(this,Mi)?c(this,cC):H(this,wI,P2).call(this,n,l),d=o.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(a,0,0,a.width,a.height,0,0,n,l)},_2=function(I){if(I){if(c(this,Mi)){const i=this._uiManager.imageManager.getSvgUrl(c(this,we));if(i)return i}const e=document.createElement("canvas");return{width:e.width,height:e.height}=c(this,cC),e.getContext("2d").drawImage(c(this,cC),0,0),e.toDataURL()}if(c(this,Mi)){const[e,t]=this.pageDimensions,i=Math.round(this.width*e*Ls.PDF_TO_CSS_UNITS),A=Math.round(this.height*t*Ls.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(i,A);return n.getContext("2d").drawImage(c(this,cC),0,0,c(this,cC).width,c(this,cC).height,0,0,i,A),n.transferToImageBitmap()}return structuredClone(c(this,cC))},Fv=function(I){var n;const{pageIndex:e,accessibilityData:{altText:t}}=this._initialData,i=I.pageIndex===e,A=(((n=I.accessibilityData)==null?void 0:n.alt)||"")===t;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&A,isSameAltText:A}},cg(PV,"_type","stamp"),cg(PV,"_editorType",Pg.STAMP);const EA=class EA{constructor({uiManager:g,pageIndex:I,div:e,structTreeLayer:t,accessibilityManager:i,annotationLayer:A,drawLayer:n,textLayer:l,viewport:o,l10n:a}){f(this,_I);f(this,Nc);f(this,pu,!1);f(this,$o,null);f(this,qo,null);f(this,ns,null);f(this,_t,new Map);f(this,ga,!1);f(this,yu,!1);f(this,Yu,!1);f(this,UA,null);f(this,ls,null);f(this,We,null);f(this,ss,null);f(this,Ia,null);f(this,Vu,-1);f(this,Hg);const d=[...c(EA,Ca).values()];if(!EA._initialized){EA._initialized=!0;for(const m of d)m.initialize(a,g)}g.registerEditorTypes(d),V(this,Hg,g),this.pageIndex=I,this.div=e,V(this,Nc,i),V(this,$o,A),this.viewport=o,V(this,We,l),this.drawLayer=n,this._structTree=t,c(this,Hg).addLayer(this)}get isEmpty(){return c(this,_t).size===0}get isInvisible(){return this.isEmpty&&c(this,Hg).getMode()===Pg.NONE}updateToolbar(g){c(this,Hg).updateToolbar(g)}updateMode(g=c(this,Hg).getMode()){switch(H(this,_I,$2).call(this),g){case Pg.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Pg.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case Pg.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:I}=this.div;if(I.toggle("nonEditing",!1),g===Pg.POPUP)I.toggle("commentEditing",!0);else{I.toggle("commentEditing",!1);for(const e of c(EA,Ca).values())I.toggle(`${e._type}Editing`,g===e._editorType)}this.div.hidden=!1}hasTextLayer(g){var I;return g===((I=c(this,We))==null?void 0:I.div)}setEditingState(g){c(this,Hg).setEditingState(g)}addCommands(g){c(this,Hg).addCommands(g)}cleanUndoStack(g){c(this,Hg).cleanUndoStack(g)}toggleDrawing(g=!1){this.div.classList.toggle("drawing",!g)}togglePointerEvents(g=!1){this.div.classList.toggle("disabled",!g)}toggleAnnotationLayerPointerEvents(g=!1){var I;(I=c(this,$o))==null||I.togglePointerEvents(g)}async enable(){var e;V(this,Yu,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),(e=c(this,Ia))==null||e.abort(),V(this,Ia,null);const g=new Set;for(const t of c(this,_I,x5))t.enableEditing(),t.show(!0),t.annotationElementId&&(c(this,Hg).removeChangedExistingAnnotation(t),g.add(t.annotationElementId));const I=c(this,$o);if(I)for(const t of I.getEditableAnnotations()){if(t.hide(),c(this,Hg).isDeletedAnnotationElement(t.data.id)||g.has(t.data.id))continue;const i=await this.deserialize(t);i&&(this.addOrRebuild(i),i.enableEditing())}V(this,Yu,!1),c(this,Hg)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){var t;if(V(this,yu,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),c(this,We)&&!c(this,Ia)){V(this,Ia,new AbortController);const i=c(this,Hg).combinedSignal(c(this,Ia));c(this,We).div.addEventListener("pointerdown",A=>{const{clientX:l,clientY:o,timeStamp:a}=A,d=c(this,Vu);if(a-d>500){V(this,Vu,a);return}V(this,Vu,-1);const{classList:m}=this.div;m.toggle("getElements",!0);const u=document.elementsFromPoint(l,o);if(m.toggle("getElements",!1),!this.div.contains(u[0]))return;let h;const Z=new RegExp(`^${kh}[0-9]+$`);for(const w of u)if(Z.test(w.id)){h=w.id;break}if(!h)return;const G=c(this,_t).get(h);(G==null?void 0:G.annotationElementId)===null&&(A.stopPropagation(),A.preventDefault(),G.dblclick(A))},{signal:i,capture:!0})}const g=c(this,$o),I=[];if(g){const i=new Map,A=new Map;for(const l of c(this,_I,x5)){if(l.disableEditing(),!l.annotationElementId){I.push(l);continue}if(l.serialize()!==null){i.set(l.annotationElementId,l);continue}else A.set(l.annotationElementId,l);(t=this.getEditableAnnotation(l.annotationElementId))==null||t.show(),l.remove()}const n=g.getEditableAnnotations();for(const l of n){const{id:o}=l.data;if(c(this,Hg).isDeletedAnnotationElement(o)){l.updateEdited({deleted:!0});continue}let a=A.get(o);if(a){a.resetAnnotationElement(l),a.show(!1),l.show();continue}a=i.get(o),a&&(c(this,Hg).addChangedExistingAnnotation(a),a.renderAnnotationElement(l)&&a.show(!1)),l.show()}}H(this,_I,$2).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:e}=this.div;for(const i of c(EA,Ca).values())e.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),g==null||g.updateFakeAnnotations(I),V(this,yu,!1)}getEditableAnnotation(g){var I;return((I=c(this,$o))==null?void 0:I.getEditableAnnotation(g))||null}setActiveEditor(g){c(this,Hg).getActive()!==g&&c(this,Hg).setActiveEditor(g)}enableTextSelection(){var g;if(this.div.tabIndex=-1,(g=c(this,We))!=null&&g.div&&!c(this,ss)){V(this,ss,new AbortController);const I=c(this,Hg).combinedSignal(c(this,ss));c(this,We).div.addEventListener("pointerdown",H(this,_I,zv).bind(this),{signal:I}),c(this,We).div.classList.add("highlighting")}}disableTextSelection(){var g;this.div.tabIndex=0,(g=c(this,We))!=null&&g.div&&c(this,ss)&&(c(this,ss).abort(),V(this,ss,null),c(this,We).div.classList.remove("highlighting"))}enableClick(){if(c(this,qo))return;V(this,qo,new AbortController);const g=c(this,Hg).combinedSignal(c(this,qo));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:g});const I=this.pointerup.bind(this);this.div.addEventListener("pointerup",I,{signal:g}),this.div.addEventListener("pointercancel",I,{signal:g})}disableClick(){var g;(g=c(this,qo))==null||g.abort(),V(this,qo,null)}attach(g){c(this,_t).set(g.id,g);const{annotationElementId:I}=g;I&&c(this,Hg).isDeletedAnnotationElement(I)&&c(this,Hg).removeDeletedAnnotationElement(g)}detach(g){var I;c(this,_t).delete(g.id),(I=c(this,Nc))==null||I.removePointerInTextLayer(g.contentDiv),!c(this,yu)&&g.annotationElementId&&c(this,Hg).addDeletedAnnotationElement(g)}remove(g){this.detach(g),c(this,Hg).removeEditor(g),g.div.remove(),g.isAttachedToDOM=!1}changeParent(g){var I;g.parent!==this&&(g.parent&&g.annotationElementId&&(c(this,Hg).addDeletedAnnotationElement(g),gC.deleteAnnotationElement(g),g.annotationElementId=null),this.attach(g),(I=g.parent)==null||I.detach(g),g.setParent(this),g.div&&g.isAttachedToDOM&&(g.div.remove(),this.div.append(g.div)))}add(g){if(!(g.parent===this&&g.isAttachedToDOM)){if(this.changeParent(g),c(this,Hg).addEditor(g),this.attach(g),!g.isAttachedToDOM){const I=g.render();this.div.append(I),g.isAttachedToDOM=!0}g.fixAndSetPosition(),g.onceAdded(!c(this,Yu)),c(this,Hg).addToAnnotationStorage(g),g._reportTelemetry(g.telemetryInitialData)}}moveEditorInDOM(g){var e;if(!g.isAttachedToDOM)return;const{activeElement:I}=document;g.div.contains(I)&&!c(this,ns)&&(g._focusEventsAllowed=!1,V(this,ns,setTimeout(()=>{V(this,ns,null),g.div.contains(document.activeElement)?g._focusEventsAllowed=!0:(g.div.addEventListener("focusin",()=>{g._focusEventsAllowed=!0},{once:!0,signal:c(this,Hg)._signal}),I.focus())},0))),g._structTreeParentId=(e=c(this,Nc))==null?void 0:e.moveElementInDOM(this.div,g.div,g.contentDiv,!0)}addOrRebuild(g){g.needsToBeRebuilt()?(g.parent||(g.parent=this),g.rebuild(),g.show()):this.add(g)}addUndoableEditor(g){const I=()=>g._uiManager.rebuild(g),e=()=>{g.remove()};this.addCommands({cmd:I,undo:e,mustExec:!1})}getEditorByUID(g){for(const I of c(this,_t).values())if(I.uid===g)return I;return null}getNextId(){return c(this,Hg).getId()}combinedSignal(g){return c(this,Hg).combinedSignal(g)}canCreateNewEmptyEditor(){var g;return(g=c(this,_I,il))==null?void 0:g.canCreateNewEmptyEditor()}async pasteEditor(g,I){this.updateToolbar(g),await c(this,Hg).updateMode(g.mode);const{offsetX:e,offsetY:t}=H(this,_I,Q5).call(this),i=this.getNextId(),A=H(this,_I,O5).call(this,{parent:this,id:i,x:e,y:t,uiManager:c(this,Hg),isCentered:!0,...I});A&&this.add(A)}async deserialize(g){var I;return await((I=c(EA,Ca).get(g.annotationType??g.annotationEditorType))==null?void 0:I.deserialize(g,this,c(this,Hg)))||null}createAndAddNewEditor(g,I,e={}){const t=this.getNextId(),i=H(this,_I,O5).call(this,{parent:this,id:t,x:g.offsetX,y:g.offsetY,uiManager:c(this,Hg),isCentered:I,...e});return i&&this.add(i),i}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(g={}){this.createAndAddNewEditor(H(this,_I,Q5).call(this),!0,g)}setSelected(g){c(this,Hg).setSelected(g)}toggleSelected(g){c(this,Hg).toggleSelected(g)}unselect(g){c(this,Hg).unselect(g)}pointerup(g){var t;const{isMac:I}=ye.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div||!c(this,ga)||(V(this,ga,!1),(t=c(this,_I,il))!=null&&t.isDrawer&&c(this,_I,il).supportMultipleDrawings))return;if(!c(this,pu)){V(this,pu,!0);return}const e=c(this,Hg).getMode();if(e===Pg.STAMP||e===Pg.SIGNATURE){c(this,Hg).unselectAll();return}this.createAndAddNewEditor(g,!1)}pointerdown(g){var t;if(c(this,Hg).getMode()===Pg.HIGHLIGHT&&this.enableTextSelection(),c(this,ga)){V(this,ga,!1);return}const{isMac:I}=ye.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div)return;if(V(this,ga,!0),(t=c(this,_I,il))!=null&&t.isDrawer){this.startDrawingSession(g);return}const e=c(this,Hg).getActive();V(this,pu,!e||e.isEmpty())}startDrawingSession(g){if(this.div.focus({preventScroll:!0}),c(this,UA)){c(this,_I,il).startDrawing(this,c(this,Hg),!1,g);return}c(this,Hg).setCurrentDrawingSession(this),V(this,UA,new AbortController);const I=c(this,Hg).combinedSignal(c(this,UA));this.div.addEventListener("blur",({relatedTarget:e})=>{e&&!this.div.contains(e)&&(V(this,ls,null),this.commitOrRemove())},{signal:I}),c(this,_I,il).startDrawing(this,c(this,Hg),!1,g)}pause(g){if(g){const{activeElement:I}=document;this.div.contains(I)&&V(this,ls,I);return}c(this,ls)&&setTimeout(()=>{var I;(I=c(this,ls))==null||I.focus(),V(this,ls,null)},0)}endDrawingSession(g=!1){return c(this,UA)?(c(this,Hg).setCurrentDrawingSession(null),c(this,UA).abort(),V(this,UA,null),V(this,ls,null),c(this,_I,il).endDrawing(g)):null}findNewParent(g,I,e){const t=c(this,Hg).findParent(I,e);return t===null||t===this?!1:(t.changeParent(g),!0)}commitOrRemove(){return c(this,UA)?(this.endDrawingSession(),!0):!1}onScaleChanging(){c(this,UA)&&c(this,_I,il).onScaleChangingWhenDrawing(this)}destroy(){var g,I;this.commitOrRemove(),((g=c(this,Hg).getActive())==null?void 0:g.parent)===this&&(c(this,Hg).commitOrRemove(),c(this,Hg).setActiveEditor(null)),c(this,ns)&&(clearTimeout(c(this,ns)),V(this,ns,null));for(const e of c(this,_t).values())(I=c(this,Nc))==null||I.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,c(this,_t).clear(),c(this,Hg).removeLayer(this)}render({viewport:g}){this.viewport=g,La(this.div,g);for(const I of c(this,Hg).getEditors(this.pageIndex))this.add(I),I.rebuild();this.updateMode()}update({viewport:g}){c(this,Hg).commitOrRemove(),H(this,_I,$2).call(this);const I=this.viewport.rotation,e=g.rotation;if(this.viewport=g,La(this.div,{rotation:e}),I!==e)for(const t of c(this,_t).values())t.rotate(e)}get pageDimensions(){const{pageWidth:g,pageHeight:I}=this.viewport.rawDims;return[g,I]}get scale(){return c(this,Hg).viewParameters.realScale}};Nc=new WeakMap,pu=new WeakMap,$o=new WeakMap,qo=new WeakMap,ns=new WeakMap,_t=new WeakMap,ga=new WeakMap,yu=new WeakMap,Yu=new WeakMap,UA=new WeakMap,ls=new WeakMap,We=new WeakMap,ss=new WeakMap,Ia=new WeakMap,Vu=new WeakMap,Hg=new WeakMap,Ca=new WeakMap,_I=new WeakSet,x5=function(){return c(this,_t).size!==0?c(this,_t).values():c(this,Hg).getEditors(this.pageIndex)},zv=function(g){c(this,Hg).unselectAll();const{target:I}=g;if(I===c(this,We).div||(I.getAttribute("role")==="img"||I.classList.contains("endOfContent"))&&c(this,We).div.contains(I)){const{isMac:e}=ye.platform;if(g.button!==0||g.ctrlKey&&e)return;c(this,Hg).showAllEditors("highlight",!0,!0),c(this,We).div.classList.add("free"),this.toggleDrawing(),hW.startHighlighting(this,c(this,Hg).direction==="ltr",{target:c(this,We).div,x:g.x,y:g.y}),c(this,We).div.addEventListener("pointerup",()=>{c(this,We).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:c(this,Hg)._signal}),g.preventDefault()}},il=function(){return c(EA,Ca).get(c(this,Hg).getMode())},O5=function(g){const I=c(this,_I,il);return I?new I.prototype.constructor(g):null},Q5=function(){const{x:g,y:I,width:e,height:t}=this.boundingClientRect,i=Math.max(0,g),A=Math.max(0,I),n=Math.min(window.innerWidth,g+e),l=Math.min(window.innerHeight,I+t),o=(i+n)/2-g,a=(A+l)/2-I,[d,m]=this.viewport.rotation%180===0?[o,a]:[a,o];return{offsetX:d,offsetY:m}},$2=function(){for(const g of c(this,_t).values())g.isEmpty()&&g.remove()},cg(EA,"_initialized",!1),f(EA,Ca,new Map([TV,xV,PV,hW,EV].map(g=>[g._editorType,g])));let _V=EA;const te=class te{constructor({pageIndex:g}){f(this,qn);f(this,PA,null);f(this,Yt,new Map);f(this,Mc,new Map);this.pageIndex=g}setParent(g){if(!c(this,PA)){V(this,PA,g);return}if(c(this,PA)!==g){if(c(this,Yt).size>0)for(const I of c(this,Yt).values())I.remove(),g.append(I);V(this,PA,g)}}static get _svgFactory(){return Qg(this,"_svgFactory",new rW)}draw(g,I=!1,e=!1){const t=se(te,LZ)._++,i=H(this,qn,U5).call(this),A=te._svgFactory.createElement("defs");i.append(A);const n=te._svgFactory.createElement("path");A.append(n);const l=`path_p${this.pageIndex}_${t}`;n.setAttribute("id",l),n.setAttribute("vector-effect","non-scaling-stroke"),I&&c(this,Mc).set(t,n);const o=e?H(this,qn,Lv).call(this,A,l):null,a=te._svgFactory.createElement("use");return i.append(a),a.setAttribute("href",`#${l}`),this.updateProperties(i,g),c(this,Yt).set(t,i),{id:t,clipPathId:`url(#${o})`}}drawOutline(g,I){const e=se(te,LZ)._++,t=H(this,qn,U5).call(this),i=te._svgFactory.createElement("defs");t.append(i);const A=te._svgFactory.createElement("path");i.append(A);const n=`path_p${this.pageIndex}_${e}`;A.setAttribute("id",n),A.setAttribute("vector-effect","non-scaling-stroke");let l;if(I){const d=te._svgFactory.createElement("mask");i.append(d),l=`mask_p${this.pageIndex}_${e}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const m=te._svgFactory.createElement("rect");d.append(m),m.setAttribute("width","1"),m.setAttribute("height","1"),m.setAttribute("fill","white");const u=te._svgFactory.createElement("use");d.append(u),u.setAttribute("href",`#${n}`),u.setAttribute("stroke","none"),u.setAttribute("fill","black"),u.setAttribute("fill-rule","nonzero"),u.classList.add("mask")}const o=te._svgFactory.createElement("use");t.append(o),o.setAttribute("href",`#${n}`),l&&o.setAttribute("mask",`url(#${l})`);const a=o.cloneNode();return t.append(a),o.classList.add("mainOutline"),a.classList.add("secondaryOutline"),this.updateProperties(t,g),c(this,Yt).set(e,t),e}finalizeDraw(g,I){c(this,Mc).delete(g),this.updateProperties(g,I)}updateProperties(g,I){var l;if(!I)return;const{root:e,bbox:t,rootClass:i,path:A}=I,n=typeof g=="number"?c(this,Yt).get(g):g;if(n){if(e&&H(this,qn,E5).call(this,n,e),t&&H(l=te,Rp,Jv).call(l,n,t),i){const{classList:o}=n;for(const[a,d]of Object.entries(i))o.toggle(a,d)}if(A){const a=n.firstElementChild.firstElementChild;H(this,qn,E5).call(this,a,A)}}}updateParent(g,I){if(I===this)return;const e=c(this,Yt).get(g);e&&(c(I,PA).append(e),c(this,Yt).delete(g),c(I,Yt).set(g,e))}remove(g){c(this,Mc).delete(g),c(this,PA)!==null&&(c(this,Yt).get(g).remove(),c(this,Yt).delete(g))}destroy(){V(this,PA,null);for(const g of c(this,Yt).values())g.remove();c(this,Yt).clear(),c(this,Mc).clear()}};PA=new WeakMap,Yt=new WeakMap,Mc=new WeakMap,LZ=new WeakMap,Rp=new WeakSet,Jv=function(g,[I,e,t,i]){const{style:A}=g;A.top=`${100*e}%`,A.left=`${100*I}%`,A.width=`${100*t}%`,A.height=`${100*i}%`},qn=new WeakSet,U5=function(){const g=te._svgFactory.create(1,1,!0);return c(this,PA).append(g),g.setAttribute("aria-hidden",!0),g},Lv=function(g,I){const e=te._svgFactory.createElement("clipPath");g.append(e);const t=`clip_${I}`;e.setAttribute("id",t),e.setAttribute("clipPathUnits","objectBoundingBox");const i=te._svgFactory.createElement("use");return e.append(i),i.setAttribute("href",`#${I}`),i.classList.add("clip"),t},E5=function(g,I){for(const[e,t]of Object.entries(I))t===null?g.removeAttribute(e):g.setAttribute(e,t)},f(te,Rp),f(te,LZ,0);let $V=te;globalThis._pdfjsTestingUtils={HighlightOutliner:vV},globalThis.pdfjsLib={AbortException:Js,AnnotationEditorLayer:_V,AnnotationEditorParamsType:uI,AnnotationEditorType:Pg,AnnotationEditorUIManager:Ta,AnnotationLayer:LV,AnnotationMode:zs,AnnotationType:TC,applyOpacity:Lvg,build:Ujg,ColorPicker:dW,createValidAbsoluteUrl:TD,CSSConstants:Jvg,DOMSVGFactory:rW,DrawLayer:$V,FeatureTest:ye,fetchData:Th,findContrastColor:Tvg,getDocument:DV,getFilenameFromUrl:Dvg,getPdfFilenameFromUrl:Svg,getRGB:xh,getUuid:QD,getXfaPageViewport:kvg,GlobalWorkerOptions:wn,ImageKind:Ow,InvalidPDFException:aV,isDataScheme:_w,isPdfFile:Gr,isValidExplicitDest:$vg,MathClamp:ut,noContextMenu:Ji,normalizeUnicode:fvg,OPS:Fh,OutputScale:Zn,PasswordResponses:Wvg,PDFDataRangeTransport:SS,PDFDateString:$w,PDFWorker:$h,PermissionFlag:wvg,PixelsPerInch:Ls,RenderingCancelledException:rV,renderRichText:IS,ResponseException:Pw,setLayerDimensions:La,shadow:Qg,SignatureExtractor:al,stopEvent:BC,SupportedImageMimeTypes:mV,TextLayer:_h,TouchManager:IW,updateUrlHash:vD,Util:Rg,VerbosityLevel:Qw,version:Qjg,XfaLayer:ED};class bxg{constructor(){cg(this,"cache",{});cg(this,"cachePage",{})}setCache(g,I){this.cache[g]=I}getCache(g){return this.cache[g]}setPageCache(g,I){this.cachePage[g]=I}getPageCache(g){return this.cachePage[g]}}const xa=new bxg,Zxg=["src"],dl=s.defineComponent({name:"PdfPreview",__name:"PdfPreview",props:{src:{},page:{}},emits:["load","error"],setup(C,{expose:g,emit:I}){wn.workerSrc=Gvg;const e=C,t=I,i=s.reactive({isError:!1,rotate:0}),A=s.ref(null);let n,l=null;s.watch([()=>e.src,()=>e.page],()=>{n==null||n.disconnect(),m(),i.isError=!1,s.nextTick(()=>{d()})}),s.watch(()=>e.src,()=>{i.rotate=0});const o=async()=>{try{if(!A.value||!e.src)throw new Error("Canvas not found");l&&(l==null||l.cancel(),l=null);let u;const h=xa.getCache(e.src);if(h?u=h:(u=await DV(e.src).promise,xa.setCache(e.src,u)),!u)throw new Error("Pdf not found");const Z=e.page??1,G=`${e.src}-${Z}`,w=xa.getPageCache(G);let B;if(w?B=w:(B=await u.getPage(Z),xa.setPageCache(G,B)),!A.value)return;const p=A.value.getBoundingClientRect(),y=B.getViewport({scale:1}),Y=p.width/y.width,R=p.height/y.height,M=Math.min(Y,R),K=window.devicePixelRatio||1,J=B.getViewport({scale:M*K,rotation:i.rotate}),X=A.value.getContext("2d");if(X===null)throw new Error("Context not found");A.value.width=J.width,A.value.height=J.height;const D=B.render({canvas:A.value,canvasContext:X,viewport:J});l=D,await D.promise,t("load")}catch(u){if(u&&typeof u=="object"&&"name"in u&&(u==null?void 0:u.name)==="RenderingCancelledException")return;console.error(u),i.isError=!0,t("error",u)}finally{l=null}},a=async u=>{try{if(!A.value)return;const h=xa.getPageCache(`${e.src}-${e.page}`);if(!h)return;const Z=A.value.getContext("2d");if(!Z)return;const G=Math.round(u/90)*90;i.rotate+=G;const{width:w,height:B}=A.value;Z.clearRect(0,0,w,B);const p=h.getViewport({scale:1,rotation:i.rotate});A.value.width=p.width,A.value.height=p.height;const y=h.render({canvas:A.value,canvasContext:Z,viewport:p});l=y,await y.promise,t("load")}catch(h){if(h&&typeof h=="object"&&"name"in h&&(h==null?void 0:h.name)==="RenderingCancelledException")return;console.error(h),i.isError=!0}finally{l=null}},d=()=>{A.value&&(n=new IntersectionObserver((u,h)=>{u.forEach(Z=>{Z.isIntersecting&&(o(),h.unobserve(Z.target))},{rootMargin:"50px"})}),n.observe(A.value))},m=()=>{if(!A.value)return;const u=A.value.getContext("2d");u&&u.clearRect(0,0,A.value.width,A.value.height)};return g({clearCanvas:m,rotatePdf:a}),s.onMounted(()=>{d()}),(u,h)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,Zxg)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:A},null,512))}});var qV=(C=>(C.slideTop="slide-top",C.slideLeft="slide-left",C.fadeAndScale="fade-and-scale",C.fade="fade",C))(qV||{});const Gxg=()=>{const C=s.ref(0),g=s.ref([]),I=s.ref(null),e=l=>{g.value.push(l),i(l),A()},t=()=>{g.value.pop(),n(),g.value.length?i(g.value[g.value.length-1]):I.value=null},i=l=>{I.value=l},A=()=>{C.value+=1},n=()=>{C.value>0&&(C.value-=1)};return{countOpenedModal:C,openedModals:g,lastOpenedModal:I,addOpenedModal:e,reduceOpenedModal:t,setLastOpenedModal:i,incrementCountModal:A,decrementCountModal:n}},wxg=["data-testid"],Wxg=["data-testid"],xS=fg(s.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(C,{expose:g,emit:I}){const{lastOpenedModal:e,addOpenedModal:t,reduceOpenedModal:i}=Gxg(),A=C,n=s.ref(null),l=s.useAttrs(),o=s.ref(!1),a=s.computed(()=>({width:A.width,height:A.height})),d=I;let m=0;const u=()=>{m=Date.now(),n.value&&(A.open?(n.value.showModal(),t(n.value)):h())},h=()=>{Date.now()-m<300||(i(),d("close"))},Z=()=>{var Y;(Y=n.value)==null||Y.close(),document.documentElement.focus(),window.removeEventListener("mouseup",p),B()},G=Y=>{Y.key==="Escape"&&e.value===n.value&&h()},w=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const R=document.body.style.paddingRight;return Number(R.replace(/\D/g,""))||0}},B=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&BI({overflow:"","padding-right":""},document.body)},p=Y=>{if(Y.target===n.value){if(A.disableCloseOnOutsideClick)return;h()}window.removeEventListener("mouseup",p)},y=()=>{window.removeEventListener("mouseup",p),window.addEventListener("mouseup",p)};return g({closeDialog:Z}),s.onMounted(()=>{s.watchEffect(()=>{A.open!==o.value&&(u(),o.value=A.open,n.value&&n.value.focus())}),n.value&&n.value.addEventListener("cancel",R=>{R.preventDefault()});const Y=w();BI({overflow:"hidden","padding-right":`${Y}px`},document.body),document.addEventListener("keydown",G)}),s.onUnmounted(()=>{B(),window.removeEventListener("mouseup",p),document.removeEventListener("keydown",G),d("unmounted")}),(Y,R)=>(s.openBlock(),s.createElementBlock("dialog",s.mergeProps({ref_key:"dialog",ref:n},s.unref(l),{class:["modal-yui-kit",`modal-yui-kit_${A.position}`],"data-testid":A.dataTestid,onMousedown:s.withModifiers(y,["self","left"])}),[s.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:s.normalizeStyle(a.value),"data-testid":`${A.dataTestid}-ModalContent`},[s.renderSlot(Y.$slots,"default",{},void 0,!0)],12,Wxg)],16,wxg))}}),[["__scopeId","data-v-c8dd59d1"]]),C0=fg(s.defineComponent({__name:"ModalAnimated",props:{animateType:{},open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=s.computed(()=>I.animateType===qV.fade?"fade":I.position==="bottom"?"slide-bottom":I.position==="right"?"slide-left":"fade-and-scale"),i=s.ref(null),A=s.reactive({function:()=>{}}),n=()=>{d()},l=()=>{e("unmounted")},o=()=>{d()},a=()=>{A.function(),e("end-animation")},d=()=>{var u;i.value&&(A.function=(u=i.value)==null?void 0:u.closeDialog)},m=()=>{d(),e("close")};return(u,h)=>(s.openBlock(),s.createBlock(s.Transition,{name:t.value,onAfterLeave:a,onBeforeLeave:o,onAfterEnter:n},{default:s.withCtx(()=>[I.open?(s.openBlock(),s.createBlock(xS,{key:0,ref_key:"modalRef",ref:i,open:I.open,position:I.position,width:I.width,height:I.height,"data-testid":I.dataTestid,onClose:m,onUnmounted:l,"disable-close-on-outside-click":I.disableCloseOnOutsideClick},{default:s.withCtx(()=>[s.renderSlot(u.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid","disable-close-on-outside-click"])):s.createCommentVNode("",!0)]),_:3},8,["name"]))}}),[["__scopeId","data-v-75405c48"]]),OS=(C,g=window)=>{const I=C.getBoundingClientRect();if(g instanceof Window){const e=window.innerWidth,t=window.innerHeight;return I.top<t&&I.bottom>0&&I.left<e&&I.right>0}else{const e=g.getBoundingClientRect();return I.top<e.bottom&&I.bottom>e.top&&I.left<e.right&&I.right>e.left}},gN=(C,g=null)=>{if(!C)return;(g?OS(C,g):OS(C))||C.scrollIntoView({behavior:"smooth",block:"nearest"})},Bxg=s.defineComponent({name:"BaseSlider",__name:"BaseSlider",props:{activeIndex:{default:0}},setup(C,{expose:g}){const I=C,e=s.reactive({children:null,activeIndex:I.activeIndex}),t=s.ref(null),i=s.ref(null);s.watch(()=>I.activeIndex,()=>{A(I.activeIndex)});const A=a=>{if(!t.value||!i.value)return;const d=[...t.value.children];a>d.length-1||a<0||(gN(d[a],i.value),e.activeIndex=a)},n=()=>{s.nextTick(()=>{!e.children||!i.value||gN(e.children[e.activeIndex],i.value)})},l=()=>(A(e.activeIndex+1),e.activeIndex),o=()=>(A(e.activeIndex-1),e.activeIndex);return s.onMounted(()=>{!t.value||!i.value||(e.children=[...t.value.children])}),g({shiftPosition:A,nextSlide:l,prevSlide:o,initScroll:n}),(a,d)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"sliderRef",ref:i,class:"base-slider"},[s.createElementVNode("div",{ref_key:"contentRef",ref:t,class:"base-slider__content"},[s.renderSlot(a.$slots,"default")],512)],512))}}),pxg={class:"base-slide__content"},yxg=s.defineComponent({name:"BaseSlide",__name:"BaseSlide",props:{isActive:{type:Boolean}},setup(C){const g=C,I=s.computed(()=>[{"base-slide_active":g.isActive}]);return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["base-slide",I.value])},[s.createElementVNode("div",pxg,[s.renderSlot(e.$slots,"default")])],2))}}),IN=C=>{if(!C)return null;const g=C.split("?")[0],I=/\.\w+$/,e=g.match(I);return e?e[0].replace(".",""):null},Oa=C=>{if(!C)return!1;if(C.startsWith("data:image/"))return!0;const g=IN(C);return g?Object.values(Sh).includes(g.toLowerCase()):!1},Yxg=async(C,g="file")=>{const e=await(await fetch(C)).blob(),t=window.URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=g,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(t)};var QS={exports:{}};(function(C,g){(function(e,t){C.exports=t()})(window,function(){return function(I){var e={};function t(i){if(e[i])return e[i].exports;var A=e[i]={i,l:!1,exports:{}};return I[i].call(A.exports,A,A.exports,t),A.l=!0,A.exports}return t.m=I,t.c=e,t.d=function(i,A,n){t.o(i,A)||Object.defineProperty(i,A,{enumerable:!0,get:n})},t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,A){if(A&1&&(i=t(i)),A&8||A&4&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),A&2&&typeof i!="string")for(var l in i)t.d(n,l,(function(o){return i[o]}).bind(null,l));return n},t.n=function(i){var A=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(A,"a",A),A},t.o=function(i,A){return Object.prototype.hasOwnProperty.call(i,A)},t.p="",t(t.s=0)}({"./src/index.js":function(I,e,t){t.r(e),t("./src/sass/index.scss");var i=t("./src/js/init.js"),A=i.default.init;typeof window<"u"&&(window.printJS=A),e.default=A},"./src/js/browser.js":function(I,e,t){t.r(e);var i={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!n.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};e.default=i},"./src/js/functions.js":function(I,e,t){t.r(e),t.d(e,"addWrapper",function(){return l}),t.d(e,"capitalizePrint",function(){return o}),t.d(e,"collectStyles",function(){return a}),t.d(e,"addHeader",function(){return m}),t.d(e,"cleanUp",function(){return u}),t.d(e,"isRawHTML",function(){return h});var i=t("./src/js/modal.js"),A=t("./src/js/browser.js");function n(Z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(w){return typeof w}:n=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},n(Z)}function l(Z,G){var w="font-family:"+G.font+" !important; font-size: "+G.font_size+" !important; width:100%;";return'<div style="'+w+'">'+Z+"</div>"}function o(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}function a(Z,G){for(var w=document.defaultView||window,B="",p=w.getComputedStyle(Z,""),y=0;y<p.length;y++)(G.targetStyles.indexOf("*")!==-1||G.targetStyle.indexOf(p[y])!==-1||d(G.targetStyles,p[y]))&&p.getPropertyValue(p[y])&&(B+=p[y]+":"+p.getPropertyValue(p[y])+";");return B+="max-width: "+G.maxWidth+"px !important; font-size: "+G.font_size+" !important;",B}function d(Z,G){for(var w=0;w<Z.length;w++)if(n(G)==="object"&&G.indexOf(Z[w])!==-1)return!0;return!1}function m(Z,G){var w=document.createElement("div");if(h(G.header))w.innerHTML=G.header;else{var B=document.createElement("h1"),p=document.createTextNode(G.header);B.appendChild(p),B.setAttribute("style",G.headerStyle),w.appendChild(B)}Z.insertBefore(w,Z.childNodes[0])}function u(Z){Z.showModal&&i.default.close(),Z.onLoadingEnd&&Z.onLoadingEnd(),(Z.showModal||Z.onLoadingStart)&&window.URL.revokeObjectURL(Z.printable);var G="mouseover";(A.default.isChrome()||A.default.isFirefox())&&(G="focus");var w=function B(){window.removeEventListener(G,B),Z.onPrintDialogClose();var p=document.getElementById(Z.frameId);p&&p.remove()};window.addEventListener(G,w)}function h(Z){var G=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return G.test(Z)}},"./src/js/html.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(a)}e.default={print:function(d,m){var u=o(d.printable)?d.printable:document.getElementById(d.printable);if(!u){window.console.error("Invalid HTML element id: "+d.printable);return}d.printableElement=l(u,d),d.header&&Object(i.addHeader)(d.printableElement,d),A.default.send(d,m)}};function l(a,d){for(var m=a.cloneNode(),u=Array.prototype.slice.call(a.childNodes),h=0;h<u.length;h++)if(d.ignoreElements.indexOf(u[h].id)===-1){var Z=l(u[h],d);m.appendChild(Z)}switch(d.scanStyles&&a.nodeType===1&&m.setAttribute("style",Object(i.collectStyles)(a,d)),a.tagName){case"SELECT":m.value=a.value;break;case"CANVAS":m.getContext("2d").drawImage(a,0,0);break}return m}function o(a){return n(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js"),n=t("./src/js/browser.js");e.default={print:function(o,a){o.printable.constructor!==Array&&(o.printable=[o.printable]),o.printableElement=document.createElement("div"),o.printable.forEach(function(d){var m=document.createElement("img");if(m.setAttribute("style",o.imageStyle),m.src=d,n.default.isFirefox()){var u=m.src;m.src=u}var h=document.createElement("div");h.appendChild(m),o.printableElement.appendChild(h)}),o.header&&Object(i.addHeader)(o.printableElement,o),A.default.send(o,a)}}},"./src/js/init.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/modal.js"),n=t("./src/js/pdf.js"),l=t("./src/js/html.js"),o=t("./src/js/raw-html.js"),a=t("./src/js/image.js"),d=t("./src/js/json.js");function m(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(h)}var u=["pdf","html","image","json","raw-html"];e.default={init:function(){var Z={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(R){throw R},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},G=arguments[0];if(G===void 0)throw new Error("printJS expects at least 1 attribute.");switch(m(G)){case"string":Z.printable=encodeURI(G),Z.fallbackPrintable=Z.printable,Z.type=arguments[1]||Z.type;break;case"object":Z.printable=G.printable,Z.fallbackPrintable=typeof G.fallbackPrintable<"u"?G.fallbackPrintable:Z.printable,Z.fallbackPrintable=Z.base64?"data:application/pdf;base64,".concat(Z.fallbackPrintable):Z.fallbackPrintable;for(var w in Z)w==="printable"||w==="fallbackPrintable"||(Z[w]=typeof G[w]<"u"?G[w]:Z[w]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+m(G))}if(!Z.printable)throw new Error("Missing printable information.");if(!Z.type||typeof Z.type!="string"||u.indexOf(Z.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");Z.showModal&&A.default.show(Z),Z.onLoadingStart&&Z.onLoadingStart();var B=document.getElementById(Z.frameId);B&&B.parentNode.removeChild(B);var p=document.createElement("iframe");switch(i.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",Z.frameId),Z.type!=="pdf"&&(p.srcdoc="<html><head><title>"+Z.documentTitle+"</title>",Z.css&&(Array.isArray(Z.css)||(Z.css=[Z.css]),Z.css.forEach(function(Y){p.srcdoc+='<link rel="stylesheet" href="'+Y+'">'})),p.srcdoc+="</head><body></body></html>"),Z.type){case"pdf":if(i.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var y=window.open(Z.fallbackPrintable,"_blank");y.focus(),Z.onIncompatibleBrowser()}catch(Y){Z.onError(Y)}finally{Z.showModal&&A.default.close(),Z.onLoadingEnd&&Z.onLoadingEnd()}else n.default.print(Z,p);break;case"image":a.default.print(Z,p);break;case"html":l.default.print(Z,p);break;case"raw-html":o.default.print(Z,p);break;case"json":d.default.print(Z,p);break}}}},"./src/js/json.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(d){return typeof d}:n=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(o)}e.default={print:function(a,d){if(n(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(m){return{field:n(m)==="object"?m.field:m,displayName:n(m)==="object"?m.displayName:m,columnSize:n(m)==="object"&&m.columnSize?m.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(i.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=l(a),A.default.send(a,d)}};function l(o){var a=o.printable,d=o.properties,m='<table style="border-collapse: collapse; width: 100%;">';o.repeatTableHeader&&(m+="<thead>"),m+="<tr>";for(var u=0;u<d.length;u++)m+='<th style="width:'+d[u].columnSize+";"+o.gridHeaderStyle+'">'+Object(i.capitalizePrint)(d[u].displayName)+"</th>";m+="</tr>",o.repeatTableHeader&&(m+="</thead>"),m+="<tbody>";for(var h=0;h<a.length;h++){m+="<tr>";for(var Z=0;Z<d.length;Z++){var G=a[h],w=d[Z].field.split(".");if(w.length>1)for(var B=0;B<w.length;B++)G=G[w[B]];else G=G[d[Z].field];m+='<td style="width:'+d[Z].columnSize+o.gridStyle+'">'+G+"</td>"}m+="</tr>"}return m+="</tbody></table>",m}},"./src/js/modal.js":function(I,e,t){t.r(e);var i={show:function(n){var l="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",o=document.createElement("div");o.setAttribute("style",l),o.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var d=document.createElement("div");d.setAttribute("class","printClose"),d.setAttribute("id","printClose"),a.appendChild(d);var m=document.createElement("span");m.setAttribute("class","printSpinner"),a.appendChild(m);var u=document.createTextNode(n.modalMessage);a.appendChild(u),o.appendChild(a),document.getElementsByTagName("body")[0].appendChild(o),document.getElementById("printClose").addEventListener("click",function(){i.close()})},close:function(){var n=document.getElementById("printJS-Modal");n&&n.parentNode.removeChild(n)}};e.default=i},"./src/js/pdf.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js"),A=t("./src/js/functions.js");e.default={print:function(o,a){if(o.base64){var d=Uint8Array.from(atob(o.printable),function(u){return u.charCodeAt(0)});n(o,a,d);return}o.printable=/^(blob|http|\/\/)/i.test(o.printable)?o.printable:window.location.origin+(o.printable.charAt(0)!=="/"?"/"+o.printable:o.printable);var m=new window.XMLHttpRequest;m.responseType="arraybuffer",m.addEventListener("error",function(){Object(A.cleanUp)(o),o.onError(m.statusText,m)}),m.addEventListener("load",function(){if([200,201].indexOf(m.status)===-1){Object(A.cleanUp)(o),o.onError(m.statusText,m);return}n(o,a,m.response)}),m.open("GET",o.printable,!0),m.send()}};function n(l,o,a){var d=new window.Blob([a],{type:"application/pdf"});d=window.URL.createObjectURL(d),o.setAttribute("src",d),i.default.send(l,o)}},"./src/js/print.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/functions.js"),n={send:function(m,u){document.getElementsByTagName("body")[0].appendChild(u);var h=document.getElementById(m.frameId);h.onload=function(){if(m.type==="pdf"){i.default.isFirefox()?setTimeout(function(){return l(h,m)},1e3):l(h,m);return}var Z=h.contentWindow||h.contentDocument;if(Z.document&&(Z=Z.document),Z.body.appendChild(m.printableElement),m.type!=="pdf"&&m.style){var G=document.createElement("style");G.innerHTML=m.style,Z.head.appendChild(G)}var w=Z.getElementsByTagName("img");w.length>0?o(Array.from(w)).then(function(){return l(h,m)}):l(h,m)}}};function l(d,m){try{if(d.focus(),i.default.isEdge()||i.default.isIE())try{d.contentWindow.document.execCommand("print",!1,null)}catch{d.contentWindow.print()}else d.contentWindow.print()}catch(u){m.onError(u)}finally{i.default.isFirefox()&&(d.style.visibility="hidden",d.style.left="-1px"),Object(A.cleanUp)(m)}}function o(d){var m=d.map(function(u){if(u.src&&u.src!==window.location.href)return a(u)});return Promise.all(m)}function a(d){return new Promise(function(m){var u=function h(){!d||typeof d.naturalWidth>"u"||d.naturalWidth===0||!d.complete?setTimeout(h,500):m()};u()})}e.default=n},"./src/js/raw-html.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js");e.default={print:function(n,l){n.printableElement=document.createElement("div"),n.printableElement.setAttribute("style","width:100%"),n.printableElement.innerHTML=n.printable,i.default.send(n,l)}}},"./src/sass/index.scss":function(I,e,t){},0:function(I,e,t){I.exports=t("./src/index.js")}}).default})})(QS);var Vxg=QS.exports;const Nxg=ETg(Vxg),cl=C=>{if(!C)return!1;const g=IN(C);return g?Object.values(Kh).includes(g):!1},Mxg=["src"],e0=s.defineComponent({name:"VideoPreview",__name:"VideoPreview",props:{src:{}},emits:["error","load"],setup(C,{emit:g}){const I=C,e=g,t=s.reactive({isError:!1});let i=null;const A={mp4:"video/mp4",webm:"video/webm",mkv:"video/x-matroska",avi:"video/x-msvideo",mov:"video/quicktime",qt:"video/quicktime",m4v:"video/x-m4v"};s.watch(()=>I.src,()=>{t.isError=!1,o(),s.nextTick(()=>{a()})});const n=s.ref(null),l=d=>{var u;const m=(u=IN(d))==null?void 0:u.toLowerCase();return m?A[m]??"video/mp4":"video/mp4"},o=()=>{i&&(URL.revokeObjectURL(i),i=null)},a=async()=>{try{if(!n.value||!I.src)return;const d=document.createElement("video");d.muted=!0,d.preload="metadata",d.playsInline=!0;const m=await fetch(I.src);if(!m.ok)throw new Error("Failed to fetch video");const u=new Blob([await m.arrayBuffer()],{type:l(I.src)});i=URL.createObjectURL(u),d.src=i;const h=n.value.getContext("2d");if(!h)return;const Z=()=>{if(!n.value)return;const G=d.videoWidth||1,w=d.videoHeight||1;n.value.width=G,n.value.height=w,h.clearRect(0,0,G,w),h.drawImage(d,0,0,G,w),e("load")};d.addEventListener("loadedmetadata",()=>{if(!n.value)return;n.value.width=d.videoWidth||1,n.value.height=d.videoHeight||1;const G=Number.isFinite(d.duration)&&d.duration>1?1:0;if(G===0){Z();return}d.currentTime=G}),d.addEventListener("seeked",()=>{Z()}),d.addEventListener("loadeddata",()=>{var G,w;(!((G=n.value)!=null&&G.width)||!((w=n.value)!=null&&w.height))&&Z()}),d.addEventListener("error",G=>{t.isError=!0,e("error",G)})}catch{e("error",new Event("error")),t.isError=!0}};return s.onMounted(()=>{s.nextTick(()=>{a()})}),s.onUnmounted(()=>{o()}),(d,m)=>t.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,Mxg)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:n,class:"video-preview"},null,512))}}),XA=C=>C?C instanceof File?C.type==="application/pdf":Gr(C):!1;var qC=function(){return qC=Object.assign||function(g){for(var I,e=1,t=arguments.length;e<t;e++){I=arguments[e];for(var i in I)Object.prototype.hasOwnProperty.call(I,i)&&(g[i]=I[i])}return g},qC.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError,typeof window<"u"&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window.CustomEvent!="function"&&(window.CustomEvent=function(g,I){I=I||{bubbles:!1,cancelable:!1,detail:null};var e=document.createEvent("CustomEvent");return e.initCustomEvent(g,I.bubbles,I.cancelable,I.detail),e}));var Rxg=typeof document<"u"&&!!document.documentMode,CN;function fxg(){return CN||(CN=document.createElement("div").style)}var US=["webkit","moz","ms"],wW={};function eN(C){if(wW[C])return wW[C];var g=fxg();if(C in g)return wW[C]=C;for(var I=C[0].toUpperCase()+C.slice(1),e=US.length;e--;){var t="".concat(US[e]).concat(I);if(t in g)return wW[C]=t}}function WW(C,g){return parseFloat(g[eN(C)])||0}function BW(C,g,I){I===void 0&&(I=window.getComputedStyle(C));var e=g==="border"?"Width":"";return{left:WW("".concat(g,"Left").concat(e),I),right:WW("".concat(g,"Right").concat(e),I),top:WW("".concat(g,"Top").concat(e),I),bottom:WW("".concat(g,"Bottom").concat(e),I)}}function yr(C,g,I){C.style[eN(g)]=I}function Xxg(C,g){var I=eN("transform");yr(C,"transition","".concat(I," ").concat(g.duration,"ms ").concat(g.easing))}function Hxg(C,g,I){var e=g.x,t=g.y,i=g.scale,A=g.isSVG;if(yr(C,"transform","scale(".concat(i,") translate(").concat(e,"px, ").concat(t,"px)")),A&&Rxg){var n=window.getComputedStyle(C).getPropertyValue("transform");C.setAttribute("transform",n)}}function tN(C){var g=C.parentNode,I=window.getComputedStyle(C),e=window.getComputedStyle(g),t=C.getBoundingClientRect(),i=g.getBoundingClientRect();return{elem:{style:I,width:t.width,height:t.height,top:t.top,bottom:t.bottom,left:t.left,right:t.right,margin:BW(C,"margin",I),border:BW(C,"border",I)},parent:{style:e,width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right,padding:BW(g,"padding",e),border:BW(g,"border",e)}}}var t0={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};typeof window<"u"&&(typeof window.PointerEvent=="function"?t0={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:typeof window.TouchEvent=="function"&&(t0={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));function iN(C,g,I,e){t0[C].split(" ").forEach(function(t){g.addEventListener(t,I,e)})}function AN(C,g,I){t0[C].split(" ").forEach(function(e){g.removeEventListener(e,I)})}function ES(C,g){for(var I=C.length;I--;)if(C[I].pointerId===g.pointerId)return I;return-1}function nN(C,g){var I;if(g.touches){I=0;for(var e=0,t=g.touches;e<t.length;e++){var i=t[e];i.pointerId=I++,nN(C,i)}return}I=ES(C,g),I>-1&&C.splice(I,1),C.push(g)}function Dxg(C,g){if(g.touches){for(;C.length;)C.pop();return}var I=ES(C,g);I>-1&&C.splice(I,1)}function PS(C){C=C.slice(0);for(var g=C.pop(),I;I=C.pop();)g={clientX:(I.clientX-g.clientX)/2+g.clientX,clientY:(I.clientY-g.clientY)/2+g.clientY};return g}function lN(C){if(C.length<2)return 0;var g=C[0],I=C[1];return Math.sqrt(Math.pow(Math.abs(I.clientX-g.clientX),2)+Math.pow(Math.abs(I.clientY-g.clientY),2))}function Sxg(C){for(var g=C;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1}function Kxg(C){return(C.getAttribute("class")||"").trim()}function kxg(C,g){return C.nodeType===1&&" ".concat(Kxg(C)," ").indexOf(" ".concat(g," "))>-1}function Fxg(C,g){for(var I=C;I!=null;I=I.parentNode)if(kxg(I,g.excludeClass)||g.exclude.indexOf(I)>-1)return!0;return!1}var zxg=/^http:[\w\.\/]+svg$/;function Jxg(C){return zxg.test(C.namespaceURI)&&C.nodeName.toLowerCase()!=="svg"}function Lxg(C){var g={};for(var I in C)C.hasOwnProperty(I)&&(g[I]=C[I]);return g}var _S={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:function(C){C.preventDefault(),C.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:Hxg,startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function $S(C,g){if(!C)throw new Error("Panzoom requires an element as an argument");if(C.nodeType!==1)throw new Error("Panzoom requires an element with a nodeType of 1");if(!Sxg(C))throw new Error("Panzoom should be called on elements that have been attached to the DOM");g=qC(qC({},_S),g);var I=Jxg(C),e=C.parentNode;e.style.overflow=g.overflow,e.style.userSelect="none",e.style.touchAction=g.touchAction,(g.canvas?e:C).style.cursor=g.cursor,C.style.userSelect="none",C.style.touchAction=g.touchAction,yr(C,"transformOrigin",typeof g.origin=="string"?g.origin:I?"0 0":"50% 50%");function t(){e.style.overflow="",e.style.userSelect="",e.style.touchAction="",e.style.cursor="",C.style.cursor="",C.style.userSelect="",C.style.touchAction="",yr(C,"transformOrigin","")}function i(eg){eg===void 0&&(eg={});for(var mg in eg)eg.hasOwnProperty(mg)&&(g[mg]=eg[mg]);(eg.hasOwnProperty("cursor")||eg.hasOwnProperty("canvas"))&&(e.style.cursor=C.style.cursor="",(g.canvas?e:C).style.cursor=g.cursor),eg.hasOwnProperty("overflow")&&(e.style.overflow=eg.overflow),eg.hasOwnProperty("touchAction")&&(e.style.touchAction=eg.touchAction,C.style.touchAction=eg.touchAction)}var A=0,n=0,l=1,o=!1;Z(g.startScale,{animate:!1,force:!0}),setTimeout(function(){h(g.startX,g.startY,{animate:!1,force:!0})});function a(eg,mg,Yg){if(!Yg.silent){var Zg=new CustomEvent(eg,{detail:mg});C.dispatchEvent(Zg)}}function d(eg,mg,Yg){var Zg={x:A,y:n,scale:l,isSVG:I,originalEvent:Yg};return requestAnimationFrame(function(){typeof mg.animate=="boolean"&&(mg.animate?Xxg(C,mg):yr(C,"transition","none")),mg.setTransform(C,Zg,mg),a(eg,Zg,mg),a("panzoomchange",Zg,mg)}),Zg}function m(eg,mg,Yg,Zg){var ag=qC(qC({},g),Zg),pg={x:A,y:n,opts:ag};if(!(Zg!=null&&Zg.force)&&(ag.disablePan||ag.panOnlyWhenZoomed&&l===ag.startScale))return pg;if(eg=parseFloat(eg),mg=parseFloat(mg),ag.disableXAxis||(pg.x=(ag.relative?A:0)+eg),ag.disableYAxis||(pg.y=(ag.relative?n:0)+mg),ag.contain){var bg=tN(C),oI=bg.elem.width/l,AI=bg.elem.height/l,nC=oI*Yg,KC=AI*Yg,eC=(nC-oI)/2,WI=(KC-AI)/2;if(ag.contain==="inside"){var ie=(-bg.elem.margin.left-bg.parent.padding.left+eC)/Yg,ke=(bg.parent.width-nC-bg.parent.padding.left-bg.elem.margin.left-bg.parent.border.left-bg.parent.border.right+eC)/Yg;pg.x=Math.max(Math.min(pg.x,ke),ie);var kC=(-bg.elem.margin.top-bg.parent.padding.top+WI)/Yg,Ri=(bg.parent.height-KC-bg.parent.padding.top-bg.elem.margin.top-bg.parent.border.top-bg.parent.border.bottom+WI)/Yg;pg.y=Math.max(Math.min(pg.y,Ri),kC)}else if(ag.contain==="outside"){var ie=(-(nC-bg.parent.width)-bg.parent.padding.left-bg.parent.border.left-bg.parent.border.right+eC)/Yg,ke=(eC-bg.parent.padding.left)/Yg;pg.x=Math.max(Math.min(pg.x,ke),ie);var kC=(-(KC-bg.parent.height)-bg.parent.padding.top-bg.parent.border.top-bg.parent.border.bottom+WI)/Yg,Ri=(WI-bg.parent.padding.top)/Yg;pg.y=Math.max(Math.min(pg.y,Ri),kC)}}return ag.roundPixels&&(pg.x=Math.round(pg.x),pg.y=Math.round(pg.y)),pg}function u(eg,mg){var Yg=qC(qC({},g),mg),Zg={scale:l,opts:Yg};if(!(mg!=null&&mg.force)&&Yg.disableZoom)return Zg;var ag=g.minScale,pg=g.maxScale;if(Yg.contain){var bg=tN(C),oI=bg.elem.width/l,AI=bg.elem.height/l;if(oI>1&&AI>1){var nC=bg.parent.width-bg.parent.border.left-bg.parent.border.right,KC=bg.parent.height-bg.parent.border.top-bg.parent.border.bottom,eC=nC/oI,WI=KC/AI;g.contain==="inside"?pg=Math.min(pg,eC,WI):g.contain==="outside"&&(ag=Math.max(ag,eC,WI))}}return Zg.scale=Math.min(Math.max(eg,ag),pg),Zg}function h(eg,mg,Yg,Zg){var ag=m(eg,mg,l,Yg);return A!==ag.x||n!==ag.y?(A=ag.x,n=ag.y,d("panzoompan",ag.opts,Zg)):{x:A,y:n,scale:l,isSVG:I,originalEvent:Zg}}function Z(eg,mg,Yg){var Zg=u(eg,mg),ag=Zg.opts;if(!(!(mg!=null&&mg.force)&&ag.disableZoom)){eg=Zg.scale;var pg=A,bg=n;if(ag.focal){var oI=ag.focal;pg=(oI.x/eg-oI.x/l+A*eg)/eg,bg=(oI.y/eg-oI.y/l+n*eg)/eg}var AI=m(pg,bg,eg,{relative:!1,force:!0});return A=AI.x,n=AI.y,l=eg,d("panzoomzoom",ag,Yg)}}function G(eg,mg){var Yg=qC(qC(qC({},g),{animate:!0}),mg);return Z(l*Math.exp((eg?1:-1)*Yg.step),Yg)}function w(eg){return G(!0,eg)}function B(eg){return G(!1,eg)}function p(eg,mg,Yg,Zg){var ag=tN(C),pg={width:ag.parent.width-ag.parent.padding.left-ag.parent.padding.right-ag.parent.border.left-ag.parent.border.right,height:ag.parent.height-ag.parent.padding.top-ag.parent.padding.bottom-ag.parent.border.top-ag.parent.border.bottom},bg=mg.clientX-ag.parent.left-ag.parent.padding.left-ag.parent.border.left-ag.elem.margin.left,oI=mg.clientY-ag.parent.top-ag.parent.padding.top-ag.parent.border.top-ag.elem.margin.top;I||(bg-=ag.elem.width/l/2,oI-=ag.elem.height/l/2);var AI={x:bg/pg.width*(pg.width*eg),y:oI/pg.height*(pg.height*eg)};return Z(eg,qC(qC({},Yg),{animate:!1,focal:AI}),Zg)}function y(eg,mg){eg.preventDefault();var Yg=qC(qC(qC({},g),mg),{animate:!1}),Zg=eg.deltaY===0&&eg.deltaX?eg.deltaX:eg.deltaY,ag=Zg<0?1:-1,pg=u(l*Math.exp(ag*Yg.step/3),Yg).scale;return p(pg,eg,Yg,eg)}function Y(eg){var mg=qC(qC(qC({},g),{animate:!0,force:!0}),eg);l=u(mg.startScale,mg).scale;var Yg=m(mg.startX,mg.startY,l,mg);return A=Yg.x,n=Yg.y,d("panzoomreset",mg)}var R,M,K,J,X,D,z=[];function j(eg){if(!Fxg(eg.target,g)){nN(z,eg),o=!0,g.handleStartEvent(eg),R=A,M=n,a("panzoomstart",{x:A,y:n,scale:l,isSVG:I,originalEvent:eg},g);var mg=PS(z);K=mg.clientX,J=mg.clientY,X=l,D=lN(z)}}function q(eg){if(!(!o||R===void 0||M===void 0||K===void 0||J===void 0)){nN(z,eg);var mg=PS(z),Yg=z.length>1,Zg=l;if(Yg){D===0&&(D=lN(z));var ag=lN(z)-D;Zg=u(ag*g.step/80+X).scale,p(Zg,mg,{animate:!1},eg)}(!Yg||g.pinchAndPan)&&h(R+(mg.clientX-K)/Zg,M+(mg.clientY-J)/Zg,{animate:!1},eg)}}function gg(eg){z.length===1&&a("panzoomend",{x:A,y:n,scale:l,isSVG:I,originalEvent:eg},g),Dxg(z,eg),o&&(o=!1,R=M=K=J=void 0)}var Q=!1;function _(){Q||(Q=!0,iN("down",g.canvas?e:C,j),iN("move",document,q,{passive:!0}),iN("up",document,gg,{passive:!0}))}function og(){Q=!1,AN("down",g.canvas?e:C,j),AN("move",document,q),AN("up",document,gg)}return g.noBind||_(),{bind:_,destroy:og,eventNames:t0,getPan:function(){return{x:A,y:n}},getScale:function(){return l},getOptions:function(){return Lxg(g)},handleDown:j,handleMove:q,handleUp:gg,pan:h,reset:Y,resetStyle:t,setOptions:i,setStyle:function(eg,mg){return yr(C,eg,mg)},zoom:Z,zoomIn:w,zoomOut:B,zoomToPoint:p,zoomWithWheel:y}}$S.defaultOptions=_S;const Txg={ref:"contentRef",class:"slider-modal__content"},vxg=["onClick"],jxg={class:"slider-modal__side-bar-count"},xxg={key:0,class:"slider-modal__mobile-header"},Oxg={class:"slider-modal__mobile-header-block"},Qxg={class:"slider-modal__mobile-header-block"},Uxg={class:"slider-modal__counter"},Exg={class:"slider-modal__name"},Pxg=["src"],_xg=["data-testid"],$xg=["src","type"],qxg=["src"],g4g={class:"slider-modal__bottom"},I4g={class:"slider-modal__nav-block"},C4g=["disabled"],e4g=["src","alt"],t4g=["src"],i4g=["disabled"],A4g={class:"slider-modal__nav-block"},n4g={class:"slider-modal__sub-nav"},l4g=["disabled"],s4g=["disabled"],o4g=["disabled"],a4g={class:"slider-modal__sub-nav"},d4g=["disabled"],c4g=["disabled"],sN=80,qS=20,r4g=80,m4g=20,u4g=200,pW=fg(s.defineComponent({name:"SliderModal",__name:"SliderModal",props:{dataTestid:{default:"SliderModal"},animateType:{},open:{type:Boolean},position:{},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean},items:{},defaultIndex:{default:0}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=window.matchMedia("(max-width: 768px)"),i=s.reactive({defaultIndex:I.defaultIndex,file:I.items[I.defaultIndex],sideBarItems:[],sideBarIndex:0,sideBarLength:0,isErrorFile:!1,isClickOnExit:!1,isMobile:!1,isPointerActive:!1,isExistSwipe:!1,isChangeItemSwipe:!1,isSwipeNextSlide:!1,isSwipePrevSlide:!1,isExitScrollActive:!1,isImagePositioned:!1,zoomValue:1,offsetX:0,offsetY:0,startX:0,startY:0,startXForMobile:0,startYForMobile:0,endXForMobile:0,endYForMobile:0,overscrollDelta:0,startScrollTop:0,rotateValue:0}),A=s.ref(null),n=s.ref(null),l=s.ref(null),o=s.ref(null),a=s.ref(null),d=s.ref(null),m=s.ref(null),u=s.ref(null),h=s.ref(null);let Z=null,G=null,w=null;const B=s.computed(()=>i.defaultIndex===0),p=s.computed(()=>i.defaultIndex===I.items.length-1),y=s.computed(()=>{var Ig,Ag,Wg,Kg;return!(XA((Ig=i.file)==null?void 0:Ig.path)||XA((Ag=i.file)==null?void 0:Ag.file)||Oa((Wg=i.file)==null?void 0:Wg.path)||cl((Kg=i.file)==null?void 0:Kg.path))}),Y=s.computed(()=>{var Ag,Wg;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig=i.isMobile&&XA((Wg=i.file)==null?void 0:Wg.path)||Ig,Ig}),R=s.computed(()=>{var Ag;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig}),M=s.computed(()=>!i.file||i.isErrorFile||y.value),K=s.computed(()=>{var Ag;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig}),J=s.computed(()=>({transform:`
|
|
1416
|
+
`)){const e=document.createElement("div");e.append(I?document.createTextNode(I):document.createElement("br")),this.editorDiv.append(e)}},Av=function(){return c(this,Gi).replaceAll(" "," ")},H5=function(I){return I.replaceAll(" "," ")},nv=function(I){const{value:e,fontSize:t,color:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||I.value!==e||I.fontSize!==t||I.color.some((n,l)=>n!==i[l])||I.pageIndex!==A},f(AC,Is),cg(AC,"_freeTextDefaultContent",""),cg(AC,"_internalPadding",0),cg(AC,"_defaultColor",null),cg(AC,"_defaultFontSize",10),cg(AC,"_type","freetext"),cg(AC,"_editorType",Pg.FREETEXT);let TV=AC;class Ng{toSVGPath(){OI("Abstract method `toSVGPath` must be implemented.")}get box(){OI("Abstract getter `box` must be implemented.")}serialize(g,I){OI("Abstract method `serialize` must be implemented.")}static _rescale(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,l=g.length;n<l;n+=2)A[n]=I+g[n]*t,A[n+1]=e+g[n+1]*i;return A}static _rescaleAndSwap(g,I,e,t,i,A){A||(A=new Float32Array(g.length));for(let n=0,l=g.length;n<l;n+=2)A[n]=I+g[n+1]*t,A[n+1]=e+g[n]*i;return A}static _translate(g,I,e,t){t||(t=new Float32Array(g.length));for(let i=0,A=g.length;i<A;i+=2)t[i]=I+g[i],t[i+1]=e+g[i+1];return t}static svgRound(g){return Math.round(g*1e4)}static _normalizePoint(g,I,e,t,i){switch(i){case 90:return[1-I/e,g/t];case 180:return[1-g/e,1-I/t];case 270:return[I/e,1-g/t];default:return[g/e,I/t]}}static _normalizePagePoint(g,I,e){switch(e){case 90:return[1-I,g];case 180:return[1-g,1-I];case 270:return[I,1-g];default:return[g,I]}}static createBezierPoints(g,I,e,t,i,A){return[(g+5*e)/6,(I+5*t)/6,(5*e+i)/6,(5*t+A)/6,(e+i)/2,(t+A)/2]}}cg(Ng,"PRECISION",1e-4);const Cs=class Cs{constructor({x:g,y:I},e,t,i,A,n=0){f(this,ee);f(this,Wi);f(this,xA,[]);f(this,Au);f(this,nu);f(this,Qn,[]);f(this,sI,new Float32Array(18));f(this,dc);f(this,cc);f(this,yZ);f(this,YZ);f(this,lu);f(this,su);f(this,Oo,[]);V(this,Wi,e),V(this,su,i*t),V(this,nu,A),c(this,sI).set([NaN,NaN,NaN,NaN,g,I],6),V(this,Au,n),V(this,YZ,c(Cs,VZ)*t),V(this,yZ,c(Cs,Vp)*t),V(this,lu,t),c(this,Oo).push(g,I)}isEmpty(){return isNaN(c(this,sI)[8])}add({x:g,y:I}){var J;V(this,dc,g),V(this,cc,I);const[e,t,i,A]=c(this,Wi);let[n,l,o,a]=c(this,sI).subarray(8,12);const d=g-o,m=I-a,u=Math.hypot(d,m);if(u<c(this,yZ))return!1;const h=u-c(this,YZ),Z=h/u,G=Z*d,w=Z*m;let B=n,p=l;n=o,l=a,o+=G,a+=w,(J=c(this,Oo))==null||J.push(g,I);const y=-w/h,Y=G/h,R=y*c(this,su),M=Y*c(this,su);return c(this,sI).set(c(this,sI).subarray(2,8),0),c(this,sI).set([o+R,a+M],4),c(this,sI).set(c(this,sI).subarray(14,18),12),c(this,sI).set([o-R,a-M],16),isNaN(c(this,sI)[6])?(c(this,Qn).length===0&&(c(this,sI).set([n+R,l+M],2),c(this,Qn).push(NaN,NaN,NaN,NaN,(n+R-e)/i,(l+M-t)/A),c(this,sI).set([n-R,l-M],14),c(this,xA).push(NaN,NaN,NaN,NaN,(n-R-e)/i,(l-M-t)/A)),c(this,sI).set([B,p,n,l,o,a],6),!this.isEmpty()):(c(this,sI).set([B,p,n,l,o,a],6),Math.abs(Math.atan2(p-l,B-n)-Math.atan2(w,G))<Math.PI/2?([n,l,o,a]=c(this,sI).subarray(2,6),c(this,Qn).push(NaN,NaN,NaN,NaN,((n+o)/2-e)/i,((l+a)/2-t)/A),[n,l,B,p]=c(this,sI).subarray(14,18),c(this,xA).push(NaN,NaN,NaN,NaN,((B+n)/2-e)/i,((p+l)/2-t)/A),!0):([B,p,n,l,o,a]=c(this,sI).subarray(0,6),c(this,Qn).push(((B+5*n)/6-e)/i,((p+5*l)/6-t)/A,((5*n+o)/6-e)/i,((5*l+a)/6-t)/A,((n+o)/2-e)/i,((l+a)/2-t)/A),[o,a,n,l,B,p]=c(this,sI).subarray(12,18),c(this,xA).push(((B+5*n)/6-e)/i,((p+5*l)/6-t)/A,((5*n+o)/6-e)/i,((5*l+a)/6-t)/A,((n+o)/2-e)/i,((l+a)/2-t)/A),!0))}toSVGPath(){if(this.isEmpty())return"";const g=c(this,Qn),I=c(this,xA);if(isNaN(c(this,sI)[6])&&!this.isEmpty())return H(this,ee,lv).call(this);const e=[];e.push(`M${g[4]} ${g[5]}`);for(let t=6;t<g.length;t+=6)isNaN(g[t])?e.push(`L${g[t+4]} ${g[t+5]}`):e.push(`C${g[t]} ${g[t+1]} ${g[t+2]} ${g[t+3]} ${g[t+4]} ${g[t+5]}`);H(this,ee,ov).call(this,e);for(let t=I.length-6;t>=6;t-=6)isNaN(I[t])?e.push(`L${I[t+4]} ${I[t+5]}`):e.push(`C${I[t]} ${I[t+1]} ${I[t+2]} ${I[t+3]} ${I[t+4]} ${I[t+5]}`);return H(this,ee,sv).call(this,e),e.join(" ")}newFreeDrawOutline(g,I,e,t,i,A){return new vS(g,I,e,t,i,A)}getOutlines(){var d;const g=c(this,Qn),I=c(this,xA),e=c(this,sI),[t,i,A,n]=c(this,Wi),l=new Float32Array((((d=c(this,Oo))==null?void 0:d.length)??0)+2);for(let m=0,u=l.length-2;m<u;m+=2)l[m]=(c(this,Oo)[m]-t)/A,l[m+1]=(c(this,Oo)[m+1]-i)/n;if(l[l.length-2]=(c(this,dc)-t)/A,l[l.length-1]=(c(this,cc)-i)/n,isNaN(e[6])&&!this.isEmpty())return H(this,ee,av).call(this,l);const o=new Float32Array(c(this,Qn).length+24+c(this,xA).length);let a=g.length;for(let m=0;m<a;m+=2){if(isNaN(g[m])){o[m]=o[m+1]=NaN;continue}o[m]=g[m],o[m+1]=g[m+1]}a=H(this,ee,cv).call(this,o,a);for(let m=I.length-6;m>=6;m-=6)for(let u=0;u<6;u+=2){if(isNaN(I[m+u])){o[a]=o[a+1]=NaN,a+=2;continue}o[a]=I[m+u],o[a+1]=I[m+u+1],a+=2}return H(this,ee,dv).call(this,o,a),this.newFreeDrawOutline(o,l,c(this,Wi),c(this,lu),c(this,Au),c(this,nu))}};Wi=new WeakMap,xA=new WeakMap,Au=new WeakMap,nu=new WeakMap,Qn=new WeakMap,sI=new WeakMap,dc=new WeakMap,cc=new WeakMap,yZ=new WeakMap,YZ=new WeakMap,lu=new WeakMap,su=new WeakMap,Oo=new WeakMap,VZ=new WeakMap,Yp=new WeakMap,Vp=new WeakMap,ee=new WeakSet,MG=function(){const g=c(this,sI).subarray(4,6),I=c(this,sI).subarray(16,18),[e,t,i,A]=c(this,Wi);return[(c(this,dc)+(g[0]-I[0])/2-e)/i,(c(this,cc)+(g[1]-I[1])/2-t)/A,(c(this,dc)+(I[0]-g[0])/2-e)/i,(c(this,cc)+(I[1]-g[1])/2-t)/A]},lv=function(){const[g,I,e,t]=c(this,Wi),[i,A,n,l]=H(this,ee,MG).call(this);return`M${(c(this,sI)[2]-g)/e} ${(c(this,sI)[3]-I)/t} L${(c(this,sI)[4]-g)/e} ${(c(this,sI)[5]-I)/t} L${i} ${A} L${n} ${l} L${(c(this,sI)[16]-g)/e} ${(c(this,sI)[17]-I)/t} L${(c(this,sI)[14]-g)/e} ${(c(this,sI)[15]-I)/t} Z`},sv=function(g){const I=c(this,xA);g.push(`L${I[4]} ${I[5]} Z`)},ov=function(g){const[I,e,t,i]=c(this,Wi),A=c(this,sI).subarray(4,6),n=c(this,sI).subarray(16,18),[l,o,a,d]=H(this,ee,MG).call(this);g.push(`L${(A[0]-I)/t} ${(A[1]-e)/i} L${l} ${o} L${a} ${d} L${(n[0]-I)/t} ${(n[1]-e)/i}`)},av=function(g){const I=c(this,sI),[e,t,i,A]=c(this,Wi),[n,l,o,a]=H(this,ee,MG).call(this),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(I[2]-e)/i,(I[3]-t)/A,NaN,NaN,NaN,NaN,(I[4]-e)/i,(I[5]-t)/A,NaN,NaN,NaN,NaN,n,l,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,(I[16]-e)/i,(I[17]-t)/A,NaN,NaN,NaN,NaN,(I[14]-e)/i,(I[15]-t)/A],0),this.newFreeDrawOutline(d,g,c(this,Wi),c(this,lu),c(this,Au),c(this,nu))},dv=function(g,I){const e=c(this,xA);return g.set([NaN,NaN,NaN,NaN,e[4],e[5]],I),I+=6},cv=function(g,I){const e=c(this,sI).subarray(4,6),t=c(this,sI).subarray(16,18),[i,A,n,l]=c(this,Wi),[o,a,d,m]=H(this,ee,MG).call(this);return g.set([NaN,NaN,NaN,NaN,(e[0]-i)/n,(e[1]-A)/l,NaN,NaN,NaN,NaN,o,a,NaN,NaN,NaN,NaN,d,m,NaN,NaN,NaN,NaN,(t[0]-i)/n,(t[1]-A)/l],I),I+=24},f(Cs,VZ,8),f(Cs,Yp,2),f(Cs,Vp,c(Cs,VZ)+c(Cs,Yp));let uW=Cs;class vS extends Ng{constructor(I,e,t,i,A,n){super();f(this,Np);f(this,ou);f(this,rc,new Float32Array(4));f(this,es);f(this,NZ);f(this,Bi);f(this,MZ);f(this,SC);V(this,SC,I),V(this,Bi,e),V(this,ou,t),V(this,MZ,i),V(this,es,A),V(this,NZ,n),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],H(this,Np,rv).call(this,n);const[l,o,a,d]=c(this,rc);for(let m=0,u=I.length;m<u;m+=2)I[m]=(I[m]-l)/a,I[m+1]=(I[m+1]-o)/d;for(let m=0,u=e.length;m<u;m+=2)e[m]=(e[m]-l)/a,e[m+1]=(e[m+1]-o)/d}toSVGPath(){const I=[`M${c(this,SC)[4]} ${c(this,SC)[5]}`];for(let e=6,t=c(this,SC).length;e<t;e+=6){if(isNaN(c(this,SC)[e])){I.push(`L${c(this,SC)[e+4]} ${c(this,SC)[e+5]}`);continue}I.push(`C${c(this,SC)[e]} ${c(this,SC)[e+1]} ${c(this,SC)[e+2]} ${c(this,SC)[e+3]} ${c(this,SC)[e+4]} ${c(this,SC)[e+5]}`)}return I.push("Z"),I.join(" ")}serialize([I,e,t,i],A){const n=t-I,l=i-e;let o,a;switch(A){case 0:o=Ng._rescale(c(this,SC),I,i,n,-l),a=Ng._rescale(c(this,Bi),I,i,n,-l);break;case 90:o=Ng._rescaleAndSwap(c(this,SC),I,e,n,l),a=Ng._rescaleAndSwap(c(this,Bi),I,e,n,l);break;case 180:o=Ng._rescale(c(this,SC),t,e,-n,l),a=Ng._rescale(c(this,Bi),t,e,-n,l);break;case 270:o=Ng._rescaleAndSwap(c(this,SC),t,i,-n,-l),a=Ng._rescaleAndSwap(c(this,Bi),t,i,-n,-l);break}return{outline:Array.from(o),points:[Array.from(a)]}}get box(){return c(this,rc)}newOutliner(I,e,t,i,A,n=0){return new uW(I,e,t,i,A,n)}getNewOutline(I,e){const[t,i,A,n]=c(this,rc),[l,o,a,d]=c(this,ou),m=A*a,u=n*d,h=t*a+l,Z=i*d+o,G=this.newOutliner({x:c(this,Bi)[0]*m+h,y:c(this,Bi)[1]*u+Z},c(this,ou),c(this,MZ),I,c(this,NZ),e??c(this,es));for(let w=2;w<c(this,Bi).length;w+=2)G.add({x:c(this,Bi)[w]*m+h,y:c(this,Bi)[w+1]*u+Z});return G.getOutlines()}}ou=new WeakMap,rc=new WeakMap,es=new WeakMap,NZ=new WeakMap,Bi=new WeakMap,MZ=new WeakMap,SC=new WeakMap,Np=new WeakSet,rv=function(I){const e=c(this,SC);let t=e[4],i=e[5];const A=[t,i,t,i];let n=t,l=i,o=t,a=i;const d=I?Math.max:Math.min,m=new Float32Array(4);for(let h=6,Z=e.length;h<Z;h+=6){const G=e[h+4],w=e[h+5];isNaN(e[h])?(Rg.pointBoundingBox(G,w,A),l>w?(n=G,l=w):l===w&&(n=d(n,G)),a<w?(o=G,a=w):a===w&&(o=d(o,G))):(m[0]=m[1]=1/0,m[2]=m[3]=-1/0,Rg.bezierBoundingBox(t,i,...e.slice(h,h+6),m),Rg.rectBoundingBox(m[0],m[1],m[2],m[3],A),l>m[1]?(n=m[0],l=m[1]):l===m[1]&&(n=d(n,m[0])),a<m[3]?(o=m[2],a=m[3]):a===m[3]&&(o=d(o,m[2]))),t=G,i=w}const u=c(this,rc);u[0]=A[0]-c(this,es),u[1]=A[1]-c(this,es),u[2]=A[2]-A[0]+2*c(this,es),u[3]=A[3]-A[1]+2*c(this,es),this.firstPoint=[n,l],this.lastPoint=[o,a]};class vV{constructor(g,I=0,e=0,t=!0){f(this,Bt);f(this,RZ);f(this,fZ);f(this,XZ);f(this,Qo,[]);f(this,OA,[]);const i=[1/0,1/0,-1/0,-1/0],n=10**-4;for(const{x:G,y:w,width:B,height:p}of g){const y=Math.floor((G-I)/n)*n,Y=Math.ceil((G+B+I)/n)*n,R=Math.floor((w-I)/n)*n,M=Math.ceil((w+p+I)/n)*n,K=[y,R,M,!0],J=[Y,R,M,!1];c(this,Qo).push(K,J),Rg.rectBoundingBox(y,R,Y,M,i)}const l=i[2]-i[0]+2*e,o=i[3]-i[1]+2*e,a=i[0]-e,d=i[1]-e;let m=t?-1/0:1/0,u=1/0;const h=c(this,Qo).at(t?-1:-2),Z=[h[0],h[2]];for(const G of c(this,Qo)){const[w,B,p,y]=G;!y&&t?B<u?(u=B,m=w):B===u&&(m=Math.max(m,w)):y&&!t&&(B<u?(u=B,m=w):B===u&&(m=Math.min(m,w))),G[0]=(w-a)/l,G[1]=(B-d)/o,G[2]=(p-d)/o}V(this,RZ,new Float32Array([a,d,l,o])),V(this,fZ,[m,u]),V(this,XZ,Z)}getOutlines(){c(this,Qo).sort((I,e)=>I[0]-e[0]||I[1]-e[1]||I[2]-e[2]);const g=[];for(const I of c(this,Qo))I[3]?(g.push(...H(this,Bt,D5).call(this,I)),H(this,Bt,uv).call(this,I)):(H(this,Bt,hv).call(this,I),g.push(...H(this,Bt,D5).call(this,I)));return H(this,Bt,mv).call(this,g)}}RZ=new WeakMap,fZ=new WeakMap,XZ=new WeakMap,Qo=new WeakMap,OA=new WeakMap,Bt=new WeakSet,mv=function(g){const I=[],e=new Set;for(const A of g){const[n,l,o]=A;I.push([n,l,A],[n,o,A])}I.sort((A,n)=>A[1]-n[1]||A[0]-n[0]);for(let A=0,n=I.length;A<n;A+=2){const l=I[A][2],o=I[A+1][2];l.push(o),o.push(l),e.add(l),e.add(o)}const t=[];let i;for(;e.size>0;){const A=e.values().next().value;let[n,l,o,a,d]=A;e.delete(A);let m=n,u=l;for(i=[n,o],t.push(i);;){let h;if(e.has(a))h=a;else if(e.has(d))h=d;else break;e.delete(h),[n,l,o,a,d]=h,m!==n&&(i.push(m,u,n,u===l?l:o),m=n),u=u===l?o:l}i.push(m,u)}return new mxg(t,c(this,RZ),c(this,fZ),c(this,XZ))},L2=function(g){const I=c(this,OA);let e=0,t=I.length-1;for(;e<=t;){const i=e+t>>1,A=I[i][0];if(A===g)return i;A<g?e=i+1:t=i-1}return t+1},uv=function([,g,I]){const e=H(this,Bt,L2).call(this,g);c(this,OA).splice(e,0,[g,I])},hv=function([,g,I]){const e=H(this,Bt,L2).call(this,g);for(let t=e;t<c(this,OA).length;t++){const[i,A]=c(this,OA)[t];if(i!==g)break;if(i===g&&A===I){c(this,OA).splice(t,1);return}}for(let t=e-1;t>=0;t--){const[i,A]=c(this,OA)[t];if(i!==g)break;if(i===g&&A===I){c(this,OA).splice(t,1);return}}},D5=function(g){const[I,e,t]=g,i=[[I,e,t]],A=H(this,Bt,L2).call(this,t);for(let n=0;n<A;n++){const[l,o]=c(this,OA)[n];for(let a=0,d=i.length;a<d;a++){const[,m,u]=i[a];if(!(o<=m||u<=l)){if(m>=l){if(u>o)i[a][1]=o;else{if(d===1)return[];i.splice(a,1),a--,d--}continue}i[a][2]=l,u>o&&i.push([I,o,u])}}}return i};class mxg extends Ng{constructor(I,e,t,i){super();f(this,HZ);f(this,au);V(this,au,I),V(this,HZ,e),this.firstPoint=t,this.lastPoint=i}toSVGPath(){const I=[];for(const e of c(this,au)){let[t,i]=e;I.push(`M${t} ${i}`);for(let A=2;A<e.length;A+=2){const n=e[A],l=e[A+1];n===t?(I.push(`V${l}`),i=l):l===i&&(I.push(`H${n}`),t=n)}I.push("Z")}return I.join(" ")}serialize([I,e,t,i],A){const n=[],l=t-I,o=i-e;for(const a of c(this,au)){const d=new Array(a.length);for(let m=0;m<a.length;m+=2)d[m]=I+a[m]*l,d[m+1]=i-a[m+1]*o;n.push(d)}return n}get box(){return c(this,HZ)}get classNamesForOutlining(){return["highlightOutline"]}}HZ=new WeakMap,au=new WeakMap;class jV extends uW{newFreeDrawOutline(g,I,e,t,i,A){return new uxg(g,I,e,t,i,A)}}class uxg extends vS{newOutliner(g,I,e,t,i,A=0){return new jV(g,I,e,t,i,A)}}const yI=class yI extends gC{constructor(I){super({...I,name:"highlightEditor"});f(this,CI);f(this,du,null);f(this,DZ,0);f(this,ts);f(this,mc,null);f(this,SZ,null);f(this,Pt,null);f(this,KZ,null);f(this,kZ,0);f(this,uc,null);f(this,pi,null);f(this,yi,null);f(this,De,!1);f(this,cu,null);f(this,ru,null);f(this,It,null);f(this,mu,"");f(this,oA);f(this,FZ,"");this.color=I.color||yI._defaultColor,V(this,oA,I.thickness||yI._defaultThickness),this.opacity=I.opacity||yI._defaultOpacity,V(this,ts,I.boxes||null),V(this,FZ,I.methodOfCreation||""),V(this,mu,I.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",I.highlightId>-1?(V(this,De,!0),H(this,CI,T2).call(this,I),H(this,CI,xc).call(this)):c(this,ts)&&(V(this,du,I.anchorNode),V(this,DZ,I.anchorOffset),V(this,KZ,I.focusNode),V(this,kZ,I.focusOffset),H(this,CI,S5).call(this),H(this,CI,xc).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}static get _keyboardManager(){const I=yI.prototype;return Qg(this,"_keyboardManager",new Oh([[["ArrowLeft","mac+ArrowLeft"],I._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],I._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],I._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],I._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:c(this,De)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:c(this,oA),methodOfCreation:c(this,FZ)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(I){return{numberOfColors:I.get("color").size}}static initialize(I,e){var t;gC.initialize(I,e),yI._defaultColor||(yI._defaultColor=((t=e.highlightColors)==null?void 0:t.values().next().value)||"#fff066")}static updateDefaultParams(I,e){switch(I){case uI.HIGHLIGHT_COLOR:yI._defaultColor=e;break;case uI.HIGHLIGHT_THICKNESS:yI._defaultThickness=e;break}}translateInPage(I,e){}get toolbarPosition(){return c(this,ru)}get commentButtonPosition(){return c(this,cu)}updateParams(I,e){switch(I){case uI.HIGHLIGHT_COLOR:H(this,CI,bv).call(this,e);break;case uI.HIGHLIGHT_THICKNESS:H(this,CI,Zv).call(this,e);break}}static get defaultPropertiesToUpdate(){return[[uI.HIGHLIGHT_COLOR,yI._defaultColor],[uI.HIGHLIGHT_THICKNESS,yI._defaultThickness]]}get propertiesToUpdate(){return[[uI.HIGHLIGHT_COLOR,this.color||yI._defaultColor],[uI.HIGHLIGHT_THICKNESS,c(this,oA)||yI._defaultThickness],[uI.HIGHLIGHT_FREE,c(this,De)]]}onUpdatedColor(){var I,e;(I=this.parent)==null||I.drawLayer.updateProperties(c(this,yi),{root:{fill:this.color,"fill-opacity":this.opacity}}),(e=c(this,SZ))==null||e.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",V(this,SZ,new dW({editor:this}))]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(H(this,CI,j2).call(this))}getBaseTranslation(){return[0,0]}getRect(I,e){return super.getRect(I,e,H(this,CI,j2).call(this))}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),I&&this.div.focus()}remove(){H(this,CI,K5).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,CI,xc).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?H(this,CI,K5).call(this):I&&(H(this,CI,xc).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),this.show(this._isVisible),e&&this.select()}rotate(I){var i,A,n;const{drawLayer:e}=this.parent;let t;c(this,De)?(I=(I-this.rotation+360)%360,t=H(i=yI,aA,Eu).call(i,c(this,pi).box,I)):t=H(A=yI,aA,Eu).call(A,[this.x,this.y,this.width,this.height],I),e.updateProperties(c(this,yi),{bbox:t,root:{"data-main-rotation":I}}),e.updateProperties(c(this,It),{bbox:H(n=yI,aA,Eu).call(n,c(this,Pt).box,I),root:{"data-main-rotation":I}})}render(){if(this.div)return this.div;const I=super.render();c(this,mu)&&(I.setAttribute("aria-label",c(this,mu)),I.setAttribute("role","mark")),c(this,De)?I.classList.add("free"):this.div.addEventListener("keydown",H(this,CI,wv).bind(this),{signal:this._uiManager._signal});const e=V(this,uc,document.createElement("div"));return I.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=c(this,mc),this.setDims(),eS(this,c(this,uc),["pointerover","pointerleave"]),this.enableEditing(),I}pointerover(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!0}})}pointerleave(){var I;this.isSelected||(I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!1}})}_moveCaret(I){switch(this.parent.unselect(this),I){case 0:case 2:H(this,CI,v2).call(this,!0);break;case 1:case 3:H(this,CI,v2).call(this,!1);break}}select(){var I;super.select(),c(this,It)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var I;super.unselect(),c(this,It)&&((I=this.parent)==null||I.drawLayer.updateProperties(c(this,It),{rootClass:{selected:!1}}),c(this,De)||H(this,CI,v2).call(this,!1))}get _mustFixPosition(){return!c(this,De)}show(I=this._isVisible){super.show(I),this.parent&&(this.parent.drawLayer.updateProperties(c(this,yi),{rootClass:{hidden:!I}}),this.parent.drawLayer.updateProperties(c(this,It),{rootClass:{hidden:!I}}))}static startHighlighting(I,e,{target:t,x:i,y:A}){const{x:n,y:l,width:o,height:a}=t.getBoundingClientRect(),d=new AbortController,m=I.combinedSignal(d),u=h=>{d.abort(),H(this,aA,yv).call(this,I,h)};window.addEventListener("blur",u,{signal:m}),window.addEventListener("pointerup",u,{signal:m}),window.addEventListener("pointerdown",BC,{capture:!0,passive:!1,signal:m}),window.addEventListener("contextmenu",Ji,{signal:m}),t.addEventListener("pointermove",H(this,aA,pv).bind(this,I),{signal:m}),this._freeHighlight=new jV({x:i,y:A},[n,l,o,a],I.scale,this._defaultThickness/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=I.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static async deserialize(I,e,t){var Z,G,w,B;let i=null;if(I instanceof LS){const{data:{quadPoints:p,rect:y,rotation:Y,id:R,color:M,opacity:K,popupRef:J,richText:X,contentsObj:D,creationDate:z,modificationDate:j},parent:{page:{pageNumber:q}}}=I;i=I={annotationType:Pg.HIGHLIGHT,color:Array.from(M),opacity:K,quadPoints:p,boxes:null,pageIndex:q-1,rect:y.slice(0),rotation:Y,annotationElementId:R,id:R,deleted:!1,popupRef:J,richText:X,comment:(D==null?void 0:D.str)||null,creationDate:z,modificationDate:j}}else if(I instanceof JV){const{data:{inkLists:p,rect:y,rotation:Y,id:R,color:M,borderStyle:{rawWidth:K},popupRef:J,richText:X,contentsObj:D,creationDate:z,modificationDate:j},parent:{page:{pageNumber:q}}}=I;i=I={annotationType:Pg.HIGHLIGHT,color:Array.from(M),thickness:K,inkLists:p,boxes:null,pageIndex:q-1,rect:y.slice(0),rotation:Y,annotationElementId:R,id:R,deleted:!1,popupRef:J,richText:X,comment:(D==null?void 0:D.str)||null,creationDate:z,modificationDate:j}}const{color:A,quadPoints:n,inkLists:l,opacity:o}=I,a=await super.deserialize(I,e,t);a.color=Rg.makeHexColor(...A),a.opacity=o||1,l&&V(a,oA,I.thickness),a._initialData=i,I.comment&&a.setCommentData(I);const[d,m]=a.pageDimensions,[u,h]=a.pageTranslation;if(n){const p=V(a,ts,[]);for(let y=0;y<n.length;y+=8)p.push({x:(n[y]-u)/d,y:1-(n[y+1]-h)/m,width:(n[y+2]-n[y])/d,height:(n[y+1]-n[y+5])/m});H(Z=a,CI,S5).call(Z),H(G=a,CI,xc).call(G),a.rotate(a.rotation)}else if(l){V(a,De,!0);const p=l[0],y={x:p[0]-u,y:m-(p[1]-h)},Y=new jV(y,[0,0,d,m],1,c(a,oA)/2,!0,.001);for(let K=0,J=p.length;K<J;K+=2)y.x=p[K]-u,y.y=m-(p[K+1]-h),Y.add(y);const{id:R,clipPathId:M}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:a.color,"fill-opacity":a._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:Y.toSVGPath()}},!0,!0);H(w=a,CI,T2).call(w,{highlightOutlines:Y.getOutlines(),highlightId:R,clipPathId:M}),H(B=a,CI,xc).call(B),a.rotate(a.parentRotation)}return a}serialize(I=!1){if(this.isEmpty()||I)return null;if(this.deleted)return this.serializeDeleted();const e=gC._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),t=super.serialize(I);return Object.assign(t,{color:e,opacity:this.opacity,thickness:c(this,oA),quadPoints:H(this,CI,Wv).call(this),outlines:H(this,CI,Bv).call(this,t.rect)}),this.addComment(t),this.annotationElementId&&!H(this,CI,Yv).call(this,t)?null:(t.id=this.annotationElementId,t)}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}};du=new WeakMap,DZ=new WeakMap,ts=new WeakMap,mc=new WeakMap,SZ=new WeakMap,Pt=new WeakMap,KZ=new WeakMap,kZ=new WeakMap,uc=new WeakMap,pi=new WeakMap,yi=new WeakMap,De=new WeakMap,cu=new WeakMap,ru=new WeakMap,It=new WeakMap,mu=new WeakMap,oA=new WeakMap,FZ=new WeakMap,CI=new WeakSet,S5=function(){const I=new vV(c(this,ts),.001);V(this,pi,I.getOutlines()),[this.x,this.y,this.width,this.height]=c(this,pi).box;const e=new vV(c(this,ts),.0025,.001,this._uiManager.direction==="ltr");V(this,Pt,e.getOutlines());const{firstPoint:t}=c(this,pi);V(this,cu,[(t[0]-this.x)/this.width,(t[1]-this.y)/this.height]);const{lastPoint:i}=c(this,Pt);V(this,ru,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},T2=function({highlightOutlines:I,highlightId:e,clipPathId:t}){var m,u;if(V(this,pi,I),V(this,Pt,I.getNewOutline(c(this,oA)/2+1.5,.0025)),e>=0)V(this,yi,e),V(this,mc,t),this.parent.drawLayer.finalizeDraw(e,{bbox:I.box,path:{d:I.toSVGPath()}}),V(this,It,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:c(this,Pt).box,path:{d:c(this,Pt).toSVGPath()}},!0));else if(this.parent){const h=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(c(this,yi),{bbox:H(m=yI,aA,Eu).call(m,c(this,pi).box,(h-this.rotation+360)%360),path:{d:I.toSVGPath()}}),this.parent.drawLayer.updateProperties(c(this,It),{bbox:H(u=yI,aA,Eu).call(u,c(this,Pt).box,h),path:{d:c(this,Pt).toSVGPath()}})}const[A,n,l,o]=I.box;switch(this.rotation){case 0:this.x=A,this.y=n,this.width=l,this.height=o;break;case 90:{const[h,Z]=this.parentDimensions;this.x=n,this.y=1-A,this.width=l*Z/h,this.height=o*h/Z;break}case 180:this.x=1-A,this.y=1-n,this.width=l,this.height=o;break;case 270:{const[h,Z]=this.parentDimensions;this.x=1-n,this.y=A,this.width=l*Z/h,this.height=o*h/Z;break}}const{firstPoint:a}=I;V(this,cu,[(a[0]-A)/l,(a[1]-n)/o]);const{lastPoint:d}=c(this,Pt);V(this,ru,[(d[0]-A)/l,(d[1]-n)/o])},bv=function(I){const e=(A,n)=>{this.color=A,this.opacity=n,this.onUpdatedColor()},t=this.color,i=this.opacity;this.addCommands({cmd:e.bind(this,I,yI._defaultOpacity),undo:e.bind(this,t,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(I)},!0)},Zv=function(I){const e=c(this,oA),t=i=>{V(this,oA,i),H(this,CI,Gv).call(this,i)};this.addCommands({cmd:t.bind(this,I),undo:t.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:uI.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:I},!0)},Gv=function(I){c(this,De)&&(H(this,CI,T2).call(this,{highlightOutlines:c(this,pi).getNewOutline(I/2)}),this.fixAndSetPosition(),this.setDims())},K5=function(){c(this,yi)===null||!this.parent||(this.parent.drawLayer.remove(c(this,yi)),V(this,yi,null),this.parent.drawLayer.remove(c(this,It)),V(this,It,null))},xc=function(I=this.parent){c(this,yi)===null&&({id:se(this,yi)._,clipPathId:se(this,mc)._}=I.drawLayer.draw({bbox:c(this,pi).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:c(this,De)},path:{d:c(this,pi).toSVGPath()}},!1,!0),V(this,It,I.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:c(this,De)},bbox:c(this,Pt).box,path:{d:c(this,Pt).toSVGPath()}},c(this,De))),c(this,uc)&&(c(this,uc).style.clipPath=c(this,mc)))},aA=new WeakSet,Eu=function([I,e,t,i],A){switch(A){case 90:return[1-e-i,I,i,t];case 180:return[1-I-t,1-e-i,t,i];case 270:return[e,1-I-t,i,t]}return[I,e,t,i]},wv=function(I){yI._keyboardManager.exec(this,I)},v2=function(I){if(!c(this,du))return;const e=window.getSelection();I?e.setPosition(c(this,du),c(this,DZ)):e.setPosition(c(this,KZ),c(this,kZ))},j2=function(){return c(this,De)?this.rotation:0},Wv=function(){if(c(this,De))return null;const[I,e]=this.pageDimensions,[t,i]=this.pageTranslation,A=c(this,ts),n=new Float32Array(A.length*8);let l=0;for(const{x:o,y:a,width:d,height:m}of A){const u=o*I+t,h=(1-a)*e+i;n[l]=n[l+4]=u,n[l+1]=n[l+3]=h,n[l+2]=n[l+6]=u+d*I,n[l+5]=n[l+7]=h-m*e,l+=8}return n},Bv=function(I){return c(this,pi).serialize(I,H(this,CI,j2).call(this))},pv=function(I,e){this._freeHighlight.add(e)&&I.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})},yv=function(I,e){this._freeHighlight.isEmpty()?I.drawLayer.remove(this._freeHighlightId):I.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},Yv=function(I){const{color:e}=this._initialData;return this.hasEditedComment||I.color.some((t,i)=>t!==e[i])},f(yI,aA),cg(yI,"_defaultColor",null),cg(yI,"_defaultOpacity",1),cg(yI,"_defaultThickness",12),cg(yI,"_type","highlight"),cg(yI,"_editorType",Pg.HIGHLIGHT),cg(yI,"_freeHighlightId",-1),cg(yI,"_freeHighlight",null),cg(yI,"_freeHighlightClipId","");let hW=yI;class jS{constructor(){f(this,hc,Object.create(null))}updateProperty(g,I){this[g]=I,this.updateSVGProperty(g,I)}updateProperties(g){if(g)for(const[I,e]of Object.entries(g))I.startsWith("_")||this.updateProperty(I,e)}updateSVGProperty(g,I){c(this,hc)[g]=I}toSVGProperties(){const g=c(this,hc);return V(this,hc,Object.create(null)),{root:g}}reset(){V(this,hc,Object.create(null))}updateAll(g=this){this.updateProperties(g)}clone(){OI("Not implemented")}}hc=new WeakMap;const cI=class cI extends gC{constructor(I){super(I);f(this,GI);f(this,Yi,null);f(this,uu);cg(this,"_colorPicker",null);cg(this,"_drawId",null);V(this,uu,I.mustBeCommitted||!1),this._addOutlines(I)}onUpdatedColor(){var I;(I=this._colorPicker)==null||I.update(this.color),super.onUpdatedColor()}_addOutlines(I){I.drawOutlines&&(H(this,GI,k5).call(this,I),H(this,GI,RG).call(this))}static _mergeSVGProperties(I,e){const t=new Set(Object.keys(I));for(const[i,A]of Object.entries(e))t.has(i)?Object.assign(I[i],A):I[i]=A;return I}static getDefaultDrawingOptions(I){OI("Not implemented")}static get typesMap(){OI("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(I,e){const t=this.typesMap.get(I);t&&this._defaultDrawingOptions.updateProperty(t,e),this._currentParent&&(c(cI,be).updateProperty(t,e),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(I,e){const t=this.constructor.typesMap.get(I);t&&this._updateProperty(I,t,e)}static get defaultPropertiesToUpdate(){const I=[],e=this._defaultDrawingOptions;for(const[t,i]of this.typesMap)I.push([t,e[i]]);return I}get propertiesToUpdate(){const I=[],{_drawingOptions:e}=this;for(const[t,i]of this.constructor.typesMap)I.push([t,e[i]]);return I}_updateProperty(I,e,t){const i=this._drawingOptions,A=i[e],n=l=>{var a;i.updateProperty(e,l);const o=c(this,Yi).updateProperty(e,l);o&&H(this,GI,fG).call(this,o),(a=this.parent)==null||a.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),I===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:n.bind(this,t),undo:n.bind(this,A),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:I,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathResizingSVGProperties(H(this,GI,x2).call(this)),{bbox:H(this,GI,Pu).call(this)}))}_onResized(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathResizedSVGProperties(H(this,GI,x2).call(this)),{bbox:H(this,GI,Pu).call(this)}))}_onTranslating(I,e){var t;(t=this.parent)==null||t.drawLayer.updateProperties(this._drawId,{bbox:H(this,GI,Pu).call(this)})}_onTranslated(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties(c(this,Yi).getPathTranslatedSVGProperties(H(this,GI,x2).call(this),this.parentDimensions),{bbox:H(this,GI,Pu).call(this)}))}_onStartDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var I;(I=this.parent)==null||I.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(I){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,c(this,uu)&&(V(this,uu,!1),this.commit(),this.parent.setSelected(this),I&&this.isOnScreen&&this.div.focus())}remove(){H(this,GI,z5).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(H(this,GI,RG).call(this),H(this,GI,fG).call(this,c(this,Yi).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(I){var t;let e=!1;this.parent&&!I?(this._uiManager.removeShouldRescale(this),H(this,GI,z5).call(this)):I&&(this._uiManager.addShouldRescale(this),H(this,GI,RG).call(this,I),e=!this.parent&&((t=this.div)==null?void 0:t.classList.contains("selectedEditor"))),super.setParent(I),e&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,cI._mergeSVGProperties({bbox:H(this,GI,Pu).call(this)},c(this,Yi).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&H(this,GI,fG).call(this,c(this,Yi).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let I,e;this._isCopy&&(I=this.x,e=this.y);const t=super.render();t.classList.add("draw");const i=document.createElement("div");return t.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(I,e),t}static createDrawerInstance(I,e,t,i,A){OI("Not implemented")}static startDrawing(I,e,t,i){var G;const{target:A,offsetX:n,offsetY:l,pointerId:o,pointerType:a}=i;if(Qe.isInitializedAndDifferentPointerType(a))return;const{viewport:{rotation:d}}=I,{width:m,height:u}=A.getBoundingClientRect(),h=V(cI,bc,new AbortController),Z=I.combinedSignal(h);if(Qe.setPointer(a,o),window.addEventListener("pointerup",w=>{Qe.isSamePointerIdOrRemove(w.pointerId)&&this._endDraw(w)},{signal:Z}),window.addEventListener("pointercancel",w=>{Qe.isSamePointerIdOrRemove(w.pointerId)&&this._currentParent.endDrawingSession()},{signal:Z}),window.addEventListener("pointerdown",w=>{Qe.isSamePointerType(w.pointerType)&&(Qe.initializeAndAddPointerId(w.pointerId),c(cI,be).isCancellable()&&(c(cI,be).removeLastElement(),c(cI,be).isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:Z}),window.addEventListener("contextmenu",Ji,{signal:Z}),A.addEventListener("pointermove",this._drawMove.bind(this),{signal:Z}),A.addEventListener("touchmove",w=>{Qe.isSameTimeStamp(w.timeStamp)&&BC(w)},{signal:Z}),I.toggleDrawing(),(G=e._editorUndoBar)==null||G.hide(),c(cI,be)){I.drawLayer.updateProperties(this._currentDrawId,c(cI,be).startNew(n,l,m,u,d));return}e.updateUIForDefaultProperties(this),V(cI,be,this.createDrawerInstance(n,l,m,u,d)),V(cI,Zc,this.getDefaultDrawingOptions()),this._currentParent=I,{id:this._currentDrawId}=I.drawLayer.draw(this._mergeSVGProperties(c(cI,Zc).toSVGProperties(),c(cI,be).defaultSVGProperties),!0,!1)}static _drawMove(I){if(Qe.isSameTimeStamp(I.timeStamp),!c(cI,be))return;const{offsetX:e,offsetY:t,pointerId:i}=I;if(Qe.isSamePointerId(i)){if(Qe.isUsingMultiplePointers()){this._endDraw(I);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,c(cI,be).add(e,t)),Qe.setTimeStamp(I.timeStamp),BC(I)}}static _cleanup(I){I&&(this._currentDrawId=-1,this._currentParent=null,V(cI,be,null),V(cI,Zc,null),Qe.clearPointerType(),Qe.clearTimeStamp()),c(cI,bc)&&(c(cI,bc).abort(),V(cI,bc,null),Qe.clearPointerIds())}static _endDraw(I){const e=this._currentParent;if(e){if(e.toggleDrawing(!0),this._cleanup(!1),(I==null?void 0:I.target)===e.div&&e.drawLayer.updateProperties(this._currentDrawId,c(cI,be).end(I.offsetX,I.offsetY)),this.supportMultipleDrawings){const t=c(cI,be),i=this._currentDrawId,A=t.getLastElement();e.addCommands({cmd:()=>{e.drawLayer.updateProperties(i,t.setLastElement(A))},undo:()=>{e.drawLayer.updateProperties(i,t.removeLastElement())},mustExec:!1,type:uI.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(I){const e=this._currentParent;if(!e)return null;if(e.toggleDrawing(!0),e.cleanUndoStack(uI.DRAW_STEP),!c(cI,be).isEmpty()){const{pageDimensions:[t,i],scale:A}=e,n=e.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:c(cI,be).getOutlines(t*A,i*A,A,this._INNER_MARGIN),drawingOptions:c(cI,Zc),mustBeCommitted:!I});return this._cleanup(!0),n}return e.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(I){}static deserializeDraw(I,e,t,i,A,n){OI("Not implemented")}static async deserialize(I,e,t){var d,m;const{rawDims:{pageWidth:i,pageHeight:A,pageX:n,pageY:l}}=e.viewport,o=this.deserializeDraw(n,l,i,A,this._INNER_MARGIN,I),a=await super.deserialize(I,e,t);return a.createDrawingOptions(I),H(d=a,GI,k5).call(d,{drawOutlines:o}),H(m=a,GI,RG).call(m),a.onScaleChanging(),a.rotate(),a}serializeDraw(I){const[e,t]=this.pageTranslation,[i,A]=this.pageDimensions;return c(this,Yi).serialize([e,t,i,A],I)}renderAnnotationElement(I){return I.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}};Yi=new WeakMap,uu=new WeakMap,be=new WeakMap,bc=new WeakMap,Zc=new WeakMap,GI=new WeakSet,k5=function({drawOutlines:I,drawId:e,drawingOptions:t}){V(this,Yi,I),this._drawingOptions||(this._drawingOptions=t),this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),e>=0?(this._drawId=e,this.parent.drawLayer.finalizeDraw(e,I.defaultProperties)):this._drawId=H(this,GI,F5).call(this,I,this.parent),H(this,GI,fG).call(this,I.box)},F5=function(I,e){const{id:t}=e.drawLayer.draw(cI._mergeSVGProperties(this._drawingOptions.toSVGProperties(),I.defaultSVGProperties),!1,!1);return t},z5=function(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())},RG=function(I=this.parent){if(!(this._drawId!==null&&this.parent===I)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,I.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=H(this,GI,F5).call(this,c(this,Yi),I)}},Vv=function([I,e,t,i]){const{parentDimensions:[A,n],rotation:l}=this;switch(l){case 90:return[e,1-I,t*(n/A),i*(A/n)];case 180:return[1-I,1-e,t,i];case 270:return[1-e,I,t*(n/A),i*(A/n)];default:return[I,e,t,i]}},x2=function(){const{x:I,y:e,width:t,height:i,parentDimensions:[A,n],rotation:l}=this;switch(l){case 90:return[1-e,I,t*(A/n),i*(n/A)];case 180:return[1-I,1-e,t,i];case 270:return[e,1-I,t*(A/n),i*(n/A)];default:return[I,e,t,i]}},fG=function(I){[this.x,this.y,this.width,this.height]=H(this,GI,Vv).call(this,I),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()},Pu=function(){const{x:I,y:e,width:t,height:i,rotation:A,parentRotation:n,parentDimensions:[l,o]}=this;switch((A*4+n)/90){case 1:return[1-e-i,I,i,t];case 2:return[1-I-t,1-e-i,t,i];case 3:return[e,1-I-t,i,t];case 4:return[I,e-t*(l/o),i*(o/l),t*(l/o)];case 5:return[1-e,I,t*(l/o),i*(o/l)];case 6:return[1-I-i*(o/l),1-e,i*(o/l),t*(l/o)];case 7:return[e-t*(l/o),1-I-i*(o/l),t*(l/o),i*(o/l)];case 8:return[I-t,e-i,t,i];case 9:return[1-e,I-t,i,t];case 10:return[1-I,1-e,t,i];case 11:return[e-i,1-I,i,t];case 12:return[I-i*(o/l),e,i*(o/l),t*(l/o)];case 13:return[1-e-t*(l/o),I-i*(o/l),t*(l/o),i*(o/l)];case 14:return[1-I,1-e-t*(l/o),i*(o/l),t*(l/o)];case 15:return[e,1-I,t*(l/o),i*(o/l)];default:return[I,e,t,i]}},cg(cI,"_currentDrawId",-1),cg(cI,"_currentParent",null),f(cI,be,null),f(cI,bc,null),f(cI,Zc,null),cg(cI,"_INNER_MARGIN",3);let bW=cI;class hxg{constructor(g,I,e,t,i,A){f(this,bu);f(this,Un,new Float64Array(6));f(this,Ze);f(this,Ge);f(this,Gc);f(this,hu);f(this,pt);f(this,Se,"");f(this,dA,0);f(this,wc,new g0);f(this,Wc);f(this,Bc);V(this,Wc,e),V(this,Bc,t),V(this,Gc,i),V(this,hu,A),[g,I]=H(this,bu,O2).call(this,g,I);const n=V(this,Ze,[NaN,NaN,NaN,NaN,g,I]);V(this,pt,[g,I]),V(this,Ge,[{line:n,points:c(this,pt)}]),c(this,Un).set(n,0)}updateProperty(g,I){g==="stroke-width"&&V(this,hu,I)}isEmpty(){return!c(this,Ge)||c(this,Ge).length===0}isCancellable(){return c(this,pt).length<=10}add(g,I){[g,I]=H(this,bu,O2).call(this,g,I);const[e,t,i,A]=c(this,Un).subarray(2,6),n=g-i,l=I-A;return Math.hypot(c(this,Wc)*n,c(this,Bc)*l)<=2?null:(c(this,pt).push(g,I),isNaN(e)?(c(this,Un).set([i,A,g,I],2),c(this,Ze).push(NaN,NaN,NaN,NaN,g,I),{path:{d:this.toSVGPath()}}):(isNaN(c(this,Un)[0])&&c(this,Ze).splice(6,6),c(this,Un).set([e,t,i,A,g,I],0),c(this,Ze).push(...Ng.createBezierPoints(e,t,i,A,g,I)),{path:{d:this.toSVGPath()}}))}end(g,I){const e=this.add(g,I);return e||(c(this,pt).length===2?{path:{d:this.toSVGPath()}}:null)}startNew(g,I,e,t,i){V(this,Wc,e),V(this,Bc,t),V(this,Gc,i),[g,I]=H(this,bu,O2).call(this,g,I);const A=V(this,Ze,[NaN,NaN,NaN,NaN,g,I]);V(this,pt,[g,I]);const n=c(this,Ge).at(-1);return n&&(n.line=new Float32Array(n.line),n.points=new Float32Array(n.points)),c(this,Ge).push({line:A,points:c(this,pt)}),c(this,Un).set(A,0),V(this,dA,0),this.toSVGPath(),null}getLastElement(){return c(this,Ge).at(-1)}setLastElement(g){return c(this,Ge)?(c(this,Ge).push(g),V(this,Ze,g.line),V(this,pt,g.points),V(this,dA,0),{path:{d:this.toSVGPath()}}):c(this,wc).setLastElement(g)}removeLastElement(){if(!c(this,Ge))return c(this,wc).removeLastElement();c(this,Ge).pop(),V(this,Se,"");for(let g=0,I=c(this,Ge).length;g<I;g++){const{line:e,points:t}=c(this,Ge)[g];V(this,Ze,e),V(this,pt,t),V(this,dA,0),this.toSVGPath()}return{path:{d:c(this,Se)}}}toSVGPath(){const g=Ng.svgRound(c(this,Ze)[4]),I=Ng.svgRound(c(this,Ze)[5]);if(c(this,pt).length===2)return V(this,Se,`${c(this,Se)} M ${g} ${I} Z`),c(this,Se);if(c(this,pt).length<=6){const t=c(this,Se).lastIndexOf("M");V(this,Se,`${c(this,Se).slice(0,t)} M ${g} ${I}`),V(this,dA,6)}if(c(this,pt).length===4){const t=Ng.svgRound(c(this,Ze)[10]),i=Ng.svgRound(c(this,Ze)[11]);return V(this,Se,`${c(this,Se)} L ${t} ${i}`),V(this,dA,12),c(this,Se)}const e=[];c(this,dA)===0&&(e.push(`M ${g} ${I}`),V(this,dA,6));for(let t=c(this,dA),i=c(this,Ze).length;t<i;t+=6){const[A,n,l,o,a,d]=c(this,Ze).slice(t,t+6).map(Ng.svgRound);e.push(`C${A} ${n} ${l} ${o} ${a} ${d}`)}return V(this,Se,c(this,Se)+e.join(" ")),V(this,dA,c(this,Ze).length),c(this,Se)}getOutlines(g,I,e,t){const i=c(this,Ge).at(-1);return i.line=new Float32Array(i.line),i.points=new Float32Array(i.points),c(this,wc).build(c(this,Ge),g,I,e,c(this,Gc),c(this,hu),t),V(this,Un,null),V(this,Ze,null),V(this,Ge,null),V(this,Se,null),c(this,wc)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}Un=new WeakMap,Ze=new WeakMap,Ge=new WeakMap,Gc=new WeakMap,hu=new WeakMap,pt=new WeakMap,Se=new WeakMap,dA=new WeakMap,wc=new WeakMap,Wc=new WeakMap,Bc=new WeakMap,bu=new WeakSet,O2=function(g,I){return Ng._normalizePoint(g,I,c(this,Wc),c(this,Bc),c(this,Gc))};class g0 extends Ng{constructor(){super(...arguments);f(this,Ke);f(this,yt);f(this,zZ,0);f(this,JZ);f(this,Vi);f(this,En);f(this,Pn);f(this,Zu);f(this,Gu);f(this,pc)}build(I,e,t,i,A,n,l){V(this,En,e),V(this,Pn,t),V(this,Zu,i),V(this,Gu,A),V(this,pc,n),V(this,JZ,l??0),V(this,Vi,I),H(this,Ke,Mv).call(this)}get thickness(){return c(this,pc)}setLastElement(I){return c(this,Vi).push(I),{path:{d:this.toSVGPath()}}}removeLastElement(){return c(this,Vi).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const I=[];for(const{line:e}of c(this,Vi)){if(I.push(`M${Ng.svgRound(e[4])} ${Ng.svgRound(e[5])}`),e.length===6){I.push("Z");continue}if(e.length===12&&isNaN(e[6])){I.push(`L${Ng.svgRound(e[10])} ${Ng.svgRound(e[11])}`);continue}for(let t=6,i=e.length;t<i;t+=6){const[A,n,l,o,a,d]=e.subarray(t,t+6).map(Ng.svgRound);I.push(`C${A} ${n} ${l} ${o} ${a} ${d}`)}}return I.join("")}serialize([I,e,t,i],A){const n=[],l=[],[o,a,d,m]=H(this,Ke,Nv).call(this);let u,h,Z,G,w,B,p,y,Y;switch(c(this,Gu)){case 0:Y=Ng._rescale,u=I,h=e+i,Z=t,G=-i,w=I+o*t,B=e+(1-a-m)*i,p=I+(o+d)*t,y=e+(1-a)*i;break;case 90:Y=Ng._rescaleAndSwap,u=I,h=e,Z=t,G=i,w=I+a*t,B=e+o*i,p=I+(a+m)*t,y=e+(o+d)*i;break;case 180:Y=Ng._rescale,u=I+t,h=e,Z=-t,G=i,w=I+(1-o-d)*t,B=e+a*i,p=I+(1-o)*t,y=e+(a+m)*i;break;case 270:Y=Ng._rescaleAndSwap,u=I+t,h=e+i,Z=-t,G=-i,w=I+(1-a-m)*t,B=e+(1-o-d)*i,p=I+(1-a)*t,y=e+(1-o)*i;break}for(const{line:R,points:M}of c(this,Vi))n.push(Y(R,u,h,Z,G,A?new Array(R.length):null)),l.push(Y(M,u,h,Z,G,A?new Array(M.length):null));return{lines:n,points:l,rect:[w,B,p,y]}}static deserialize(I,e,t,i,A,{paths:{lines:n,points:l},rotation:o,thickness:a}){const d=[];let m,u,h,Z,G;switch(o){case 0:G=Ng._rescale,m=-I/t,u=e/i+1,h=1/t,Z=-1/i;break;case 90:G=Ng._rescaleAndSwap,m=-e/i,u=-I/t,h=1/i,Z=1/t;break;case 180:G=Ng._rescale,m=I/t+1,u=-e/i,h=-1/t,Z=1/i;break;case 270:G=Ng._rescaleAndSwap,m=e/i+1,u=I/t+1,h=-1/i,Z=-1/t;break}if(!n){n=[];for(const B of l){const p=B.length;if(p===2){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1]]));continue}if(p===4){n.push(new Float32Array([NaN,NaN,NaN,NaN,B[0],B[1],NaN,NaN,NaN,NaN,B[2],B[3]]));continue}const y=new Float32Array(3*(p-2));n.push(y);let[Y,R,M,K]=B.subarray(0,4);y.set([NaN,NaN,NaN,NaN,Y,R],0);for(let J=4;J<p;J+=2){const X=B[J],D=B[J+1];y.set(Ng.createBezierPoints(Y,R,M,K,X,D),(J-2)*3),[Y,R,M,K]=[M,K,X,D]}}}for(let B=0,p=n.length;B<p;B++)d.push({line:G(n[B].map(y=>y??NaN),m,u,h,Z),points:G(l[B].map(y=>y??NaN),m,u,h,Z)});const w=new this.prototype.constructor;return w.build(d,t,i,1,o,a,A),w}get box(){return c(this,yt)}updateProperty(I,e){return I==="stroke-width"?H(this,Ke,Rv).call(this,e):null}updateParentDimensions([I,e],t){const[i,A]=H(this,Ke,Bs).call(this);V(this,En,I),V(this,Pn,e),V(this,Zu,t);const[n,l]=H(this,Ke,Bs).call(this),o=n-i,a=l-A,d=c(this,yt);return d[0]-=o,d[1]-=a,d[2]+=2*o,d[3]+=2*a,d}updateRotation(I){return V(this,zZ,I),{path:{transform:this.rotationTransform}}}get viewBox(){return c(this,yt).map(Ng.svgRound).join(" ")}get defaultProperties(){const[I,e]=c(this,yt);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`}}}get rotationTransform(){const[,,I,e]=c(this,yt);let t=0,i=0,A=0,n=0,l=0,o=0;switch(c(this,zZ)){case 90:i=e/I,A=-I/e,l=I;break;case 180:t=-1,n=-1,l=I,o=e;break;case 270:i=-e/I,A=I/e,o=e;break;default:return""}return`matrix(${t} ${i} ${A} ${n} ${Ng.svgRound(l)} ${Ng.svgRound(o)})`}getPathResizingSVGProperties([I,e,t,i]){const[A,n]=H(this,Ke,Bs).call(this),[l,o,a,d]=c(this,yt);if(Math.abs(a-A)<=Ng.PRECISION||Math.abs(d-n)<=Ng.PRECISION){const G=I+t/2-(l+a/2),w=e+i/2-(o+d/2);return{path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:`${this.rotationTransform} translate(${G} ${w})`}}}const m=(t-2*A)/(a-2*A),u=(i-2*n)/(d-2*n),h=a/t,Z=d/i;return{path:{"transform-origin":`${Ng.svgRound(l)} ${Ng.svgRound(o)}`,transform:`${this.rotationTransform} scale(${h} ${Z}) translate(${Ng.svgRound(A)} ${Ng.svgRound(n)}) scale(${m} ${u}) translate(${Ng.svgRound(-A)} ${Ng.svgRound(-n)})`}}}getPathResizedSVGProperties([I,e,t,i]){const[A,n]=H(this,Ke,Bs).call(this),l=c(this,yt),[o,a,d,m]=l;if(l[0]=I,l[1]=e,l[2]=t,l[3]=i,Math.abs(d-A)<=Ng.PRECISION||Math.abs(m-n)<=Ng.PRECISION){const w=I+t/2-(o+d/2),B=e+i/2-(a+m/2);for(const{line:p,points:y}of c(this,Vi))Ng._translate(p,w,B,p),Ng._translate(y,w,B,y);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const u=(t-2*A)/(d-2*A),h=(i-2*n)/(m-2*n),Z=-u*(o+A)+I+A,G=-h*(a+n)+e+n;if(u!==1||h!==1||Z!==0||G!==0)for(const{line:w,points:B}of c(this,Vi))Ng._rescale(w,Z,G,u,h,w),Ng._rescale(B,Z,G,u,h,B);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([I,e],t){const[i,A]=t,n=c(this,yt),l=I-n[0],o=e-n[1];if(c(this,En)===i&&c(this,Pn)===A)for(const{line:a,points:d}of c(this,Vi))Ng._translate(a,l,o,a),Ng._translate(d,l,o,d);else{const a=c(this,En)/i,d=c(this,Pn)/A;V(this,En,i),V(this,Pn,A);for(const{line:m,points:u}of c(this,Vi))Ng._rescale(m,l,o,a,d,m),Ng._rescale(u,l,o,a,d,u);n[2]*=a,n[3]*=d}return n[0]=I,n[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Ng.svgRound(I)} ${Ng.svgRound(e)}`}}}get defaultSVGProperties(){const I=c(this,yt);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Ng.svgRound(I[0])} ${Ng.svgRound(I[1])}`,transform:this.rotationTransform||null},bbox:I}}}yt=new WeakMap,zZ=new WeakMap,JZ=new WeakMap,Vi=new WeakMap,En=new WeakMap,Pn=new WeakMap,Zu=new WeakMap,Gu=new WeakMap,pc=new WeakMap,Ke=new WeakSet,Bs=function(I=c(this,pc)){const e=c(this,JZ)+I/2*c(this,Zu);return c(this,Gu)%180===0?[e/c(this,En),e/c(this,Pn)]:[e/c(this,Pn),e/c(this,En)]},Nv=function(){const[I,e,t,i]=c(this,yt),[A,n]=H(this,Ke,Bs).call(this,0);return[I+A,e+n,t-2*A,i-2*n]},Mv=function(){const I=V(this,yt,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:i}of c(this,Vi)){if(i.length<=12){for(let l=4,o=i.length;l<o;l+=6)Rg.pointBoundingBox(i[l],i[l+1],I);continue}let A=i[4],n=i[5];for(let l=6,o=i.length;l<o;l+=6){const[a,d,m,u,h,Z]=i.subarray(l,l+6);Rg.bezierBoundingBox(A,n,a,d,m,u,h,Z,I),A=h,n=Z}}const[e,t]=H(this,Ke,Bs).call(this);I[0]=ut(I[0]-e,0,1),I[1]=ut(I[1]-t,0,1),I[2]=ut(I[2]+e,0,1),I[3]=ut(I[3]+t,0,1),I[2]-=I[0],I[3]-=I[1]},Rv=function(I){const[e,t]=H(this,Ke,Bs).call(this);V(this,pc,I);const[i,A]=H(this,Ke,Bs).call(this),[n,l]=[i-e,A-t],o=c(this,yt);return o[0]-=n,o[1]-=l,o[2]+=2*n,o[3]+=2*l,o};class ZW extends jS{constructor(g){super(),this._viewParameters=g,super.updateProperties({fill:"none",stroke:gC._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(g,I){g==="stroke-width"&&(I??(I=this["stroke-width"]),I*=this._viewParameters.realScale),super.updateSVGProperty(g,I)}clone(){const g=new ZW(this._viewParameters);return g.updateAll(this),g}}const wu=class wu extends bW{constructor(I){super({...I,name:"inkEditor"});f(this,Mp);this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(I,e){gC.initialize(I,e),this._defaultDrawingOptions=new ZW(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return Qg(this,"typesMap",new Map([[uI.INK_THICKNESS,"stroke-width"],[uI.INK_COLOR,"stroke"],[uI.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(I,e,t,i,A){return new hxg(I,e,t,i,A,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(I,e,t,i,A,n){return g0.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){let i=null;if(I instanceof JV){const{data:{inkLists:n,rect:l,rotation:o,id:a,color:d,opacity:m,borderStyle:{rawWidth:u},popupRef:h,richText:Z,contentsObj:G,creationDate:w,modificationDate:B},parent:{page:{pageNumber:p}}}=I;i=I={annotationType:Pg.INK,color:Array.from(d),thickness:u,opacity:m,paths:{points:n},boxes:null,pageIndex:p-1,rect:l.slice(0),rotation:o,annotationElementId:a,id:a,deleted:!1,popupRef:h,richText:Z,comment:(G==null?void 0:G.str)||null,creationDate:w,modificationDate:B}}const A=await super.deserialize(I,e,t);return A._initialData=i,I.comment&&A.setCommentData(I),A}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new cW(this)),[["colorPicker",this._colorPicker]]}get colorType(){return uI.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:I,_drawingOptions:e,parent:t}=this;e.updateSVGProperty("stroke-width"),t.drawLayer.updateProperties(I,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const I=this._currentParent;I&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),I.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:I,thickness:e,opacity:t}){this._drawingOptions=wu.getDefaultDrawingOptions({stroke:Rg.makeHexColor(...I),"stroke-width":e,"stroke-opacity":t})}serialize(I=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{stroke:i,"stroke-opacity":A,"stroke-width":n}}=this,l=Object.assign(super.serialize(I),{color:gC._colorManager.convert(i),opacity:A,thickness:n,paths:{lines:e,points:t}});return this.addComment(l),I?(l.isCopy=!0,l):this.annotationElementId&&!H(this,Mp,fv).call(this,l)?null:(l.id=this.annotationElementId,l)}renderAnnotationElement(I){if(this.deleted)return I.hide(),null;const{points:e,rect:t}=this.serializeDraw(!1);return I.updateEdited({rect:t,thickness:this._drawingOptions["stroke-width"],points:e,popup:this.comment}),null}};Mp=new WeakSet,fv=function(I){const{color:e,thickness:t,opacity:i,pageIndex:A}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||I.color.some((n,l)=>n!==e[l])||I.thickness!==t||I.opacity!==i||I.pageIndex!==A},cg(wu,"_type","ink"),cg(wu,"_editorType",Pg.INK),cg(wu,"_defaultDrawingOptions",null);let xV=wu;class OV extends g0{toSVGPath(){let g=super.toSVGPath();return g.endsWith("Z")||(g+="Z"),g}}const GW=8,I0=3;class al{static extractContoursFromText(g,{fontFamily:I,fontStyle:e,fontWeight:t},i,A,n,l){let o=new OffscreenCanvas(1,1),a=o.getContext("2d",{alpha:!1});const d=200,m=a.font=`${e} ${t} ${d}px ${I}`,{actualBoundingBoxLeft:u,actualBoundingBoxRight:h,actualBoundingBoxAscent:Z,actualBoundingBoxDescent:G,fontBoundingBoxAscent:w,fontBoundingBoxDescent:B,width:p}=a.measureText(g),y=1.5,Y=Math.ceil(Math.max(Math.abs(u)+Math.abs(h)||0,p)*y),R=Math.ceil(Math.max(Math.abs(Z)+Math.abs(G)||d,Math.abs(w)+Math.abs(B)||d)*y);o=new OffscreenCanvas(Y,R),a=o.getContext("2d",{alpha:!0,willReadFrequently:!0}),a.font=m,a.filter="grayscale(1)",a.fillStyle="white",a.fillRect(0,0,Y,R),a.fillStyle="black",a.fillText(g,Y*(y-1)/2,R*(3-y)/2);const M=H(this,VI,T5).call(this,a.getImageData(0,0,Y,R).data),K=H(this,VI,Kv).call(this,M),J=H(this,VI,v5).call(this,K),X=H(this,VI,L5).call(this,M,Y,R,J);return this.processDrawnLines({lines:{curves:X,width:Y,height:R},pageWidth:i,pageHeight:A,rotation:n,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(g,I,e,t,i){const[A,n,l]=H(this,VI,kv).call(this,g),[o,a]=H(this,VI,Sv).call(this,A,n,l,Math.hypot(n,l)*c(this,yc).sigmaSFactor,c(this,yc).sigmaR,c(this,yc).kernelSize),d=H(this,VI,v5).call(this,a),m=H(this,VI,L5).call(this,o,n,l,d);return this.processDrawnLines({lines:{curves:m,width:n,height:l},pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:g,pageWidth:I,pageHeight:e,rotation:t,innerMargin:i,mustSmooth:A,areContours:n}){t%180!==0&&([I,e]=[e,I]);const{curves:l,width:o,height:a}=g,d=g.thickness??0,m=[],u=Math.min(I/o,e/a),h=u/I,Z=u/e,G=[];for(const{points:B}of l){const p=A?H(this,VI,Dv).call(this,B):B;if(!p)continue;G.push(p);const y=p.length,Y=new Float32Array(y),R=new Float32Array(3*(y===2?2:y-2));if(m.push({line:R,points:Y}),y===2){Y[0]=p[0]*h,Y[1]=p[1]*Z,R.set([NaN,NaN,NaN,NaN,Y[0],Y[1]],0);continue}let[M,K,J,X]=p;M*=h,K*=Z,J*=h,X*=Z,Y.set([M,K,J,X],0),R.set([NaN,NaN,NaN,NaN,M,K],0);for(let D=4;D<y;D+=2){const z=Y[D]=p[D]*h,j=Y[D+1]=p[D+1]*Z;R.set(Ng.createBezierPoints(M,K,J,X,z,j),(D-2)*3),[M,K,J,X]=[J,X,z,j]}}if(m.length===0)return null;const w=n?new OV:new g0;return w.build(m,I,e,1,t,n?0:d,i),{outline:w,newCurves:G,areContours:n,thickness:d,width:o,height:a}}static async compressSignature({outlines:g,areContours:I,thickness:e,width:t,height:i}){let A=1/0,n=-1/0,l=0;for(const p of g){l+=p.length;for(let y=2,Y=p.length;y<Y;y++){const R=p[y]-p[y-2];A=Math.min(A,R),n=Math.max(n,R)}}let o;A>=-128&&n<=127?o=Int8Array:A>=-32768&&n<=32767?o=Int16Array:o=Int32Array;const a=g.length,d=GW+I0*a,m=new Uint32Array(d);let u=0;m[u++]=d*Uint32Array.BYTES_PER_ELEMENT+(l-2*a)*o.BYTES_PER_ELEMENT,m[u++]=0,m[u++]=t,m[u++]=i,m[u++]=I?0:1,m[u++]=Math.max(0,Math.floor(e??0)),m[u++]=a,m[u++]=o.BYTES_PER_ELEMENT;for(const p of g)m[u++]=p.length-2,m[u++]=p[0],m[u++]=p[1];const h=new CompressionStream("deflate-raw"),Z=h.writable.getWriter();await Z.ready,Z.write(m);const G=o.prototype.constructor;for(const p of g){const y=new G(p.length-2);for(let Y=2,R=p.length;Y<R;Y++)y[Y-2]=p[Y]-p[Y-2];Z.write(y)}Z.close();const w=await new Response(h.readable).arrayBuffer(),B=new Uint8Array(w);return UD(B)}static async decompressSignature(g){try{const I=Hvg(g),{readable:e,writable:t}=new DecompressionStream("deflate-raw"),i=t.getWriter();await i.ready,i.write(I).then(async()=>{await i.ready,await i.close()}).catch(()=>{});let A=null,n=0;for await(const p of e)A||(A=new Uint8Array(new Uint32Array(p.buffer,0,4)[0])),A.set(p,n),n+=p.length;const l=new Uint32Array(A.buffer,0,A.length>>2),o=l[1];if(o!==0)throw new Error(`Invalid version: ${o}`);const a=l[2],d=l[3],m=l[4]===0,u=l[5],h=l[6],Z=l[7],G=[],w=(GW+I0*h)*Uint32Array.BYTES_PER_ELEMENT;let B;switch(Z){case Int8Array.BYTES_PER_ELEMENT:B=new Int8Array(A.buffer,w);break;case Int16Array.BYTES_PER_ELEMENT:B=new Int16Array(A.buffer,w);break;case Int32Array.BYTES_PER_ELEMENT:B=new Int32Array(A.buffer,w);break}n=0;for(let p=0;p<h;p++){const y=l[I0*p+GW],Y=new Float32Array(y+2);G.push(Y);for(let R=0;R<I0-1;R++)Y[R]=l[I0*p+GW+R+1];for(let R=0;R<y;R++)Y[R+2]=Y[R]+B[n++]}return{areContours:m,thickness:u,outlines:G,width:a,height:d}}catch(I){return Og(`decompressSignature: ${I}`),null}}}yc=new WeakMap,VI=new WeakSet,J5=function(g,I,e,t){return e-=g,t-=I,e===0?t>0?0:4:e===1?t+6:2-t},QA=new WeakMap,Xv=function(g,I,e,t,i,A,n){const l=H(this,VI,J5).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(-o+l-n+16)%8,d=c(this,QA)[2*a],m=c(this,QA)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},Hv=function(g,I,e,t,i,A,n){const l=H(this,VI,J5).call(this,e,t,i,A);for(let o=0;o<8;o++){const a=(o+l+n+16)%8,d=c(this,QA)[2*a],m=c(this,QA)[2*a+1];if(g[(e+d)*I+(t+m)]!==0)return a}return-1},L5=function(g,I,e,t){const i=g.length,A=new Int32Array(i);for(let a=0;a<i;a++)A[a]=g[a]<=t?1:0;for(let a=1;a<e-1;a++)A[a*I]=A[a*I+I-1]=0;for(let a=0;a<I;a++)A[a]=A[I*e-1-a]=0;let n=1,l;const o=[];for(let a=1;a<e-1;a++){l=1;for(let d=1;d<I-1;d++){const m=a*I+d,u=A[m];if(u===0)continue;let h=a,Z=d;if(u===1&&A[m-1]===0)n+=1,Z-=1;else if(u>=1&&A[m+1]===0)n+=1,Z+=1,u>1&&(l=u);else{u!==1&&(l=Math.abs(u));continue}const G=[d,a],w=Z===d+1,B={isHole:w,points:G,id:n,parent:0};o.push(B);let p;for(const D of o)if(D.id===l){p=D;break}p?p.isHole?B.parent=w?p.parent:l:B.parent=w?l:p.parent:B.parent=w?l:0;const y=H(this,VI,Xv).call(this,A,I,a,d,h,Z,0);if(y===-1){A[m]=-n,A[m]!==1&&(l=Math.abs(A[m]));continue}let Y=c(this,QA)[2*y],R=c(this,QA)[2*y+1];const M=a+Y,K=d+R;h=M,Z=K;let J=a,X=d;for(;;){const D=H(this,VI,Hv).call(this,A,I,J,X,h,Z,1);Y=c(this,QA)[2*D],R=c(this,QA)[2*D+1];const z=J+Y,j=X+R;G.push(j,z);const q=J*I+X;if(A[q+1]===0?A[q]=-n:A[q]===1&&(A[q]=n),z===a&&j===d&&J===M&&X===K){A[m]!==1&&(l=Math.abs(A[m]));break}else h=J,Z=X,J=z,X=j}}}return o},Q2=function(g,I,e,t){if(e-I<=4){for(let M=I;M<e-2;M+=2)t.push(g[M],g[M+1]);return}const i=g[I],A=g[I+1],n=g[e-4]-i,l=g[e-3]-A,o=Math.hypot(n,l),a=n/o,d=l/o,m=a*A-d*i,u=l/n,h=1/o,Z=Math.atan(u),G=Math.cos(Z),w=Math.sin(Z),B=h*(Math.abs(G)+Math.abs(w)),p=h*(1-B+B**2),y=Math.max(Math.atan(Math.abs(w+G)*p),Math.atan(Math.abs(w-G)*p));let Y=0,R=I;for(let M=I+2;M<e-2;M+=2){const K=Math.abs(m-a*g[M+1]+d*g[M]);K>Y&&(R=M,Y=K)}Y>(o*y)**2?(H(this,VI,Q2).call(this,g,I,R+2,t),H(this,VI,Q2).call(this,g,R,e,t)):t.push(i,A)},Dv=function(g){const I=[],e=g.length;return H(this,VI,Q2).call(this,g,0,e,I),I.push(g[e-2],g[e-1]),I.length<=4?null:I},Sv=function(g,I,e,t,i,A){const n=new Float32Array(A**2),l=-2*t**2,o=A>>1;for(let Z=0;Z<A;Z++){const G=(Z-o)**2;for(let w=0;w<A;w++)n[Z*A+w]=Math.exp((G+(w-o)**2)/l)}const a=new Float32Array(256),d=-2*i**2;for(let Z=0;Z<256;Z++)a[Z]=Math.exp(Z**2/d);const m=g.length,u=new Uint8Array(m),h=new Uint32Array(256);for(let Z=0;Z<e;Z++)for(let G=0;G<I;G++){const w=Z*I+G,B=g[w];let p=0,y=0;for(let R=0;R<A;R++){const M=Z+R-o;if(!(M<0||M>=e))for(let K=0;K<A;K++){const J=G+K-o;if(J<0||J>=I)continue;const X=g[M*I+J],D=n[R*A+K]*a[Math.abs(X-B)];p+=X*D,y+=D}}const Y=u[w]=Math.round(p/y);h[Y]++}return[u,h]},Kv=function(g){const I=new Uint32Array(256);for(const e of g)I[e]++;return I},T5=function(g){const I=g.length,e=new Uint8ClampedArray(I>>2);let t=-1/0,i=1/0;for(let n=0,l=e.length;n<l;n++){const o=e[n]=g[n<<2];t=Math.max(t,o),i=Math.min(i,o)}const A=255/(t-i);for(let n=0,l=e.length;n<l;n++)e[n]=(e[n]-i)*A;return e},v5=function(g){let I,e=-1/0,t=-1/0;const i=g.findIndex(l=>l!==0);let A=i,n=i;for(I=i;I<256;I++){const l=g[I];l>e&&(I-A>t&&(t=I-A,n=I-1),e=l,A=I)}for(I=n-1;I>=0&&!(g[I]>g[I+1]);I--);return I},kv=function(g){const I=g,{width:e,height:t}=g,{maxDim:i}=c(this,yc);let A=e,n=t;if(e>i||t>i){let m=e,u=t,h=Math.log2(Math.max(e,t)/i);const Z=Math.floor(h);h=h===Z?Z-1:Z;for(let w=0;w<h;w++){A=Math.ceil(m/2),n=Math.ceil(u/2);const B=new OffscreenCanvas(A,n);B.getContext("2d").drawImage(g,0,0,m,u,0,0,A,n),m=A,u=n,g!==I&&g.close(),g=B.transferToImageBitmap()}const G=Math.min(i/A,i/n);A=Math.round(A*G),n=Math.round(n*G)}const o=new OffscreenCanvas(A,n).getContext("2d",{willReadFrequently:!0});o.fillStyle="white",o.fillRect(0,0,A,n),o.filter="grayscale(1)",o.drawImage(g,0,0,g.width,g.height,0,0,A,n);const a=o.getImageData(0,0,A,n).data;return[H(this,VI,T5).call(this,a),A,n]},f(al,VI),f(al,yc,{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}),f(al,QA,new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]));class QV extends jS{constructor(){super(),super.updateProperties({fill:gC._defaultLineColor,"stroke-width":0})}clone(){const g=new QV;return g.updateAll(this),g}}class UV extends ZW{constructor(g){super(g),super.updateProperties({stroke:gC._defaultLineColor,"stroke-width":1})}clone(){const g=new UV(this._viewParameters);return g.updateAll(this),g}}const Ni=class Ni extends bW{constructor(I){super({...I,mustBeCommitted:!0,name:"signatureEditor"});f(this,Uo,!1);f(this,_n,null);f(this,Eo,null);f(this,Yc,null);this._willKeepAspectRatio=!0,V(this,Eo,I.signatureData||null),V(this,_n,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(I,e){gC.initialize(I,e),this._defaultDrawingOptions=new QV,this._defaultDrawnSignatureOptions=new UV(e.viewParameters)}static getDefaultDrawingOptions(I){const e=this._defaultDrawingOptions.clone();return e.updateProperties(I),e}static get supportMultipleDrawings(){return!1}static get typesMap(){return Qg(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!c(this,_n)}}static computeTelemetryFinalData(I){const e=I.get("hasDescription");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}render(){if(this.div)return this.div;let I,e;const{_isCopy:t}=this;if(t&&(this._isCopy=!1,I=this.x,e=this.y),super.render(),this._drawId===null)if(c(this,Eo)){const{lines:i,mustSmooth:A,areContours:n,description:l,uuid:o,heightInPage:a}=c(this,Eo),{rawDims:{pageWidth:d,pageHeight:m},rotation:u}=this.parent.viewport,h=al.processDrawnLines({lines:i,pageWidth:d,pageHeight:m,rotation:u,innerMargin:Ni._INNER_MARGIN,mustSmooth:A,areContours:n});this.addSignature(h,a,l,o)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:c(this,_n)||""}));return t&&(this._isCopy=!0,this._moveAfterPaste(I,e)),this.div}setUuid(I){V(this,Yc,I),this.addEditToolbar()}getUuid(){return c(this,Yc)}get description(){return c(this,_n)}set description(I){V(this,_n,I),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:I})),super.addEditToolbar().then(e=>{e==null||e.updateEditSignatureButton(I)}))}getSignaturePreview(){const{newCurves:I,areContours:e,thickness:t,width:i,height:A}=c(this,Eo),n=Math.max(i,A),l=al.processDrawnLines({lines:{curves:I.map(o=>({points:o})),thickness:t,width:i,height:A},pageWidth:n,pageHeight:n,rotation:0,innerMargin:0,mustSmooth:!1,areContours:e});return{areContours:e,outline:l.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(I,e,t,i){const{x:A,y:n}=this,{outline:l}=V(this,Eo,I);V(this,Uo,l instanceof OV),this.description=t;let o;c(this,Uo)?o=Ni.getDefaultDrawingOptions():(o=Ni._defaultDrawnSignatureOptions.clone(),o.updateProperties({"stroke-width":l.thickness})),this._addOutlines({drawOutlines:l,drawingOptions:o});const[,a]=this.pageDimensions;let d=e/a;d=d>=1?.5:d,this.width*=d/this.height,this.width>=1&&(d*=.9/this.width,this.width=.9),this.height=d,this.setDims(),this.x=A,this.y=n,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!t}}),this.div.hidden=!1}getFromImage(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return al.process(I,e,t,i,Ni._INNER_MARGIN)}getFromText(I,e){const{rawDims:{pageWidth:t,pageHeight:i},rotation:A}=this.parent.viewport;return al.extractContoursFromText(I,e,t,i,A,Ni._INNER_MARGIN)}getDrawnSignature(I){const{rawDims:{pageWidth:e,pageHeight:t},rotation:i}=this.parent.viewport;return al.processDrawnLines({lines:I,pageWidth:e,pageHeight:t,rotation:i,innerMargin:Ni._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:I,thickness:e}){I?this._drawingOptions=Ni.getDefaultDrawingOptions():(this._drawingOptions=Ni._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":e}))}serialize(I=!1){if(this.isEmpty())return null;const{lines:e,points:t}=this.serializeDraw(I),{_drawingOptions:{"stroke-width":i}}=this,A=Object.assign(super.serialize(I),{isSignature:!0,areContours:c(this,Uo),color:[0,0,0],thickness:c(this,Uo)?0:i});return this.addComment(A),I?(A.paths={lines:e,points:t},A.uuid=c(this,Yc),A.isCopy=!0):A.lines=e,c(this,_n)&&(A.accessibilityData={type:"Figure",alt:c(this,_n)}),A}static deserializeDraw(I,e,t,i,A,n){return n.areContours?OV.deserialize(I,e,t,i,A,n):g0.deserialize(I,e,t,i,A,n)}static async deserialize(I,e,t){var A;const i=await super.deserialize(I,e,t);return V(i,Uo,I.areContours),i.description=((A=I.accessibilityData)==null?void 0:A.alt)||"",V(i,Yc,I.uuid),i}};Uo=new WeakMap,_n=new WeakMap,Eo=new WeakMap,Yc=new WeakMap,cg(Ni,"_type","signature"),cg(Ni,"_editorType",Pg.SIGNATURE),cg(Ni,"_defaultDrawingOptions",null);let EV=Ni;class PV extends gC{constructor(I){super({...I,name:"stampEditor"});f(this,wI);f(this,cC,null);f(this,we,null);f(this,Po,null);f(this,is,null);f(this,_o,null);f(this,Wu,"");f(this,As,null);f(this,Vc,!1);f(this,$n,null);f(this,Mi,!1);f(this,Bu,!1);V(this,is,I.bitmapUrl),V(this,_o,I.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(I,e){gC.initialize(I,e)}static isHandlingMimeForPasting(I){return mV.includes(I)}static paste(I,e){e.pasteEditor({mode:Pg.STAMP},{bitmapFile:I.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var I;return{type:"stamp",hasAltText:!!((I=this.altTextData)!=null&&I.altText)}}static computeTelemetryFinalData(I){const e=I.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}async mlGuessAltText(I=null,e=!0){if(this.hasAltTextData())return null;const{mlManager:t}=this._uiManager;if(!t)throw new Error("No ML.");if(!await t.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:A,height:n}=I||this.copyCanvas(null,null,!0).imageData,l=await t.guess({name:"altText",request:{data:i,width:A,height:n,channels:i.length/(A*n)}});if(!l)throw new Error("No response from the AI service.");if(l.error)throw new Error("Error from the AI service.");if(l.cancel)return null;if(!l.output)throw new Error("No valid response from the AI service.");const o=l.output;return await this.setGuessedAltText(o),e&&!this.hasAltTextData()&&(this.altTextData={alt:o,decorative:!1}),o}remove(){var I;c(this,we)&&(V(this,cC,null),this._uiManager.imageManager.deleteId(c(this,we)),(I=c(this,As))==null||I.remove(),V(this,As,null),c(this,$n)&&(clearTimeout(c(this,$n)),V(this,$n,null))),super.remove()}rebuild(){if(!this.parent){c(this,we)&&H(this,wI,U2).call(this);return}super.rebuild(),this.div!==null&&(c(this,we)&&c(this,As)===null&&H(this,wI,U2).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(I){this._isDraggable=!0,I&&this.div.focus()}isEmpty(){return!(c(this,Po)||c(this,cC)||c(this,is)||c(this,_o)||c(this,we)||c(this,Vc))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let I,e;return this._isCopy&&(I=this.x,e=this.y),super.render(),this.div.hidden=!0,this.createAltText(),c(this,Vc)||(c(this,cC)?H(this,wI,E2).call(this):H(this,wI,U2).call(this)),this._isCopy&&this._moveAfterPaste(I,e),this._uiManager.addShouldRescale(this),this.div}setCanvas(I,e){const{id:t,bitmap:i}=this._uiManager.imageManager.getFromCanvas(I,e);e.remove(),t&&this._uiManager.imageManager.isValidId(t)&&(V(this,we,t),i&&V(this,cC,i),V(this,Vc,!1),H(this,wI,E2).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;c(this,$n)!==null&&clearTimeout(c(this,$n)),V(this,$n,setTimeout(()=>{V(this,$n,null),H(this,wI,j5).call(this)},200))}copyCanvas(I,e,t=!1){I||(I=224);const{width:i,height:A}=c(this,cC),n=new Zn;let l=c(this,cC),o=i,a=A,d=null;if(e){if(i>e||A>e){const M=Math.min(e/i,e/A);o=Math.floor(i*M),a=Math.floor(A*M)}d=document.createElement("canvas");const u=d.width=Math.ceil(o*n.sx),h=d.height=Math.ceil(a*n.sy);c(this,Mi)||(l=H(this,wI,P2).call(this,u,h));const Z=d.getContext("2d");Z.filter=this._uiManager.hcmFilter;let G="white",w="#cfcfd8";this._uiManager.hcmFilter!=="none"?w="black":zvg.isDarkMode&&(G="#8f8f9d",w="#42414d");const B=15,p=B*n.sx,y=B*n.sy,Y=new OffscreenCanvas(p*2,y*2),R=Y.getContext("2d");R.fillStyle=G,R.fillRect(0,0,p*2,y*2),R.fillStyle=w,R.fillRect(0,0,p,y),R.fillRect(p,y,p,y),Z.fillStyle=Z.createPattern(Y,"repeat"),Z.fillRect(0,0,u,h),Z.drawImage(l,0,0,l.width,l.height,0,0,u,h)}let m=null;if(t){let u,h;if(n.symmetric&&l.width<I&&l.height<I)u=l.width,h=l.height;else if(l=c(this,cC),i>I||A>I){const w=Math.min(I/i,I/A);u=Math.floor(i*w),h=Math.floor(A*w),c(this,Mi)||(l=H(this,wI,P2).call(this,u,h))}const G=new OffscreenCanvas(u,h).getContext("2d",{willReadFrequently:!0});G.drawImage(l,0,0,l.width,l.height,0,0,u,h),m={width:u,height:h,data:G.getImageData(0,0,u,h).data}}return{canvas:d,width:o,height:a,imageData:m}}static async deserialize(I,e,t){var G;let i=null,A=!1;if(I instanceof TS){const{data:{rect:w,rotation:B,id:p,structParent:y,popupRef:Y,richText:R,contentsObj:M,creationDate:K,modificationDate:J},container:X,parent:{page:{pageNumber:D}},canvas:z}=I;let j,q;z?(delete I.canvas,{id:j,bitmap:q}=t.imageManager.getFromCanvas(X.id,z),z.remove()):(A=!0,I._hasNoCanvas=!0);const gg=((G=await e._structTree.getAriaAttributes(`${Zr}${p}`))==null?void 0:G.get("aria-label"))||"";i=I={annotationType:Pg.STAMP,bitmapId:j,bitmap:q,pageIndex:D-1,rect:w.slice(0),rotation:B,annotationElementId:p,id:p,deleted:!1,accessibilityData:{decorative:!1,altText:gg},isSvg:!1,structParent:y,popupRef:Y,richText:R,comment:(M==null?void 0:M.str)||null,creationDate:K,modificationDate:J}}const n=await super.deserialize(I,e,t),{rect:l,bitmap:o,bitmapUrl:a,bitmapId:d,isSvg:m,accessibilityData:u}=I;A?(t.addMissingCanvas(I.id,n),V(n,Vc,!0)):d&&t.imageManager.isValidId(d)?(V(n,we,d),o&&V(n,cC,o)):V(n,is,a),V(n,Mi,m);const[h,Z]=n.pageDimensions;return n.width=(l[2]-l[0])/h,n.height=(l[3]-l[1])/Z,u&&(n.altTextData=u),n._initialData=i,I.comment&&n.setCommentData(I),V(n,Bu,!!i),n}serialize(I=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=Object.assign(super.serialize(I),{bitmapId:c(this,we),isSvg:c(this,Mi)});if(this.addComment(t),I)return t.bitmapUrl=H(this,wI,_2).call(this,!0),t.accessibilityData=this.serializeAltText(!0),t.isCopy=!0,t;const{decorative:i,altText:A}=this.serializeAltText(!1);if(!i&&A&&(t.accessibilityData={type:"Figure",alt:A}),this.annotationElementId){const l=H(this,wI,Fv).call(this,t);return l.isSame?null:(l.isSameAltText?delete t.accessibilityData:t.accessibilityData.structParent=this._initialData.structParent??-1,t.id=this.annotationElementId,delete t.bitmapId,t)}if(e===null)return t;e.stamps||(e.stamps=new Map);const n=c(this,Mi)?(t.rect[2]-t.rect[0])*(t.rect[3]-t.rect[1]):null;if(!e.stamps.has(c(this,we)))e.stamps.set(c(this,we),{area:n,serialized:t}),t.bitmap=H(this,wI,_2).call(this,!1);else if(c(this,Mi)){const l=e.stamps.get(c(this,we));n>l.area&&(l.area=n,l.serialized.bitmap.close(),l.serialized.bitmap=H(this,wI,_2).call(this,!1))}return t}renderAnnotationElement(I){return this.deleted?(I.hide(),null):(I.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}cC=new WeakMap,we=new WeakMap,Po=new WeakMap,is=new WeakMap,_o=new WeakMap,Wu=new WeakMap,As=new WeakMap,Vc=new WeakMap,$n=new WeakMap,Mi=new WeakMap,Bu=new WeakMap,wI=new WeakSet,XG=function(I,e=!1){if(!I){this.remove();return}V(this,cC,I.bitmap),e||(V(this,we,I.id),V(this,Mi,I.isSvg)),I.file&&V(this,Wu,I.file.name),H(this,wI,E2).call(this)},HG=function(){if(V(this,Po,null),this._uiManager.enableWaiting(!1),!!c(this,As)){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,cC)){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&c(this,cC)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},U2=function(){if(c(this,we)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(c(this,we)).then(t=>H(this,wI,XG).call(this,t,!0)).finally(()=>H(this,wI,HG).call(this));return}if(c(this,is)){const t=c(this,is);V(this,is,null),this._uiManager.enableWaiting(!0),V(this,Po,this._uiManager.imageManager.getFromUrl(t).then(i=>H(this,wI,XG).call(this,i)).finally(()=>H(this,wI,HG).call(this)));return}if(c(this,_o)){const t=c(this,_o);V(this,_o,null),this._uiManager.enableWaiting(!0),V(this,Po,this._uiManager.imageManager.getFromFile(t).then(i=>H(this,wI,XG).call(this,i)).finally(()=>H(this,wI,HG).call(this)));return}const I=document.createElement("input");I.type="file",I.accept=mV.join(",");const e=this._uiManager._signal;V(this,Po,new Promise(t=>{I.addEventListener("change",async()=>{if(!I.files||I.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(I.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),H(this,wI,XG).call(this,i)}t()},{signal:e}),I.addEventListener("cancel",()=>{this.remove(),t()},{signal:e})}).finally(()=>H(this,wI,HG).call(this))),I.click()},E2=function(){var o;const{div:I}=this;let{width:e,height:t}=c(this,cC);const[i,A]=this.pageDimensions,n=.75;if(this.width)e=this.width*i,t=this.height*A;else if(e>n*i||t>n*A){const a=Math.min(n*i/e,n*A/t);e*=a,t*=a}this._uiManager.enableWaiting(!1);const l=V(this,As,document.createElement("canvas"));l.setAttribute("role","img"),this.addContainer(l),this.width=e/i,this.height=t/A,this.setDims(),(o=this._initialOptions)!=null&&o.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(I.hidden=!1),H(this,wI,j5).call(this),c(this,Bu)||(this.parent.addUndoableEditor(this),V(this,Bu,!0)),this._reportTelemetry({action:"inserted_image"}),c(this,Wu)&&this.div.setAttribute("aria-description",c(this,Wu)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")},P2=function(I,e){const{width:t,height:i}=c(this,cC);let A=t,n=i,l=c(this,cC);for(;A>2*I||n>2*e;){const o=A,a=n;A>2*I&&(A=A>=16384?Math.floor(A/2)-1:Math.ceil(A/2)),n>2*e&&(n=n>=16384?Math.floor(n/2)-1:Math.ceil(n/2));const d=new OffscreenCanvas(A,n);d.getContext("2d").drawImage(l,0,0,o,a,0,0,A,n),l=d.transferToImageBitmap()}return l},j5=function(){const[I,e]=this.parentDimensions,{width:t,height:i}=this,A=new Zn,n=Math.ceil(t*I*A.sx),l=Math.ceil(i*e*A.sy),o=c(this,As);if(!o||o.width===n&&o.height===l)return;o.width=n,o.height=l;const a=c(this,Mi)?c(this,cC):H(this,wI,P2).call(this,n,l),d=o.getContext("2d");d.filter=this._uiManager.hcmFilter,d.drawImage(a,0,0,a.width,a.height,0,0,n,l)},_2=function(I){if(I){if(c(this,Mi)){const i=this._uiManager.imageManager.getSvgUrl(c(this,we));if(i)return i}const e=document.createElement("canvas");return{width:e.width,height:e.height}=c(this,cC),e.getContext("2d").drawImage(c(this,cC),0,0),e.toDataURL()}if(c(this,Mi)){const[e,t]=this.pageDimensions,i=Math.round(this.width*e*Ls.PDF_TO_CSS_UNITS),A=Math.round(this.height*t*Ls.PDF_TO_CSS_UNITS),n=new OffscreenCanvas(i,A);return n.getContext("2d").drawImage(c(this,cC),0,0,c(this,cC).width,c(this,cC).height,0,0,i,A),n.transferToImageBitmap()}return structuredClone(c(this,cC))},Fv=function(I){var n;const{pageIndex:e,accessibilityData:{altText:t}}=this._initialData,i=I.pageIndex===e,A=(((n=I.accessibilityData)==null?void 0:n.alt)||"")===t;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&A,isSameAltText:A}},cg(PV,"_type","stamp"),cg(PV,"_editorType",Pg.STAMP);const EA=class EA{constructor({uiManager:g,pageIndex:I,div:e,structTreeLayer:t,accessibilityManager:i,annotationLayer:A,drawLayer:n,textLayer:l,viewport:o,l10n:a}){f(this,_I);f(this,Nc);f(this,pu,!1);f(this,$o,null);f(this,qo,null);f(this,ns,null);f(this,_t,new Map);f(this,ga,!1);f(this,yu,!1);f(this,Yu,!1);f(this,UA,null);f(this,ls,null);f(this,We,null);f(this,ss,null);f(this,Ia,null);f(this,Vu,-1);f(this,Hg);const d=[...c(EA,Ca).values()];if(!EA._initialized){EA._initialized=!0;for(const m of d)m.initialize(a,g)}g.registerEditorTypes(d),V(this,Hg,g),this.pageIndex=I,this.div=e,V(this,Nc,i),V(this,$o,A),this.viewport=o,V(this,We,l),this.drawLayer=n,this._structTree=t,c(this,Hg).addLayer(this)}get isEmpty(){return c(this,_t).size===0}get isInvisible(){return this.isEmpty&&c(this,Hg).getMode()===Pg.NONE}updateToolbar(g){c(this,Hg).updateToolbar(g)}updateMode(g=c(this,Hg).getMode()){switch(H(this,_I,$2).call(this),g){case Pg.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Pg.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case Pg.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:I}=this.div;if(I.toggle("nonEditing",!1),g===Pg.POPUP)I.toggle("commentEditing",!0);else{I.toggle("commentEditing",!1);for(const e of c(EA,Ca).values())I.toggle(`${e._type}Editing`,g===e._editorType)}this.div.hidden=!1}hasTextLayer(g){var I;return g===((I=c(this,We))==null?void 0:I.div)}setEditingState(g){c(this,Hg).setEditingState(g)}addCommands(g){c(this,Hg).addCommands(g)}cleanUndoStack(g){c(this,Hg).cleanUndoStack(g)}toggleDrawing(g=!1){this.div.classList.toggle("drawing",!g)}togglePointerEvents(g=!1){this.div.classList.toggle("disabled",!g)}toggleAnnotationLayerPointerEvents(g=!1){var I;(I=c(this,$o))==null||I.togglePointerEvents(g)}async enable(){var e;V(this,Yu,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),(e=c(this,Ia))==null||e.abort(),V(this,Ia,null);const g=new Set;for(const t of c(this,_I,x5))t.enableEditing(),t.show(!0),t.annotationElementId&&(c(this,Hg).removeChangedExistingAnnotation(t),g.add(t.annotationElementId));const I=c(this,$o);if(I)for(const t of I.getEditableAnnotations()){if(t.hide(),c(this,Hg).isDeletedAnnotationElement(t.data.id)||g.has(t.data.id))continue;const i=await this.deserialize(t);i&&(this.addOrRebuild(i),i.enableEditing())}V(this,Yu,!1),c(this,Hg)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){var t;if(V(this,yu,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),c(this,We)&&!c(this,Ia)){V(this,Ia,new AbortController);const i=c(this,Hg).combinedSignal(c(this,Ia));c(this,We).div.addEventListener("pointerdown",A=>{const{clientX:l,clientY:o,timeStamp:a}=A,d=c(this,Vu);if(a-d>500){V(this,Vu,a);return}V(this,Vu,-1);const{classList:m}=this.div;m.toggle("getElements",!0);const u=document.elementsFromPoint(l,o);if(m.toggle("getElements",!1),!this.div.contains(u[0]))return;let h;const Z=new RegExp(`^${kh}[0-9]+$`);for(const w of u)if(Z.test(w.id)){h=w.id;break}if(!h)return;const G=c(this,_t).get(h);(G==null?void 0:G.annotationElementId)===null&&(A.stopPropagation(),A.preventDefault(),G.dblclick(A))},{signal:i,capture:!0})}const g=c(this,$o),I=[];if(g){const i=new Map,A=new Map;for(const l of c(this,_I,x5)){if(l.disableEditing(),!l.annotationElementId){I.push(l);continue}if(l.serialize()!==null){i.set(l.annotationElementId,l);continue}else A.set(l.annotationElementId,l);(t=this.getEditableAnnotation(l.annotationElementId))==null||t.show(),l.remove()}const n=g.getEditableAnnotations();for(const l of n){const{id:o}=l.data;if(c(this,Hg).isDeletedAnnotationElement(o)){l.updateEdited({deleted:!0});continue}let a=A.get(o);if(a){a.resetAnnotationElement(l),a.show(!1),l.show();continue}a=i.get(o),a&&(c(this,Hg).addChangedExistingAnnotation(a),a.renderAnnotationElement(l)&&a.show(!1)),l.show()}}H(this,_I,$2).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:e}=this.div;for(const i of c(EA,Ca).values())e.remove(`${i._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),g==null||g.updateFakeAnnotations(I),V(this,yu,!1)}getEditableAnnotation(g){var I;return((I=c(this,$o))==null?void 0:I.getEditableAnnotation(g))||null}setActiveEditor(g){c(this,Hg).getActive()!==g&&c(this,Hg).setActiveEditor(g)}enableTextSelection(){var g;if(this.div.tabIndex=-1,(g=c(this,We))!=null&&g.div&&!c(this,ss)){V(this,ss,new AbortController);const I=c(this,Hg).combinedSignal(c(this,ss));c(this,We).div.addEventListener("pointerdown",H(this,_I,zv).bind(this),{signal:I}),c(this,We).div.classList.add("highlighting")}}disableTextSelection(){var g;this.div.tabIndex=0,(g=c(this,We))!=null&&g.div&&c(this,ss)&&(c(this,ss).abort(),V(this,ss,null),c(this,We).div.classList.remove("highlighting"))}enableClick(){if(c(this,qo))return;V(this,qo,new AbortController);const g=c(this,Hg).combinedSignal(c(this,qo));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:g});const I=this.pointerup.bind(this);this.div.addEventListener("pointerup",I,{signal:g}),this.div.addEventListener("pointercancel",I,{signal:g})}disableClick(){var g;(g=c(this,qo))==null||g.abort(),V(this,qo,null)}attach(g){c(this,_t).set(g.id,g);const{annotationElementId:I}=g;I&&c(this,Hg).isDeletedAnnotationElement(I)&&c(this,Hg).removeDeletedAnnotationElement(g)}detach(g){var I;c(this,_t).delete(g.id),(I=c(this,Nc))==null||I.removePointerInTextLayer(g.contentDiv),!c(this,yu)&&g.annotationElementId&&c(this,Hg).addDeletedAnnotationElement(g)}remove(g){this.detach(g),c(this,Hg).removeEditor(g),g.div.remove(),g.isAttachedToDOM=!1}changeParent(g){var I;g.parent!==this&&(g.parent&&g.annotationElementId&&(c(this,Hg).addDeletedAnnotationElement(g),gC.deleteAnnotationElement(g),g.annotationElementId=null),this.attach(g),(I=g.parent)==null||I.detach(g),g.setParent(this),g.div&&g.isAttachedToDOM&&(g.div.remove(),this.div.append(g.div)))}add(g){if(!(g.parent===this&&g.isAttachedToDOM)){if(this.changeParent(g),c(this,Hg).addEditor(g),this.attach(g),!g.isAttachedToDOM){const I=g.render();this.div.append(I),g.isAttachedToDOM=!0}g.fixAndSetPosition(),g.onceAdded(!c(this,Yu)),c(this,Hg).addToAnnotationStorage(g),g._reportTelemetry(g.telemetryInitialData)}}moveEditorInDOM(g){var e;if(!g.isAttachedToDOM)return;const{activeElement:I}=document;g.div.contains(I)&&!c(this,ns)&&(g._focusEventsAllowed=!1,V(this,ns,setTimeout(()=>{V(this,ns,null),g.div.contains(document.activeElement)?g._focusEventsAllowed=!0:(g.div.addEventListener("focusin",()=>{g._focusEventsAllowed=!0},{once:!0,signal:c(this,Hg)._signal}),I.focus())},0))),g._structTreeParentId=(e=c(this,Nc))==null?void 0:e.moveElementInDOM(this.div,g.div,g.contentDiv,!0)}addOrRebuild(g){g.needsToBeRebuilt()?(g.parent||(g.parent=this),g.rebuild(),g.show()):this.add(g)}addUndoableEditor(g){const I=()=>g._uiManager.rebuild(g),e=()=>{g.remove()};this.addCommands({cmd:I,undo:e,mustExec:!1})}getEditorByUID(g){for(const I of c(this,_t).values())if(I.uid===g)return I;return null}getNextId(){return c(this,Hg).getId()}combinedSignal(g){return c(this,Hg).combinedSignal(g)}canCreateNewEmptyEditor(){var g;return(g=c(this,_I,il))==null?void 0:g.canCreateNewEmptyEditor()}async pasteEditor(g,I){this.updateToolbar(g),await c(this,Hg).updateMode(g.mode);const{offsetX:e,offsetY:t}=H(this,_I,Q5).call(this),i=this.getNextId(),A=H(this,_I,O5).call(this,{parent:this,id:i,x:e,y:t,uiManager:c(this,Hg),isCentered:!0,...I});A&&this.add(A)}async deserialize(g){var I;return await((I=c(EA,Ca).get(g.annotationType??g.annotationEditorType))==null?void 0:I.deserialize(g,this,c(this,Hg)))||null}createAndAddNewEditor(g,I,e={}){const t=this.getNextId(),i=H(this,_I,O5).call(this,{parent:this,id:t,x:g.offsetX,y:g.offsetY,uiManager:c(this,Hg),isCentered:I,...e});return i&&this.add(i),i}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(g={}){this.createAndAddNewEditor(H(this,_I,Q5).call(this),!0,g)}setSelected(g){c(this,Hg).setSelected(g)}toggleSelected(g){c(this,Hg).toggleSelected(g)}unselect(g){c(this,Hg).unselect(g)}pointerup(g){var t;const{isMac:I}=ye.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div||!c(this,ga)||(V(this,ga,!1),(t=c(this,_I,il))!=null&&t.isDrawer&&c(this,_I,il).supportMultipleDrawings))return;if(!c(this,pu)){V(this,pu,!0);return}const e=c(this,Hg).getMode();if(e===Pg.STAMP||e===Pg.SIGNATURE){c(this,Hg).unselectAll();return}this.createAndAddNewEditor(g,!1)}pointerdown(g){var t;if(c(this,Hg).getMode()===Pg.HIGHLIGHT&&this.enableTextSelection(),c(this,ga)){V(this,ga,!1);return}const{isMac:I}=ye.platform;if(g.button!==0||g.ctrlKey&&I||g.target!==this.div)return;if(V(this,ga,!0),(t=c(this,_I,il))!=null&&t.isDrawer){this.startDrawingSession(g);return}const e=c(this,Hg).getActive();V(this,pu,!e||e.isEmpty())}startDrawingSession(g){if(this.div.focus({preventScroll:!0}),c(this,UA)){c(this,_I,il).startDrawing(this,c(this,Hg),!1,g);return}c(this,Hg).setCurrentDrawingSession(this),V(this,UA,new AbortController);const I=c(this,Hg).combinedSignal(c(this,UA));this.div.addEventListener("blur",({relatedTarget:e})=>{e&&!this.div.contains(e)&&(V(this,ls,null),this.commitOrRemove())},{signal:I}),c(this,_I,il).startDrawing(this,c(this,Hg),!1,g)}pause(g){if(g){const{activeElement:I}=document;this.div.contains(I)&&V(this,ls,I);return}c(this,ls)&&setTimeout(()=>{var I;(I=c(this,ls))==null||I.focus(),V(this,ls,null)},0)}endDrawingSession(g=!1){return c(this,UA)?(c(this,Hg).setCurrentDrawingSession(null),c(this,UA).abort(),V(this,UA,null),V(this,ls,null),c(this,_I,il).endDrawing(g)):null}findNewParent(g,I,e){const t=c(this,Hg).findParent(I,e);return t===null||t===this?!1:(t.changeParent(g),!0)}commitOrRemove(){return c(this,UA)?(this.endDrawingSession(),!0):!1}onScaleChanging(){c(this,UA)&&c(this,_I,il).onScaleChangingWhenDrawing(this)}destroy(){var g,I;this.commitOrRemove(),((g=c(this,Hg).getActive())==null?void 0:g.parent)===this&&(c(this,Hg).commitOrRemove(),c(this,Hg).setActiveEditor(null)),c(this,ns)&&(clearTimeout(c(this,ns)),V(this,ns,null));for(const e of c(this,_t).values())(I=c(this,Nc))==null||I.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,c(this,_t).clear(),c(this,Hg).removeLayer(this)}render({viewport:g}){this.viewport=g,La(this.div,g);for(const I of c(this,Hg).getEditors(this.pageIndex))this.add(I),I.rebuild();this.updateMode()}update({viewport:g}){c(this,Hg).commitOrRemove(),H(this,_I,$2).call(this);const I=this.viewport.rotation,e=g.rotation;if(this.viewport=g,La(this.div,{rotation:e}),I!==e)for(const t of c(this,_t).values())t.rotate(e)}get pageDimensions(){const{pageWidth:g,pageHeight:I}=this.viewport.rawDims;return[g,I]}get scale(){return c(this,Hg).viewParameters.realScale}};Nc=new WeakMap,pu=new WeakMap,$o=new WeakMap,qo=new WeakMap,ns=new WeakMap,_t=new WeakMap,ga=new WeakMap,yu=new WeakMap,Yu=new WeakMap,UA=new WeakMap,ls=new WeakMap,We=new WeakMap,ss=new WeakMap,Ia=new WeakMap,Vu=new WeakMap,Hg=new WeakMap,Ca=new WeakMap,_I=new WeakSet,x5=function(){return c(this,_t).size!==0?c(this,_t).values():c(this,Hg).getEditors(this.pageIndex)},zv=function(g){c(this,Hg).unselectAll();const{target:I}=g;if(I===c(this,We).div||(I.getAttribute("role")==="img"||I.classList.contains("endOfContent"))&&c(this,We).div.contains(I)){const{isMac:e}=ye.platform;if(g.button!==0||g.ctrlKey&&e)return;c(this,Hg).showAllEditors("highlight",!0,!0),c(this,We).div.classList.add("free"),this.toggleDrawing(),hW.startHighlighting(this,c(this,Hg).direction==="ltr",{target:c(this,We).div,x:g.x,y:g.y}),c(this,We).div.addEventListener("pointerup",()=>{c(this,We).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:c(this,Hg)._signal}),g.preventDefault()}},il=function(){return c(EA,Ca).get(c(this,Hg).getMode())},O5=function(g){const I=c(this,_I,il);return I?new I.prototype.constructor(g):null},Q5=function(){const{x:g,y:I,width:e,height:t}=this.boundingClientRect,i=Math.max(0,g),A=Math.max(0,I),n=Math.min(window.innerWidth,g+e),l=Math.min(window.innerHeight,I+t),o=(i+n)/2-g,a=(A+l)/2-I,[d,m]=this.viewport.rotation%180===0?[o,a]:[a,o];return{offsetX:d,offsetY:m}},$2=function(){for(const g of c(this,_t).values())g.isEmpty()&&g.remove()},cg(EA,"_initialized",!1),f(EA,Ca,new Map([TV,xV,PV,hW,EV].map(g=>[g._editorType,g])));let _V=EA;const te=class te{constructor({pageIndex:g}){f(this,qn);f(this,PA,null);f(this,Yt,new Map);f(this,Mc,new Map);this.pageIndex=g}setParent(g){if(!c(this,PA)){V(this,PA,g);return}if(c(this,PA)!==g){if(c(this,Yt).size>0)for(const I of c(this,Yt).values())I.remove(),g.append(I);V(this,PA,g)}}static get _svgFactory(){return Qg(this,"_svgFactory",new rW)}draw(g,I=!1,e=!1){const t=se(te,LZ)._++,i=H(this,qn,U5).call(this),A=te._svgFactory.createElement("defs");i.append(A);const n=te._svgFactory.createElement("path");A.append(n);const l=`path_p${this.pageIndex}_${t}`;n.setAttribute("id",l),n.setAttribute("vector-effect","non-scaling-stroke"),I&&c(this,Mc).set(t,n);const o=e?H(this,qn,Lv).call(this,A,l):null,a=te._svgFactory.createElement("use");return i.append(a),a.setAttribute("href",`#${l}`),this.updateProperties(i,g),c(this,Yt).set(t,i),{id:t,clipPathId:`url(#${o})`}}drawOutline(g,I){const e=se(te,LZ)._++,t=H(this,qn,U5).call(this),i=te._svgFactory.createElement("defs");t.append(i);const A=te._svgFactory.createElement("path");i.append(A);const n=`path_p${this.pageIndex}_${e}`;A.setAttribute("id",n),A.setAttribute("vector-effect","non-scaling-stroke");let l;if(I){const d=te._svgFactory.createElement("mask");i.append(d),l=`mask_p${this.pageIndex}_${e}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const m=te._svgFactory.createElement("rect");d.append(m),m.setAttribute("width","1"),m.setAttribute("height","1"),m.setAttribute("fill","white");const u=te._svgFactory.createElement("use");d.append(u),u.setAttribute("href",`#${n}`),u.setAttribute("stroke","none"),u.setAttribute("fill","black"),u.setAttribute("fill-rule","nonzero"),u.classList.add("mask")}const o=te._svgFactory.createElement("use");t.append(o),o.setAttribute("href",`#${n}`),l&&o.setAttribute("mask",`url(#${l})`);const a=o.cloneNode();return t.append(a),o.classList.add("mainOutline"),a.classList.add("secondaryOutline"),this.updateProperties(t,g),c(this,Yt).set(e,t),e}finalizeDraw(g,I){c(this,Mc).delete(g),this.updateProperties(g,I)}updateProperties(g,I){var l;if(!I)return;const{root:e,bbox:t,rootClass:i,path:A}=I,n=typeof g=="number"?c(this,Yt).get(g):g;if(n){if(e&&H(this,qn,E5).call(this,n,e),t&&H(l=te,Rp,Jv).call(l,n,t),i){const{classList:o}=n;for(const[a,d]of Object.entries(i))o.toggle(a,d)}if(A){const a=n.firstElementChild.firstElementChild;H(this,qn,E5).call(this,a,A)}}}updateParent(g,I){if(I===this)return;const e=c(this,Yt).get(g);e&&(c(I,PA).append(e),c(this,Yt).delete(g),c(I,Yt).set(g,e))}remove(g){c(this,Mc).delete(g),c(this,PA)!==null&&(c(this,Yt).get(g).remove(),c(this,Yt).delete(g))}destroy(){V(this,PA,null);for(const g of c(this,Yt).values())g.remove();c(this,Yt).clear(),c(this,Mc).clear()}};PA=new WeakMap,Yt=new WeakMap,Mc=new WeakMap,LZ=new WeakMap,Rp=new WeakSet,Jv=function(g,[I,e,t,i]){const{style:A}=g;A.top=`${100*e}%`,A.left=`${100*I}%`,A.width=`${100*t}%`,A.height=`${100*i}%`},qn=new WeakSet,U5=function(){const g=te._svgFactory.create(1,1,!0);return c(this,PA).append(g),g.setAttribute("aria-hidden",!0),g},Lv=function(g,I){const e=te._svgFactory.createElement("clipPath");g.append(e);const t=`clip_${I}`;e.setAttribute("id",t),e.setAttribute("clipPathUnits","objectBoundingBox");const i=te._svgFactory.createElement("use");return e.append(i),i.setAttribute("href",`#${I}`),i.classList.add("clip"),t},E5=function(g,I){for(const[e,t]of Object.entries(I))t===null?g.removeAttribute(e):g.setAttribute(e,t)},f(te,Rp),f(te,LZ,0);let $V=te;globalThis._pdfjsTestingUtils={HighlightOutliner:vV},globalThis.pdfjsLib={AbortException:Js,AnnotationEditorLayer:_V,AnnotationEditorParamsType:uI,AnnotationEditorType:Pg,AnnotationEditorUIManager:Ta,AnnotationLayer:LV,AnnotationMode:zs,AnnotationType:TC,applyOpacity:Lvg,build:Ujg,ColorPicker:dW,createValidAbsoluteUrl:TD,CSSConstants:Jvg,DOMSVGFactory:rW,DrawLayer:$V,FeatureTest:ye,fetchData:Th,findContrastColor:Tvg,getDocument:DV,getFilenameFromUrl:Dvg,getPdfFilenameFromUrl:Svg,getRGB:xh,getUuid:QD,getXfaPageViewport:kvg,GlobalWorkerOptions:wn,ImageKind:Ow,InvalidPDFException:aV,isDataScheme:_w,isPdfFile:Gr,isValidExplicitDest:$vg,MathClamp:ut,noContextMenu:Ji,normalizeUnicode:fvg,OPS:Fh,OutputScale:Zn,PasswordResponses:Wvg,PDFDataRangeTransport:SS,PDFDateString:$w,PDFWorker:$h,PermissionFlag:wvg,PixelsPerInch:Ls,RenderingCancelledException:rV,renderRichText:IS,ResponseException:Pw,setLayerDimensions:La,shadow:Qg,SignatureExtractor:al,stopEvent:BC,SupportedImageMimeTypes:mV,TextLayer:_h,TouchManager:IW,updateUrlHash:vD,Util:Rg,VerbosityLevel:Qw,version:Qjg,XfaLayer:ED};class bxg{constructor(){cg(this,"cache",{});cg(this,"cachePage",{})}setCache(g,I){this.cache[g]=I}getCache(g){return this.cache[g]}setPageCache(g,I){this.cachePage[g]=I}getPageCache(g){return this.cachePage[g]}}const xa=new bxg,Zxg=["src"],dl=s.defineComponent({name:"PdfPreview",__name:"PdfPreview",props:{src:{},page:{}},emits:["load","error"],setup(C,{expose:g,emit:I}){wn.workerSrc=Gvg;const e=C,t=I,i=s.reactive({isError:!1,rotate:0}),A=s.ref(null);let n,l=null;s.watch([()=>e.src,()=>e.page],()=>{n==null||n.disconnect(),m(),i.isError=!1,s.nextTick(()=>{d()})}),s.watch(()=>e.src,()=>{i.rotate=0});const o=async()=>{try{if(!A.value||!e.src)throw new Error("Canvas not found");l&&(l==null||l.cancel(),l=null);let u;const h=xa.getCache(e.src);if(h?u=h:(u=await DV(e.src).promise,xa.setCache(e.src,u)),!u)throw new Error("Pdf not found");const Z=e.page??1,G=`${e.src}-${Z}`,w=xa.getPageCache(G);let B;if(w?B=w:(B=await u.getPage(Z),xa.setPageCache(G,B)),!A.value)return;const p=A.value.getBoundingClientRect(),y=B.getViewport({scale:1}),Y=p.width/y.width,R=p.height/y.height,M=Math.min(Y,R),K=window.devicePixelRatio||1,J=B.getViewport({scale:M*K,rotation:i.rotate}),X=A.value.getContext("2d");if(X===null)throw new Error("Context not found");A.value.width=J.width,A.value.height=J.height;const D=B.render({canvas:A.value,canvasContext:X,viewport:J});l=D,await D.promise,t("load")}catch(u){if(u&&typeof u=="object"&&"name"in u&&(u==null?void 0:u.name)==="RenderingCancelledException")return;console.error(u),i.isError=!0,t("error",u)}finally{l=null}},a=async u=>{try{if(!A.value)return;const h=xa.getPageCache(`${e.src}-${e.page}`);if(!h)return;const Z=A.value.getContext("2d");if(!Z)return;const G=Math.round(u/90)*90;i.rotate+=G;const{width:w,height:B}=A.value;Z.clearRect(0,0,w,B);const p=h.getViewport({scale:1,rotation:i.rotate});A.value.width=p.width,A.value.height=p.height;const y=h.render({canvas:A.value,canvasContext:Z,viewport:p});l=y,await y.promise,t("load")}catch(h){if(h&&typeof h=="object"&&"name"in h&&(h==null?void 0:h.name)==="RenderingCancelledException")return;console.error(h),i.isError=!0}finally{l=null}},d=()=>{A.value&&(n=new IntersectionObserver((u,h)=>{u.forEach(Z=>{Z.isIntersecting&&(o(),h.unobserve(Z.target))},{rootMargin:"50px"})}),n.observe(A.value))},m=()=>{if(!A.value)return;const u=A.value.getContext("2d");u&&u.clearRect(0,0,A.value.width,A.value.height)};return g({clearCanvas:m,rotatePdf:a}),s.onMounted(()=>{d()}),(u,h)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,Zxg)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:A},null,512))}});var qV=(C=>(C.slideTop="slide-top",C.slideLeft="slide-left",C.fadeAndScale="fade-and-scale",C.fade="fade",C))(qV||{});const Gxg=()=>{const C=s.ref(0),g=s.ref([]),I=s.ref(null),e=l=>{g.value.push(l),i(l),A()},t=()=>{g.value.pop(),n(),g.value.length?i(g.value[g.value.length-1]):I.value=null},i=l=>{I.value=l},A=()=>{C.value+=1},n=()=>{C.value>0&&(C.value-=1)};return{countOpenedModal:C,openedModals:g,lastOpenedModal:I,addOpenedModal:e,reduceOpenedModal:t,setLastOpenedModal:i,incrementCountModal:A,decrementCountModal:n}},wxg=["data-testid"],Wxg=["data-testid"],xS=fg(s.defineComponent({__name:"Modal",props:{open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean,default:!0},dataTestid:{default:"Modal"}},emits:["close","unmounted"],setup(C,{expose:g,emit:I}){const{lastOpenedModal:e,addOpenedModal:t,reduceOpenedModal:i}=Gxg(),A=C,n=s.ref(null),l=s.useAttrs(),o=s.ref(!1),a=s.computed(()=>({width:A.width,height:A.height})),d=I;let m=0;const u=()=>{m=Date.now(),n.value&&(A.open?(n.value.showModal(),t(n.value)):h())},h=()=>{Date.now()-m<300||(i(),d("close"))},Z=()=>{var Y;(Y=n.value)==null||Y.close(),document.documentElement.focus(),window.removeEventListener("mouseup",p),B()},G=Y=>{Y.key==="Escape"&&e.value===n.value&&h()},w=()=>{if(document.querySelectorAll(".modal-yui-kit").length===1)return window.innerWidth-document.documentElement.clientWidth;{const R=document.body.style.paddingRight;return Number(R.replace(/\D/g,""))||0}},B=()=>{document.querySelectorAll(".modal-yui-kit").length===0&&BI({overflow:"","padding-right":""},document.body)},p=Y=>{if(Y.target===n.value){if(A.disableCloseOnOutsideClick)return;h()}window.removeEventListener("mouseup",p)},y=()=>{window.removeEventListener("mouseup",p),window.addEventListener("mouseup",p)};return g({closeDialog:Z}),s.onMounted(()=>{s.watchEffect(()=>{A.open!==o.value&&(u(),o.value=A.open,n.value&&A.isResetFocus&&n.value.focus())}),n.value&&n.value.addEventListener("cancel",R=>{R.preventDefault()});const Y=w();BI({overflow:"hidden","padding-right":`${Y}px`},document.body),document.addEventListener("keydown",G)}),s.onUnmounted(()=>{B(),window.removeEventListener("mouseup",p),document.removeEventListener("keydown",G),d("unmounted")}),(Y,R)=>(s.openBlock(),s.createElementBlock("dialog",s.mergeProps({ref_key:"dialog",ref:n},s.unref(l),{class:["modal-yui-kit",`modal-yui-kit_${A.position}`],"data-testid":A.dataTestid,onMousedown:s.withModifiers(y,["self","left"])}),[s.createElementVNode("div",{class:"modal-yui-kit__modal-content",style:s.normalizeStyle(a.value),"data-testid":`${A.dataTestid}-ModalContent`},[s.renderSlot(Y.$slots,"default",{},void 0,!0)],12,Wxg)],16,wxg))}}),[["__scopeId","data-v-25d7cce5"]]),C0=fg(s.defineComponent({__name:"ModalAnimated",props:{animateType:{},open:{type:Boolean},position:{default:"right"},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean,default:!1},isResetFocus:{type:Boolean},dataTestid:{default:"Modal"}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=s.computed(()=>I.animateType===qV.fade?"fade":I.position==="bottom"?"slide-bottom":I.position==="right"?"slide-left":"fade-and-scale"),i=s.ref(null),A=s.reactive({function:()=>{}}),n=()=>{d()},l=()=>{e("unmounted")},o=()=>{d()},a=()=>{A.function(),e("end-animation")},d=()=>{var u;i.value&&(A.function=(u=i.value)==null?void 0:u.closeDialog)},m=()=>{d(),e("close")};return(u,h)=>(s.openBlock(),s.createBlock(s.Transition,{name:t.value,onAfterLeave:a,onBeforeLeave:o,onAfterEnter:n},{default:s.withCtx(()=>[I.open?(s.openBlock(),s.createBlock(xS,{key:0,ref_key:"modalRef",ref:i,open:I.open,position:I.position,width:I.width,height:I.height,"data-testid":I.dataTestid,"is-reset-focus":I.isResetFocus,onClose:m,onUnmounted:l,"disable-close-on-outside-click":I.disableCloseOnOutsideClick},{default:s.withCtx(()=>[s.renderSlot(u.$slots,"default",{},void 0,!0)]),_:3},8,["open","position","width","height","data-testid","is-reset-focus","disable-close-on-outside-click"])):s.createCommentVNode("",!0)]),_:3},8,["name"]))}}),[["__scopeId","data-v-728b0160"]]),OS=(C,g=window)=>{const I=C.getBoundingClientRect();if(g instanceof Window){const e=window.innerWidth,t=window.innerHeight;return I.top<t&&I.bottom>0&&I.left<e&&I.right>0}else{const e=g.getBoundingClientRect();return I.top<e.bottom&&I.bottom>e.top&&I.left<e.right&&I.right>e.left}},gN=(C,g=null)=>{if(!C)return;(g?OS(C,g):OS(C))||C.scrollIntoView({behavior:"smooth",block:"nearest"})},Bxg=s.defineComponent({name:"BaseSlider",__name:"BaseSlider",props:{activeIndex:{default:0}},setup(C,{expose:g}){const I=C,e=s.reactive({children:null,activeIndex:I.activeIndex}),t=s.ref(null),i=s.ref(null);s.watch(()=>I.activeIndex,()=>{A(I.activeIndex)});const A=a=>{if(!t.value||!i.value)return;const d=[...t.value.children];a>d.length-1||a<0||(gN(d[a],i.value),e.activeIndex=a)},n=()=>{s.nextTick(()=>{!e.children||!i.value||gN(e.children[e.activeIndex],i.value)})},l=()=>(A(e.activeIndex+1),e.activeIndex),o=()=>(A(e.activeIndex-1),e.activeIndex);return s.onMounted(()=>{!t.value||!i.value||(e.children=[...t.value.children])}),g({shiftPosition:A,nextSlide:l,prevSlide:o,initScroll:n}),(a,d)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"sliderRef",ref:i,class:"base-slider"},[s.createElementVNode("div",{ref_key:"contentRef",ref:t,class:"base-slider__content"},[s.renderSlot(a.$slots,"default")],512)],512))}}),pxg={class:"base-slide__content"},yxg=s.defineComponent({name:"BaseSlide",__name:"BaseSlide",props:{isActive:{type:Boolean}},setup(C){const g=C,I=s.computed(()=>[{"base-slide_active":g.isActive}]);return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["base-slide",I.value])},[s.createElementVNode("div",pxg,[s.renderSlot(e.$slots,"default")])],2))}}),IN=C=>{if(!C)return null;const g=C.split("?")[0],I=/\.\w+$/,e=g.match(I);return e?e[0].replace(".",""):null},Oa=C=>{if(!C)return!1;if(C.startsWith("data:image/"))return!0;const g=IN(C);return g?Object.values(Sh).includes(g.toLowerCase()):!1},Yxg=async(C,g="file")=>{const e=await(await fetch(C)).blob(),t=window.URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=g,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(t)};var QS={exports:{}};(function(C,g){(function(e,t){C.exports=t()})(window,function(){return function(I){var e={};function t(i){if(e[i])return e[i].exports;var A=e[i]={i,l:!1,exports:{}};return I[i].call(A.exports,A,A.exports,t),A.l=!0,A.exports}return t.m=I,t.c=e,t.d=function(i,A,n){t.o(i,A)||Object.defineProperty(i,A,{enumerable:!0,get:n})},t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,A){if(A&1&&(i=t(i)),A&8||A&4&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),A&2&&typeof i!="string")for(var l in i)t.d(n,l,(function(o){return i[o]}).bind(null,l));return n},t.n=function(i){var A=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(A,"a",A),A},t.o=function(i,A){return Object.prototype.hasOwnProperty.call(i,A)},t.p="",t(t.s=0)}({"./src/index.js":function(I,e,t){t.r(e),t("./src/sass/index.scss");var i=t("./src/js/init.js"),A=i.default.init;typeof window<"u"&&(window.printJS=A),e.default=A},"./src/js/browser.js":function(I,e,t){t.r(e);var i={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!n.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};e.default=i},"./src/js/functions.js":function(I,e,t){t.r(e),t.d(e,"addWrapper",function(){return l}),t.d(e,"capitalizePrint",function(){return o}),t.d(e,"collectStyles",function(){return a}),t.d(e,"addHeader",function(){return m}),t.d(e,"cleanUp",function(){return u}),t.d(e,"isRawHTML",function(){return h});var i=t("./src/js/modal.js"),A=t("./src/js/browser.js");function n(Z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(w){return typeof w}:n=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},n(Z)}function l(Z,G){var w="font-family:"+G.font+" !important; font-size: "+G.font_size+" !important; width:100%;";return'<div style="'+w+'">'+Z+"</div>"}function o(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}function a(Z,G){for(var w=document.defaultView||window,B="",p=w.getComputedStyle(Z,""),y=0;y<p.length;y++)(G.targetStyles.indexOf("*")!==-1||G.targetStyle.indexOf(p[y])!==-1||d(G.targetStyles,p[y]))&&p.getPropertyValue(p[y])&&(B+=p[y]+":"+p.getPropertyValue(p[y])+";");return B+="max-width: "+G.maxWidth+"px !important; font-size: "+G.font_size+" !important;",B}function d(Z,G){for(var w=0;w<Z.length;w++)if(n(G)==="object"&&G.indexOf(Z[w])!==-1)return!0;return!1}function m(Z,G){var w=document.createElement("div");if(h(G.header))w.innerHTML=G.header;else{var B=document.createElement("h1"),p=document.createTextNode(G.header);B.appendChild(p),B.setAttribute("style",G.headerStyle),w.appendChild(B)}Z.insertBefore(w,Z.childNodes[0])}function u(Z){Z.showModal&&i.default.close(),Z.onLoadingEnd&&Z.onLoadingEnd(),(Z.showModal||Z.onLoadingStart)&&window.URL.revokeObjectURL(Z.printable);var G="mouseover";(A.default.isChrome()||A.default.isFirefox())&&(G="focus");var w=function B(){window.removeEventListener(G,B),Z.onPrintDialogClose();var p=document.getElementById(Z.frameId);p&&p.remove()};window.addEventListener(G,w)}function h(Z){var G=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return G.test(Z)}},"./src/js/html.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(a)}e.default={print:function(d,m){var u=o(d.printable)?d.printable:document.getElementById(d.printable);if(!u){window.console.error("Invalid HTML element id: "+d.printable);return}d.printableElement=l(u,d),d.header&&Object(i.addHeader)(d.printableElement,d),A.default.send(d,m)}};function l(a,d){for(var m=a.cloneNode(),u=Array.prototype.slice.call(a.childNodes),h=0;h<u.length;h++)if(d.ignoreElements.indexOf(u[h].id)===-1){var Z=l(u[h],d);m.appendChild(Z)}switch(d.scanStyles&&a.nodeType===1&&m.setAttribute("style",Object(i.collectStyles)(a,d)),a.tagName){case"SELECT":m.value=a.value;break;case"CANVAS":m.getContext("2d").drawImage(a,0,0);break}return m}function o(a){return n(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js"),n=t("./src/js/browser.js");e.default={print:function(o,a){o.printable.constructor!==Array&&(o.printable=[o.printable]),o.printableElement=document.createElement("div"),o.printable.forEach(function(d){var m=document.createElement("img");if(m.setAttribute("style",o.imageStyle),m.src=d,n.default.isFirefox()){var u=m.src;m.src=u}var h=document.createElement("div");h.appendChild(m),o.printableElement.appendChild(h)}),o.header&&Object(i.addHeader)(o.printableElement,o),A.default.send(o,a)}}},"./src/js/init.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/modal.js"),n=t("./src/js/pdf.js"),l=t("./src/js/html.js"),o=t("./src/js/raw-html.js"),a=t("./src/js/image.js"),d=t("./src/js/json.js");function m(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(h)}var u=["pdf","html","image","json","raw-html"];e.default={init:function(){var Z={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(R){throw R},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},G=arguments[0];if(G===void 0)throw new Error("printJS expects at least 1 attribute.");switch(m(G)){case"string":Z.printable=encodeURI(G),Z.fallbackPrintable=Z.printable,Z.type=arguments[1]||Z.type;break;case"object":Z.printable=G.printable,Z.fallbackPrintable=typeof G.fallbackPrintable<"u"?G.fallbackPrintable:Z.printable,Z.fallbackPrintable=Z.base64?"data:application/pdf;base64,".concat(Z.fallbackPrintable):Z.fallbackPrintable;for(var w in Z)w==="printable"||w==="fallbackPrintable"||(Z[w]=typeof G[w]<"u"?G[w]:Z[w]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+m(G))}if(!Z.printable)throw new Error("Missing printable information.");if(!Z.type||typeof Z.type!="string"||u.indexOf(Z.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");Z.showModal&&A.default.show(Z),Z.onLoadingStart&&Z.onLoadingStart();var B=document.getElementById(Z.frameId);B&&B.parentNode.removeChild(B);var p=document.createElement("iframe");switch(i.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",Z.frameId),Z.type!=="pdf"&&(p.srcdoc="<html><head><title>"+Z.documentTitle+"</title>",Z.css&&(Array.isArray(Z.css)||(Z.css=[Z.css]),Z.css.forEach(function(Y){p.srcdoc+='<link rel="stylesheet" href="'+Y+'">'})),p.srcdoc+="</head><body></body></html>"),Z.type){case"pdf":if(i.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var y=window.open(Z.fallbackPrintable,"_blank");y.focus(),Z.onIncompatibleBrowser()}catch(Y){Z.onError(Y)}finally{Z.showModal&&A.default.close(),Z.onLoadingEnd&&Z.onLoadingEnd()}else n.default.print(Z,p);break;case"image":a.default.print(Z,p);break;case"html":l.default.print(Z,p);break;case"raw-html":o.default.print(Z,p);break;case"json":d.default.print(Z,p);break}}}},"./src/js/json.js":function(I,e,t){t.r(e);var i=t("./src/js/functions.js"),A=t("./src/js/print.js");function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(d){return typeof d}:n=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(o)}e.default={print:function(a,d){if(n(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(m){return{field:n(m)==="object"?m.field:m,displayName:n(m)==="object"?m.displayName:m,columnSize:n(m)==="object"&&m.columnSize?m.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(i.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=l(a),A.default.send(a,d)}};function l(o){var a=o.printable,d=o.properties,m='<table style="border-collapse: collapse; width: 100%;">';o.repeatTableHeader&&(m+="<thead>"),m+="<tr>";for(var u=0;u<d.length;u++)m+='<th style="width:'+d[u].columnSize+";"+o.gridHeaderStyle+'">'+Object(i.capitalizePrint)(d[u].displayName)+"</th>";m+="</tr>",o.repeatTableHeader&&(m+="</thead>"),m+="<tbody>";for(var h=0;h<a.length;h++){m+="<tr>";for(var Z=0;Z<d.length;Z++){var G=a[h],w=d[Z].field.split(".");if(w.length>1)for(var B=0;B<w.length;B++)G=G[w[B]];else G=G[d[Z].field];m+='<td style="width:'+d[Z].columnSize+o.gridStyle+'">'+G+"</td>"}m+="</tr>"}return m+="</tbody></table>",m}},"./src/js/modal.js":function(I,e,t){t.r(e);var i={show:function(n){var l="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",o=document.createElement("div");o.setAttribute("style",l),o.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var d=document.createElement("div");d.setAttribute("class","printClose"),d.setAttribute("id","printClose"),a.appendChild(d);var m=document.createElement("span");m.setAttribute("class","printSpinner"),a.appendChild(m);var u=document.createTextNode(n.modalMessage);a.appendChild(u),o.appendChild(a),document.getElementsByTagName("body")[0].appendChild(o),document.getElementById("printClose").addEventListener("click",function(){i.close()})},close:function(){var n=document.getElementById("printJS-Modal");n&&n.parentNode.removeChild(n)}};e.default=i},"./src/js/pdf.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js"),A=t("./src/js/functions.js");e.default={print:function(o,a){if(o.base64){var d=Uint8Array.from(atob(o.printable),function(u){return u.charCodeAt(0)});n(o,a,d);return}o.printable=/^(blob|http|\/\/)/i.test(o.printable)?o.printable:window.location.origin+(o.printable.charAt(0)!=="/"?"/"+o.printable:o.printable);var m=new window.XMLHttpRequest;m.responseType="arraybuffer",m.addEventListener("error",function(){Object(A.cleanUp)(o),o.onError(m.statusText,m)}),m.addEventListener("load",function(){if([200,201].indexOf(m.status)===-1){Object(A.cleanUp)(o),o.onError(m.statusText,m);return}n(o,a,m.response)}),m.open("GET",o.printable,!0),m.send()}};function n(l,o,a){var d=new window.Blob([a],{type:"application/pdf"});d=window.URL.createObjectURL(d),o.setAttribute("src",d),i.default.send(l,o)}},"./src/js/print.js":function(I,e,t){t.r(e);var i=t("./src/js/browser.js"),A=t("./src/js/functions.js"),n={send:function(m,u){document.getElementsByTagName("body")[0].appendChild(u);var h=document.getElementById(m.frameId);h.onload=function(){if(m.type==="pdf"){i.default.isFirefox()?setTimeout(function(){return l(h,m)},1e3):l(h,m);return}var Z=h.contentWindow||h.contentDocument;if(Z.document&&(Z=Z.document),Z.body.appendChild(m.printableElement),m.type!=="pdf"&&m.style){var G=document.createElement("style");G.innerHTML=m.style,Z.head.appendChild(G)}var w=Z.getElementsByTagName("img");w.length>0?o(Array.from(w)).then(function(){return l(h,m)}):l(h,m)}}};function l(d,m){try{if(d.focus(),i.default.isEdge()||i.default.isIE())try{d.contentWindow.document.execCommand("print",!1,null)}catch{d.contentWindow.print()}else d.contentWindow.print()}catch(u){m.onError(u)}finally{i.default.isFirefox()&&(d.style.visibility="hidden",d.style.left="-1px"),Object(A.cleanUp)(m)}}function o(d){var m=d.map(function(u){if(u.src&&u.src!==window.location.href)return a(u)});return Promise.all(m)}function a(d){return new Promise(function(m){var u=function h(){!d||typeof d.naturalWidth>"u"||d.naturalWidth===0||!d.complete?setTimeout(h,500):m()};u()})}e.default=n},"./src/js/raw-html.js":function(I,e,t){t.r(e);var i=t("./src/js/print.js");e.default={print:function(n,l){n.printableElement=document.createElement("div"),n.printableElement.setAttribute("style","width:100%"),n.printableElement.innerHTML=n.printable,i.default.send(n,l)}}},"./src/sass/index.scss":function(I,e,t){},0:function(I,e,t){I.exports=t("./src/index.js")}}).default})})(QS);var Vxg=QS.exports;const Nxg=ETg(Vxg),cl=C=>{if(!C)return!1;const g=IN(C);return g?Object.values(Kh).includes(g):!1},Mxg=["src"],e0=s.defineComponent({name:"VideoPreview",__name:"VideoPreview",props:{src:{}},emits:["error","load"],setup(C,{emit:g}){const I=C,e=g,t=s.reactive({isError:!1});let i=null;const A={mp4:"video/mp4",webm:"video/webm",mkv:"video/x-matroska",avi:"video/x-msvideo",mov:"video/quicktime",qt:"video/quicktime",m4v:"video/x-m4v"};s.watch(()=>I.src,()=>{t.isError=!1,o(),s.nextTick(()=>{a()})});const n=s.ref(null),l=d=>{var u;const m=(u=IN(d))==null?void 0:u.toLowerCase();return m?A[m]??"video/mp4":"video/mp4"},o=()=>{i&&(URL.revokeObjectURL(i),i=null)},a=async()=>{try{if(!n.value||!I.src)return;const d=document.createElement("video");d.muted=!0,d.preload="metadata",d.playsInline=!0;const m=await fetch(I.src);if(!m.ok)throw new Error("Failed to fetch video");const u=new Blob([await m.arrayBuffer()],{type:l(I.src)});i=URL.createObjectURL(u),d.src=i;const h=n.value.getContext("2d");if(!h)return;const Z=()=>{if(!n.value)return;const G=d.videoWidth||1,w=d.videoHeight||1;n.value.width=G,n.value.height=w,h.clearRect(0,0,G,w),h.drawImage(d,0,0,G,w),e("load")};d.addEventListener("loadedmetadata",()=>{if(!n.value)return;n.value.width=d.videoWidth||1,n.value.height=d.videoHeight||1;const G=Number.isFinite(d.duration)&&d.duration>1?1:0;if(G===0){Z();return}d.currentTime=G}),d.addEventListener("seeked",()=>{Z()}),d.addEventListener("loadeddata",()=>{var G,w;(!((G=n.value)!=null&&G.width)||!((w=n.value)!=null&&w.height))&&Z()}),d.addEventListener("error",G=>{t.isError=!0,e("error",G)})}catch{e("error",new Event("error")),t.isError=!0}};return s.onMounted(()=>{s.nextTick(()=>{a()})}),s.onUnmounted(()=>{o()}),(d,m)=>t.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,Mxg)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:n,class:"video-preview"},null,512))}}),XA=C=>C?C instanceof File?C.type==="application/pdf":Gr(C):!1;var qC=function(){return qC=Object.assign||function(g){for(var I,e=1,t=arguments.length;e<t;e++){I=arguments[e];for(var i in I)Object.prototype.hasOwnProperty.call(I,i)&&(g[i]=I[i])}return g},qC.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError,typeof window<"u"&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),typeof window.CustomEvent!="function"&&(window.CustomEvent=function(g,I){I=I||{bubbles:!1,cancelable:!1,detail:null};var e=document.createEvent("CustomEvent");return e.initCustomEvent(g,I.bubbles,I.cancelable,I.detail),e}));var Rxg=typeof document<"u"&&!!document.documentMode,CN;function fxg(){return CN||(CN=document.createElement("div").style)}var US=["webkit","moz","ms"],wW={};function eN(C){if(wW[C])return wW[C];var g=fxg();if(C in g)return wW[C]=C;for(var I=C[0].toUpperCase()+C.slice(1),e=US.length;e--;){var t="".concat(US[e]).concat(I);if(t in g)return wW[C]=t}}function WW(C,g){return parseFloat(g[eN(C)])||0}function BW(C,g,I){I===void 0&&(I=window.getComputedStyle(C));var e=g==="border"?"Width":"";return{left:WW("".concat(g,"Left").concat(e),I),right:WW("".concat(g,"Right").concat(e),I),top:WW("".concat(g,"Top").concat(e),I),bottom:WW("".concat(g,"Bottom").concat(e),I)}}function yr(C,g,I){C.style[eN(g)]=I}function Xxg(C,g){var I=eN("transform");yr(C,"transition","".concat(I," ").concat(g.duration,"ms ").concat(g.easing))}function Hxg(C,g,I){var e=g.x,t=g.y,i=g.scale,A=g.isSVG;if(yr(C,"transform","scale(".concat(i,") translate(").concat(e,"px, ").concat(t,"px)")),A&&Rxg){var n=window.getComputedStyle(C).getPropertyValue("transform");C.setAttribute("transform",n)}}function tN(C){var g=C.parentNode,I=window.getComputedStyle(C),e=window.getComputedStyle(g),t=C.getBoundingClientRect(),i=g.getBoundingClientRect();return{elem:{style:I,width:t.width,height:t.height,top:t.top,bottom:t.bottom,left:t.left,right:t.right,margin:BW(C,"margin",I),border:BW(C,"border",I)},parent:{style:e,width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right,padding:BW(g,"padding",e),border:BW(g,"border",e)}}}var t0={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};typeof window<"u"&&(typeof window.PointerEvent=="function"?t0={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:typeof window.TouchEvent=="function"&&(t0={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));function iN(C,g,I,e){t0[C].split(" ").forEach(function(t){g.addEventListener(t,I,e)})}function AN(C,g,I){t0[C].split(" ").forEach(function(e){g.removeEventListener(e,I)})}function ES(C,g){for(var I=C.length;I--;)if(C[I].pointerId===g.pointerId)return I;return-1}function nN(C,g){var I;if(g.touches){I=0;for(var e=0,t=g.touches;e<t.length;e++){var i=t[e];i.pointerId=I++,nN(C,i)}return}I=ES(C,g),I>-1&&C.splice(I,1),C.push(g)}function Dxg(C,g){if(g.touches){for(;C.length;)C.pop();return}var I=ES(C,g);I>-1&&C.splice(I,1)}function PS(C){C=C.slice(0);for(var g=C.pop(),I;I=C.pop();)g={clientX:(I.clientX-g.clientX)/2+g.clientX,clientY:(I.clientY-g.clientY)/2+g.clientY};return g}function lN(C){if(C.length<2)return 0;var g=C[0],I=C[1];return Math.sqrt(Math.pow(Math.abs(I.clientX-g.clientX),2)+Math.pow(Math.abs(I.clientY-g.clientY),2))}function Sxg(C){for(var g=C;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1}function Kxg(C){return(C.getAttribute("class")||"").trim()}function kxg(C,g){return C.nodeType===1&&" ".concat(Kxg(C)," ").indexOf(" ".concat(g," "))>-1}function Fxg(C,g){for(var I=C;I!=null;I=I.parentNode)if(kxg(I,g.excludeClass)||g.exclude.indexOf(I)>-1)return!0;return!1}var zxg=/^http:[\w\.\/]+svg$/;function Jxg(C){return zxg.test(C.namespaceURI)&&C.nodeName.toLowerCase()!=="svg"}function Lxg(C){var g={};for(var I in C)C.hasOwnProperty(I)&&(g[I]=C[I]);return g}var _S={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:function(C){C.preventDefault(),C.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:Hxg,startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function $S(C,g){if(!C)throw new Error("Panzoom requires an element as an argument");if(C.nodeType!==1)throw new Error("Panzoom requires an element with a nodeType of 1");if(!Sxg(C))throw new Error("Panzoom should be called on elements that have been attached to the DOM");g=qC(qC({},_S),g);var I=Jxg(C),e=C.parentNode;e.style.overflow=g.overflow,e.style.userSelect="none",e.style.touchAction=g.touchAction,(g.canvas?e:C).style.cursor=g.cursor,C.style.userSelect="none",C.style.touchAction=g.touchAction,yr(C,"transformOrigin",typeof g.origin=="string"?g.origin:I?"0 0":"50% 50%");function t(){e.style.overflow="",e.style.userSelect="",e.style.touchAction="",e.style.cursor="",C.style.cursor="",C.style.userSelect="",C.style.touchAction="",yr(C,"transformOrigin","")}function i(eg){eg===void 0&&(eg={});for(var mg in eg)eg.hasOwnProperty(mg)&&(g[mg]=eg[mg]);(eg.hasOwnProperty("cursor")||eg.hasOwnProperty("canvas"))&&(e.style.cursor=C.style.cursor="",(g.canvas?e:C).style.cursor=g.cursor),eg.hasOwnProperty("overflow")&&(e.style.overflow=eg.overflow),eg.hasOwnProperty("touchAction")&&(e.style.touchAction=eg.touchAction,C.style.touchAction=eg.touchAction)}var A=0,n=0,l=1,o=!1;Z(g.startScale,{animate:!1,force:!0}),setTimeout(function(){h(g.startX,g.startY,{animate:!1,force:!0})});function a(eg,mg,Yg){if(!Yg.silent){var Zg=new CustomEvent(eg,{detail:mg});C.dispatchEvent(Zg)}}function d(eg,mg,Yg){var Zg={x:A,y:n,scale:l,isSVG:I,originalEvent:Yg};return requestAnimationFrame(function(){typeof mg.animate=="boolean"&&(mg.animate?Xxg(C,mg):yr(C,"transition","none")),mg.setTransform(C,Zg,mg),a(eg,Zg,mg),a("panzoomchange",Zg,mg)}),Zg}function m(eg,mg,Yg,Zg){var ag=qC(qC({},g),Zg),pg={x:A,y:n,opts:ag};if(!(Zg!=null&&Zg.force)&&(ag.disablePan||ag.panOnlyWhenZoomed&&l===ag.startScale))return pg;if(eg=parseFloat(eg),mg=parseFloat(mg),ag.disableXAxis||(pg.x=(ag.relative?A:0)+eg),ag.disableYAxis||(pg.y=(ag.relative?n:0)+mg),ag.contain){var bg=tN(C),oI=bg.elem.width/l,AI=bg.elem.height/l,nC=oI*Yg,KC=AI*Yg,eC=(nC-oI)/2,WI=(KC-AI)/2;if(ag.contain==="inside"){var ie=(-bg.elem.margin.left-bg.parent.padding.left+eC)/Yg,ke=(bg.parent.width-nC-bg.parent.padding.left-bg.elem.margin.left-bg.parent.border.left-bg.parent.border.right+eC)/Yg;pg.x=Math.max(Math.min(pg.x,ke),ie);var kC=(-bg.elem.margin.top-bg.parent.padding.top+WI)/Yg,Ri=(bg.parent.height-KC-bg.parent.padding.top-bg.elem.margin.top-bg.parent.border.top-bg.parent.border.bottom+WI)/Yg;pg.y=Math.max(Math.min(pg.y,Ri),kC)}else if(ag.contain==="outside"){var ie=(-(nC-bg.parent.width)-bg.parent.padding.left-bg.parent.border.left-bg.parent.border.right+eC)/Yg,ke=(eC-bg.parent.padding.left)/Yg;pg.x=Math.max(Math.min(pg.x,ke),ie);var kC=(-(KC-bg.parent.height)-bg.parent.padding.top-bg.parent.border.top-bg.parent.border.bottom+WI)/Yg,Ri=(WI-bg.parent.padding.top)/Yg;pg.y=Math.max(Math.min(pg.y,Ri),kC)}}return ag.roundPixels&&(pg.x=Math.round(pg.x),pg.y=Math.round(pg.y)),pg}function u(eg,mg){var Yg=qC(qC({},g),mg),Zg={scale:l,opts:Yg};if(!(mg!=null&&mg.force)&&Yg.disableZoom)return Zg;var ag=g.minScale,pg=g.maxScale;if(Yg.contain){var bg=tN(C),oI=bg.elem.width/l,AI=bg.elem.height/l;if(oI>1&&AI>1){var nC=bg.parent.width-bg.parent.border.left-bg.parent.border.right,KC=bg.parent.height-bg.parent.border.top-bg.parent.border.bottom,eC=nC/oI,WI=KC/AI;g.contain==="inside"?pg=Math.min(pg,eC,WI):g.contain==="outside"&&(ag=Math.max(ag,eC,WI))}}return Zg.scale=Math.min(Math.max(eg,ag),pg),Zg}function h(eg,mg,Yg,Zg){var ag=m(eg,mg,l,Yg);return A!==ag.x||n!==ag.y?(A=ag.x,n=ag.y,d("panzoompan",ag.opts,Zg)):{x:A,y:n,scale:l,isSVG:I,originalEvent:Zg}}function Z(eg,mg,Yg){var Zg=u(eg,mg),ag=Zg.opts;if(!(!(mg!=null&&mg.force)&&ag.disableZoom)){eg=Zg.scale;var pg=A,bg=n;if(ag.focal){var oI=ag.focal;pg=(oI.x/eg-oI.x/l+A*eg)/eg,bg=(oI.y/eg-oI.y/l+n*eg)/eg}var AI=m(pg,bg,eg,{relative:!1,force:!0});return A=AI.x,n=AI.y,l=eg,d("panzoomzoom",ag,Yg)}}function G(eg,mg){var Yg=qC(qC(qC({},g),{animate:!0}),mg);return Z(l*Math.exp((eg?1:-1)*Yg.step),Yg)}function w(eg){return G(!0,eg)}function B(eg){return G(!1,eg)}function p(eg,mg,Yg,Zg){var ag=tN(C),pg={width:ag.parent.width-ag.parent.padding.left-ag.parent.padding.right-ag.parent.border.left-ag.parent.border.right,height:ag.parent.height-ag.parent.padding.top-ag.parent.padding.bottom-ag.parent.border.top-ag.parent.border.bottom},bg=mg.clientX-ag.parent.left-ag.parent.padding.left-ag.parent.border.left-ag.elem.margin.left,oI=mg.clientY-ag.parent.top-ag.parent.padding.top-ag.parent.border.top-ag.elem.margin.top;I||(bg-=ag.elem.width/l/2,oI-=ag.elem.height/l/2);var AI={x:bg/pg.width*(pg.width*eg),y:oI/pg.height*(pg.height*eg)};return Z(eg,qC(qC({},Yg),{animate:!1,focal:AI}),Zg)}function y(eg,mg){eg.preventDefault();var Yg=qC(qC(qC({},g),mg),{animate:!1}),Zg=eg.deltaY===0&&eg.deltaX?eg.deltaX:eg.deltaY,ag=Zg<0?1:-1,pg=u(l*Math.exp(ag*Yg.step/3),Yg).scale;return p(pg,eg,Yg,eg)}function Y(eg){var mg=qC(qC(qC({},g),{animate:!0,force:!0}),eg);l=u(mg.startScale,mg).scale;var Yg=m(mg.startX,mg.startY,l,mg);return A=Yg.x,n=Yg.y,d("panzoomreset",mg)}var R,M,K,J,X,D,z=[];function j(eg){if(!Fxg(eg.target,g)){nN(z,eg),o=!0,g.handleStartEvent(eg),R=A,M=n,a("panzoomstart",{x:A,y:n,scale:l,isSVG:I,originalEvent:eg},g);var mg=PS(z);K=mg.clientX,J=mg.clientY,X=l,D=lN(z)}}function q(eg){if(!(!o||R===void 0||M===void 0||K===void 0||J===void 0)){nN(z,eg);var mg=PS(z),Yg=z.length>1,Zg=l;if(Yg){D===0&&(D=lN(z));var ag=lN(z)-D;Zg=u(ag*g.step/80+X).scale,p(Zg,mg,{animate:!1},eg)}(!Yg||g.pinchAndPan)&&h(R+(mg.clientX-K)/Zg,M+(mg.clientY-J)/Zg,{animate:!1},eg)}}function gg(eg){z.length===1&&a("panzoomend",{x:A,y:n,scale:l,isSVG:I,originalEvent:eg},g),Dxg(z,eg),o&&(o=!1,R=M=K=J=void 0)}var Q=!1;function _(){Q||(Q=!0,iN("down",g.canvas?e:C,j),iN("move",document,q,{passive:!0}),iN("up",document,gg,{passive:!0}))}function og(){Q=!1,AN("down",g.canvas?e:C,j),AN("move",document,q),AN("up",document,gg)}return g.noBind||_(),{bind:_,destroy:og,eventNames:t0,getPan:function(){return{x:A,y:n}},getScale:function(){return l},getOptions:function(){return Lxg(g)},handleDown:j,handleMove:q,handleUp:gg,pan:h,reset:Y,resetStyle:t,setOptions:i,setStyle:function(eg,mg){return yr(C,eg,mg)},zoom:Z,zoomIn:w,zoomOut:B,zoomToPoint:p,zoomWithWheel:y}}$S.defaultOptions=_S;const Txg={ref:"contentRef",class:"slider-modal__content"},vxg=["onClick"],jxg={class:"slider-modal__side-bar-count"},xxg={key:0,class:"slider-modal__mobile-header"},Oxg={class:"slider-modal__mobile-header-block"},Qxg={class:"slider-modal__mobile-header-block"},Uxg={class:"slider-modal__counter"},Exg={class:"slider-modal__name"},Pxg=["src"],_xg=["data-testid"],$xg=["src","type"],qxg=["src"],g4g={class:"slider-modal__bottom"},I4g={class:"slider-modal__nav-block"},C4g=["disabled"],e4g=["src","alt"],t4g=["src"],i4g=["disabled"],A4g={class:"slider-modal__nav-block"},n4g={class:"slider-modal__sub-nav"},l4g=["disabled"],s4g=["disabled"],o4g=["disabled"],a4g={class:"slider-modal__sub-nav"},d4g=["disabled"],c4g=["disabled"],sN=80,qS=20,r4g=80,m4g=20,u4g=200,pW=fg(s.defineComponent({name:"SliderModal",__name:"SliderModal",props:{dataTestid:{default:"SliderModal"},animateType:{},open:{type:Boolean},position:{},width:{},height:{},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},items:{},defaultIndex:{default:0}},emits:["close","unmounted","end-animation"],setup(C,{emit:g}){const I=C,e=g,t=window.matchMedia("(max-width: 768px)"),i=s.reactive({defaultIndex:I.defaultIndex,file:I.items[I.defaultIndex],sideBarItems:[],sideBarIndex:0,sideBarLength:0,isErrorFile:!1,isClickOnExit:!1,isMobile:!1,isPointerActive:!1,isExistSwipe:!1,isChangeItemSwipe:!1,isSwipeNextSlide:!1,isSwipePrevSlide:!1,isExitScrollActive:!1,isImagePositioned:!1,zoomValue:1,offsetX:0,offsetY:0,startX:0,startY:0,startXForMobile:0,startYForMobile:0,endXForMobile:0,endYForMobile:0,overscrollDelta:0,startScrollTop:0,rotateValue:0}),A=s.ref(null),n=s.ref(null),l=s.ref(null),o=s.ref(null),a=s.ref(null),d=s.ref(null),m=s.ref(null),u=s.ref(null),h=s.ref(null);let Z=null,G=null,w=null;const B=s.computed(()=>i.defaultIndex===0),p=s.computed(()=>i.defaultIndex===I.items.length-1),y=s.computed(()=>{var Ig,Ag,Wg,Kg;return!(XA((Ig=i.file)==null?void 0:Ig.path)||XA((Ag=i.file)==null?void 0:Ag.file)||Oa((Wg=i.file)==null?void 0:Wg.path)||cl((Kg=i.file)==null?void 0:Kg.path))}),Y=s.computed(()=>{var Ag,Wg;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig=i.isMobile&&XA((Wg=i.file)==null?void 0:Wg.path)||Ig,Ig}),R=s.computed(()=>{var Ag;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig}),M=s.computed(()=>!i.file||i.isErrorFile||y.value),K=s.computed(()=>{var Ag;let Ig=!i.file||i.isErrorFile||y.value;return Ig=cl((Ag=i.file)==null?void 0:Ag.path)||Ig,Ig}),J=s.computed(()=>({transform:`
|
|
1417
1417
|
scale(${i.zoomValue})
|
|
1418
1418
|
`})),X=()=>{w&&(window.clearTimeout(w),w=null)},D=Ig=>{X(),w=window.setTimeout(()=>{var Ag;w=null,!(Ig&&((Ag=i.file)==null?void 0:Ag.path)!==Ig)&&(i.isImagePositioned||!u.value||(i.isImagePositioned=!0))},u4g)},z=()=>{if(!u.value)return!1;j();const Ig=u.value.parentElement;if(!Ig)return!1;const Ag=Ig.getBoundingClientRect(),Wg=u.value.getBoundingClientRect(),Kg=(Ag.width-Wg.width)/2,Ug=(Ag.height-Wg.height)/2;try{Z=$S(u.value,{maxScale:3,minScale:1,startX:Kg,startY:Ug,panOnlyWhenZoomed:!0,startScale:1,animate:!1,cursor:"default",setTransform:(xI,{x:ze,y:ea,scale:fi})=>{const ta=xI.parentElement,Il=xI;ta&&(i.isMobile&&(fi=Math.max(Math.min(fi,3),1),i.zoomValue=fi),Z==null||Z.setStyle("transform",`translate(${ze}px, ${ea}px) scale(${fi}) rotate(${i.rotateValue}deg)`))}})}catch(xI){return console.error("Failed to initialize image panzoom",xI),Z=null,!1}return requestAnimationFrame(()=>{Z==null||Z.setOptions({animate:!0})}),i.isImagePositioned=!0,Z.handleUp=()=>{if(!Z||!u.value)return;const xI=u.value;if(Z.getScale()<=1){q();return}const{top:ea,left:fi,bottom:ta,right:Il}=Ig.getBoundingClientRect(),{x:ia,y:Aa}=Z.getPan(),{top:Mu,left:PC,right:Je,bottom:na}=xI.getBoundingClientRect();let EZ=ia,PZ=Aa;const Ru=PC-fi,_Z=Il-Je,$Z=Mu-ea,qZ=ta-na;Ru>0&&_Z<0&&(EZ=ia-Ru),_Z>0&&Ru<0&&(EZ=ia+_Z),$Z>0&&qZ<0&&(PZ=Aa-$Z),qZ>0&&$Z<0&&(PZ=Aa+qZ),Z.pan(EZ,PZ,{force:!0})},document.addEventListener("pointerup",Z.handleUp),window.addEventListener("resize",q),!0},j=(Ig=!0)=>{Z&&(window.removeEventListener("resize",q),document.removeEventListener("pointerup",Z.handleUp),Z.destroy(),Z=null,Ig&&u.value&&BI({transform:"none",transition:"none"},u.value))},q=()=>{if(!Z||!u.value)return;const Ig=u.value.parentElement;if(!Ig)return;const Ag=Ig.getBoundingClientRect(),Wg=u.value.offsetWidth,Kg=u.value.offsetHeight,Ug=(Ag.width-Wg)/2,xI=(Ag.height-Kg)/2;Z.pan(Ug,xI,{force:!0})};s.watch([()=>I.items,()=>I.defaultIndex],()=>{i.file=I.items[I.defaultIndex??0],i.defaultIndex=I.defaultIndex??0,X(),j()}),s.watch([()=>i.file,()=>I.open],()=>{I.open&&(i.zoomValue=1,i.isImagePositioned=!1,X(),_A(),i.file||(i.file=I.items[I.defaultIndex??0]),i.isErrorFile=!1,KM(),gn())}),s.watch(()=>I.open,()=>{if(!I.open){j(!1),X();return}s.nextTick(()=>{m.value&&m.value.initScroll()}),i.defaultIndex=I.defaultIndex??0}),s.watch(()=>i.sideBarIndex,()=>{vZ()});const gg=()=>{i.isClickOnExit&&e("close")},Q=()=>{I.open||(_A(),Rc(),Hc(),i.file=I.items[I.defaultIndex]),e("end-animation")},_=Ig=>{cA(Ig)},og=Ig=>{i.sideBarIndex=Ig},eg=Ig=>{i.isMobile||gl(Ig.deltaY)},mg=()=>{qA(!0)},Yg=()=>{qA(!1)},Zg=()=>{if(d.value&&d.value.rotatePdf(-90),u.value){i.rotateValue+=-90;let Ig=0,Ag=0;const Wg=Vt();Ig=(Z==null?void 0:Z.getPan().x)||0,Ag=(Z==null?void 0:Z.getPan().y)||0;const Kg={transform:`translate(${Ig||0}px, ${Ag||0}px) rotate(${i.rotateValue}deg) scale(${Wg||1})`};BI(Kg,u.value)}},ag=()=>{var Kg,Ug,xI;if(!((Kg=i.file)!=null&&Kg.path))return;let Ig="pdf",Ag="",Wg="";Oa((Ug=i.file)==null?void 0:Ug.path)&&(Ig="image",Ag=`
|
|
1419
1419
|
@page {
|
|
@@ -1528,4 +1528,4 @@ img.ProseMirror-separator {
|
|
|
1528
1528
|
`,Z8g="️",G8g="",q1="";let PB=null,_B=null;function w8g(C=[]){const g={};Lt.groups=g;const I=new Lt;PB==null&&(PB=yF(c8g)),_B==null&&(_B=yF(r8g)),rg(I,"'",FB),rg(I,"{",K0),rg(I,"}",k0),rg(I,"[",BB),rg(I,"]",pB),rg(I,"(",yB),rg(I,")",YB),rg(I,"<",VB),rg(I,">",NB),rg(I,"(",MB),rg(I,")",RB),rg(I,"「",fB),rg(I,"」",XB),rg(I,"『",HB),rg(I,"』",DB),rg(I,"<",SB),rg(I,">",KB),rg(I,"&",kB),rg(I,"*",zB),rg(I,"@",to),rg(I,"`",LB),rg(I,"^",TB),rg(I,":",io),rg(I,",",O1),rg(I,"$",vB),rg(I,".",yn),rg(I,"=",jB),rg(I,"!",Q1),rg(I,"-",Ui),rg(I,"%",F0),rg(I,"|",xB),rg(I,"+",OB),rg(I,"#",QB),rg(I,"?",z0),rg(I,'"',U1),rg(I,"/",Yn),rg(I,";",E1),rg(I,"~",J0),rg(I,"_",UB),rg(I,"\\",JB),rg(I,"・",GF);const e=yC(I,Wl,v1,{[S1]:!0});yC(e,Wl,e);const t=yC(e,wl,bF,{[H0]:!0}),i=yC(e,L0,ZF,{[D0]:!0}),A=yC(I,wl,Gl,{[K1]:!0});yC(A,Wl,t),yC(A,wl,A),yC(t,Wl,t),yC(t,wl,t);const n=yC(I,L0,J1,{[k1]:!0});yC(n,wl),yC(n,Wl,i),yC(n,L0,n),yC(i,Wl,i),yC(i,wl),yC(i,L0,i);const l=rg(I,$1,x1,{[z1]:!0}),o=rg(I,BF,j1,{[z1]:!0}),a=yC(I,_1,j1,{[z1]:!0});rg(I,q1,a),rg(o,$1,l),rg(o,q1,a),yC(o,_1,a),rg(a,BF),rg(a,$1),yC(a,_1,a),rg(a,q1,a);const d=yC(I,P1,wF,{[uF]:!0});rg(d,"#"),yC(d,P1,d),rg(d,Z8g,d);const m=rg(d,G8g);rg(m,"#"),yC(m,P1,d);const u=[[wl,A],[Wl,t]],h=[[wl,null],[L0,n],[Wl,i]];for(let Z=0;Z<PB.length;Z++)Ao(I,PB[Z],L1,Gl,u);for(let Z=0;Z<_B.length;Z++)Ao(I,_B[Z],T1,J1,h);ld(L1,{tld:!0,ascii:!0},g),ld(T1,{utld:!0,alpha:!0},g),Ao(I,"file",WB,Gl,u),Ao(I,"mailto",WB,Gl,u),Ao(I,"http",Or,Gl,u),Ao(I,"https",Or,Gl,u),Ao(I,"ftp",Or,Gl,u),Ao(I,"ftps",Or,Gl,u),ld(WB,{scheme:!0,ascii:!0},g),ld(Or,{slashscheme:!0,ascii:!0},g),C=C.sort((Z,G)=>Z[0]>G[0]?1:-1);for(let Z=0;Z<C.length;Z++){const G=C[Z][0],B=C[Z][1]?{[m8g]:!0}:{[u8g]:!0};G.indexOf("-")>=0?B[F1]=!0:wl.test(G)?Wl.test(G)?B[H0]=!0:B[K1]=!0:B[S1]=!0,hF(I,G,G,B)}return hF(I,"localhost",S0,{ascii:!0}),I.jd=new Lt(EB),{start:I,tokens:Object.assign({groups:g},WF)}}function pF(C,g){const I=W8g(g.replace(/[A-Z]/g,n=>n.toLowerCase())),e=I.length,t=[];let i=0,A=0;for(;A<e;){let n=C,l=null,o=0,a=null,d=-1,m=-1;for(;A<e&&(l=n.go(I[A]));)n=l,n.accepts()?(d=0,m=0,a=n):d>=0&&(d+=I[A].length,m++),o+=I[A].length,i+=I[A].length,A++;i-=d,A-=m,o-=d,t.push({t:a.t,v:g.slice(i-o,i),s:i-o,e:i})}return t}function W8g(C){const g=[],I=C.length;let e=0;for(;e<I;){let t=C.charCodeAt(e),i,A=t<55296||t>56319||e+1===I||(i=C.charCodeAt(e+1))<56320||i>57343?C[e]:C.slice(e,e+2);g.push(A),e+=A.length}return g}function Ao(C,g,I,e,t){let i;const A=g.length;for(let n=0;n<A-1;n++){const l=g[n];C.j[l]?i=C.j[l]:(i=new Lt(e),i.jr=t.slice(),C.j[l]=i),C=i}return i=new Lt(I),i.jr=t.slice(),C.j[g[A-1]]=i,i}function yF(C){const g=[],I=[];let e=0,t="0123456789";for(;e<C.length;){let i=0;for(;t.indexOf(C[e+i])>=0;)i++;if(i>0){g.push(I.join(""));for(let A=parseInt(C.substring(e,e+i),10);A>0;A--)I.pop();e+=i}else I.push(C[e]),e++}return g}const T0={defaultProtocol:"http",events:null,format:YF,formatHref:YF,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gM(C,g=null){let I=Object.assign({},T0);C&&(I=Object.assign(I,C instanceof gM?C.o:C));const e=I.ignoreTags,t=[];for(let i=0;i<e.length;i++)t.push(e[i].toUpperCase());this.o=I,g&&(this.defaultRender=g),this.ignoreTags=t}gM.prototype={o:T0,ignoreTags:[],defaultRender(C){return C},check(C){return this.get("validate",C.toString(),C)},get(C,g,I){const e=g!=null;let t=this.o[C];return t&&(typeof t=="object"?(t=I.t in t?t[I.t]:T0[C],typeof t=="function"&&e&&(t=t(g,I))):typeof t=="function"&&e&&(t=t(g,I.t,I)),t)},getObj(C,g,I){let e=this.o[C];return typeof e=="function"&&g!=null&&(e=e(g,I.t,I)),e},render(C){const g=C.render(this);return(this.get("render",null,C)||this.defaultRender)(g,C.t,C)}};function YF(C){return C}function VF(C,g){this.t="token",this.v=C,this.tk=g}VF.prototype={isLink:!1,toString(){return this.v},toHref(C){return this.toString()},toFormattedString(C){const g=this.toString(),I=C.get("truncate",g,this),e=C.get("format",g,this);return I&&e.length>I?e.substring(0,I)+"…":e},toFormattedHref(C){return C.get("formatHref",this.toHref(C.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(C=T0.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(C),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(C){return{type:this.t,value:this.toFormattedString(C),isLink:this.isLink,href:this.toFormattedHref(C),start:this.startIndex(),end:this.endIndex()}},validate(C){return C.get("validate",this.toString(),this)},render(C){const g=this,I=this.toHref(C.get("defaultProtocol")),e=C.get("formatHref",I,this),t=C.get("tagName",I,g),i=this.toFormattedString(C),A={},n=C.get("className",I,g),l=C.get("target",I,g),o=C.get("rel",I,g),a=C.getObj("attributes",I,g),d=C.getObj("events",I,g);return A.href=e,n&&(A.class=n),l&&(A.target=l),o&&(A.rel=o),a&&Object.assign(A,a),{tagName:t,attributes:A,content:i,eventListeners:d}}};function $B(C,g){class I extends VF{constructor(t,i){super(t,i),this.t=C}}for(const e in g)I.prototype[e]=g[e];return I.t=C,I}const NF=$B("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),MF=$B("text"),B8g=$B("nl"),qB=$B("url",{isLink:!0,toHref(C=T0.defaultProtocol){return this.hasProtocol()?this.v:`${C}://${this.v}`},hasProtocol(){const C=this.tk;return C.length>=2&&C[0].t!==S0&&C[1].t===io}}),Ei=C=>new Lt(C);function p8g({groups:C}){const g=C.domain.concat([kB,zB,to,JB,LB,TB,vB,jB,Ui,v1,F0,xB,OB,QB,Yn,EB,J0,UB]),I=[FB,io,O1,yn,Q1,F0,z0,U1,E1,VB,NB,K0,k0,pB,BB,yB,YB,MB,RB,fB,XB,HB,DB,SB,KB],e=[kB,FB,zB,JB,LB,TB,vB,jB,Ui,K0,k0,F0,xB,OB,QB,z0,Yn,EB,J0,UB],t=Ei(),i=rg(t,J0);iI(i,e,i),iI(i,C.domain,i);const A=Ei(),n=Ei(),l=Ei();iI(t,C.domain,A),iI(t,C.scheme,n),iI(t,C.slashscheme,l),iI(A,e,i),iI(A,C.domain,A);const o=rg(A,to);rg(i,to,o),rg(n,to,o),rg(l,to,o);const a=rg(i,yn);iI(a,e,i),iI(a,C.domain,i);const d=Ei();iI(o,C.domain,d),iI(d,C.domain,d);const m=rg(d,yn);iI(m,C.domain,d);const u=Ei(NF);iI(m,C.tld,u),iI(m,C.utld,u),rg(o,S0,u);const h=rg(d,Ui);rg(h,Ui,h),iI(h,C.domain,d),iI(u,C.domain,d),rg(u,yn,m),rg(u,Ui,h);const Z=rg(u,io);iI(Z,C.numeric,NF);const G=rg(A,Ui),w=rg(A,yn);rg(G,Ui,G),iI(G,C.domain,A),iI(w,e,i),iI(w,C.domain,A);const B=Ei(qB);iI(w,C.tld,B),iI(w,C.utld,B),iI(B,C.domain,A),iI(B,e,i),rg(B,yn,w),rg(B,Ui,G),rg(B,to,o);const p=rg(B,io),y=Ei(qB);iI(p,C.numeric,y);const Y=Ei(qB),R=Ei();iI(Y,g,Y),iI(Y,I,R),iI(R,g,Y),iI(R,I,R),rg(B,Yn,Y),rg(y,Yn,Y);const M=rg(n,io),K=rg(l,io),J=rg(K,Yn),X=rg(J,Yn);iI(n,C.domain,A),rg(n,yn,w),rg(n,Ui,G),iI(l,C.domain,A),rg(l,yn,w),rg(l,Ui,G),iI(M,C.domain,Y),rg(M,Yn,Y),rg(M,z0,Y),iI(X,C.domain,Y),iI(X,g,Y),rg(X,Yn,Y);const D=[[K0,k0],[BB,pB],[yB,YB],[VB,NB],[MB,RB],[fB,XB],[HB,DB],[SB,KB]];for(let z=0;z<D.length;z++){const[j,q]=D[z],gg=rg(Y,j);rg(R,j,gg),rg(gg,q,Y);const Q=Ei(qB);iI(gg,g,Q);const _=Ei();iI(gg,I),iI(Q,g,Q),iI(Q,I,_),iI(_,g,Q),iI(_,I,_),rg(Q,q,Y),rg(_,q,Y)}return rg(t,S0,B),rg(t,x1,B8g),{start:t,tokens:WF}}function y8g(C,g,I){let e=I.length,t=0,i=[],A=[];for(;t<e;){let n=C,l=null,o=null,a=0,d=null,m=-1;for(;t<e&&!(l=n.go(I[t].t));)A.push(I[t++]);for(;t<e&&(o=l||n.go(I[t].t));)l=null,n=o,n.accepts()?(m=0,d=n):m>=0&&m++,t++,a++;if(m<0)t-=a,t<e&&(A.push(I[t]),t++);else{A.length>0&&(i.push(IM(MF,g,A)),A=[]),t-=m,a-=m;const u=d.t,h=I.slice(t-a,t);i.push(IM(u,g,h))}}return A.length>0&&i.push(IM(MF,g,A)),i}function IM(C,g,I){const e=I[0].s,t=I[I.length-1].e,i=g.slice(e,t);return new C(i,I)}const Y8g=typeof console<"u"&&console&&console.warn||(()=>{}),V8g="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",iC={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function N8g(){return Lt.groups={},iC.scanner=null,iC.parser=null,iC.tokenQueue=[],iC.pluginQueue=[],iC.customSchemes=[],iC.initialized=!1,iC}function RF(C,g=!1){if(iC.initialized&&Y8g(`linkifyjs: already initialized - will not register custom scheme "${C}" ${V8g}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(C))throw new Error(`linkifyjs: incorrect scheme format.
|
|
1529
1529
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
1530
1530
|
2. Cannot start or end with "-"
|
|
1531
|
-
3. "-" cannot repeat`);iC.customSchemes.push([C,g])}function M8g(){iC.scanner=w8g(iC.customSchemes);for(let C=0;C<iC.tokenQueue.length;C++)iC.tokenQueue[C][1]({scanner:iC.scanner});iC.parser=p8g(iC.scanner.tokens);for(let C=0;C<iC.pluginQueue.length;C++)iC.pluginQueue[C][1]({scanner:iC.scanner,parser:iC.parser});return iC.initialized=!0,iC}function CM(C){return iC.initialized||M8g(),y8g(iC.parser.start,C,pF(iC.scanner.start,C))}CM.scan=pF;function fF(C,g=null,I=null){if(g&&typeof g=="object"){if(I)throw Error(`linkifyjs: Invalid link type ${g}; must be a string`);I=g,g=null}const e=new gM(I),t=CM(C),i=[];for(let A=0;A<t.length;A++){const n=t[A];n.isLink&&(!g||n.t===g)&&e.check(n)&&i.push(n.toFormattedObject(e))}return i}var eM="[\0- -\u2029 ]",R8g=new RegExp(eM),f8g=new RegExp(`${eM}$`),X8g=new RegExp(eM,"g");function H8g(C){return C.length===1?C[0].isLink:C.length===3&&C[1].isLink?["()","[]"].includes(C[0].value+C[2].value):!1}function D8g(C){return new pC({key:new re("autolink"),appendTransaction:(g,I,e)=>{const t=g.some(o=>o.docChanged)&&!I.doc.eq(e.doc),i=g.some(o=>o.getMeta("preventAutolink"));if(!t||i)return;const{tr:A}=e,n=S3(I.doc,[...g]);if(O3(n).forEach(({newRange:o})=>{const a=IPg(e.doc,o,u=>u.isTextblock);let d,m;if(a.length>1)d=a[0],m=e.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(a.length){const u=e.doc.textBetween(o.from,o.to," "," ");if(!f8g.test(u))return;d=a[0],m=e.doc.textBetween(d.pos,o.to,void 0," ")}if(d&&m){const u=m.split(R8g).filter(Boolean);if(u.length<=0)return!1;const h=u[u.length-1],Z=d.pos+m.lastIndexOf(h);if(!h)return!1;const G=CM(h).map(w=>w.toObject(C.defaultProtocol));if(!H8g(G))return!1;G.filter(w=>w.isLink).map(w=>({...w,from:Z+w.start+1,to:Z+w.end+1})).filter(w=>e.schema.marks.code?!e.doc.rangeHasMark(w.from,w.to,e.schema.marks.code):!0).filter(w=>C.validate(w.value)).filter(w=>C.shouldAutoLink(w.value)).forEach(w=>{V1(w.from,w.to,e.doc).some(B=>B.mark.type===C.type)||A.addMark(w.from,w.to,C.type.create({href:w.href}))})}}),!!A.steps.length)return A}})}function S8g(C){return new pC({key:new re("handleClickLink"),props:{handleClick:(g,I,e)=>{var t,i;if(e.button!==0||!g.editable)return!1;let A=null;if(e.target instanceof HTMLAnchorElement)A=e.target;else{let a=e.target;const d=[];for(;a.nodeName!=="DIV";)d.push(a),a=a.parentNode;A=d.find(m=>m.nodeName==="A")}if(!A)return!1;const n=x3(g.state,C.type.name),l=(t=A==null?void 0:A.href)!=null?t:n.href,o=(i=A==null?void 0:A.target)!=null?i:n.target;return C.enableClickSelection&&C.editor.commands.extendMarkRange(C.type.name),A&&l?(window.open(l,o),!0):!1}}})}function K8g(C){return new pC({key:new re("handlePasteLink"),props:{handlePaste:(g,I,e)=>{const{state:t}=g,{selection:i}=t,{empty:A}=i;if(A)return!1;let n="";e.content.forEach(o=>{n+=o.textContent});const l=fF(n,{defaultProtocol:C.defaultProtocol}).find(o=>o.isLink&&o.value===n);return!n||!l?!1:C.editor.commands.setMark(C.type,{href:l.href})}}})}function sd(C,g){const I=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return g&&g.forEach(e=>{const t=typeof e=="string"?e:e.scheme;t&&I.push(t)}),!C||C.replace(X8g,"").match(new RegExp(`^(?:(?:${I.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var XF=Ad.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(C=>{if(typeof C=="string"){RF(C);return}RF(C.scheme,C.optionalSlashes)})},onDestroy(){N8g()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(C,g)=>!!sd(C,g.protocols),validate:C=>!!C,shouldAutoLink:C=>!!C}},addAttributes(){return{href:{default:null,parseHTML(C){return C.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:C=>{const g=C.getAttribute("href");return!g||!this.options.isAllowedUri(g,{defaultValidate:I=>!!sd(I,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:C}){return this.options.isAllowedUri(C.href,{defaultValidate:g=>!!sd(g,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",HC(this.options.HTMLAttributes,C),0]:["a",HC(this.options.HTMLAttributes,{...C,href:""}),0]},addCommands(){return{setLink:C=>({chain:g})=>{const{href:I}=C;return this.options.isAllowedUri(I,{defaultValidate:e=>!!sd(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?g().setMark(this.name,C).setMeta("preventAutolink",!0).run():!1},toggleLink:C=>({chain:g})=>{const{href:I}=C||{};return I&&!this.options.isAllowedUri(I,{defaultValidate:e=>!!sd(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:g().toggleMark(this.name,C,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:C})=>C().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[nd({find:C=>{const g=[];if(C){const{protocols:I,defaultProtocol:e}=this.options,t=fF(C).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:A=>!!sd(A,I),protocols:I,defaultProtocol:e}));t.length&&t.forEach(i=>g.push({text:i.value,data:{href:i.href},index:i.start}))}return g},type:this.type,getAttributes:C=>{var g;return{href:(g=C.data)==null?void 0:g.href}}})]},addProseMirrorPlugins(){const C=[],{protocols:g,defaultProtocol:I}=this.options;return this.options.autolink&&C.push(D8g({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:t=>!!sd(t,g),protocols:g,defaultProtocol:I}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&C.push(S8g({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&C.push(K8g({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),C}}),k8g=XF,F8g=Object.defineProperty,z8g=(C,g)=>{for(var I in g)F8g(C,I,{get:g[I],enumerable:!0})},J8g="listItem",HF="textStyle",DF=/^\s*([-+*])\s$/,SF=Jt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:C}){return["ul",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{toggleBulletList:()=>({commands:C,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(J8g,this.editor.getAttributes(HF)).run():C.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let C=xr({find:DF,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(C=xr({find:DF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(HF),editor:this.editor})),[C]}}),KF=Jt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:C}){return["li",HC(this.options.HTMLAttributes,C),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),L8g={};z8g(L8g,{findListItemPos:()=>v0,getNextListDepth:()=>tM,handleBackspace:()=>iM,handleDelete:()=>AM,hasListBefore:()=>kF,hasListItemAfter:()=>T8g,hasListItemBefore:()=>FF,listItemHasSubList:()=>zF,nextListIsDeeper:()=>JF,nextListIsHigher:()=>LF});var v0=(C,g)=>{const{$from:I}=g.selection,e=OC(C,g.schema);let t=null,i=I.depth,A=I.pos,n=null;for(;i>0&&n===null;)t=I.node(i),t.type===e?n=i:(i-=1,A-=1);return n===null?null:{$pos:g.doc.resolve(A),depth:n}},tM=(C,g)=>{const I=v0(C,g);if(!I)return!1;const[,e]=aPg(g,C,I.$pos.pos+4);return e},kF=(C,g,I)=>{const{$anchor:e}=C.selection,t=Math.max(0,e.pos-2),i=C.doc.resolve(t).node();return!(!i||!I.includes(i.type.name))},FF=(C,g)=>{var I;const{$anchor:e}=g.selection,t=g.doc.resolve(e.pos-2);return!(t.index()===0||((I=t.nodeBefore)==null?void 0:I.type.name)!==C)},zF=(C,g,I)=>{if(!I)return!1;const e=OC(C,g.schema);let t=!1;return I.descendants(i=>{i.type===e&&(t=!0)}),t},iM=(C,g,I)=>{if(C.commands.undoInputRule())return!0;if(C.state.selection.from!==C.state.selection.to)return!1;if(!eo(C.state,g)&&kF(C.state,g,I)){const{$anchor:n}=C.state.selection,l=C.state.doc.resolve(n.before()-1),o=[];l.node().descendants((m,u)=>{m.type.name===g&&o.push({node:m,pos:u})});const a=o.at(-1);if(!a)return!1;const d=C.state.doc.resolve(l.start()+a.pos+1);return C.chain().cut({from:n.start()-1,to:n.end()+1},d.end()).joinForward().run()}if(!eo(C.state,g)||!mPg(C.state))return!1;const e=v0(g,C.state);if(!e)return!1;const i=C.state.doc.resolve(e.$pos.pos-2).node(e.depth),A=zF(g,C.state,i);return FF(g,C.state)&&!A?C.commands.joinItemBackward():C.chain().liftListItem(g).run()},JF=(C,g)=>{const I=tM(C,g),e=v0(C,g);return!e||!I?!1:I>e.depth},LF=(C,g)=>{const I=tM(C,g),e=v0(C,g);return!e||!I?!1:I<e.depth},AM=(C,g)=>{if(!eo(C.state,g)||!rPg(C.state,g))return!1;const{selection:I}=C.state,{$from:e,$to:t}=I;return!I.empty&&e.sameParent(t)?!1:JF(g,C.state)?C.chain().focus(C.state.selection.from+4).lift(g).joinBackward().run():LF(g,C.state)?C.chain().joinForward().joinBackward().run():C.commands.joinItemForward()},T8g=(C,g)=>{var I;const{$anchor:e}=g.selection,t=g.doc.resolve(e.pos-e.parentOffset-2);return!(t.index()===t.parent.childCount-1||((I=t.nodeAfter)==null?void 0:I.type.name)!==C)},TF=QC.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{C.state.schema.nodes[I]!==void 0&&AM(C,I)&&(g=!0)}),g},"Mod-Delete":({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{C.state.schema.nodes[I]!==void 0&&AM(C,I)&&(g=!0)}),g},Backspace:({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:e})=>{C.state.schema.nodes[I]!==void 0&&iM(C,I,e)&&(g=!0)}),g},"Mod-Backspace":({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:e})=>{C.state.schema.nodes[I]!==void 0&&iM(C,I,e)&&(g=!0)}),g}}}}),v8g="listItem",vF="textStyle",jF=/^(\d+)\.\s$/,xF=Jt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:C=>C.hasAttribute("start")?parseInt(C.getAttribute("start")||"",10):1},type:{default:null,parseHTML:C=>C.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:C}){const{start:g,...I}=C;return g===1?["ol",HC(this.options.HTMLAttributes,I),0]:["ol",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{toggleOrderedList:()=>({commands:C,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(v8g,this.editor.getAttributes(vF)).run():C.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let C=xr({find:jF,type:this.type,getAttributes:g=>({start:+g[1]}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(C=xr({find:jF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:g=>({start:+g[1],...this.editor.getAttributes(vF)}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1],editor:this.editor})),[C]}}),j8g=/^\s*(\[([( |x])?\])\s$/,x8g=Jt.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:C=>{const g=C.getAttribute("data-checked");return g===""||g==="true"},renderHTML:C=>({"data-checked":C.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:C,HTMLAttributes:g}){return["li",HC(this.options.HTMLAttributes,g,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:C.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const C={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...C,Tab:()=>this.editor.commands.sinkListItem(this.name)}:C},addNodeView(){return({node:C,HTMLAttributes:g,getPos:I,editor:e})=>{const t=document.createElement("li"),i=document.createElement("label"),A=document.createElement("span"),n=document.createElement("input"),l=document.createElement("div"),o=a=>{var d,m;n.ariaLabel=((m=(d=this.options.a11y)==null?void 0:d.checkboxLabel)==null?void 0:m.call(d,a,n.checked))||`Task item checkbox for ${a.textContent||"empty task item"}`};return o(C),i.contentEditable="false",n.type="checkbox",n.addEventListener("mousedown",a=>a.preventDefault()),n.addEventListener("change",a=>{if(!e.isEditable&&!this.options.onReadOnlyChecked){n.checked=!n.checked;return}const{checked:d}=a.target;e.isEditable&&typeof I=="function"&&e.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const u=I();if(typeof u!="number")return!1;const h=m.doc.nodeAt(u);return m.setNodeMarkup(u,void 0,{...h==null?void 0:h.attrs,checked:d}),!0}).run(),!e.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(C,d)||(n.checked=!n.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([a,d])=>{t.setAttribute(a,d)}),t.dataset.checked=C.attrs.checked,n.checked=C.attrs.checked,i.append(n,A),t.append(i,l),Object.entries(g).forEach(([a,d])=>{t.setAttribute(a,d)}),{dom:t,contentDOM:l,update:a=>a.type!==this.type?!1:(t.dataset.checked=a.attrs.checked,n.checked=a.attrs.checked,o(a),!0)}}},addInputRules(){return[xr({find:j8g,type:this.type,getAttributes:C=>({checked:C[C.length-1]==="x"})})]}}),O8g=Jt.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:C}){return["ul",HC(this.options.HTMLAttributes,C,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:C})=>C.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});QC.create({name:"listKit",addExtensions(){const C=[];return this.options.bulletList!==!1&&C.push(SF.configure(this.options.bulletList)),this.options.listItem!==!1&&C.push(KF.configure(this.options.listItem)),this.options.listKeymap!==!1&&C.push(TF.configure(this.options.listKeymap)),this.options.orderedList!==!1&&C.push(xF.configure(this.options.orderedList)),this.options.taskItem!==!1&&C.push(x8g.configure(this.options.taskItem)),this.options.taskList!==!1&&C.push(O8g.configure(this.options.taskList)),C}});var Q8g=Jt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:C}){return["p",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setParagraph:()=>({commands:C})=>C.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),U8g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,E8g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,P8g=Ad.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:C=>C.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:C}){return["s",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setStrike:()=>({commands:C})=>C.setMark(this.name),toggleStrike:()=>({commands:C})=>C.toggleMark(this.name),unsetStrike:()=>({commands:C})=>C.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[jr({find:U8g,type:this.type})]},addPasteRules(){return[nd({find:E8g,type:this.type})]}}),_8g=Jt.create({name:"text",group:"inline"}),$8g=Ad.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:C=>C.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:C}){return["u",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setUnderline:()=>({commands:C})=>C.setMark(this.name),toggleUnderline:()=>({commands:C})=>C.toggleMark(this.name),unsetUnderline:()=>({commands:C})=>C.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function q8g(C={}){return new pC({view(g){return new g_g(g,C)}})}class g_g{constructor(g,I){var e;this.editorView=g,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(e=I.width)!==null&&e!==void 0?e:1,this.color=I.color===!1?void 0:I.color||"black",this.class=I.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let i=A=>{this[t](A)};return g.dom.addEventListener(t,i),{name:t,handler:i}})}destroy(){this.handlers.forEach(({name:g,handler:I})=>this.editorView.dom.removeEventListener(g,I))}update(g,I){this.cursorPos!=null&&I.doc!=g.state.doc&&(this.cursorPos>g.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(g){g!=this.cursorPos&&(this.cursorPos=g,g==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let g=this.editorView.state.doc.resolve(this.cursorPos),I=!g.parent.inlineContent,e,t=this.editorView.dom,i=t.getBoundingClientRect(),A=i.width/t.offsetWidth,n=i.height/t.offsetHeight;if(I){let d=g.nodeBefore,m=g.nodeAfter;if(d||m){let u=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(u){let h=u.getBoundingClientRect(),Z=d?h.bottom:h.top;d&&m&&(Z=(Z+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let G=this.width/2*n;e={left:h.left,right:h.right,top:Z-G,bottom:Z+G}}}}if(!e){let d=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*A;e={left:d.left-m,right:d.left+m,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",I),this.element.classList.toggle("prosemirror-dropcursor-inline",!I);let o,a;if(!l||l==document.body&&getComputedStyle(l).position=="static")o=-pageXOffset,a=-pageYOffset;else{let d=l.getBoundingClientRect(),m=d.width/l.offsetWidth,u=d.height/l.offsetHeight;o=d.left-l.scrollLeft*m,a=d.top-l.scrollTop*u}this.element.style.left=(e.left-o)/A+"px",this.element.style.top=(e.top-a)/n+"px",this.element.style.width=(e.right-e.left)/A+"px",this.element.style.height=(e.bottom-e.top)/n+"px"}scheduleRemoval(g){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),g)}dragover(g){if(!this.editorView.editable)return;let I=this.editorView.posAtCoords({left:g.clientX,top:g.clientY}),e=I&&I.inside>=0&&this.editorView.state.doc.nodeAt(I.inside),t=e&&e.type.spec.disableDropCursor,i=typeof t=="function"?t(this.editorView,I,g):t;if(I&&!i){let A=I.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let n=qK(this.editorView.state.doc,A,this.editorView.dragging.slice);n!=null&&(A=n)}this.setCursor(A),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(g){this.editorView.dom.contains(g.relatedTarget)||this.setCursor(null)}}class YC extends tI{constructor(g){super(g,g)}map(g,I){let e=g.resolve(I.map(this.head));return YC.valid(e)?new YC(e):tI.near(e)}content(){return yg.empty}eq(g){return g instanceof YC&&g.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(g,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new YC(g.resolve(I.pos))}getBookmark(){return new nM(this.anchor)}static valid(g){let I=g.parent;if(I.isTextblock||!I_g(g)||!C_g(g))return!1;let e=I.type.spec.allowGapCursor;if(e!=null)return e;let t=I.contentMatchAt(g.index()).defaultType;return t&&t.isTextblock}static findGapCursorFrom(g,I,e=!1){g:for(;;){if(!e&&YC.valid(g))return g;let t=g.pos,i=null;for(let A=g.depth;;A--){let n=g.node(A);if(I>0?g.indexAfter(A)<n.childCount:g.index(A)>0){i=n.child(I>0?g.indexAfter(A):g.index(A)-1);break}else if(A==0)return null;t+=I;let l=g.doc.resolve(t);if(YC.valid(l))return l}for(;;){let A=I>0?i.firstChild:i.lastChild;if(!A){if(i.isAtom&&!i.isText&&!Jg.isSelectable(i)){g=g.doc.resolve(t+i.nodeSize*I),e=!1;continue g}break}i=A,t+=I;let n=g.doc.resolve(t);if(YC.valid(n))return n}return null}}}YC.prototype.visible=!1,YC.findFrom=YC.findGapCursorFrom,tI.jsonID("gapcursor",YC);class nM{constructor(g){this.pos=g}map(g){return new nM(g.map(this.pos))}resolve(g){let I=g.resolve(this.pos);return YC.valid(I)?new YC(I):tI.near(I)}}function I_g(C){for(let g=C.depth;g>=0;g--){let I=C.index(g),e=C.node(g);if(I==0){if(e.type.spec.isolating)return!0;continue}for(let t=e.child(I-1);;t=t.lastChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function C_g(C){for(let g=C.depth;g>=0;g--){let I=C.indexAfter(g),e=C.node(g);if(I==e.childCount){if(e.type.spec.isolating)return!0;continue}for(let t=e.child(I);;t=t.firstChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function e_g(){return new pC({props:{decorations:n_g,createSelectionBetween(C,g,I){return g.pos==I.pos&&YC.valid(I)?new YC(I):null},handleClick:i_g,handleKeyDown:t_g,handleDOMEvents:{beforeinput:A_g}}})}const t_g=Y3({ArrowLeft:gp("horiz",-1),ArrowRight:gp("horiz",1),ArrowUp:gp("vert",-1),ArrowDown:gp("vert",1)});function gp(C,g){const I=C=="vert"?g>0?"down":"up":g>0?"right":"left";return function(e,t,i){let A=e.selection,n=g>0?A.$to:A.$from,l=A.empty;if(A instanceof xg){if(!i.endOfTextblock(I)||n.depth==0)return!1;l=!1,n=e.doc.resolve(g>0?n.after():n.before())}let o=YC.findGapCursorFrom(n,g,l);return o?(t&&t(e.tr.setSelection(new YC(o))),!0):!1}}function i_g(C,g,I){if(!C||!C.editable)return!1;let e=C.state.doc.resolve(g);if(!YC.valid(e))return!1;let t=C.posAtCoords({left:I.clientX,top:I.clientY});return t&&t.inside>-1&&Jg.isSelectable(C.state.doc.nodeAt(t.inside))?!1:(C.dispatch(C.state.tr.setSelection(new YC(e))),!0)}function A_g(C,g){if(g.inputType!="insertCompositionText"||!(C.state.selection instanceof YC))return!1;let{$from:I}=C.state.selection,e=I.parent.contentMatchAt(I.index()).findWrapping(C.state.schema.nodes.text);if(!e)return!1;let t=dg.empty;for(let A=e.length-1;A>=0;A--)t=dg.from(e[A].createAndFill(null,t));let i=C.state.tr.replace(I.pos,I.pos,new yg(t,0,0));return i.setSelection(xg.near(i.doc.resolve(I.pos+1))),C.dispatch(i),!1}function n_g(C){if(!(C.selection instanceof YC))return null;let g=document.createElement("div");return g.className="ProseMirror-gapcursor",bC.create(C.doc,[Gt.widget(C.selection.head,g,{key:"gapcursor"})])}var Ip=200,me=function(){};me.prototype.append=function(g){return g.length?(g=me.from(g),!this.length&&g||g.length<Ip&&this.leafAppend(g)||this.length<Ip&&g.leafPrepend(this)||this.appendInner(g)):this},me.prototype.prepend=function(g){return g.length?me.from(g).append(this):this},me.prototype.appendInner=function(g){return new l_g(this,g)},me.prototype.slice=function(g,I){return g===void 0&&(g=0),I===void 0&&(I=this.length),g>=I?me.empty:this.sliceInner(Math.max(0,g),Math.min(this.length,I))},me.prototype.get=function(g){if(!(g<0||g>=this.length))return this.getInner(g)},me.prototype.forEach=function(g,I,e){I===void 0&&(I=0),e===void 0&&(e=this.length),I<=e?this.forEachInner(g,I,e,0):this.forEachInvertedInner(g,I,e,0)},me.prototype.map=function(g,I,e){I===void 0&&(I=0),e===void 0&&(e=this.length);var t=[];return this.forEach(function(i,A){return t.push(g(i,A))},I,e),t},me.from=function(g){return g instanceof me?g:g&&g.length?new OF(g):me.empty};var OF=function(C){function g(e){C.call(this),this.values=e}C&&(g.__proto__=C),g.prototype=Object.create(C&&C.prototype),g.prototype.constructor=g;var I={length:{configurable:!0},depth:{configurable:!0}};return g.prototype.flatten=function(){return this.values},g.prototype.sliceInner=function(t,i){return t==0&&i==this.length?this:new g(this.values.slice(t,i))},g.prototype.getInner=function(t){return this.values[t]},g.prototype.forEachInner=function(t,i,A,n){for(var l=i;l<A;l++)if(t(this.values[l],n+l)===!1)return!1},g.prototype.forEachInvertedInner=function(t,i,A,n){for(var l=i-1;l>=A;l--)if(t(this.values[l],n+l)===!1)return!1},g.prototype.leafAppend=function(t){if(this.length+t.length<=Ip)return new g(this.values.concat(t.flatten()))},g.prototype.leafPrepend=function(t){if(this.length+t.length<=Ip)return new g(t.flatten().concat(this.values))},I.length.get=function(){return this.values.length},I.depth.get=function(){return 0},Object.defineProperties(g.prototype,I),g}(me);me.empty=new OF([]);var l_g=function(C){function g(I,e){C.call(this),this.left=I,this.right=e,this.length=I.length+e.length,this.depth=Math.max(I.depth,e.depth)+1}return C&&(g.__proto__=C),g.prototype=Object.create(C&&C.prototype),g.prototype.constructor=g,g.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},g.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},g.prototype.forEachInner=function(e,t,i,A){var n=this.left.length;if(t<n&&this.left.forEachInner(e,t,Math.min(i,n),A)===!1||i>n&&this.right.forEachInner(e,Math.max(t-n,0),Math.min(this.length,i)-n,A+n)===!1)return!1},g.prototype.forEachInvertedInner=function(e,t,i,A){var n=this.left.length;if(t>n&&this.right.forEachInvertedInner(e,t-n,Math.max(i,n)-n,A+n)===!1||i<n&&this.left.forEachInvertedInner(e,Math.min(t,n),i,A)===!1)return!1},g.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var i=this.left.length;return t<=i?this.left.slice(e,t):e>=i?this.right.slice(e-i,t-i):this.left.slice(e,i).append(this.right.slice(0,t-i))},g.prototype.leafAppend=function(e){var t=this.right.leafAppend(e);if(t)return new g(this.left,t)},g.prototype.leafPrepend=function(e){var t=this.left.leafPrepend(e);if(t)return new g(t,this.right)},g.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new g(this.left,new g(this.right,e)):new g(this,e)},g}(me);const s_g=500;class DA{constructor(g,I){this.items=g,this.eventCount=I}popEvent(g,I){if(this.eventCount==0)return null;let e=this.items.length;for(;;e--)if(this.items.get(e-1).selection){--e;break}let t,i;I&&(t=this.remapping(e,this.items.length),i=t.maps.length);let A=g.tr,n,l,o=[],a=[];return this.items.forEach((d,m)=>{if(!d.step){t||(t=this.remapping(e,m+1),i=t.maps.length),i--,a.push(d);return}if(t){a.push(new Vn(d.map));let u=d.step.map(t.slice(i)),h;u&&A.maybeStep(u).doc&&(h=A.mapping.maps[A.mapping.maps.length-1],o.push(new Vn(h,void 0,void 0,o.length+a.length))),i--,h&&t.appendMap(h,i)}else A.maybeStep(d.step);if(d.selection)return n=t?d.selection.map(t.slice(i)):d.selection,l=new DA(this.items.slice(0,e).append(a.reverse().concat(o)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:A,selection:n}}addTransform(g,I,e,t){let i=[],A=this.eventCount,n=this.items,l=!t&&n.length?n.get(n.length-1):null;for(let a=0;a<g.steps.length;a++){let d=g.steps[a].invert(g.docs[a]),m=new Vn(g.mapping.maps[a],d,I),u;(u=l&&l.merge(m))&&(m=u,a?i.pop():n=n.slice(0,n.length-1)),i.push(m),I&&(A++,I=void 0),t||(l=m)}let o=A-e.depth;return o>a_g&&(n=o_g(n,o),A-=o),new DA(n.append(i),A)}remapping(g,I){let e=new h0;return this.items.forEach((t,i)=>{let A=t.mirrorOffset!=null&&i-t.mirrorOffset>=g?e.maps.length-t.mirrorOffset:void 0;e.appendMap(t.map,A)},g,I),e}addMaps(g){return this.eventCount==0?this:new DA(this.items.append(g.map(I=>new Vn(I))),this.eventCount)}rebased(g,I){if(!this.eventCount)return this;let e=[],t=Math.max(0,this.items.length-I),i=g.mapping,A=g.steps.length,n=this.eventCount;this.items.forEach(m=>{m.selection&&n--},t);let l=I;this.items.forEach(m=>{let u=i.getMirror(--l);if(u==null)return;A=Math.min(A,u);let h=i.maps[u];if(m.step){let Z=g.steps[u].invert(g.docs[u]),G=m.selection&&m.selection.map(i.slice(l+1,u));G&&n++,e.push(new Vn(h,Z,G))}else e.push(new Vn(h))},t);let o=[];for(let m=I;m<A;m++)o.push(new Vn(i.maps[m]));let a=this.items.slice(0,t).append(o).append(e),d=new DA(a,n);return d.emptyItemCount()>s_g&&(d=d.compress(this.items.length-e.length)),d}emptyItemCount(){let g=0;return this.items.forEach(I=>{I.step||g++}),g}compress(g=this.items.length){let I=this.remapping(0,g),e=I.maps.length,t=[],i=0;return this.items.forEach((A,n)=>{if(n>=g)t.push(A),A.selection&&i++;else if(A.step){let l=A.step.map(I.slice(e)),o=l&&l.getMap();if(e--,o&&I.appendMap(o,e),l){let a=A.selection&&A.selection.map(I.slice(e));a&&i++;let d=new Vn(o.invert(),l,a),m,u=t.length-1;(m=t.length&&t[u].merge(d))?t[u]=m:t.push(d)}}else A.map&&e--},this.items.length,0),new DA(me.from(t.reverse()),i)}}DA.empty=new DA(me.empty,0);function o_g(C,g){let I;return C.forEach((e,t)=>{if(e.selection&&g--==0)return I=t,!1}),C.slice(I)}class Vn{constructor(g,I,e,t){this.map=g,this.step=I,this.selection=e,this.mirrorOffset=t}merge(g){if(this.step&&g.step&&!g.selection){let I=g.step.merge(this.step);if(I)return new Vn(I.getMap().invert(),I,this.selection)}}}class no{constructor(g,I,e,t,i){this.done=g,this.undone=I,this.prevRanges=e,this.prevTime=t,this.prevComposition=i}}const a_g=20;function d_g(C,g,I,e){let t=I.getMeta(od),i;if(t)return t.historyState;I.getMeta(m_g)&&(C=new no(C.done,C.undone,null,0,-1));let A=I.getMeta("appendedTransaction");if(I.steps.length==0)return C;if(A&&A.getMeta(od))return A.getMeta(od).redo?new no(C.done.addTransform(I,void 0,e,Cp(g)),C.undone,QF(I.mapping.maps),C.prevTime,C.prevComposition):new no(C.done,C.undone.addTransform(I,void 0,e,Cp(g)),null,C.prevTime,C.prevComposition);if(I.getMeta("addToHistory")!==!1&&!(A&&A.getMeta("addToHistory")===!1)){let n=I.getMeta("composition"),l=C.prevTime==0||!A&&C.prevComposition!=n&&(C.prevTime<(I.time||0)-e.newGroupDelay||!c_g(I,C.prevRanges)),o=A?lM(C.prevRanges,I.mapping):QF(I.mapping.maps);return new no(C.done.addTransform(I,l?g.selection.getBookmark():void 0,e,Cp(g)),DA.empty,o,I.time,n??C.prevComposition)}else return(i=I.getMeta("rebased"))?new no(C.done.rebased(I,i),C.undone.rebased(I,i),lM(C.prevRanges,I.mapping),C.prevTime,C.prevComposition):new no(C.done.addMaps(I.mapping.maps),C.undone.addMaps(I.mapping.maps),lM(C.prevRanges,I.mapping),C.prevTime,C.prevComposition)}function c_g(C,g){if(!g)return!1;if(!C.docChanged)return!0;let I=!1;return C.mapping.maps[0].forEach((e,t)=>{for(let i=0;i<g.length;i+=2)e<=g[i+1]&&t>=g[i]&&(I=!0)}),I}function QF(C){let g=[];for(let I=C.length-1;I>=0&&g.length==0;I--)C[I].forEach((e,t,i,A)=>g.push(i,A));return g}function lM(C,g){if(!C)return null;let I=[];for(let e=0;e<C.length;e+=2){let t=g.map(C[e],1),i=g.map(C[e+1],-1);t<=i&&I.push(t,i)}return I}function r_g(C,g,I){let e=Cp(g),t=od.get(g).spec.config,i=(I?C.undone:C.done).popEvent(g,e);if(!i)return null;let A=i.selection.resolve(i.transform.doc),n=(I?C.done:C.undone).addTransform(i.transform,g.selection.getBookmark(),t,e),l=new no(I?n:i.remaining,I?i.remaining:n,null,0,-1);return i.transform.setSelection(A).setMeta(od,{redo:I,historyState:l})}let sM=!1,UF=null;function Cp(C){let g=C.plugins;if(UF!=g){sM=!1,UF=g;for(let I=0;I<g.length;I++)if(g[I].spec.historyPreserveItems){sM=!0;break}}return sM}const od=new re("history"),m_g=new re("closeHistory");function u_g(C={}){return C={depth:C.depth||100,newGroupDelay:C.newGroupDelay||500},new pC({key:od,state:{init(){return new no(DA.empty,DA.empty,null,0,-1)},apply(g,I,e){return d_g(I,e,g,C)}},config:C,props:{handleDOMEvents:{beforeinput(g,I){let e=I.inputType,t=e=="historyUndo"?PF:e=="historyRedo"?_F:null;return t?(I.preventDefault(),t(g.state,g.dispatch)):!1}}}})}function EF(C,g){return(I,e)=>{let t=od.getState(I);if(!t||(C?t.undone:t.done).eventCount==0)return!1;if(e){let i=r_g(t,I,C);i&&e(g?i.scrollIntoView():i)}return!0}}const PF=EF(!1,!0),_F=EF(!0,!0);QC.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:C=>C.length,wordCounter:C=>C.split(" ").filter(g=>g!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=C=>{const g=(C==null?void 0:C.node)||this.editor.state.doc;if(((C==null?void 0:C.mode)||this.options.mode)==="textSize"){const e=g.textBetween(0,g.content.size,void 0," ");return this.options.textCounter(e)}return g.nodeSize},this.storage.words=C=>{const g=(C==null?void 0:C.node)||this.editor.state.doc,I=g.textBetween(0,g.content.size," "," ");return this.options.wordCounter(I)}},addProseMirrorPlugins(){let C=!1;return[new pC({key:new re("characterCount"),appendTransaction:(g,I,e)=>{if(C)return;const t=this.options.limit;if(t==null||t===0){C=!0;return}const i=this.storage.characters({node:e.doc});if(i>t){const A=i-t,n=0,l=A;console.warn(`[CharacterCount] Initial content exceeded limit of ${t} characters. Content was automatically trimmed.`);const o=e.tr.deleteRange(n,l);return C=!0,o}C=!0},filterTransaction:(g,I)=>{const e=this.options.limit;if(!g.docChanged||e===0||e===null||e===void 0)return!0;const t=this.storage.characters({node:I.doc}),i=this.storage.characters({node:g.doc});if(i<=e||t>e&&i>e&&i<=t)return!0;if(t>e&&i>e&&i>t||!g.getMeta("paste"))return!1;const n=g.selection.$head.pos,l=i-e,o=n-l,a=n;return g.deleteRange(o,a),!(this.storage.characters({node:g.doc})>e)}})]}});var h_g=QC.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[q8g(this.options)]}});QC.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new pC({key:new re("focus"),props:{decorations:({doc:C,selection:g})=>{const{isEditable:I,isFocused:e}=this.editor,{anchor:t}=g,i=[];if(!I||!e)return bC.create(C,[]);let A=0;this.options.mode==="deepest"&&C.descendants((l,o)=>{if(l.isText)return;if(!(t>=o&&t<=o+l.nodeSize-1))return!1;A+=1});let n=0;return C.descendants((l,o)=>{if(l.isText||!(t>=o&&t<=o+l.nodeSize-1))return!1;if(n+=1,this.options.mode==="deepest"&&A-n>0||this.options.mode==="shallowest"&&n>1)return this.options.mode==="deepest";i.push(Gt.node(o,o+l.nodeSize,{class:this.options.className}))}),bC.create(C,i)}}})]}});var b_g=QC.create({name:"gapCursor",addProseMirrorPlugins(){return[e_g()]},extendNodeSchema(C){var g;const I={name:C.name,options:C.options,storage:C.storage};return{allowGapCursor:(g=HI(Fg(C,"allowGapCursor",I)))!=null?g:null}}}),Z_g=QC.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new pC({key:new re("placeholder"),props:{decorations:({doc:C,selection:g})=>{const I=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:e}=g,t=[];if(!I)return null;const i=this.editor.isEmpty;return C.descendants((A,n)=>{const l=e>=n&&e<=n+A.nodeSize,o=!A.isLeaf&&mB(A);if((l||!this.options.showOnlyCurrent)&&o){const a=[this.options.emptyNodeClass];i&&a.push(this.options.emptyEditorClass);const d=Gt.node(n,n+A.nodeSize,{class:a.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:A,pos:n,hasAnchor:l}):this.options.placeholder});t.push(d)}return this.options.includeChildren}),bC.create(C,t)}}})]}});QC.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:C,options:g}=this;return[new pC({key:new re("selection"),props:{decorations(I){return I.selection.empty||C.isFocused||!C.isEditable||_3(I.selection)||C.view.dragging?null:bC.create(I.doc,[Gt.inline(I.selection.from,I.selection.to,{class:g.className})])}}})]}});function $F({types:C,node:g}){return g&&Array.isArray(C)&&C.includes(g.type)||(g==null?void 0:g.type)===C}var G_g=QC.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const C=new re(this.name),g=Object.entries(this.editor.schema.nodes).map(([,I])=>I).filter(I=>(this.options.notAfter||[]).concat(this.options.node).includes(I.name));return[new pC({key:C,appendTransaction:(I,e,t)=>{const{doc:i,tr:A,schema:n}=t,l=C.getState(t),o=i.content.size,a=n.nodes[this.options.node];if(l)return A.insert(o,a.create())},state:{init:(I,e)=>{const t=e.tr.doc.lastChild;return!$F({node:t,types:g})},apply:(I,e)=>{if(!I.docChanged)return e;const t=I.doc.lastChild;return!$F({node:t,types:g})}}})]}}),w_g=QC.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:C,dispatch:g})=>PF(C,g),redo:()=>({state:C,dispatch:g})=>_F(C,g)}},addProseMirrorPlugins(){return[u_g(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),W_g=QC.create({name:"starterKit",addExtensions(){var C,g,I,e;const t=[];return this.options.bold!==!1&&t.push(_6g.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(O6g.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(SF.configure(this.options.bulletList)),this.options.code!==!1&&t.push(g8g.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(e8g.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(t8g.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(h_g.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(b_g.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(i8g.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(A8g.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(w_g.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(n8g.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(d8g.configure(this.options.italic)),this.options.listItem!==!1&&t.push(KF.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(TF.configure((C=this.options)==null?void 0:C.listKeymap)),this.options.link!==!1&&t.push(XF.configure((g=this.options)==null?void 0:g.link)),this.options.orderedList!==!1&&t.push(xF.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(Q8g.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(P8g.configure(this.options.strike)),this.options.text!==!1&&t.push(_8g.configure(this.options.text)),this.options.underline!==!1&&t.push($8g.configure((I=this.options)==null?void 0:I.underline)),this.options.trailingNode!==!1&&t.push(G_g.configure((e=this.options)==null?void 0:e.trailingNode)),t}}),B_g=W_g,p_g=Z_g;const qF="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",gz={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},Iz="u",ep="n",tp="v",j0="r",y_g={[ep]:["grinning face","grinning"],[Iz]:"1f600",[j0]:"1f600"},ip="neutral",Y_g=[ip,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],V_g={placeholder:"Search emoji",skinTone:"Skin tone"},N_g=["light","dark","auto"];var M_g={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},Cz=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const R_g=(C,g)=>g.some(I=>C instanceof I);let ez,tz;function f_g(){return ez||(ez=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function X_g(){return tz||(tz=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const iz=new WeakMap,oM=new WeakMap,Az=new WeakMap,aM=new WeakMap,dM=new WeakMap;function H_g(C){const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("success",i),C.removeEventListener("error",A)},i=()=>{I(lo(C.result)),t()},A=()=>{e(C.error),t()};C.addEventListener("success",i),C.addEventListener("error",A)});return g.then(I=>{I instanceof IDBCursor&&iz.set(I,C)}).catch(()=>{}),dM.set(g,C),g}function D_g(C){if(oM.has(C))return;const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("complete",i),C.removeEventListener("error",A),C.removeEventListener("abort",A)},i=()=>{I(),t()},A=()=>{e(C.error||new DOMException("AbortError","AbortError")),t()};C.addEventListener("complete",i),C.addEventListener("error",A),C.addEventListener("abort",A)});oM.set(C,g)}let cM={get(C,g,I){if(C instanceof IDBTransaction){if(g==="done")return oM.get(C);if(g==="objectStoreNames")return C.objectStoreNames||Az.get(C);if(g==="store")return I.objectStoreNames[1]?void 0:I.objectStore(I.objectStoreNames[0])}return lo(C[g])},set(C,g,I){return C[g]=I,!0},has(C,g){return C instanceof IDBTransaction&&(g==="done"||g==="store")?!0:g in C}};function S_g(C){cM=C(cM)}function K_g(C){return C===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(g,...I){const e=C.call(rM(this),g,...I);return Az.set(e,g.sort?g.sort():[g]),lo(e)}:X_g().includes(C)?function(...g){return C.apply(rM(this),g),lo(iz.get(this))}:function(...g){return lo(C.apply(rM(this),g))}}function k_g(C){return typeof C=="function"?K_g(C):(C instanceof IDBTransaction&&D_g(C),R_g(C,f_g())?new Proxy(C,cM):C)}function lo(C){if(C instanceof IDBRequest)return H_g(C);if(aM.has(C))return aM.get(C);const g=k_g(C);return g!==C&&(aM.set(C,g),dM.set(g,C)),g}const rM=C=>dM.get(C);function mM(C,g,{blocked:I,upgrade:e,blocking:t,terminated:i}={}){const A=indexedDB.open(C,g),n=lo(A);return e&&A.addEventListener("upgradeneeded",l=>{e(lo(A.result),l.oldVersion,l.newVersion,lo(A.transaction),l)}),I&&A.addEventListener("blocked",l=>I(l.oldVersion,l.newVersion,l)),n.then(l=>{i&&l.addEventListener("close",()=>i()),t&&l.addEventListener("versionchange",o=>t(o.oldVersion,o.newVersion,o))}).catch(()=>{}),n}const F_g=["get","getKey","getAll","getAllKeys","count"],z_g=["put","add","delete","clear"],uM=new Map;function nz(C,g){if(!(C instanceof IDBDatabase&&!(g in C)&&typeof g=="string"))return;if(uM.get(g))return uM.get(g);const I=g.replace(/FromIndex$/,""),e=g!==I,t=z_g.includes(I);if(!(I in(e?IDBIndex:IDBObjectStore).prototype)||!(t||F_g.includes(I)))return;const i=async function(A,...n){const l=this.transaction(A,t?"readwrite":"readonly");let o=l.store;return e&&(o=o.index(n.shift())),(await Promise.all([o[I](...n),t&&l.done]))[0]};return uM.set(g,i),i}S_g(C=>({...C,get:(g,I,e)=>nz(g,I)||C.get(g,I,e),has:(g,I)=>!!nz(g,I)||C.has(g,I)}));const hM="EMJ",Qr="emojis",bM=3;async function J_g(){(await mM(hM,bM,{upgrade(g,I){g.objectStoreNames.contains(Qr)||g.createObjectStore(Qr,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}J_g();const L_g={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function T_g(){return await(await mM(hM,bM)).transaction(Qr,"readonly").objectStore(Qr).getAll()}function v_g(){const C=s.reactive({search:"",emoji:y_g,activeGroup:"",skinTone:ip,options:L_g,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...M_g}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return Cz.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...Cz.map(m=>m.key)];return[...new Set(d)].filter(m=>!this.disabled.includes(m))}});function g(){C.options.displayRecent&&e()}async function I(){var d;let m=await T_g();return Array.isArray(m)&&m.length?m=JSON.parse(((d=m[0])==null?void 0:d.value)||""):m=[],m}function e(){I().then(d=>{C.recent=d,o()})}const t=d=>{C.search=d},i=d=>{C.emoji=d},A=d=>{C.activeGroup=d},n=(d=ip)=>{C.skinTone=d},l=d=>{C.options=Object.assign({},C.options,d),g()};async function o(){(await mM(hM,bM)).transaction(Qr,"readwrite").objectStore(Qr).put({id:0,value:JSON.stringify(C.recent)})}const a=d=>{if(C.options.displayRecent!==!0)return;const m=C.recent.findIndex(h=>h.u===d.u);if(m>0&&C.recent.splice(m,1),m===0)return;const u={u:d.u,n:s.toRaw(d.n)};C.recent=[u,...C.recent],C.recent.length>24&&(C.recent.length=24),o()};return{state:s.readonly(C),updateSearch:t,updateEmoji:i,updateActiveGroup:A,updateSkinTone:n,updateOptions:l,updateSelect:a}}var Tt="top",Pi="bottom",_i="right",vt="left",ZM="auto",x0=[Tt,Pi,_i,vt],Ur="start",O0="end",j_g="clippingParents",lz="viewport",Q0="popper",x_g="reference",sz=x0.reduce(function(C,g){return C.concat([g+"-"+Ur,g+"-"+O0])},[]),oz=[].concat(x0,[ZM]).reduce(function(C,g){return C.concat([g,g+"-"+Ur,g+"-"+O0])},[]),O_g="beforeRead",Q_g="read",U_g="afterRead",E_g="beforeMain",P_g="main",__g="afterMain",$_g="beforeWrite",q_g="write",g$g="afterWrite",I$g=[O_g,Q_g,U_g,E_g,P_g,__g,$_g,q_g,g$g];function Nn(C){return C?(C.nodeName||"").toLowerCase():null}function SA(C){if(C==null)return window;if(C.toString()!=="[object Window]"){var g=C.ownerDocument;return g&&g.defaultView||window}return C}function Er(C){var g=SA(C).Element;return C instanceof g||C instanceof Element}function $i(C){var g=SA(C).HTMLElement;return C instanceof g||C instanceof HTMLElement}function az(C){if(typeof ShadowRoot>"u")return!1;var g=SA(C).ShadowRoot;return C instanceof g||C instanceof ShadowRoot}function C$g(C){var g=C.state;Object.keys(g.elements).forEach(function(I){var e=g.styles[I]||{},t=g.attributes[I]||{},i=g.elements[I];!$i(i)||!Nn(i)||(Object.assign(i.style,e),Object.keys(t).forEach(function(A){var n=t[A];n===!1?i.removeAttribute(A):i.setAttribute(A,n===!0?"":n)}))})}function e$g(C){var g=C.state,I={popper:{position:g.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(g.elements.popper.style,I.popper),g.styles=I,g.elements.arrow&&Object.assign(g.elements.arrow.style,I.arrow),function(){Object.keys(g.elements).forEach(function(e){var t=g.elements[e],i=g.attributes[e]||{},A=Object.keys(g.styles.hasOwnProperty(e)?g.styles[e]:I[e]),n=A.reduce(function(l,o){return l[o]="",l},{});!$i(t)||!Nn(t)||(Object.assign(t.style,n),Object.keys(i).forEach(function(l){t.removeAttribute(l)}))})}}var t$g={name:"applyStyles",enabled:!0,phase:"write",fn:C$g,effect:e$g,requires:["computeStyles"]};function Mn(C){return C.split("-")[0]}var ad=Math.max,Ap=Math.min,Pr=Math.round;function _r(C,g){g===void 0&&(g=!1);var I=C.getBoundingClientRect(),e=1,t=1;if($i(C)&&g){var i=C.offsetHeight,A=C.offsetWidth;A>0&&(e=Pr(I.width)/A||1),i>0&&(t=Pr(I.height)/i||1)}return{width:I.width/e,height:I.height/t,top:I.top/t,right:I.right/e,bottom:I.bottom/t,left:I.left/e,x:I.left/e,y:I.top/t}}function GM(C){var g=_r(C),I=C.offsetWidth,e=C.offsetHeight;return Math.abs(g.width-I)<=1&&(I=g.width),Math.abs(g.height-e)<=1&&(e=g.height),{x:C.offsetLeft,y:C.offsetTop,width:I,height:e}}function dz(C,g){var I=g.getRootNode&&g.getRootNode();if(C.contains(g))return!0;if(I&&az(I)){var e=g;do{if(e&&C.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function Rn(C){return SA(C).getComputedStyle(C)}function i$g(C){return["table","td","th"].indexOf(Nn(C))>=0}function so(C){return((Er(C)?C.ownerDocument:C.document)||window.document).documentElement}function np(C){return Nn(C)==="html"?C:C.assignedSlot||C.parentNode||(az(C)?C.host:null)||so(C)}function cz(C){return!$i(C)||Rn(C).position==="fixed"?null:C.offsetParent}function A$g(C){var g=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,I=navigator.userAgent.indexOf("Trident")!==-1;if(I&&$i(C)){var e=Rn(C);if(e.position==="fixed")return null}for(var t=np(C);$i(t)&&["html","body"].indexOf(Nn(t))<0;){var i=Rn(t);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||g&&i.willChange==="filter"||g&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function U0(C){for(var g=SA(C),I=cz(C);I&&i$g(I)&&Rn(I).position==="static";)I=cz(I);return I&&(Nn(I)==="html"||Nn(I)==="body"&&Rn(I).position==="static")?g:I||A$g(C)||g}function wM(C){return["top","bottom"].indexOf(C)>=0?"x":"y"}function E0(C,g,I){return ad(C,Ap(g,I))}function n$g(C,g,I){var e=E0(C,g,I);return e>I?I:e}function rz(){return{top:0,right:0,bottom:0,left:0}}function mz(C){return Object.assign({},rz(),C)}function uz(C,g){return g.reduce(function(I,e){return I[e]=C,I},{})}var l$g=function(g,I){return g=typeof g=="function"?g(Object.assign({},I.rects,{placement:I.placement})):g,mz(typeof g!="number"?g:uz(g,x0))};function s$g(C){var g,I=C.state,e=C.name,t=C.options,i=I.elements.arrow,A=I.modifiersData.popperOffsets,n=Mn(I.placement),l=wM(n),o=[vt,_i].indexOf(n)>=0,a=o?"height":"width";if(!(!i||!A)){var d=l$g(t.padding,I),m=GM(i),u=l==="y"?Tt:vt,h=l==="y"?Pi:_i,Z=I.rects.reference[a]+I.rects.reference[l]-A[l]-I.rects.popper[a],G=A[l]-I.rects.reference[l],w=U0(i),B=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,p=Z/2-G/2,y=d[u],Y=B-m[a]-d[h],R=B/2-m[a]/2+p,M=E0(y,R,Y),K=l;I.modifiersData[e]=(g={},g[K]=M,g.centerOffset=M-R,g)}}function o$g(C){var g=C.state,I=C.options,e=I.element,t=e===void 0?"[data-popper-arrow]":e;t!=null&&(typeof t=="string"&&(t=g.elements.popper.querySelector(t),!t)||dz(g.elements.popper,t)&&(g.elements.arrow=t))}var a$g={name:"arrow",enabled:!0,phase:"main",fn:s$g,effect:o$g,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $r(C){return C.split("-")[1]}var d$g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c$g(C){var g=C.x,I=C.y,e=window,t=e.devicePixelRatio||1;return{x:Pr(g*t)/t||0,y:Pr(I*t)/t||0}}function hz(C){var g,I=C.popper,e=C.popperRect,t=C.placement,i=C.variation,A=C.offsets,n=C.position,l=C.gpuAcceleration,o=C.adaptive,a=C.roundOffsets,d=C.isFixed,m=a===!0?c$g(A):typeof a=="function"?a(A):A,u=m.x,h=u===void 0?0:u,Z=m.y,G=Z===void 0?0:Z,w=A.hasOwnProperty("x"),B=A.hasOwnProperty("y"),p=vt,y=Tt,Y=window;if(o){var R=U0(I),M="clientHeight",K="clientWidth";if(R===SA(I)&&(R=so(I),Rn(R).position!=="static"&&n==="absolute"&&(M="scrollHeight",K="scrollWidth")),R=R,t===Tt||(t===vt||t===_i)&&i===O0){y=Pi;var J=d&&Y.visualViewport?Y.visualViewport.height:R[M];G-=J-e.height,G*=l?1:-1}if(t===vt||(t===Tt||t===Pi)&&i===O0){p=_i;var X=d&&Y.visualViewport?Y.visualViewport.width:R[K];h-=X-e.width,h*=l?1:-1}}var D=Object.assign({position:n},o&&d$g);if(l){var z;return Object.assign({},D,(z={},z[y]=B?"0":"",z[p]=w?"0":"",z.transform=(Y.devicePixelRatio||1)<=1?"translate("+h+"px, "+G+"px)":"translate3d("+h+"px, "+G+"px, 0)",z))}return Object.assign({},D,(g={},g[y]=B?G+"px":"",g[p]=w?h+"px":"",g.transform="",g))}function r$g(C){var g=C.state,I=C.options,e=I.gpuAcceleration,t=e===void 0?!0:e,i=I.adaptive,A=i===void 0?!0:i,n=I.roundOffsets,l=n===void 0?!0:n,o={placement:Mn(g.placement),variation:$r(g.placement),popper:g.elements.popper,popperRect:g.rects.popper,gpuAcceleration:t,isFixed:g.options.strategy==="fixed"};g.modifiersData.popperOffsets!=null&&(g.styles.popper=Object.assign({},g.styles.popper,hz(Object.assign({},o,{offsets:g.modifiersData.popperOffsets,position:g.options.strategy,adaptive:A,roundOffsets:l})))),g.modifiersData.arrow!=null&&(g.styles.arrow=Object.assign({},g.styles.arrow,hz(Object.assign({},o,{offsets:g.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-placement":g.placement})}var m$g={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r$g,data:{}},lp={passive:!0};function u$g(C){var g=C.state,I=C.instance,e=C.options,t=e.scroll,i=t===void 0?!0:t,A=e.resize,n=A===void 0?!0:A,l=SA(g.elements.popper),o=[].concat(g.scrollParents.reference,g.scrollParents.popper);return i&&o.forEach(function(a){a.addEventListener("scroll",I.update,lp)}),n&&l.addEventListener("resize",I.update,lp),function(){i&&o.forEach(function(a){a.removeEventListener("scroll",I.update,lp)}),n&&l.removeEventListener("resize",I.update,lp)}}var h$g={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u$g,data:{}},b$g={left:"right",right:"left",bottom:"top",top:"bottom"};function sp(C){return C.replace(/left|right|bottom|top/g,function(g){return b$g[g]})}var Z$g={start:"end",end:"start"};function bz(C){return C.replace(/start|end/g,function(g){return Z$g[g]})}function WM(C){var g=SA(C),I=g.pageXOffset,e=g.pageYOffset;return{scrollLeft:I,scrollTop:e}}function BM(C){return _r(so(C)).left+WM(C).scrollLeft}function G$g(C){var g=SA(C),I=so(C),e=g.visualViewport,t=I.clientWidth,i=I.clientHeight,A=0,n=0;return e&&(t=e.width,i=e.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(A=e.offsetLeft,n=e.offsetTop)),{width:t,height:i,x:A+BM(C),y:n}}function w$g(C){var g,I=so(C),e=WM(C),t=(g=C.ownerDocument)==null?void 0:g.body,i=ad(I.scrollWidth,I.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),A=ad(I.scrollHeight,I.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),n=-e.scrollLeft+BM(C),l=-e.scrollTop;return Rn(t||I).direction==="rtl"&&(n+=ad(I.clientWidth,t?t.clientWidth:0)-i),{width:i,height:A,x:n,y:l}}function pM(C){var g=Rn(C),I=g.overflow,e=g.overflowX,t=g.overflowY;return/auto|scroll|overlay|hidden/.test(I+t+e)}function Zz(C){return["html","body","#document"].indexOf(Nn(C))>=0?C.ownerDocument.body:$i(C)&&pM(C)?C:Zz(np(C))}function P0(C,g){var I;g===void 0&&(g=[]);var e=Zz(C),t=e===((I=C.ownerDocument)==null?void 0:I.body),i=SA(e),A=t?[i].concat(i.visualViewport||[],pM(e)?e:[]):e,n=g.concat(A);return t?n:n.concat(P0(np(A)))}function yM(C){return Object.assign({},C,{left:C.x,top:C.y,right:C.x+C.width,bottom:C.y+C.height})}function W$g(C){var g=_r(C);return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function Gz(C,g){return g===lz?yM(G$g(C)):Er(g)?W$g(g):yM(w$g(so(C)))}function B$g(C){var g=P0(np(C)),I=["absolute","fixed"].indexOf(Rn(C).position)>=0,e=I&&$i(C)?U0(C):C;return Er(e)?g.filter(function(t){return Er(t)&&dz(t,e)&&Nn(t)!=="body"&&(I?Rn(t).position!=="static":!0)}):[]}function p$g(C,g,I){var e=g==="clippingParents"?B$g(C):[].concat(g),t=[].concat(e,[I]),i=t[0],A=t.reduce(function(n,l){var o=Gz(C,l);return n.top=ad(o.top,n.top),n.right=Ap(o.right,n.right),n.bottom=Ap(o.bottom,n.bottom),n.left=ad(o.left,n.left),n},Gz(C,i));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function wz(C){var g=C.reference,I=C.element,e=C.placement,t=e?Mn(e):null,i=e?$r(e):null,A=g.x+g.width/2-I.width/2,n=g.y+g.height/2-I.height/2,l;switch(t){case Tt:l={x:A,y:g.y-I.height};break;case Pi:l={x:A,y:g.y+g.height};break;case _i:l={x:g.x+g.width,y:n};break;case vt:l={x:g.x-I.width,y:n};break;default:l={x:g.x,y:g.y}}var o=t?wM(t):null;if(o!=null){var a=o==="y"?"height":"width";switch(i){case Ur:l[o]=l[o]-(g[a]/2-I[a]/2);break;case O0:l[o]=l[o]+(g[a]/2-I[a]/2);break}}return l}function _0(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=e===void 0?C.placement:e,i=I.boundary,A=i===void 0?j_g:i,n=I.rootBoundary,l=n===void 0?lz:n,o=I.elementContext,a=o===void 0?Q0:o,d=I.altBoundary,m=d===void 0?!1:d,u=I.padding,h=u===void 0?0:u,Z=mz(typeof h!="number"?h:uz(h,x0)),G=a===Q0?x_g:Q0,w=C.rects.popper,B=C.elements[m?G:a],p=p$g(Er(B)?B:B.contextElement||so(C.elements.popper),A,l),y=_r(C.elements.reference),Y=wz({reference:y,element:w,strategy:"absolute",placement:t}),R=yM(Object.assign({},w,Y)),M=a===Q0?R:y,K={top:p.top-M.top+Z.top,bottom:M.bottom-p.bottom+Z.bottom,left:p.left-M.left+Z.left,right:M.right-p.right+Z.right},J=C.modifiersData.offset;if(a===Q0&&J){var X=J[t];Object.keys(K).forEach(function(D){var z=[_i,Pi].indexOf(D)>=0?1:-1,j=[Tt,Pi].indexOf(D)>=0?"y":"x";K[D]+=X[j]*z})}return K}function y$g(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=I.boundary,i=I.rootBoundary,A=I.padding,n=I.flipVariations,l=I.allowedAutoPlacements,o=l===void 0?oz:l,a=$r(e),d=a?n?sz:sz.filter(function(h){return $r(h)===a}):x0,m=d.filter(function(h){return o.indexOf(h)>=0});m.length===0&&(m=d);var u=m.reduce(function(h,Z){return h[Z]=_0(C,{placement:Z,boundary:t,rootBoundary:i,padding:A})[Mn(Z)],h},{});return Object.keys(u).sort(function(h,Z){return u[h]-u[Z]})}function Y$g(C){if(Mn(C)===ZM)return[];var g=sp(C);return[bz(C),g,bz(g)]}function V$g(C){var g=C.state,I=C.options,e=C.name;if(!g.modifiersData[e]._skip){for(var t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!0:A,l=I.fallbackPlacements,o=I.padding,a=I.boundary,d=I.rootBoundary,m=I.altBoundary,u=I.flipVariations,h=u===void 0?!0:u,Z=I.allowedAutoPlacements,G=g.options.placement,w=Mn(G),B=w===G,p=l||(B||!h?[sp(G)]:Y$g(G)),y=[G].concat(p).reduce(function(pg,bg){return pg.concat(Mn(bg)===ZM?y$g(g,{placement:bg,boundary:a,rootBoundary:d,padding:o,flipVariations:h,allowedAutoPlacements:Z}):bg)},[]),Y=g.rects.reference,R=g.rects.popper,M=new Map,K=!0,J=y[0],X=0;X<y.length;X++){var D=y[X],z=Mn(D),j=$r(D)===Ur,q=[Tt,Pi].indexOf(z)>=0,gg=q?"width":"height",Q=_0(g,{placement:D,boundary:a,rootBoundary:d,altBoundary:m,padding:o}),_=q?j?_i:vt:j?Pi:Tt;Y[gg]>R[gg]&&(_=sp(_));var og=sp(_),eg=[];if(i&&eg.push(Q[z]<=0),n&&eg.push(Q[_]<=0,Q[og]<=0),eg.every(function(pg){return pg})){J=D,K=!1;break}M.set(D,eg)}if(K)for(var mg=h?3:1,Yg=function(bg){var oI=y.find(function(AI){var nC=M.get(AI);if(nC)return nC.slice(0,bg).every(function(KC){return KC})});if(oI)return J=oI,"break"},Zg=mg;Zg>0;Zg--){var ag=Yg(Zg);if(ag==="break")break}g.placement!==J&&(g.modifiersData[e]._skip=!0,g.placement=J,g.reset=!0)}}var N$g={name:"flip",enabled:!0,phase:"main",fn:V$g,requiresIfExists:["offset"],data:{_skip:!1}};function Wz(C,g,I){return I===void 0&&(I={x:0,y:0}),{top:C.top-g.height-I.y,right:C.right-g.width+I.x,bottom:C.bottom-g.height+I.y,left:C.left-g.width-I.x}}function Bz(C){return[Tt,_i,Pi,vt].some(function(g){return C[g]>=0})}function M$g(C){var g=C.state,I=C.name,e=g.rects.reference,t=g.rects.popper,i=g.modifiersData.preventOverflow,A=_0(g,{elementContext:"reference"}),n=_0(g,{altBoundary:!0}),l=Wz(A,e),o=Wz(n,t,i),a=Bz(l),d=Bz(o);g.modifiersData[I]={referenceClippingOffsets:l,popperEscapeOffsets:o,isReferenceHidden:a,hasPopperEscaped:d},g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":d})}var R$g={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M$g};function f$g(C,g,I){var e=Mn(C),t=[vt,Tt].indexOf(e)>=0?-1:1,i=typeof I=="function"?I(Object.assign({},g,{placement:C})):I,A=i[0],n=i[1];return A=A||0,n=(n||0)*t,[vt,_i].indexOf(e)>=0?{x:n,y:A}:{x:A,y:n}}function X$g(C){var g=C.state,I=C.options,e=C.name,t=I.offset,i=t===void 0?[0,0]:t,A=oz.reduce(function(a,d){return a[d]=f$g(d,g.rects,i),a},{}),n=A[g.placement],l=n.x,o=n.y;g.modifiersData.popperOffsets!=null&&(g.modifiersData.popperOffsets.x+=l,g.modifiersData.popperOffsets.y+=o),g.modifiersData[e]=A}var H$g={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:X$g};function D$g(C){var g=C.state,I=C.name;g.modifiersData[I]=wz({reference:g.rects.reference,element:g.rects.popper,strategy:"absolute",placement:g.placement})}var S$g={name:"popperOffsets",enabled:!0,phase:"read",fn:D$g,data:{}};function K$g(C){return C==="x"?"y":"x"}function k$g(C){var g=C.state,I=C.options,e=C.name,t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!1:A,l=I.boundary,o=I.rootBoundary,a=I.altBoundary,d=I.padding,m=I.tether,u=m===void 0?!0:m,h=I.tetherOffset,Z=h===void 0?0:h,G=_0(g,{boundary:l,rootBoundary:o,padding:d,altBoundary:a}),w=Mn(g.placement),B=$r(g.placement),p=!B,y=wM(w),Y=K$g(y),R=g.modifiersData.popperOffsets,M=g.rects.reference,K=g.rects.popper,J=typeof Z=="function"?Z(Object.assign({},g.rects,{placement:g.placement})):Z,X=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),D=g.modifiersData.offset?g.modifiersData.offset[g.placement]:null,z={x:0,y:0};if(R){if(i){var j,q=y==="y"?Tt:vt,gg=y==="y"?Pi:_i,Q=y==="y"?"height":"width",_=R[y],og=_+G[q],eg=_-G[gg],mg=u?-K[Q]/2:0,Yg=B===Ur?M[Q]:K[Q],Zg=B===Ur?-K[Q]:-M[Q],ag=g.elements.arrow,pg=u&&ag?GM(ag):{width:0,height:0},bg=g.modifiersData["arrow#persistent"]?g.modifiersData["arrow#persistent"].padding:rz(),oI=bg[q],AI=bg[gg],nC=E0(0,M[Q],pg[Q]),KC=p?M[Q]/2-mg-nC-oI-X.mainAxis:Yg-nC-oI-X.mainAxis,eC=p?-M[Q]/2+mg+nC+AI+X.mainAxis:Zg+nC+AI+X.mainAxis,WI=g.elements.arrow&&U0(g.elements.arrow),ie=WI?y==="y"?WI.clientTop||0:WI.clientLeft||0:0,ke=(j=D==null?void 0:D[y])!=null?j:0,kC=_+KC-ke-ie,Ri=_+eC-ke,Nu=E0(u?Ap(og,kC):og,_,u?ad(eg,Ri):eg);R[y]=Nu,z[y]=Nu-_}if(n){var Fe,as=y==="x"?Tt:vt,TZ=y==="x"?Pi:_i,Vt=R[Y],Ae=Y==="y"?"height":"width",_A=Vt+G[as],$A=Vt-G[TZ],ds=[Tt,vt].indexOf(w)!==-1,qA=(Fe=D==null?void 0:D[Y])!=null?Fe:0,cA=ds?_A:Vt-M[Ae]-K[Ae]-qA+X.altAxis,gl=ds?Vt+M[Ae]+K[Ae]-qA-X.altAxis:$A,gn=u&&ds?n$g(cA,Vt,gl):E0(u?cA:_A,Vt,u?gl:$A);R[Y]=gn,z[Y]=gn-Vt}g.modifiersData[e]=z}}var F$g={name:"preventOverflow",enabled:!0,phase:"main",fn:k$g,requiresIfExists:["offset"]};function z$g(C){return{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}}function J$g(C){return C===SA(C)||!$i(C)?WM(C):z$g(C)}function L$g(C){var g=C.getBoundingClientRect(),I=Pr(g.width)/C.offsetWidth||1,e=Pr(g.height)/C.offsetHeight||1;return I!==1||e!==1}function T$g(C,g,I){I===void 0&&(I=!1);var e=$i(g),t=$i(g)&&L$g(g),i=so(g),A=_r(C,t),n={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(e||!e&&!I)&&((Nn(g)!=="body"||pM(i))&&(n=J$g(g)),$i(g)?(l=_r(g,!0),l.x+=g.clientLeft,l.y+=g.clientTop):i&&(l.x=BM(i))),{x:A.left+n.scrollLeft-l.x,y:A.top+n.scrollTop-l.y,width:A.width,height:A.height}}function v$g(C){var g=new Map,I=new Set,e=[];C.forEach(function(i){g.set(i.name,i)});function t(i){I.add(i.name);var A=[].concat(i.requires||[],i.requiresIfExists||[]);A.forEach(function(n){if(!I.has(n)){var l=g.get(n);l&&t(l)}}),e.push(i)}return C.forEach(function(i){I.has(i.name)||t(i)}),e}function j$g(C){var g=v$g(C);return I$g.reduce(function(I,e){return I.concat(g.filter(function(t){return t.phase===e}))},[])}function x$g(C){var g;return function(){return g||(g=new Promise(function(I){Promise.resolve().then(function(){g=void 0,I(C())})})),g}}function O$g(C){var g=C.reduce(function(I,e){var t=I[e.name];return I[e.name]=t?Object.assign({},t,e,{options:Object.assign({},t.options,e.options),data:Object.assign({},t.data,e.data)}):e,I},{});return Object.keys(g).map(function(I){return g[I]})}var pz={placement:"bottom",modifiers:[],strategy:"absolute"};function yz(){for(var C=arguments.length,g=new Array(C),I=0;I<C;I++)g[I]=arguments[I];return!g.some(function(e){return!(e&&typeof e.getBoundingClientRect=="function")})}function Q$g(C){C===void 0&&(C={});var g=C,I=g.defaultModifiers,e=I===void 0?[]:I,t=g.defaultOptions,i=t===void 0?pz:t;return function(n,l,o){o===void 0&&(o=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},pz,i),modifiersData:{},elements:{reference:n,popper:l},attributes:{},styles:{}},d=[],m=!1,u={state:a,setOptions:function(w){var B=typeof w=="function"?w(a.options):w;Z(),a.options=Object.assign({},i,a.options,B),a.scrollParents={reference:Er(n)?P0(n):n.contextElement?P0(n.contextElement):[],popper:P0(l)};var p=j$g(O$g([].concat(e,a.options.modifiers)));return a.orderedModifiers=p.filter(function(y){return y.enabled}),h(),u.update()},forceUpdate:function(){if(!m){var w=a.elements,B=w.reference,p=w.popper;if(yz(B,p)){a.rects={reference:T$g(B,U0(p),a.options.strategy==="fixed"),popper:GM(p)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(X){return a.modifiersData[X.name]=Object.assign({},X.data)});for(var y=0;y<a.orderedModifiers.length;y++){if(a.reset===!0){a.reset=!1,y=-1;continue}var Y=a.orderedModifiers[y],R=Y.fn,M=Y.options,K=M===void 0?{}:M,J=Y.name;typeof R=="function"&&(a=R({state:a,options:K,name:J,instance:u})||a)}}}},update:x$g(function(){return new Promise(function(G){u.forceUpdate(),G(a)})}),destroy:function(){Z(),m=!0}};if(!yz(n,l))return u;u.setOptions(o).then(function(G){!m&&o.onFirstUpdate&&o.onFirstUpdate(G)});function h(){a.orderedModifiers.forEach(function(G){var w=G.name,B=G.options,p=B===void 0?{}:B,y=G.effect;if(typeof y=="function"){var Y=y({state:a,name:w,instance:u,options:p}),R=function(){};d.push(Y||R)}})}function Z(){d.forEach(function(G){return G()}),d=[]}return u}}var U$g=[h$g,S$g,m$g,t$g,H$g,N$g,F$g,a$g,R$g],E$g=Q$g({defaultModifiers:U$g}),Yz="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function op(C){return C.split("-").map(g=>parseInt(g,16)).map(g=>String.fromCodePoint(g)).join("")}function P$g(C,g,I,e=[]){const t={};return Object.keys(C).forEach(i=>{if(e.includes(i))return;const A=[];C[i].forEach(n=>{var l;if(n[ep][0].includes(g.toLocaleLowerCase())){let o=n[Iz];if(I!==ip&&Array.isArray(n[tp])){const a=((l=n[tp])==null?void 0:l.findIndex(d=>d.includes(I)))||-1;a!==-1&&n[tp]&&(o=n[tp][a])}return A.push({...n,[j0]:o})}}),A.length&&(t[i]=A)}),t}function Vz(){var C;return(((C=navigator==null?void 0:navigator.userAgentData)==null?void 0:C.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function Nz(C){return C.replace(/^_*(.)|_+(.)/g,(g,I,e)=>I?I.toUpperCase():" "+e.toUpperCase())}var $0=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I};const _$g=s.defineComponent({name:"Body",emits:{select:C=>!0},setup(){const{state:C,updateEmoji:g,updateSelect:I}=s.inject("store"),e=s.ref(null),t=s.computed(()=>P$g(C.emojis,C.search,C.skinTone,C.options.disabledGroups)),i=s.getCurrentInstance(),A=s.computed(()=>!C.options.hideGroupNames),n=s.computed(()=>!C.options.disableStickyGroupNames),l=s.toRaw(C.options.groupNames),o=C.orderedGroupKeys;C.options.additionalGroups&&Object.keys(C.options.additionalGroups).map(h=>{C.options.groupNames[h]?l[h]=C.options.groupNames[h]:l[h]=Nz(h)});const a=Vz()?"is-mac":"";function d(h){g(h)}function m(h){I(h),i==null||i.emit("select",{...h,t:C.skinTone,i:op(h.r)})}function u(h,Z){var G;const w=(G=h==null?void 0:h.target)==null?void 0:G.closest("button");w&&(w.innerHTML=`<span>${op(Z)}</span>`)}return s.watch(()=>C.activeGroup,()=>{var h;const Z=(h=e.value)==null?void 0:h.querySelector("#"+C.activeGroup);Z&&(Z.parentNode.scrollTop=Z.offsetTop-Z.parentNode.offsetTop)}),{emojis:t,bodyInner:e,EMOJI_REMOTE_SRC:qF,GROUP_NAMES:gz,handleClick:m,handleError:u,handleMouseEnter:d,native:C.options.native,unicodeToEmoji:op,EMOJI_RESULT_KEY:j0,EMOJI_NAME_KEY:ep,hasGroupNames:A,isSticky:n,platform:a,groupNames:l,orderedKeys:o}}}),$$g={class:"v3-body"},q$g=["id"],gqg={class:"v3-emojis"},Iqg=["onMouseenter","onClick"],Cqg={key:0},eqg=["src","alt","onError"],tqg={key:1,class:"v3-no-result"};function iqg(C,g,I,e,t,i){return s.openBlock(),s.createElementBlock("div",$$g,[s.createElementVNode("div",{ref:"bodyInner",class:s.normalizeClass([C.platform,"v3-body-inner"])},[C.orderedKeys.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(C.orderedKeys,A=>(s.openBlock(),s.createElementBlock("div",{id:A,key:A,class:"v3-group"},[C.hasGroupNames?s.withDirectives((s.openBlock(),s.createElementBlock("h5",{key:0,class:s.normalizeClass(C.isSticky?"v3-sticky":"")},s.toDisplayString(C.groupNames[A]),3)),[[s.vShow,C.emojis[A]]]):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",gqg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.emojis[A],n=>(s.openBlock(),s.createElementBlock("button",{key:n.r,type:"button",onMouseenter:l=>C.handleMouseEnter(n),onClick:l=>C.handleClick(n)},[C.native?(s.openBlock(),s.createElementBlock("span",Cqg,s.toDisplayString(C.unicodeToEmoji(n.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,src:C.EMOJI_REMOTE_SRC+`/${n.r}.png`,alt:n.n[0],onError:l=>C.handleError(l,n.r)},null,40,eqg))],40,Iqg))),128))],512),[[s.vShow,C.emojis[A]]])],8,q$g))),128)):(s.openBlock(),s.createElementBlock("span",tqg," No emoji has been found! "))],2)])}var Aqg=$0(_$g,[["render",iqg]]),nqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",lqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",sqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",oqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",aqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",dqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",cqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",rqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const mqg=s.defineComponent({name:"Header",setup(C){const{state:g,updateSearch:I,updateActiveGroup:e}=s.inject("store"),t=s.computed(()=>!g.options.hideSearch),i=s.computed(()=>!g.options.hideGroupIcons),A=JSON.parse(JSON.stringify(g.orderedGroupKeys)),n=s.computed(()=>g.options.staticTexts.placeholder||""),l=s.computed({get:()=>g.search,set:d=>I(d)}),o=[...g.groups,...Object.keys(g.options.additionalGroups).map(d=>({key:d,title:g.options.groupNames[d]?g.options.groupNames[d]:Nz(d)}))],a=[];return A.forEach(d=>{const m=o.findIndex(u=>u.key===d);m!==-1&&(a.push(o[m]),o.splice(m,1))}),{orderedGroups:a,orderedKeys:A,searchValue:l,updateActiveGroup:e,hasSearch:t,hasGroupIcons:i,placeholder:n,icons:{smileys_people:Yz,animals_nature:nqg,food_drink:lqg,activities:sqg,travel_places:oqg,objects:aqg,symbols:dqg,flags:cqg,...g.options.groupIcons,recent:rqg}}}}),uqg={key:0,class:"v3-header"},hqg={key:0,class:"v3-groups"},bqg=["onClick"],Zqg=["title"],Gqg=["src"],wqg={key:1,class:"v3-spacing"},Wqg={key:2,class:"v3-search"},Bqg=["placeholder"];function pqg(C,g,I,e,t,i){return C.hasGroupIcons||C.hasSearch?(s.openBlock(),s.createElementBlock("div",uqg,[C.hasGroupIcons?(s.openBlock(),s.createElementBlock("div",hqg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.orderedGroups,A=>(s.openBlock(),s.createElementBlock("button",{key:A.key,type:"button",class:s.normalizeClass(["v3-group",{"v3-is-hidden":!C.icons[A.key]}]),onClick:n=>C.updateActiveGroup(A.key)},[s.createElementVNode("span",{title:A.title,class:"v3-icon"},[s.createElementVNode("img",{src:C.icons[A.key],alt:""},null,8,Gqg)],8,Zqg)],10,bqg))),128))])):s.createCommentVNode("",!0),C.hasGroupIcons&&C.hasSearch?(s.openBlock(),s.createElementBlock("div",wqg)):s.createCommentVNode("",!0),C.hasSearch?(s.openBlock(),s.createElementBlock("div",Wqg,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=A=>C.searchValue=A),type:"text",placeholder:C.placeholder},null,8,Bqg),[[s.vModelText,C.searchValue]])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}var yqg=$0(mqg,[["render",pqg]]);const Yqg=s.defineComponent({name:"Header",setup(){const{state:C,updateSkinTone:g}=s.inject("store"),I=s.ref(!1),e=s.ref(!1),t=s.computed(()=>C.skinTone),i=s.computed(()=>C.options.staticTexts.skinTone||"Skin tone"),A=s.computed(()=>!C.options.disableSkinTones),n=Vz()?"is-mac":"",l=s.computed(()=>({...C.emoji,src:qF+"/"+C.emoji[j0]+".png"}));function o(m=!0){I.value=m}function a(){I.value=!I.value}function d(m){g(m),o(!1)}return s.watch(()=>C.emoji,()=>{e.value=!1}),{emoji:l,SKIN_TONES:Y_g,updateSkinToneState:o,skinTone:I,stateSkinTone:t,selectSkinTone:d,toggleSkinToneState:a,EMOJI_RESULT_KEY:j0,EMOJI_NAME_KEY:ep,skinToneText:i,hasSkinTones:A,native:C.options.native,unicodeToEmoji:op,platform:n,hasError:e}}}),Vqg={class:"v3-foot-left"},Nqg={key:0},Mqg=["alt","src"],Rqg={class:"v3-text"},fqg={class:"v3-text"},Xqg=["onClick"];function Hqg(C,g,I,e,t,i){return s.openBlock(),s.createElementBlock("div",{class:"v3-footer",onMouseleave:g[2]||(g[2]=A=>C.updateSkinToneState(!1))},[s.createElementVNode("div",Vqg,[s.createElementVNode("span",{class:s.normalizeClass([C.platform,"v3-icon"])},[C.native||C.hasError?(s.openBlock(),s.createElementBlock("span",Nqg,s.toDisplayString(C.unicodeToEmoji(C.emoji.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,alt:C.unicodeToEmoji(C.emoji.r),src:C.emoji.src,onError:g[0]||(g[0]=A=>C.hasError=!0)},null,40,Mqg))],2),s.createElementVNode("span",Rqg," :"+s.toDisplayString(C.emoji[C.EMOJI_NAME_KEY][1]||C.emoji[C.EMOJI_NAME_KEY][0])+": ",1)]),C.hasSkinTones?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("button",{type:"button",class:"v3-tone",onClick:g[1]||(g[1]=(...A)=>C.toggleSkinToneState&&C.toggleSkinToneState(...A))},[s.createElementVNode("span",fqg,s.toDisplayString(C.skinToneText),1),s.createElementVNode("span",{class:s.normalizeClass(`v3-icon v3-tone-${C.stateSkinTone}`)},null,2)]),s.createElementVNode("div",{class:s.normalizeClass([C.skinTone?"v3-is-open":"","v3-skin-tones"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.SKIN_TONES,A=>(s.openBlock(),s.createElementBlock("button",{key:A,type:"button",class:s.normalizeClass(["v3-skin-tone-"+A,"v3-skin-tone"]),onClick:n=>C.selectSkinTone(A)},null,10,Xqg))),128))],2)],64)):s.createCommentVNode("",!0)],32)}var Dqg=$0(Yqg,[["render",Hqg]]);const Sqg=s.defineComponent({name:"PickerRoot",components:{Header:yqg,Body:Aqg,Footer:Dqg},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:C=>!0,"update:text":C=>!0},setup(C,{emit:g}){const I=s.ref(),e=s.ref(),t=s.ref(),i=s.ref(!1),A=s.ref(C.text),n=C.type==="input"||C.type==="textarea";let l=-1;const{state:o}=s.inject("store"),a=s.computed(()=>o.options.colorTheme);function d(G){if(n){const w=o.options.mode;w==="prepend"?A.value=G.i+A.value:w==="insert"&&l!==-1?(A.value=`${A.value.slice(0,l)}${G.i}${A.value.slice(l)}`,l+=G.i.length):A.value+=G.i,g("update:text",A.value)}g("select",G)}function m(){var G;I.value&&(l=((G=I.value)==null?void 0:G.selectionEnd)||-1)}function u(G){var w;!((w=G.target)!=null&&w.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function h(){if(e.value&&t.value&&n){let G=o.options.offset;typeof G!="number"&&(G=6),E$g(e.value,t.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,G]}}]}),document.body.addEventListener("click",u)}}function Z(G){A.value=G.target.value||"",g("update:text",A.value)}return s.onMounted(()=>{h()}),s.onBeforeUnmount(()=>{document.body.removeEventListener("click",u)}),{face:Yz,open:i,onSelect:d,input:A,elem:I,updateCursor:m,button:e,picker:t,isInputType:n,onChangeText:Z,colorTheme:a}}}),Kqg={key:0,class:"v3-input-emoji-picker"},kqg={class:"v3-input-picker-root"},Fqg=["value"],zqg=["value"],Jqg=["src"];function Lqg(C,g,I,e,t,i){const A=s.resolveComponent("Header"),n=s.resolveComponent("Body"),l=s.resolveComponent("Footer");return C.isInputType?(s.openBlock(),s.createElementBlock("div",Kqg,[s.createElementVNode("div",kqg,[C.type==="input"?(s.openBlock(),s.createElementBlock("input",{key:0,ref:"elem",value:C.input,type:"text",class:"v3-emoji-picker-input",onInput:g[0]||(g[0]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[1]||(g[1]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,Fqg)):(s.openBlock(),s.createElementBlock("textarea",{key:1,ref:"elem",value:C.input,class:"v3-emoji-picker-textarea",onInput:g[2]||(g[2]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[3]||(g[3]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,zqg)),s.createElementVNode("div",{class:s.normalizeClass(["v3-input-picker-wrap",C.open?"v3-picker-is-open":""])},[s.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:g[4]||(g[4]=o=>C.open=!C.open)},[s.createElementVNode("img",{src:C.face,alt:""},null,8,Jqg)],512),s.createElementVNode("div",{ref:"picker",class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),s.createVNode(l)],2)],2)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),s.createVNode(l)],2))}var Tqg=$0(Sqg,[["render",Lqg]]);const vqg=s.defineComponent({name:"Picker",components:{PickerRoot:Tqg},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":C=>!0,select:C=>!0},setup(C,{emit:g}){const I=s.ref(C.text);function e(i){I.value=i||"",g("update:text",I.value)}const t=v_g();return t.updateOptions({native:C.native,hideSearch:C.hideSearch,hideGroupIcons:C.hideGroupIcons,hideGroupNames:C.hideGroupNames,staticTexts:{...V_g,...C.staticTexts},disableStickyGroupNames:C.disableStickyGroupNames,disabledGroups:C.disabledGroups,groupNames:{...gz,...C.groupNames},disableSkinTones:C.disableSkinTones,displayRecent:C.displayRecent,additionalGroups:C.additionalGroups,mode:C.mode,offset:C.offset,groupOrder:C.groupOrder,groupIcons:C.groupIcons,colorTheme:N_g.includes(C.theme)?C.theme:"light"}),s.provide("store",t),{type:C.pickerType,input:I,onChangeText:e}}});function jqg(C,g,I,e,t,i){const A=s.resolveComponent("picker-root");return s.openBlock(),s.createBlock(A,{type:C.type,text:C.input,onSelect:g[0]||(g[0]=n=>C.$emit("select",n)),"onUpdate:text":C.onChangeText},null,8,["type","text","onUpdate:text"])}var Mz=$0(vqg,[["render",jqg]]),ap=(C=>(C.primary="primary",C.secondary="secondary",C.red="red",C.green="green",C.yellow="yellow",C.blue="blue",C.white="white",C.black="black",C))(ap||{});const xqg=fg(s.defineComponent({__name:"DropZone",emits:["files-dropped"],setup(C,{emit:g}){const I=g,e=s.reactive({dragging:!1}),t=h=>{const Z=Array.from(h.items??[]).filter(G=>G.kind==="file").map(G=>G.getAsFile()).filter(G=>!!G);return Z.length?Z:Array.from(h.files??[])},i=h=>h?Array.from(h.types??[]).includes("Files")?!0:Array.from(h.items??[]).some(G=>G.kind==="file"):!1,A=async h=>{const Z=await h.arrayBuffer();return new File([Z],h.name,{type:h.type,lastModified:h.lastModified})},n=async h=>{if(h.preventDefault(),e.dragging=!1,!h.dataTransfer)return;const Z=t(h.dataTransfer);if(!Z.length)return;const G=await Promise.all(Z.map(A));I("files-dropped",G)},l=h=>{h.preventDefault(),e.dragging=!1},o=h=>{h.preventDefault()},a=h=>{h.preventDefault(),i(h.dataTransfer)&&(e.dragging=!0)},d=h=>{h.clientX===0&&h.clientY===0&&(e.dragging=!1)},m=()=>{e.dragging=!1},u=h=>{h.clientX===0&&h.clientY===0&&(e.dragging=!1)};return s.onMounted(()=>{window.addEventListener("dragenter",a),window.addEventListener("dragover",o),window.addEventListener("drop",l),window.addEventListener("dragleave",d),window.addEventListener("dragend",m)}),s.onUnmounted(()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragover",o),window.removeEventListener("drop",l),window.removeEventListener("dragleave",d),window.removeEventListener("dragend",m)}),(h,Z)=>(s.openBlock(),s.createBlock(s.Transition,{name:"drag"},{default:s.withCtx(()=>[e.dragging?(s.openBlock(),s.createElementBlock("div",{key:0,class:"drag-overlay",onDragleave:u,onDragover:Z[0]||(Z[0]=s.withModifiers(()=>{},["prevent"])),onDrop:s.withModifiers(n,["prevent"])}," Загрузить файл ",32)):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-72c68cb7"]]),Oqg={class:"editor-component"},Qqg={key:0,class:"editor-component-slot"},Uqg={class:"right-buttons"},Eqg={class:"toolbar"},Pqg={class:"camera-selection"},_qg={class:"camera-selection-options"},YM=s.defineComponent({__name:"ContentEditor",props:s.mergeModels({activeAttachFile:{type:Boolean},activeSelectUser:{type:Boolean},activeSend:{type:Boolean},disableSendOnEnter:{type:Boolean},isMentionModalOpen:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:s.mergeModels(["unmount-send","unmount-attach-file","mention-change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=s.useModel(C,"modelValue"),i=s.ref(!1),A=s.ref({vertical:"bottom",horizontal:"left"}),n=I,l=s.computed(()=>{var D;return!e.activeSend&&((D=h.value)==null?void 0:D.isEmpty)}),o=s.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,l.value?"":"translateX"]),a=s.ref(null),d=s.ref(!1),m=D=>{d.value=!1,G(!0,D)},u=Jt.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""},userId:{default:null,parseHTML:D=>D.getAttribute("data-user-id"),renderHTML:D=>D.userId?{"data-user-id":D.userId}:{}}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:D,HTMLAttributes:z}){return["span",HC(z,{"data-span":"",contenteditable:"false",class:D==null?void 0:D.attrs.class}),D==null?void 0:D.attrs.content]}}),h=j6g({extensions:[B_g.configure({link:!1,bold:!1,italic:!1,strike:!1,heading:!1,bulletList:!1,orderedList:!1,codeBlock:!1,blockquote:!1,underline:!1}),k8g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),p_g.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),u],content:t.value,editorProps:{handlePaste(D,z){const j=z.clipboardData;if(!j)return!1;if(j.files.length>0&&e.activeAttachFile){const q=Array.from(j.files).every(gg=>gg.type.startsWith("image/")||gg.type.startsWith("video/"));return n("unmount-attach-file",j.files,q),z.preventDefault(),!0}}},onUpdate:({editor:D})=>{if(t.value=D.getHTML(),e.activeSelectUser){const{$from:z}=D.state.selection,j=Math.max(0,z.parentOffset-50),gg=z.parent.textBetween(j,z.parentOffset,null,"").match(/@([^\s]*)$/);gg?n("mention-change",gg[1].toLowerCase()):n("mention-change",null)}},parseOptions:{preserveWhitespace:!0}});s.watch(t,D=>{h!=null&&h.value&&D!==h.value.getHTML()&&h.value.commands.setContent(D??"",{parseOptions:{preserveWhitespace:!0}})});const Z=D=>{h!=null&&h.value&&h.value.chain().focus().insertContent(D.i).run()},G=(D=!1,z)=>{if(!(h!=null&&h.value))return;const j=document.createElement("input");j.type="file",z?(z==="video"?j.accept="video/*":z==="image"?j.accept="image/*":j.accept="image/*,video/*",j.capture="environment",j.multiple=!1):(j.multiple=!0,D&&(j.accept="image/*,video/*")),j.onchange=()=>{j!=null&&j.files&&n("unmount-attach-file",j.files,D)},j.click()},w=D=>{const z=D.every(gg=>gg.type.startsWith("image/")||gg.type.startsWith("video/")),j=new DataTransfer;D.forEach(gg=>j.items.add(gg));const q=j.files;n("unmount-attach-file",q,z)},B=()=>{h!=null&&h.value&&(n("unmount-send",{content:h.value.getHTML()}),h.value.chain().focus())},p=(D,z)=>{if(!(h!=null&&h.value))return;const{$from:j}=h.value.state.selection,q=Math.max(0,j.parentOffset-50),Q=j.parent.textBetween(q,j.parentOffset,null,"").match(/@([^\s]*)$/);if(Q){const _=j.start()+q+(Q.index||0);h.value.chain().focus().insertContentAt({from:_,to:j.pos},{type:"spanNode",attrs:{content:D,class:"link",...z}}).run()}else h.value.chain().focus().insertContent({type:"spanNode",attrs:{content:D,class:"link",...z}}).run()},y=()=>{if(!(h!=null&&h.value))return;const{$from:D}=h.value.state.selection,z=Math.max(0,D.parentOffset-50),q=D.parent.textBetween(z,D.parentOffset,null,"").match(/@([^\s]*)$/);if(q){const gg=D.start()+z+(q.index||0);h.value.chain().focus().deleteRange({from:gg,to:D.pos}).run()}else h.value.chain().focus().insertContent("@").run()},Y=()=>{h!=null&&h.value&&h.value.chain().focus()},R=(D,z=300,j=260)=>{if(!D)return;const q=D.getBoundingClientRect(),gg=window.innerWidth,Q=window.innerHeight;A.value.vertical=q.bottom+j>Q?"top":"bottom",A.value.horizontal=q.left+z>gg?"right":"left"},M=D=>{if(i.value=!i.value,i.value){const z=D.currentTarget;s.nextTick(()=>{R(z)})}},K=()=>{i.value=!1},J=()=>{const D=document.querySelector(".toolbar-button.smile-button");i.value&&D&&R(D)},X=D=>{window.innerWidth<=480||!e.disableSendOnEnter&&D.key==="Enter"&&D.code&&!(D.shiftKey||D.ctrlKey||D.metaKey)&&(D.preventDefault(),D.stopPropagation(),B())};return s.onMounted(()=>{var D,z;(z=(D=h==null?void 0:h.value)==null?void 0:D.view)!=null&&z.dom&&(a.value=h.value.view.dom,window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),a.value.addEventListener("keydown",X,{capture:!0}))}),s.onBeforeUnmount(()=>{var D;(D=h==null?void 0:h.value)==null||D.destroy(),a.value&&a.value.removeEventListener("keydown",X,{capture:!0}),window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0)}),g({addSpanLink:p,focus:Y,editor:h}),(D,z)=>(s.openBlock(),s.createElementBlock("div",Oqg,[D.$slots.action?(s.openBlock(),s.createElementBlock("div",Qqg,[s.renderSlot(D.$slots,"action")])):s.createCommentVNode("",!0),s.createVNode(Mr,{isWCUse:"",disabled:!e.activeAttachFile,options:[{value:"Камера",function:()=>d.value=!0},{value:"Фото или видео",function:()=>G(!0)},{value:"Файл",function:()=>G(!1)}],translateY:"calc(-100% - 47px)",class:"mobile-item"},{trigger:s.withCtx(()=>[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button attach-file-button mobile-buttons",disabled:!e.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).paperClip},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(s.unref(v6g),{class:"editor-content",editor:s.unref(h)},null,8,["editor"]),e.activeAttachFile?(s.openBlock(),s.createBlock(xqg,{key:1,onFilesDropped:w})):s.createCommentVNode("",!0),s.createElementVNode("div",Uqg,[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button mobile-buttons smile-button",onClick:s.withModifiers(M,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).smile},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:z[0]||(z[0]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(o.value)},[s.createVNode(s.unref(Mz),{native:!0,onSelect:Z})],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.withDirectives(s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button right mobile-buttons",onClick:B},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[s.vShow,!l.value]])]),s.createElementVNode("div",Eqg,[s.createVNode(Mr,{isWCUse:"",disabled:!e.activeAttachFile,options:[{value:"Фото или видео",function:()=>G(!0)},{value:"Файл",function:()=>G(!1)}],translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button attach-file-button",disabled:!e.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button smile-button",onClick:s.withModifiers(M,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:z[1]||(z[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(o.value)},[s.withDirectives(s.createVNode(s.unref(Mz),{native:!0,onSelect:Z},null,512),[[s.unref(Oc),K,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.createVNode(sC,{disabled:!e.activeSelectUser,type:s.unref(MI).ghost,class:"toolbar-button",size:s.unref(it).small,onClick:y},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["disabled","type","size"]),s.createCommentVNode("",!0),s.createVNode(sC,{disabled:l.value,class:"toolbar-button right",size:s.unref(it).small,onClick:B},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).planeRight,color:s.unref(ap).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])]),d.value?(s.openBlock(),s.createBlock(xS,{key:2,open:d.value,onClose:z[4]||(z[4]=j=>d.value=!1),position:"center",width:"320px",height:"auto"},{default:s.withCtx(()=>[s.createElementVNode("div",Pqg,[z[7]||(z[7]=s.createElementVNode("div",{class:"camera-selection-header"},"Выберите действие",-1)),s.createElementVNode("div",_qg,[s.createVNode(sC,{type:s.unref(MI).outline,onClick:z[2]||(z[2]=j=>m("image")),class:"camera-selection-item"},{default:s.withCtx(()=>[...z[5]||(z[5]=[s.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),s.createVNode(sC,{type:s.unref(MI).outline,onClick:z[3]||(z[3]=j=>m("video")),class:"camera-selection-item"},{default:s.withCtx(()=>[...z[6]||(z[6]=[s.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])]),_:1},8,["open"])):s.createCommentVNode("",!0)]))}}),$qg=["data-testid"],qqg=["data-testid"],ggI=fg(s.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=s.useTemplateRef("canvas"),A=s.useTemplateRef("container"),n=s.reactive({ctx:null,image:null,id:s.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:e.min,maxScale:e.max,stepScale:e.step});s.watch(()=>e.image,()=>{e.image&&d(e.image)});const l=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:R,height:M}=A.value.getBoundingClientRect();i.value&&(i.value.width=R,i.value.height=M),n.image&&a()}},a=()=>{if(n.image){const R=n.ctx,M=i.value;R&&M&&(R.clearRect(0,0,M.width,M.height),R.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=R=>{const M=new FileReader;M.onload=async K=>{var J;typeof((J=K.target)==null?void 0:J.result)=="string"&&(n.image=new Image,n.image.src=K.target.result,n.image.onload=async()=>{if(await s.nextTick(),i.value&&n.image){const X=i.value.width,D=i.value.height,z=n.image.width/n.image.height,j=X/D;z>j?(n.image.width=X,n.image.height=X/z):(n.image.height=D,n.image.width=D*z),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},M.readAsDataURL(R)},m=R=>{n.isDragging=!0,n.startX=R.clientX-n.position.x,n.startY=R.clientY-n.position.y,window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=R=>{if(!n.isDragging&&!i.value)return;let M=R.clientX-n.startX,K=R.clientY-n.startY;if(i.value&&n.image){const J=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?M=Math.min(Math.max(M,0),i.value.width-n.image.width*n.scale):(M>0&&(M=0),M<J&&(M=J));const X=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?K=Math.min(Math.max(K,0),i.value.height-n.image.height*n.scale):(K>0&&(K=0),K<X&&(K=X)),n.position.x=M,n.position.y=K}a()},h=()=>{n.isDragging=!1,window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},Z=R=>Math.max(n.minScale,Math.min(R,n.maxScale)),G=R=>{if(i.value){const M=i.value.width/2,K=i.value.height/2;n.position.x=M-(M-n.position.x)*R,n.position.y=K-(K-n.position.y)*R}},w=R=>{const M=n.scale,K=n.scale+R.deltaY*-.001;if(M===Z(K))return;n.scale=Z(K);const J=K/M;G(J),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:R,height:M}=A.value.getBoundingClientRect(),K=document.createElement("canvas");K.width=R,K.height=M;const J=K.getContext("2d");J&&n.image&&J.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const X=K.toDataURL("image/png"),D=atob(X.split(",")[1]),z=new ArrayBuffer(D.length),j=new Uint8Array(z);for(let gg=0;gg<D.length;gg++)j[gg]=D.charCodeAt(gg);const q=new Blob([j],{type:"image/png"});return e.image?new File([q],e.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const R=n.scale+n.stepScale;n.scale=Z(R),a()},scaleMinus:()=>{const R=n.scale-n.stepScale;n.scale=Z(R),a()},setScale:R=>{const M=n.scale,J=R/M;n.scale=Z(R),G(J),a()},startMove:m,scaleImage:w}),s.onMounted(()=>{l(),e.image&&d(e.image)}),(R,M)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[s.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:m,onWheel:s.withModifiers(w,["prevent"])},null,40,qqg)],8,$qg))}}),[["__scopeId","data-v-df483607"]]),IgI=C=>{const g=s.ref(C==null?void 0:C.defaultValue),I=C==null?void 0:C.min,e=C==null?void 0:C.max,t=C==null?void 0:C.step;s.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,e));return{value:g,min:I,max:e,step:t,getCorrectValue:i}},CgI=(C,g)=>new File([C],g,{type:C.type}),egI=["data-testid"],tgI=["data-testid"],igI=["data-testid"],AgI=["data-testid"],ngI=["data-testid"],lgI=["data-testid"],VM=fg(s.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(C,{emit:g}){const I=C,e=g,{max:t,min:i,step:A,value:n}=IgI({defaultValue:1,max:3,min:1,step:.1}),l=s.useId(),o=s.useTemplateRef("cropper"),a=s.reactive({openModal:!1});s.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,e("unmount-close")},m=G=>{n.value=G},u=()=>{n.value=n.value-A},h=()=>{n.value=n.value+A},Z=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=CgI(G,w);e("unmount-save",B),d()}}};return s.onUnmounted(()=>{d()}),s.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(s.openBlock(),s.createBlock(C0,s.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${s.unref(l)}`,onClose:d}),{default:s.withCtx(()=>[s.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content`},[s.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${s.unref(l)}-title`}," Изменение фото профиля ",8,tgI),s.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main`},[s.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main-cropped`},[s.createVNode(ggI,{ref_key:"cropper",ref:o,image:C.image,max:s.unref(t),min:s.unref(i),step:s.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),s.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-tools`},[s.createVNode(Xg,{name:s.unref(ug).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-iconMinus`,onClick:u},null,8,["name","data-testid"]),s.createVNode(KW,{max:s.unref(t),min:s.unref(i),step:s.unref(A),modelValue:s.unref(n),"onUpdate:modelValue":w[0]||(w[0]=B=>s.isRef(n)?n.value=B:null),"data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),s.createVNode(Xg,{name:s.unref(ug).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-IconPlus`,onClick:h},null,8,["name","data-testid"])],8,ngI)],8,AgI),s.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttons`},[s.createVNode(sC,{type:s.unref(MI).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-ButtonCancel`,onClick:d},{default:s.withCtx(()=>[...w[1]||(w[1]=[s.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),s.createVNode(sC,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttonSave`,onClick:Z},{default:s.withCtx(()=>[...w[2]||(w[2]=[s.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,lgI)],8,igI)],8,egI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-65b5d91e"]]),NM={install(C,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const e=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(e)};C.mixin({mounted(){e(this.$el)}})}},sgI=["src"],MM=s.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=s.reactive({isError:!1,rotate:0});s.watch(()=>e.src,()=>{i.isError=!1,i.rotate=0,s.nextTick(()=>{n()})});const A=s.ref(null),n=async()=>{try{if(!A.value||!e.src)return;const o=new Image;o.src=e.src,o.addEventListener("load",()=>{var Z;if(!A.value)return;const a=(Z=A.value)==null?void 0:Z.getContext("2d");if(!a)return;const d=o.width,m=o.height;let u=d,h=m;i.rotate%180!==0&&(u=m,h=d),A.value.width=u,A.value.height=h,a.save(),a.clearRect(0,0,u,h),a.translate(u/2,h/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},l=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,s.nextTick(()=>{n()})};return s.onMounted(()=>{s.nextTick(()=>{n()})}),g({rotateImage:l}),(o,a)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,sgI)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),Rz={Accordion:gV,Badges:ve,BreadCrumbs:Iy,Dialog:Dw,DragAndDrop:IV,Card:CV,Combobox:tV,Calendar:qY,Button:sC,Switch:DG,SelectList:Qc,Dropdown:by,Textarea:uN,Filter:eV,Icon:Xg,Input:AV,InputNumber:Gh,Picture:bN,PushNotification:ZN,Scroll:aN,Search:Hh,Modal:C0,Slider:oN,Checkbox:dN,Toggle:yW,UserMenu:mN,CopyIcon:GN,Loader:i0,FilterTag:wN,CircularProgress:WN,Popover:Mr,Table:BN,TableNew:VN,TableSimple:MN,TableRow:SW,TableRowNew:NN,TableTd:d0,TableTh:Rr,SectionTableRow:pN,HeadTableRow:o0,HeadTableRowNew:kW,ScrollWrapper:a0,ScrollWrapperNew:SQg,Radio:yN,Tooltip:s0,BaseFilter:YN,Range:KW,Tabs:RN,ContentEditor:YM,ModalCroppedAvatar:VM,Avatar:fW,TimePicker:Sw,SliderModal:pW,PdfPreview:dl,ImagePreview:MM,VideoPreview:e0,Skeleton:DW},fz=Object.freeze(Object.defineProperty({__proto__:null,Accordion:gV,Avatar:fW,Badges:ve,BadgesTypeEnum:pI,BaseFilter:YN,BreadCrumbs:Iy,Button:sC,ButtonTypeEnum:MI,Calendar:qY,Card:CV,Checkbox:dN,CheckboxCircularEnum:RW,CheckboxSizeEnum:MW,CircularProgress:WN,ColorsEnum:ap,Combobox:tV,ContentEditor:YM,CopyIcon:GN,Dialog:Dw,DragAndDrop:IV,Dropdown:by,Filter:eV,FilterTag:wN,HeadTableRow:o0,HeadTableRowNew:kW,Icon:Xg,IconNameEnum:ug,ImageExtensionsEnum:Sh,ImagePreview:MM,Input:AV,InputNumber:Gh,InputTypeEnum:iV,Loader:i0,MenuTypeEnum:QI,MessageTypeEnum:HW,Modal:C0,ModalCroppedAvatar:VM,PdfPreview:dl,Picture:bN,Popover:Mr,PushNotification:ZN,Radio:yN,Range:KW,Scroll:aN,ScrollWrapper:a0,Search:Hh,SectionTableRow:pN,SelectList:Qc,SizesEnum:it,Skeleton:DW,Slider:oN,SliderModal:pW,Switch:DG,Table:BN,TableNew:VN,TableRow:SW,TableRowNew:NN,TableSimple:MN,TableTd:d0,TableTh:Rr,Tabs:RN,TextFieldEnum:xw,Textarea:uN,TextareaTypeEnum:XW,TimePicker:Sw,Toggle:yW,Tooltip:s0,UserMenu:mN,VideoExtensionsEnum:Kh,VideoPreview:e0,default:{install:C=>{Object.keys(Rz).forEach(g=>{C.component("Y"+g,Rz[g])})}},getFirstTime:JD,getLastTime:vw,vuePluginRemoveTestid:NM},Symbol.toStringTag,{value:"Module"})),ogI={install(C){for(const g in fz){const I=fz[g];C.use(I).use(NM,{enabled:!1})}}};P.Accordion=gV,P.Avatar=fW,P.Badges=ve,P.BadgesTypeEnum=pI,P.BaseFilter=YN,P.BreadCrumbs=Iy,P.Button=sC,P.ButtonTypeEnum=MI,P.Calendar=qY,P.Card=CV,P.Checkbox=dN,P.CheckboxCircularEnum=RW,P.CheckboxSizeEnum=MW,P.CircularProgress=WN,P.ColorsEnum=ap,P.Combobox=tV,P.ContentEditor=YM,P.CopyIcon=GN,P.Dialog=Dw,P.DragAndDrop=IV,P.Dropdown=by,P.Filter=eV,P.FilterTag=wN,P.HeadTableRow=o0,P.HeadTableRowNew=kW,P.Icon=Xg,P.IconNameEnum=ug,P.ImageExtensionsEnum=Sh,P.ImagePreview=MM,P.Input=AV,P.InputNumber=Gh,P.InputTypeEnum=iV,P.Loader=i0,P.MenuTypeEnum=QI,P.MessageTypeEnum=HW,P.Modal=C0,P.ModalCroppedAvatar=VM,P.OnClickOutside=LO,P.OnLongPress=OO,P.PdfPreview=dl,P.Picture=bN,P.Popover=Mr,P.PushNotification=ZN,P.Radio=yN,P.Range=KW,P.Scroll=aN,P.ScrollWrapper=a0,P.Search=Hh,P.SectionTableRow=pN,P.SelectList=Qc,P.SizesEnum=it,P.Skeleton=DW,P.Slider=oN,P.SliderModal=pW,P.Switch=DG,P.Table=BN,P.TableNew=VN,P.TableRow=SW,P.TableRowNew=NN,P.TableSimple=MN,P.TableTd=d0,P.TableTh=Rr,P.Tabs=RN,P.TextFieldEnum=xw,P.Textarea=uN,P.TextareaTypeEnum=XW,P.TimePicker=Sw,P.Toggle=yW,P.Tooltip=s0,P.UseActiveElement=QO,P.UseBattery=UO,P.UseBrowserLocation=EO,P.UseClipboard=PO,P.UseColorMode=nQ,P.UseDark=lQ,P.UseDeviceMotion=sQ,P.UseDeviceOrientation=oQ,P.UseDevicePixelRatio=aQ,P.UseDevicesList=dQ,P.UseDocumentVisibility=cQ,P.UseDraggable=rQ,P.UseElementBounding=mQ,P.UseElementSize=hQ,P.UseElementVisibility=GQ,P.UseEyeDropper=WQ,P.UseFullscreen=BQ,P.UseGeolocation=pQ,P.UseIdle=yQ,P.UseImage=MQ,P.UseMouse=XQ,P.UseMouseInElement=HQ,P.UseMousePressed=DQ,P.UseNetwork=SQ,P.UseNow=KQ,P.UseObjectUrl=kQ,P.UseOffsetPagination=FQ,P.UseOnline=zQ,P.UsePageLeave=JQ,P.UsePointer=LQ,P.UsePointerLock=TQ,P.UsePreferredColorScheme=vQ,P.UsePreferredContrast=jQ,P.UsePreferredDark=xQ,P.UsePreferredLanguages=OQ,P.UsePreferredReducedMotion=QQ,P.UseScreenSafeArea=_Q,P.UseTimeAgo=eU,P.UseTimestamp=tU,P.UseVirtualList=iU,P.UseWindowFocus=AU,P.UseWindowSize=nU,P.UserMenu=mN,P.VOnClickOutside=Oc,P.VOnLongPress=Xf,P.VideoExtensionsEnum=Kh,P.VideoPreview=e0,P.VueToolsCore=$Jg,P.arrow=dTg,P.autoPlacement=DD,P.autoUpdate=XD,P.computePosition=SD,P.default=ogI,P.detectOverflow=eTg,P.flip=iTg,P.getFirstTime=JD,P.getLastTime=vw,P.getOverflowAncestors=mr,P.hide=nTg,P.inline=sTg,P.limitShift=oTg,P.offset=HD,P.platform=RD,P.shift=tTg,P.size=ATg,P.useFloating=FD,P.useSearch=LD,P.vElementHover=uQ,P.vElementSize=ZQ,P.vElementVisibility=wQ,P.vInfiniteScroll=RQ,P.vIntersectionObserver=fQ,P.vOnClickOutside=Oc,P.vOnKeyStroke=vO,P.vOnLongPress=Xf,P.vResizeObserver=UQ,P.vScroll=$Q,P.vScrollLock=CU,P.vuePluginRemoveTestid=NM,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1531
|
+
3. "-" cannot repeat`);iC.customSchemes.push([C,g])}function M8g(){iC.scanner=w8g(iC.customSchemes);for(let C=0;C<iC.tokenQueue.length;C++)iC.tokenQueue[C][1]({scanner:iC.scanner});iC.parser=p8g(iC.scanner.tokens);for(let C=0;C<iC.pluginQueue.length;C++)iC.pluginQueue[C][1]({scanner:iC.scanner,parser:iC.parser});return iC.initialized=!0,iC}function CM(C){return iC.initialized||M8g(),y8g(iC.parser.start,C,pF(iC.scanner.start,C))}CM.scan=pF;function fF(C,g=null,I=null){if(g&&typeof g=="object"){if(I)throw Error(`linkifyjs: Invalid link type ${g}; must be a string`);I=g,g=null}const e=new gM(I),t=CM(C),i=[];for(let A=0;A<t.length;A++){const n=t[A];n.isLink&&(!g||n.t===g)&&e.check(n)&&i.push(n.toFormattedObject(e))}return i}var eM="[\0- -\u2029 ]",R8g=new RegExp(eM),f8g=new RegExp(`${eM}$`),X8g=new RegExp(eM,"g");function H8g(C){return C.length===1?C[0].isLink:C.length===3&&C[1].isLink?["()","[]"].includes(C[0].value+C[2].value):!1}function D8g(C){return new pC({key:new re("autolink"),appendTransaction:(g,I,e)=>{const t=g.some(o=>o.docChanged)&&!I.doc.eq(e.doc),i=g.some(o=>o.getMeta("preventAutolink"));if(!t||i)return;const{tr:A}=e,n=S3(I.doc,[...g]);if(O3(n).forEach(({newRange:o})=>{const a=IPg(e.doc,o,u=>u.isTextblock);let d,m;if(a.length>1)d=a[0],m=e.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(a.length){const u=e.doc.textBetween(o.from,o.to," "," ");if(!f8g.test(u))return;d=a[0],m=e.doc.textBetween(d.pos,o.to,void 0," ")}if(d&&m){const u=m.split(R8g).filter(Boolean);if(u.length<=0)return!1;const h=u[u.length-1],Z=d.pos+m.lastIndexOf(h);if(!h)return!1;const G=CM(h).map(w=>w.toObject(C.defaultProtocol));if(!H8g(G))return!1;G.filter(w=>w.isLink).map(w=>({...w,from:Z+w.start+1,to:Z+w.end+1})).filter(w=>e.schema.marks.code?!e.doc.rangeHasMark(w.from,w.to,e.schema.marks.code):!0).filter(w=>C.validate(w.value)).filter(w=>C.shouldAutoLink(w.value)).forEach(w=>{V1(w.from,w.to,e.doc).some(B=>B.mark.type===C.type)||A.addMark(w.from,w.to,C.type.create({href:w.href}))})}}),!!A.steps.length)return A}})}function S8g(C){return new pC({key:new re("handleClickLink"),props:{handleClick:(g,I,e)=>{var t,i;if(e.button!==0||!g.editable)return!1;let A=null;if(e.target instanceof HTMLAnchorElement)A=e.target;else{let a=e.target;const d=[];for(;a.nodeName!=="DIV";)d.push(a),a=a.parentNode;A=d.find(m=>m.nodeName==="A")}if(!A)return!1;const n=x3(g.state,C.type.name),l=(t=A==null?void 0:A.href)!=null?t:n.href,o=(i=A==null?void 0:A.target)!=null?i:n.target;return C.enableClickSelection&&C.editor.commands.extendMarkRange(C.type.name),A&&l?(window.open(l,o),!0):!1}}})}function K8g(C){return new pC({key:new re("handlePasteLink"),props:{handlePaste:(g,I,e)=>{const{state:t}=g,{selection:i}=t,{empty:A}=i;if(A)return!1;let n="";e.content.forEach(o=>{n+=o.textContent});const l=fF(n,{defaultProtocol:C.defaultProtocol}).find(o=>o.isLink&&o.value===n);return!n||!l?!1:C.editor.commands.setMark(C.type,{href:l.href})}}})}function sd(C,g){const I=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return g&&g.forEach(e=>{const t=typeof e=="string"?e:e.scheme;t&&I.push(t)}),!C||C.replace(X8g,"").match(new RegExp(`^(?:(?:${I.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var XF=Ad.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(C=>{if(typeof C=="string"){RF(C);return}RF(C.scheme,C.optionalSlashes)})},onDestroy(){N8g()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(C,g)=>!!sd(C,g.protocols),validate:C=>!!C,shouldAutoLink:C=>!!C}},addAttributes(){return{href:{default:null,parseHTML(C){return C.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:C=>{const g=C.getAttribute("href");return!g||!this.options.isAllowedUri(g,{defaultValidate:I=>!!sd(I,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:C}){return this.options.isAllowedUri(C.href,{defaultValidate:g=>!!sd(g,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",HC(this.options.HTMLAttributes,C),0]:["a",HC(this.options.HTMLAttributes,{...C,href:""}),0]},addCommands(){return{setLink:C=>({chain:g})=>{const{href:I}=C;return this.options.isAllowedUri(I,{defaultValidate:e=>!!sd(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?g().setMark(this.name,C).setMeta("preventAutolink",!0).run():!1},toggleLink:C=>({chain:g})=>{const{href:I}=C||{};return I&&!this.options.isAllowedUri(I,{defaultValidate:e=>!!sd(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:g().toggleMark(this.name,C,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:C})=>C().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[nd({find:C=>{const g=[];if(C){const{protocols:I,defaultProtocol:e}=this.options,t=fF(C).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:A=>!!sd(A,I),protocols:I,defaultProtocol:e}));t.length&&t.forEach(i=>g.push({text:i.value,data:{href:i.href},index:i.start}))}return g},type:this.type,getAttributes:C=>{var g;return{href:(g=C.data)==null?void 0:g.href}}})]},addProseMirrorPlugins(){const C=[],{protocols:g,defaultProtocol:I}=this.options;return this.options.autolink&&C.push(D8g({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:t=>!!sd(t,g),protocols:g,defaultProtocol:I}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&C.push(S8g({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&C.push(K8g({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),C}}),k8g=XF,F8g=Object.defineProperty,z8g=(C,g)=>{for(var I in g)F8g(C,I,{get:g[I],enumerable:!0})},J8g="listItem",HF="textStyle",DF=/^\s*([-+*])\s$/,SF=Jt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:C}){return["ul",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{toggleBulletList:()=>({commands:C,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(J8g,this.editor.getAttributes(HF)).run():C.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let C=xr({find:DF,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(C=xr({find:DF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(HF),editor:this.editor})),[C]}}),KF=Jt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:C}){return["li",HC(this.options.HTMLAttributes,C),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),L8g={};z8g(L8g,{findListItemPos:()=>v0,getNextListDepth:()=>tM,handleBackspace:()=>iM,handleDelete:()=>AM,hasListBefore:()=>kF,hasListItemAfter:()=>T8g,hasListItemBefore:()=>FF,listItemHasSubList:()=>zF,nextListIsDeeper:()=>JF,nextListIsHigher:()=>LF});var v0=(C,g)=>{const{$from:I}=g.selection,e=OC(C,g.schema);let t=null,i=I.depth,A=I.pos,n=null;for(;i>0&&n===null;)t=I.node(i),t.type===e?n=i:(i-=1,A-=1);return n===null?null:{$pos:g.doc.resolve(A),depth:n}},tM=(C,g)=>{const I=v0(C,g);if(!I)return!1;const[,e]=aPg(g,C,I.$pos.pos+4);return e},kF=(C,g,I)=>{const{$anchor:e}=C.selection,t=Math.max(0,e.pos-2),i=C.doc.resolve(t).node();return!(!i||!I.includes(i.type.name))},FF=(C,g)=>{var I;const{$anchor:e}=g.selection,t=g.doc.resolve(e.pos-2);return!(t.index()===0||((I=t.nodeBefore)==null?void 0:I.type.name)!==C)},zF=(C,g,I)=>{if(!I)return!1;const e=OC(C,g.schema);let t=!1;return I.descendants(i=>{i.type===e&&(t=!0)}),t},iM=(C,g,I)=>{if(C.commands.undoInputRule())return!0;if(C.state.selection.from!==C.state.selection.to)return!1;if(!eo(C.state,g)&&kF(C.state,g,I)){const{$anchor:n}=C.state.selection,l=C.state.doc.resolve(n.before()-1),o=[];l.node().descendants((m,u)=>{m.type.name===g&&o.push({node:m,pos:u})});const a=o.at(-1);if(!a)return!1;const d=C.state.doc.resolve(l.start()+a.pos+1);return C.chain().cut({from:n.start()-1,to:n.end()+1},d.end()).joinForward().run()}if(!eo(C.state,g)||!mPg(C.state))return!1;const e=v0(g,C.state);if(!e)return!1;const i=C.state.doc.resolve(e.$pos.pos-2).node(e.depth),A=zF(g,C.state,i);return FF(g,C.state)&&!A?C.commands.joinItemBackward():C.chain().liftListItem(g).run()},JF=(C,g)=>{const I=tM(C,g),e=v0(C,g);return!e||!I?!1:I>e.depth},LF=(C,g)=>{const I=tM(C,g),e=v0(C,g);return!e||!I?!1:I<e.depth},AM=(C,g)=>{if(!eo(C.state,g)||!rPg(C.state,g))return!1;const{selection:I}=C.state,{$from:e,$to:t}=I;return!I.empty&&e.sameParent(t)?!1:JF(g,C.state)?C.chain().focus(C.state.selection.from+4).lift(g).joinBackward().run():LF(g,C.state)?C.chain().joinForward().joinBackward().run():C.commands.joinItemForward()},T8g=(C,g)=>{var I;const{$anchor:e}=g.selection,t=g.doc.resolve(e.pos-e.parentOffset-2);return!(t.index()===t.parent.childCount-1||((I=t.nodeAfter)==null?void 0:I.type.name)!==C)},TF=QC.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{C.state.schema.nodes[I]!==void 0&&AM(C,I)&&(g=!0)}),g},"Mod-Delete":({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{C.state.schema.nodes[I]!==void 0&&AM(C,I)&&(g=!0)}),g},Backspace:({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:e})=>{C.state.schema.nodes[I]!==void 0&&iM(C,I,e)&&(g=!0)}),g},"Mod-Backspace":({editor:C})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:e})=>{C.state.schema.nodes[I]!==void 0&&iM(C,I,e)&&(g=!0)}),g}}}}),v8g="listItem",vF="textStyle",jF=/^(\d+)\.\s$/,xF=Jt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:C=>C.hasAttribute("start")?parseInt(C.getAttribute("start")||"",10):1},type:{default:null,parseHTML:C=>C.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:C}){const{start:g,...I}=C;return g===1?["ol",HC(this.options.HTMLAttributes,I),0]:["ol",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{toggleOrderedList:()=>({commands:C,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(v8g,this.editor.getAttributes(vF)).run():C.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let C=xr({find:jF,type:this.type,getAttributes:g=>({start:+g[1]}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(C=xr({find:jF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:g=>({start:+g[1],...this.editor.getAttributes(vF)}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1],editor:this.editor})),[C]}}),j8g=/^\s*(\[([( |x])?\])\s$/,x8g=Jt.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:C=>{const g=C.getAttribute("data-checked");return g===""||g==="true"},renderHTML:C=>({"data-checked":C.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:C,HTMLAttributes:g}){return["li",HC(this.options.HTMLAttributes,g,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:C.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const C={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...C,Tab:()=>this.editor.commands.sinkListItem(this.name)}:C},addNodeView(){return({node:C,HTMLAttributes:g,getPos:I,editor:e})=>{const t=document.createElement("li"),i=document.createElement("label"),A=document.createElement("span"),n=document.createElement("input"),l=document.createElement("div"),o=a=>{var d,m;n.ariaLabel=((m=(d=this.options.a11y)==null?void 0:d.checkboxLabel)==null?void 0:m.call(d,a,n.checked))||`Task item checkbox for ${a.textContent||"empty task item"}`};return o(C),i.contentEditable="false",n.type="checkbox",n.addEventListener("mousedown",a=>a.preventDefault()),n.addEventListener("change",a=>{if(!e.isEditable&&!this.options.onReadOnlyChecked){n.checked=!n.checked;return}const{checked:d}=a.target;e.isEditable&&typeof I=="function"&&e.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const u=I();if(typeof u!="number")return!1;const h=m.doc.nodeAt(u);return m.setNodeMarkup(u,void 0,{...h==null?void 0:h.attrs,checked:d}),!0}).run(),!e.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(C,d)||(n.checked=!n.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([a,d])=>{t.setAttribute(a,d)}),t.dataset.checked=C.attrs.checked,n.checked=C.attrs.checked,i.append(n,A),t.append(i,l),Object.entries(g).forEach(([a,d])=>{t.setAttribute(a,d)}),{dom:t,contentDOM:l,update:a=>a.type!==this.type?!1:(t.dataset.checked=a.attrs.checked,n.checked=a.attrs.checked,o(a),!0)}}},addInputRules(){return[xr({find:j8g,type:this.type,getAttributes:C=>({checked:C[C.length-1]==="x"})})]}}),O8g=Jt.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:C}){return["ul",HC(this.options.HTMLAttributes,C,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:C})=>C.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});QC.create({name:"listKit",addExtensions(){const C=[];return this.options.bulletList!==!1&&C.push(SF.configure(this.options.bulletList)),this.options.listItem!==!1&&C.push(KF.configure(this.options.listItem)),this.options.listKeymap!==!1&&C.push(TF.configure(this.options.listKeymap)),this.options.orderedList!==!1&&C.push(xF.configure(this.options.orderedList)),this.options.taskItem!==!1&&C.push(x8g.configure(this.options.taskItem)),this.options.taskList!==!1&&C.push(O8g.configure(this.options.taskList)),C}});var Q8g=Jt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:C}){return["p",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setParagraph:()=>({commands:C})=>C.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),U8g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,E8g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,P8g=Ad.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:C=>C.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:C}){return["s",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setStrike:()=>({commands:C})=>C.setMark(this.name),toggleStrike:()=>({commands:C})=>C.toggleMark(this.name),unsetStrike:()=>({commands:C})=>C.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[jr({find:U8g,type:this.type})]},addPasteRules(){return[nd({find:E8g,type:this.type})]}}),_8g=Jt.create({name:"text",group:"inline"}),$8g=Ad.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:C=>C.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:C}){return["u",HC(this.options.HTMLAttributes,C),0]},addCommands(){return{setUnderline:()=>({commands:C})=>C.setMark(this.name),toggleUnderline:()=>({commands:C})=>C.toggleMark(this.name),unsetUnderline:()=>({commands:C})=>C.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function q8g(C={}){return new pC({view(g){return new g_g(g,C)}})}class g_g{constructor(g,I){var e;this.editorView=g,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(e=I.width)!==null&&e!==void 0?e:1,this.color=I.color===!1?void 0:I.color||"black",this.class=I.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let i=A=>{this[t](A)};return g.dom.addEventListener(t,i),{name:t,handler:i}})}destroy(){this.handlers.forEach(({name:g,handler:I})=>this.editorView.dom.removeEventListener(g,I))}update(g,I){this.cursorPos!=null&&I.doc!=g.state.doc&&(this.cursorPos>g.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(g){g!=this.cursorPos&&(this.cursorPos=g,g==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let g=this.editorView.state.doc.resolve(this.cursorPos),I=!g.parent.inlineContent,e,t=this.editorView.dom,i=t.getBoundingClientRect(),A=i.width/t.offsetWidth,n=i.height/t.offsetHeight;if(I){let d=g.nodeBefore,m=g.nodeAfter;if(d||m){let u=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(u){let h=u.getBoundingClientRect(),Z=d?h.bottom:h.top;d&&m&&(Z=(Z+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let G=this.width/2*n;e={left:h.left,right:h.right,top:Z-G,bottom:Z+G}}}}if(!e){let d=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*A;e={left:d.left-m,right:d.left+m,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",I),this.element.classList.toggle("prosemirror-dropcursor-inline",!I);let o,a;if(!l||l==document.body&&getComputedStyle(l).position=="static")o=-pageXOffset,a=-pageYOffset;else{let d=l.getBoundingClientRect(),m=d.width/l.offsetWidth,u=d.height/l.offsetHeight;o=d.left-l.scrollLeft*m,a=d.top-l.scrollTop*u}this.element.style.left=(e.left-o)/A+"px",this.element.style.top=(e.top-a)/n+"px",this.element.style.width=(e.right-e.left)/A+"px",this.element.style.height=(e.bottom-e.top)/n+"px"}scheduleRemoval(g){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),g)}dragover(g){if(!this.editorView.editable)return;let I=this.editorView.posAtCoords({left:g.clientX,top:g.clientY}),e=I&&I.inside>=0&&this.editorView.state.doc.nodeAt(I.inside),t=e&&e.type.spec.disableDropCursor,i=typeof t=="function"?t(this.editorView,I,g):t;if(I&&!i){let A=I.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let n=qK(this.editorView.state.doc,A,this.editorView.dragging.slice);n!=null&&(A=n)}this.setCursor(A),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(g){this.editorView.dom.contains(g.relatedTarget)||this.setCursor(null)}}class YC extends tI{constructor(g){super(g,g)}map(g,I){let e=g.resolve(I.map(this.head));return YC.valid(e)?new YC(e):tI.near(e)}content(){return yg.empty}eq(g){return g instanceof YC&&g.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(g,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new YC(g.resolve(I.pos))}getBookmark(){return new nM(this.anchor)}static valid(g){let I=g.parent;if(I.isTextblock||!I_g(g)||!C_g(g))return!1;let e=I.type.spec.allowGapCursor;if(e!=null)return e;let t=I.contentMatchAt(g.index()).defaultType;return t&&t.isTextblock}static findGapCursorFrom(g,I,e=!1){g:for(;;){if(!e&&YC.valid(g))return g;let t=g.pos,i=null;for(let A=g.depth;;A--){let n=g.node(A);if(I>0?g.indexAfter(A)<n.childCount:g.index(A)>0){i=n.child(I>0?g.indexAfter(A):g.index(A)-1);break}else if(A==0)return null;t+=I;let l=g.doc.resolve(t);if(YC.valid(l))return l}for(;;){let A=I>0?i.firstChild:i.lastChild;if(!A){if(i.isAtom&&!i.isText&&!Jg.isSelectable(i)){g=g.doc.resolve(t+i.nodeSize*I),e=!1;continue g}break}i=A,t+=I;let n=g.doc.resolve(t);if(YC.valid(n))return n}return null}}}YC.prototype.visible=!1,YC.findFrom=YC.findGapCursorFrom,tI.jsonID("gapcursor",YC);class nM{constructor(g){this.pos=g}map(g){return new nM(g.map(this.pos))}resolve(g){let I=g.resolve(this.pos);return YC.valid(I)?new YC(I):tI.near(I)}}function I_g(C){for(let g=C.depth;g>=0;g--){let I=C.index(g),e=C.node(g);if(I==0){if(e.type.spec.isolating)return!0;continue}for(let t=e.child(I-1);;t=t.lastChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function C_g(C){for(let g=C.depth;g>=0;g--){let I=C.indexAfter(g),e=C.node(g);if(I==e.childCount){if(e.type.spec.isolating)return!0;continue}for(let t=e.child(I);;t=t.firstChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function e_g(){return new pC({props:{decorations:n_g,createSelectionBetween(C,g,I){return g.pos==I.pos&&YC.valid(I)?new YC(I):null},handleClick:i_g,handleKeyDown:t_g,handleDOMEvents:{beforeinput:A_g}}})}const t_g=Y3({ArrowLeft:gp("horiz",-1),ArrowRight:gp("horiz",1),ArrowUp:gp("vert",-1),ArrowDown:gp("vert",1)});function gp(C,g){const I=C=="vert"?g>0?"down":"up":g>0?"right":"left";return function(e,t,i){let A=e.selection,n=g>0?A.$to:A.$from,l=A.empty;if(A instanceof xg){if(!i.endOfTextblock(I)||n.depth==0)return!1;l=!1,n=e.doc.resolve(g>0?n.after():n.before())}let o=YC.findGapCursorFrom(n,g,l);return o?(t&&t(e.tr.setSelection(new YC(o))),!0):!1}}function i_g(C,g,I){if(!C||!C.editable)return!1;let e=C.state.doc.resolve(g);if(!YC.valid(e))return!1;let t=C.posAtCoords({left:I.clientX,top:I.clientY});return t&&t.inside>-1&&Jg.isSelectable(C.state.doc.nodeAt(t.inside))?!1:(C.dispatch(C.state.tr.setSelection(new YC(e))),!0)}function A_g(C,g){if(g.inputType!="insertCompositionText"||!(C.state.selection instanceof YC))return!1;let{$from:I}=C.state.selection,e=I.parent.contentMatchAt(I.index()).findWrapping(C.state.schema.nodes.text);if(!e)return!1;let t=dg.empty;for(let A=e.length-1;A>=0;A--)t=dg.from(e[A].createAndFill(null,t));let i=C.state.tr.replace(I.pos,I.pos,new yg(t,0,0));return i.setSelection(xg.near(i.doc.resolve(I.pos+1))),C.dispatch(i),!1}function n_g(C){if(!(C.selection instanceof YC))return null;let g=document.createElement("div");return g.className="ProseMirror-gapcursor",bC.create(C.doc,[Gt.widget(C.selection.head,g,{key:"gapcursor"})])}var Ip=200,me=function(){};me.prototype.append=function(g){return g.length?(g=me.from(g),!this.length&&g||g.length<Ip&&this.leafAppend(g)||this.length<Ip&&g.leafPrepend(this)||this.appendInner(g)):this},me.prototype.prepend=function(g){return g.length?me.from(g).append(this):this},me.prototype.appendInner=function(g){return new l_g(this,g)},me.prototype.slice=function(g,I){return g===void 0&&(g=0),I===void 0&&(I=this.length),g>=I?me.empty:this.sliceInner(Math.max(0,g),Math.min(this.length,I))},me.prototype.get=function(g){if(!(g<0||g>=this.length))return this.getInner(g)},me.prototype.forEach=function(g,I,e){I===void 0&&(I=0),e===void 0&&(e=this.length),I<=e?this.forEachInner(g,I,e,0):this.forEachInvertedInner(g,I,e,0)},me.prototype.map=function(g,I,e){I===void 0&&(I=0),e===void 0&&(e=this.length);var t=[];return this.forEach(function(i,A){return t.push(g(i,A))},I,e),t},me.from=function(g){return g instanceof me?g:g&&g.length?new OF(g):me.empty};var OF=function(C){function g(e){C.call(this),this.values=e}C&&(g.__proto__=C),g.prototype=Object.create(C&&C.prototype),g.prototype.constructor=g;var I={length:{configurable:!0},depth:{configurable:!0}};return g.prototype.flatten=function(){return this.values},g.prototype.sliceInner=function(t,i){return t==0&&i==this.length?this:new g(this.values.slice(t,i))},g.prototype.getInner=function(t){return this.values[t]},g.prototype.forEachInner=function(t,i,A,n){for(var l=i;l<A;l++)if(t(this.values[l],n+l)===!1)return!1},g.prototype.forEachInvertedInner=function(t,i,A,n){for(var l=i-1;l>=A;l--)if(t(this.values[l],n+l)===!1)return!1},g.prototype.leafAppend=function(t){if(this.length+t.length<=Ip)return new g(this.values.concat(t.flatten()))},g.prototype.leafPrepend=function(t){if(this.length+t.length<=Ip)return new g(t.flatten().concat(this.values))},I.length.get=function(){return this.values.length},I.depth.get=function(){return 0},Object.defineProperties(g.prototype,I),g}(me);me.empty=new OF([]);var l_g=function(C){function g(I,e){C.call(this),this.left=I,this.right=e,this.length=I.length+e.length,this.depth=Math.max(I.depth,e.depth)+1}return C&&(g.__proto__=C),g.prototype=Object.create(C&&C.prototype),g.prototype.constructor=g,g.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},g.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},g.prototype.forEachInner=function(e,t,i,A){var n=this.left.length;if(t<n&&this.left.forEachInner(e,t,Math.min(i,n),A)===!1||i>n&&this.right.forEachInner(e,Math.max(t-n,0),Math.min(this.length,i)-n,A+n)===!1)return!1},g.prototype.forEachInvertedInner=function(e,t,i,A){var n=this.left.length;if(t>n&&this.right.forEachInvertedInner(e,t-n,Math.max(i,n)-n,A+n)===!1||i<n&&this.left.forEachInvertedInner(e,Math.min(t,n),i,A)===!1)return!1},g.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var i=this.left.length;return t<=i?this.left.slice(e,t):e>=i?this.right.slice(e-i,t-i):this.left.slice(e,i).append(this.right.slice(0,t-i))},g.prototype.leafAppend=function(e){var t=this.right.leafAppend(e);if(t)return new g(this.left,t)},g.prototype.leafPrepend=function(e){var t=this.left.leafPrepend(e);if(t)return new g(t,this.right)},g.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new g(this.left,new g(this.right,e)):new g(this,e)},g}(me);const s_g=500;class DA{constructor(g,I){this.items=g,this.eventCount=I}popEvent(g,I){if(this.eventCount==0)return null;let e=this.items.length;for(;;e--)if(this.items.get(e-1).selection){--e;break}let t,i;I&&(t=this.remapping(e,this.items.length),i=t.maps.length);let A=g.tr,n,l,o=[],a=[];return this.items.forEach((d,m)=>{if(!d.step){t||(t=this.remapping(e,m+1),i=t.maps.length),i--,a.push(d);return}if(t){a.push(new Vn(d.map));let u=d.step.map(t.slice(i)),h;u&&A.maybeStep(u).doc&&(h=A.mapping.maps[A.mapping.maps.length-1],o.push(new Vn(h,void 0,void 0,o.length+a.length))),i--,h&&t.appendMap(h,i)}else A.maybeStep(d.step);if(d.selection)return n=t?d.selection.map(t.slice(i)):d.selection,l=new DA(this.items.slice(0,e).append(a.reverse().concat(o)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:A,selection:n}}addTransform(g,I,e,t){let i=[],A=this.eventCount,n=this.items,l=!t&&n.length?n.get(n.length-1):null;for(let a=0;a<g.steps.length;a++){let d=g.steps[a].invert(g.docs[a]),m=new Vn(g.mapping.maps[a],d,I),u;(u=l&&l.merge(m))&&(m=u,a?i.pop():n=n.slice(0,n.length-1)),i.push(m),I&&(A++,I=void 0),t||(l=m)}let o=A-e.depth;return o>a_g&&(n=o_g(n,o),A-=o),new DA(n.append(i),A)}remapping(g,I){let e=new h0;return this.items.forEach((t,i)=>{let A=t.mirrorOffset!=null&&i-t.mirrorOffset>=g?e.maps.length-t.mirrorOffset:void 0;e.appendMap(t.map,A)},g,I),e}addMaps(g){return this.eventCount==0?this:new DA(this.items.append(g.map(I=>new Vn(I))),this.eventCount)}rebased(g,I){if(!this.eventCount)return this;let e=[],t=Math.max(0,this.items.length-I),i=g.mapping,A=g.steps.length,n=this.eventCount;this.items.forEach(m=>{m.selection&&n--},t);let l=I;this.items.forEach(m=>{let u=i.getMirror(--l);if(u==null)return;A=Math.min(A,u);let h=i.maps[u];if(m.step){let Z=g.steps[u].invert(g.docs[u]),G=m.selection&&m.selection.map(i.slice(l+1,u));G&&n++,e.push(new Vn(h,Z,G))}else e.push(new Vn(h))},t);let o=[];for(let m=I;m<A;m++)o.push(new Vn(i.maps[m]));let a=this.items.slice(0,t).append(o).append(e),d=new DA(a,n);return d.emptyItemCount()>s_g&&(d=d.compress(this.items.length-e.length)),d}emptyItemCount(){let g=0;return this.items.forEach(I=>{I.step||g++}),g}compress(g=this.items.length){let I=this.remapping(0,g),e=I.maps.length,t=[],i=0;return this.items.forEach((A,n)=>{if(n>=g)t.push(A),A.selection&&i++;else if(A.step){let l=A.step.map(I.slice(e)),o=l&&l.getMap();if(e--,o&&I.appendMap(o,e),l){let a=A.selection&&A.selection.map(I.slice(e));a&&i++;let d=new Vn(o.invert(),l,a),m,u=t.length-1;(m=t.length&&t[u].merge(d))?t[u]=m:t.push(d)}}else A.map&&e--},this.items.length,0),new DA(me.from(t.reverse()),i)}}DA.empty=new DA(me.empty,0);function o_g(C,g){let I;return C.forEach((e,t)=>{if(e.selection&&g--==0)return I=t,!1}),C.slice(I)}class Vn{constructor(g,I,e,t){this.map=g,this.step=I,this.selection=e,this.mirrorOffset=t}merge(g){if(this.step&&g.step&&!g.selection){let I=g.step.merge(this.step);if(I)return new Vn(I.getMap().invert(),I,this.selection)}}}class no{constructor(g,I,e,t,i){this.done=g,this.undone=I,this.prevRanges=e,this.prevTime=t,this.prevComposition=i}}const a_g=20;function d_g(C,g,I,e){let t=I.getMeta(od),i;if(t)return t.historyState;I.getMeta(m_g)&&(C=new no(C.done,C.undone,null,0,-1));let A=I.getMeta("appendedTransaction");if(I.steps.length==0)return C;if(A&&A.getMeta(od))return A.getMeta(od).redo?new no(C.done.addTransform(I,void 0,e,Cp(g)),C.undone,QF(I.mapping.maps),C.prevTime,C.prevComposition):new no(C.done,C.undone.addTransform(I,void 0,e,Cp(g)),null,C.prevTime,C.prevComposition);if(I.getMeta("addToHistory")!==!1&&!(A&&A.getMeta("addToHistory")===!1)){let n=I.getMeta("composition"),l=C.prevTime==0||!A&&C.prevComposition!=n&&(C.prevTime<(I.time||0)-e.newGroupDelay||!c_g(I,C.prevRanges)),o=A?lM(C.prevRanges,I.mapping):QF(I.mapping.maps);return new no(C.done.addTransform(I,l?g.selection.getBookmark():void 0,e,Cp(g)),DA.empty,o,I.time,n??C.prevComposition)}else return(i=I.getMeta("rebased"))?new no(C.done.rebased(I,i),C.undone.rebased(I,i),lM(C.prevRanges,I.mapping),C.prevTime,C.prevComposition):new no(C.done.addMaps(I.mapping.maps),C.undone.addMaps(I.mapping.maps),lM(C.prevRanges,I.mapping),C.prevTime,C.prevComposition)}function c_g(C,g){if(!g)return!1;if(!C.docChanged)return!0;let I=!1;return C.mapping.maps[0].forEach((e,t)=>{for(let i=0;i<g.length;i+=2)e<=g[i+1]&&t>=g[i]&&(I=!0)}),I}function QF(C){let g=[];for(let I=C.length-1;I>=0&&g.length==0;I--)C[I].forEach((e,t,i,A)=>g.push(i,A));return g}function lM(C,g){if(!C)return null;let I=[];for(let e=0;e<C.length;e+=2){let t=g.map(C[e],1),i=g.map(C[e+1],-1);t<=i&&I.push(t,i)}return I}function r_g(C,g,I){let e=Cp(g),t=od.get(g).spec.config,i=(I?C.undone:C.done).popEvent(g,e);if(!i)return null;let A=i.selection.resolve(i.transform.doc),n=(I?C.done:C.undone).addTransform(i.transform,g.selection.getBookmark(),t,e),l=new no(I?n:i.remaining,I?i.remaining:n,null,0,-1);return i.transform.setSelection(A).setMeta(od,{redo:I,historyState:l})}let sM=!1,UF=null;function Cp(C){let g=C.plugins;if(UF!=g){sM=!1,UF=g;for(let I=0;I<g.length;I++)if(g[I].spec.historyPreserveItems){sM=!0;break}}return sM}const od=new re("history"),m_g=new re("closeHistory");function u_g(C={}){return C={depth:C.depth||100,newGroupDelay:C.newGroupDelay||500},new pC({key:od,state:{init(){return new no(DA.empty,DA.empty,null,0,-1)},apply(g,I,e){return d_g(I,e,g,C)}},config:C,props:{handleDOMEvents:{beforeinput(g,I){let e=I.inputType,t=e=="historyUndo"?PF:e=="historyRedo"?_F:null;return t?(I.preventDefault(),t(g.state,g.dispatch)):!1}}}})}function EF(C,g){return(I,e)=>{let t=od.getState(I);if(!t||(C?t.undone:t.done).eventCount==0)return!1;if(e){let i=r_g(t,I,C);i&&e(g?i.scrollIntoView():i)}return!0}}const PF=EF(!1,!0),_F=EF(!0,!0);QC.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:C=>C.length,wordCounter:C=>C.split(" ").filter(g=>g!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=C=>{const g=(C==null?void 0:C.node)||this.editor.state.doc;if(((C==null?void 0:C.mode)||this.options.mode)==="textSize"){const e=g.textBetween(0,g.content.size,void 0," ");return this.options.textCounter(e)}return g.nodeSize},this.storage.words=C=>{const g=(C==null?void 0:C.node)||this.editor.state.doc,I=g.textBetween(0,g.content.size," "," ");return this.options.wordCounter(I)}},addProseMirrorPlugins(){let C=!1;return[new pC({key:new re("characterCount"),appendTransaction:(g,I,e)=>{if(C)return;const t=this.options.limit;if(t==null||t===0){C=!0;return}const i=this.storage.characters({node:e.doc});if(i>t){const A=i-t,n=0,l=A;console.warn(`[CharacterCount] Initial content exceeded limit of ${t} characters. Content was automatically trimmed.`);const o=e.tr.deleteRange(n,l);return C=!0,o}C=!0},filterTransaction:(g,I)=>{const e=this.options.limit;if(!g.docChanged||e===0||e===null||e===void 0)return!0;const t=this.storage.characters({node:I.doc}),i=this.storage.characters({node:g.doc});if(i<=e||t>e&&i>e&&i<=t)return!0;if(t>e&&i>e&&i>t||!g.getMeta("paste"))return!1;const n=g.selection.$head.pos,l=i-e,o=n-l,a=n;return g.deleteRange(o,a),!(this.storage.characters({node:g.doc})>e)}})]}});var h_g=QC.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[q8g(this.options)]}});QC.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new pC({key:new re("focus"),props:{decorations:({doc:C,selection:g})=>{const{isEditable:I,isFocused:e}=this.editor,{anchor:t}=g,i=[];if(!I||!e)return bC.create(C,[]);let A=0;this.options.mode==="deepest"&&C.descendants((l,o)=>{if(l.isText)return;if(!(t>=o&&t<=o+l.nodeSize-1))return!1;A+=1});let n=0;return C.descendants((l,o)=>{if(l.isText||!(t>=o&&t<=o+l.nodeSize-1))return!1;if(n+=1,this.options.mode==="deepest"&&A-n>0||this.options.mode==="shallowest"&&n>1)return this.options.mode==="deepest";i.push(Gt.node(o,o+l.nodeSize,{class:this.options.className}))}),bC.create(C,i)}}})]}});var b_g=QC.create({name:"gapCursor",addProseMirrorPlugins(){return[e_g()]},extendNodeSchema(C){var g;const I={name:C.name,options:C.options,storage:C.storage};return{allowGapCursor:(g=HI(Fg(C,"allowGapCursor",I)))!=null?g:null}}}),Z_g=QC.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new pC({key:new re("placeholder"),props:{decorations:({doc:C,selection:g})=>{const I=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:e}=g,t=[];if(!I)return null;const i=this.editor.isEmpty;return C.descendants((A,n)=>{const l=e>=n&&e<=n+A.nodeSize,o=!A.isLeaf&&mB(A);if((l||!this.options.showOnlyCurrent)&&o){const a=[this.options.emptyNodeClass];i&&a.push(this.options.emptyEditorClass);const d=Gt.node(n,n+A.nodeSize,{class:a.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:A,pos:n,hasAnchor:l}):this.options.placeholder});t.push(d)}return this.options.includeChildren}),bC.create(C,t)}}})]}});QC.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:C,options:g}=this;return[new pC({key:new re("selection"),props:{decorations(I){return I.selection.empty||C.isFocused||!C.isEditable||_3(I.selection)||C.view.dragging?null:bC.create(I.doc,[Gt.inline(I.selection.from,I.selection.to,{class:g.className})])}}})]}});function $F({types:C,node:g}){return g&&Array.isArray(C)&&C.includes(g.type)||(g==null?void 0:g.type)===C}var G_g=QC.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const C=new re(this.name),g=Object.entries(this.editor.schema.nodes).map(([,I])=>I).filter(I=>(this.options.notAfter||[]).concat(this.options.node).includes(I.name));return[new pC({key:C,appendTransaction:(I,e,t)=>{const{doc:i,tr:A,schema:n}=t,l=C.getState(t),o=i.content.size,a=n.nodes[this.options.node];if(l)return A.insert(o,a.create())},state:{init:(I,e)=>{const t=e.tr.doc.lastChild;return!$F({node:t,types:g})},apply:(I,e)=>{if(!I.docChanged)return e;const t=I.doc.lastChild;return!$F({node:t,types:g})}}})]}}),w_g=QC.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:C,dispatch:g})=>PF(C,g),redo:()=>({state:C,dispatch:g})=>_F(C,g)}},addProseMirrorPlugins(){return[u_g(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),W_g=QC.create({name:"starterKit",addExtensions(){var C,g,I,e;const t=[];return this.options.bold!==!1&&t.push(_6g.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(O6g.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(SF.configure(this.options.bulletList)),this.options.code!==!1&&t.push(g8g.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(e8g.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(t8g.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(h_g.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(b_g.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(i8g.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(A8g.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(w_g.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(n8g.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(d8g.configure(this.options.italic)),this.options.listItem!==!1&&t.push(KF.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(TF.configure((C=this.options)==null?void 0:C.listKeymap)),this.options.link!==!1&&t.push(XF.configure((g=this.options)==null?void 0:g.link)),this.options.orderedList!==!1&&t.push(xF.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(Q8g.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(P8g.configure(this.options.strike)),this.options.text!==!1&&t.push(_8g.configure(this.options.text)),this.options.underline!==!1&&t.push($8g.configure((I=this.options)==null?void 0:I.underline)),this.options.trailingNode!==!1&&t.push(G_g.configure((e=this.options)==null?void 0:e.trailingNode)),t}}),B_g=W_g,p_g=Z_g;const qF="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",gz={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},Iz="u",ep="n",tp="v",j0="r",y_g={[ep]:["grinning face","grinning"],[Iz]:"1f600",[j0]:"1f600"},ip="neutral",Y_g=[ip,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],V_g={placeholder:"Search emoji",skinTone:"Skin tone"},N_g=["light","dark","auto"];var M_g={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},Cz=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const R_g=(C,g)=>g.some(I=>C instanceof I);let ez,tz;function f_g(){return ez||(ez=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function X_g(){return tz||(tz=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const iz=new WeakMap,oM=new WeakMap,Az=new WeakMap,aM=new WeakMap,dM=new WeakMap;function H_g(C){const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("success",i),C.removeEventListener("error",A)},i=()=>{I(lo(C.result)),t()},A=()=>{e(C.error),t()};C.addEventListener("success",i),C.addEventListener("error",A)});return g.then(I=>{I instanceof IDBCursor&&iz.set(I,C)}).catch(()=>{}),dM.set(g,C),g}function D_g(C){if(oM.has(C))return;const g=new Promise((I,e)=>{const t=()=>{C.removeEventListener("complete",i),C.removeEventListener("error",A),C.removeEventListener("abort",A)},i=()=>{I(),t()},A=()=>{e(C.error||new DOMException("AbortError","AbortError")),t()};C.addEventListener("complete",i),C.addEventListener("error",A),C.addEventListener("abort",A)});oM.set(C,g)}let cM={get(C,g,I){if(C instanceof IDBTransaction){if(g==="done")return oM.get(C);if(g==="objectStoreNames")return C.objectStoreNames||Az.get(C);if(g==="store")return I.objectStoreNames[1]?void 0:I.objectStore(I.objectStoreNames[0])}return lo(C[g])},set(C,g,I){return C[g]=I,!0},has(C,g){return C instanceof IDBTransaction&&(g==="done"||g==="store")?!0:g in C}};function S_g(C){cM=C(cM)}function K_g(C){return C===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(g,...I){const e=C.call(rM(this),g,...I);return Az.set(e,g.sort?g.sort():[g]),lo(e)}:X_g().includes(C)?function(...g){return C.apply(rM(this),g),lo(iz.get(this))}:function(...g){return lo(C.apply(rM(this),g))}}function k_g(C){return typeof C=="function"?K_g(C):(C instanceof IDBTransaction&&D_g(C),R_g(C,f_g())?new Proxy(C,cM):C)}function lo(C){if(C instanceof IDBRequest)return H_g(C);if(aM.has(C))return aM.get(C);const g=k_g(C);return g!==C&&(aM.set(C,g),dM.set(g,C)),g}const rM=C=>dM.get(C);function mM(C,g,{blocked:I,upgrade:e,blocking:t,terminated:i}={}){const A=indexedDB.open(C,g),n=lo(A);return e&&A.addEventListener("upgradeneeded",l=>{e(lo(A.result),l.oldVersion,l.newVersion,lo(A.transaction),l)}),I&&A.addEventListener("blocked",l=>I(l.oldVersion,l.newVersion,l)),n.then(l=>{i&&l.addEventListener("close",()=>i()),t&&l.addEventListener("versionchange",o=>t(o.oldVersion,o.newVersion,o))}).catch(()=>{}),n}const F_g=["get","getKey","getAll","getAllKeys","count"],z_g=["put","add","delete","clear"],uM=new Map;function nz(C,g){if(!(C instanceof IDBDatabase&&!(g in C)&&typeof g=="string"))return;if(uM.get(g))return uM.get(g);const I=g.replace(/FromIndex$/,""),e=g!==I,t=z_g.includes(I);if(!(I in(e?IDBIndex:IDBObjectStore).prototype)||!(t||F_g.includes(I)))return;const i=async function(A,...n){const l=this.transaction(A,t?"readwrite":"readonly");let o=l.store;return e&&(o=o.index(n.shift())),(await Promise.all([o[I](...n),t&&l.done]))[0]};return uM.set(g,i),i}S_g(C=>({...C,get:(g,I,e)=>nz(g,I)||C.get(g,I,e),has:(g,I)=>!!nz(g,I)||C.has(g,I)}));const hM="EMJ",Qr="emojis",bM=3;async function J_g(){(await mM(hM,bM,{upgrade(g,I){g.objectStoreNames.contains(Qr)||g.createObjectStore(Qr,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}J_g();const L_g={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function T_g(){return await(await mM(hM,bM)).transaction(Qr,"readonly").objectStore(Qr).getAll()}function v_g(){const C=s.reactive({search:"",emoji:y_g,activeGroup:"",skinTone:ip,options:L_g,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...M_g}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return Cz.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...Cz.map(m=>m.key)];return[...new Set(d)].filter(m=>!this.disabled.includes(m))}});function g(){C.options.displayRecent&&e()}async function I(){var d;let m=await T_g();return Array.isArray(m)&&m.length?m=JSON.parse(((d=m[0])==null?void 0:d.value)||""):m=[],m}function e(){I().then(d=>{C.recent=d,o()})}const t=d=>{C.search=d},i=d=>{C.emoji=d},A=d=>{C.activeGroup=d},n=(d=ip)=>{C.skinTone=d},l=d=>{C.options=Object.assign({},C.options,d),g()};async function o(){(await mM(hM,bM)).transaction(Qr,"readwrite").objectStore(Qr).put({id:0,value:JSON.stringify(C.recent)})}const a=d=>{if(C.options.displayRecent!==!0)return;const m=C.recent.findIndex(h=>h.u===d.u);if(m>0&&C.recent.splice(m,1),m===0)return;const u={u:d.u,n:s.toRaw(d.n)};C.recent=[u,...C.recent],C.recent.length>24&&(C.recent.length=24),o()};return{state:s.readonly(C),updateSearch:t,updateEmoji:i,updateActiveGroup:A,updateSkinTone:n,updateOptions:l,updateSelect:a}}var Tt="top",Pi="bottom",_i="right",vt="left",ZM="auto",x0=[Tt,Pi,_i,vt],Ur="start",O0="end",j_g="clippingParents",lz="viewport",Q0="popper",x_g="reference",sz=x0.reduce(function(C,g){return C.concat([g+"-"+Ur,g+"-"+O0])},[]),oz=[].concat(x0,[ZM]).reduce(function(C,g){return C.concat([g,g+"-"+Ur,g+"-"+O0])},[]),O_g="beforeRead",Q_g="read",U_g="afterRead",E_g="beforeMain",P_g="main",__g="afterMain",$_g="beforeWrite",q_g="write",g$g="afterWrite",I$g=[O_g,Q_g,U_g,E_g,P_g,__g,$_g,q_g,g$g];function Nn(C){return C?(C.nodeName||"").toLowerCase():null}function SA(C){if(C==null)return window;if(C.toString()!=="[object Window]"){var g=C.ownerDocument;return g&&g.defaultView||window}return C}function Er(C){var g=SA(C).Element;return C instanceof g||C instanceof Element}function $i(C){var g=SA(C).HTMLElement;return C instanceof g||C instanceof HTMLElement}function az(C){if(typeof ShadowRoot>"u")return!1;var g=SA(C).ShadowRoot;return C instanceof g||C instanceof ShadowRoot}function C$g(C){var g=C.state;Object.keys(g.elements).forEach(function(I){var e=g.styles[I]||{},t=g.attributes[I]||{},i=g.elements[I];!$i(i)||!Nn(i)||(Object.assign(i.style,e),Object.keys(t).forEach(function(A){var n=t[A];n===!1?i.removeAttribute(A):i.setAttribute(A,n===!0?"":n)}))})}function e$g(C){var g=C.state,I={popper:{position:g.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(g.elements.popper.style,I.popper),g.styles=I,g.elements.arrow&&Object.assign(g.elements.arrow.style,I.arrow),function(){Object.keys(g.elements).forEach(function(e){var t=g.elements[e],i=g.attributes[e]||{},A=Object.keys(g.styles.hasOwnProperty(e)?g.styles[e]:I[e]),n=A.reduce(function(l,o){return l[o]="",l},{});!$i(t)||!Nn(t)||(Object.assign(t.style,n),Object.keys(i).forEach(function(l){t.removeAttribute(l)}))})}}var t$g={name:"applyStyles",enabled:!0,phase:"write",fn:C$g,effect:e$g,requires:["computeStyles"]};function Mn(C){return C.split("-")[0]}var ad=Math.max,Ap=Math.min,Pr=Math.round;function _r(C,g){g===void 0&&(g=!1);var I=C.getBoundingClientRect(),e=1,t=1;if($i(C)&&g){var i=C.offsetHeight,A=C.offsetWidth;A>0&&(e=Pr(I.width)/A||1),i>0&&(t=Pr(I.height)/i||1)}return{width:I.width/e,height:I.height/t,top:I.top/t,right:I.right/e,bottom:I.bottom/t,left:I.left/e,x:I.left/e,y:I.top/t}}function GM(C){var g=_r(C),I=C.offsetWidth,e=C.offsetHeight;return Math.abs(g.width-I)<=1&&(I=g.width),Math.abs(g.height-e)<=1&&(e=g.height),{x:C.offsetLeft,y:C.offsetTop,width:I,height:e}}function dz(C,g){var I=g.getRootNode&&g.getRootNode();if(C.contains(g))return!0;if(I&&az(I)){var e=g;do{if(e&&C.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function Rn(C){return SA(C).getComputedStyle(C)}function i$g(C){return["table","td","th"].indexOf(Nn(C))>=0}function so(C){return((Er(C)?C.ownerDocument:C.document)||window.document).documentElement}function np(C){return Nn(C)==="html"?C:C.assignedSlot||C.parentNode||(az(C)?C.host:null)||so(C)}function cz(C){return!$i(C)||Rn(C).position==="fixed"?null:C.offsetParent}function A$g(C){var g=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,I=navigator.userAgent.indexOf("Trident")!==-1;if(I&&$i(C)){var e=Rn(C);if(e.position==="fixed")return null}for(var t=np(C);$i(t)&&["html","body"].indexOf(Nn(t))<0;){var i=Rn(t);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||g&&i.willChange==="filter"||g&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function U0(C){for(var g=SA(C),I=cz(C);I&&i$g(I)&&Rn(I).position==="static";)I=cz(I);return I&&(Nn(I)==="html"||Nn(I)==="body"&&Rn(I).position==="static")?g:I||A$g(C)||g}function wM(C){return["top","bottom"].indexOf(C)>=0?"x":"y"}function E0(C,g,I){return ad(C,Ap(g,I))}function n$g(C,g,I){var e=E0(C,g,I);return e>I?I:e}function rz(){return{top:0,right:0,bottom:0,left:0}}function mz(C){return Object.assign({},rz(),C)}function uz(C,g){return g.reduce(function(I,e){return I[e]=C,I},{})}var l$g=function(g,I){return g=typeof g=="function"?g(Object.assign({},I.rects,{placement:I.placement})):g,mz(typeof g!="number"?g:uz(g,x0))};function s$g(C){var g,I=C.state,e=C.name,t=C.options,i=I.elements.arrow,A=I.modifiersData.popperOffsets,n=Mn(I.placement),l=wM(n),o=[vt,_i].indexOf(n)>=0,a=o?"height":"width";if(!(!i||!A)){var d=l$g(t.padding,I),m=GM(i),u=l==="y"?Tt:vt,h=l==="y"?Pi:_i,Z=I.rects.reference[a]+I.rects.reference[l]-A[l]-I.rects.popper[a],G=A[l]-I.rects.reference[l],w=U0(i),B=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,p=Z/2-G/2,y=d[u],Y=B-m[a]-d[h],R=B/2-m[a]/2+p,M=E0(y,R,Y),K=l;I.modifiersData[e]=(g={},g[K]=M,g.centerOffset=M-R,g)}}function o$g(C){var g=C.state,I=C.options,e=I.element,t=e===void 0?"[data-popper-arrow]":e;t!=null&&(typeof t=="string"&&(t=g.elements.popper.querySelector(t),!t)||dz(g.elements.popper,t)&&(g.elements.arrow=t))}var a$g={name:"arrow",enabled:!0,phase:"main",fn:s$g,effect:o$g,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $r(C){return C.split("-")[1]}var d$g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c$g(C){var g=C.x,I=C.y,e=window,t=e.devicePixelRatio||1;return{x:Pr(g*t)/t||0,y:Pr(I*t)/t||0}}function hz(C){var g,I=C.popper,e=C.popperRect,t=C.placement,i=C.variation,A=C.offsets,n=C.position,l=C.gpuAcceleration,o=C.adaptive,a=C.roundOffsets,d=C.isFixed,m=a===!0?c$g(A):typeof a=="function"?a(A):A,u=m.x,h=u===void 0?0:u,Z=m.y,G=Z===void 0?0:Z,w=A.hasOwnProperty("x"),B=A.hasOwnProperty("y"),p=vt,y=Tt,Y=window;if(o){var R=U0(I),M="clientHeight",K="clientWidth";if(R===SA(I)&&(R=so(I),Rn(R).position!=="static"&&n==="absolute"&&(M="scrollHeight",K="scrollWidth")),R=R,t===Tt||(t===vt||t===_i)&&i===O0){y=Pi;var J=d&&Y.visualViewport?Y.visualViewport.height:R[M];G-=J-e.height,G*=l?1:-1}if(t===vt||(t===Tt||t===Pi)&&i===O0){p=_i;var X=d&&Y.visualViewport?Y.visualViewport.width:R[K];h-=X-e.width,h*=l?1:-1}}var D=Object.assign({position:n},o&&d$g);if(l){var z;return Object.assign({},D,(z={},z[y]=B?"0":"",z[p]=w?"0":"",z.transform=(Y.devicePixelRatio||1)<=1?"translate("+h+"px, "+G+"px)":"translate3d("+h+"px, "+G+"px, 0)",z))}return Object.assign({},D,(g={},g[y]=B?G+"px":"",g[p]=w?h+"px":"",g.transform="",g))}function r$g(C){var g=C.state,I=C.options,e=I.gpuAcceleration,t=e===void 0?!0:e,i=I.adaptive,A=i===void 0?!0:i,n=I.roundOffsets,l=n===void 0?!0:n,o={placement:Mn(g.placement),variation:$r(g.placement),popper:g.elements.popper,popperRect:g.rects.popper,gpuAcceleration:t,isFixed:g.options.strategy==="fixed"};g.modifiersData.popperOffsets!=null&&(g.styles.popper=Object.assign({},g.styles.popper,hz(Object.assign({},o,{offsets:g.modifiersData.popperOffsets,position:g.options.strategy,adaptive:A,roundOffsets:l})))),g.modifiersData.arrow!=null&&(g.styles.arrow=Object.assign({},g.styles.arrow,hz(Object.assign({},o,{offsets:g.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-placement":g.placement})}var m$g={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r$g,data:{}},lp={passive:!0};function u$g(C){var g=C.state,I=C.instance,e=C.options,t=e.scroll,i=t===void 0?!0:t,A=e.resize,n=A===void 0?!0:A,l=SA(g.elements.popper),o=[].concat(g.scrollParents.reference,g.scrollParents.popper);return i&&o.forEach(function(a){a.addEventListener("scroll",I.update,lp)}),n&&l.addEventListener("resize",I.update,lp),function(){i&&o.forEach(function(a){a.removeEventListener("scroll",I.update,lp)}),n&&l.removeEventListener("resize",I.update,lp)}}var h$g={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:u$g,data:{}},b$g={left:"right",right:"left",bottom:"top",top:"bottom"};function sp(C){return C.replace(/left|right|bottom|top/g,function(g){return b$g[g]})}var Z$g={start:"end",end:"start"};function bz(C){return C.replace(/start|end/g,function(g){return Z$g[g]})}function WM(C){var g=SA(C),I=g.pageXOffset,e=g.pageYOffset;return{scrollLeft:I,scrollTop:e}}function BM(C){return _r(so(C)).left+WM(C).scrollLeft}function G$g(C){var g=SA(C),I=so(C),e=g.visualViewport,t=I.clientWidth,i=I.clientHeight,A=0,n=0;return e&&(t=e.width,i=e.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(A=e.offsetLeft,n=e.offsetTop)),{width:t,height:i,x:A+BM(C),y:n}}function w$g(C){var g,I=so(C),e=WM(C),t=(g=C.ownerDocument)==null?void 0:g.body,i=ad(I.scrollWidth,I.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),A=ad(I.scrollHeight,I.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),n=-e.scrollLeft+BM(C),l=-e.scrollTop;return Rn(t||I).direction==="rtl"&&(n+=ad(I.clientWidth,t?t.clientWidth:0)-i),{width:i,height:A,x:n,y:l}}function pM(C){var g=Rn(C),I=g.overflow,e=g.overflowX,t=g.overflowY;return/auto|scroll|overlay|hidden/.test(I+t+e)}function Zz(C){return["html","body","#document"].indexOf(Nn(C))>=0?C.ownerDocument.body:$i(C)&&pM(C)?C:Zz(np(C))}function P0(C,g){var I;g===void 0&&(g=[]);var e=Zz(C),t=e===((I=C.ownerDocument)==null?void 0:I.body),i=SA(e),A=t?[i].concat(i.visualViewport||[],pM(e)?e:[]):e,n=g.concat(A);return t?n:n.concat(P0(np(A)))}function yM(C){return Object.assign({},C,{left:C.x,top:C.y,right:C.x+C.width,bottom:C.y+C.height})}function W$g(C){var g=_r(C);return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function Gz(C,g){return g===lz?yM(G$g(C)):Er(g)?W$g(g):yM(w$g(so(C)))}function B$g(C){var g=P0(np(C)),I=["absolute","fixed"].indexOf(Rn(C).position)>=0,e=I&&$i(C)?U0(C):C;return Er(e)?g.filter(function(t){return Er(t)&&dz(t,e)&&Nn(t)!=="body"&&(I?Rn(t).position!=="static":!0)}):[]}function p$g(C,g,I){var e=g==="clippingParents"?B$g(C):[].concat(g),t=[].concat(e,[I]),i=t[0],A=t.reduce(function(n,l){var o=Gz(C,l);return n.top=ad(o.top,n.top),n.right=Ap(o.right,n.right),n.bottom=Ap(o.bottom,n.bottom),n.left=ad(o.left,n.left),n},Gz(C,i));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function wz(C){var g=C.reference,I=C.element,e=C.placement,t=e?Mn(e):null,i=e?$r(e):null,A=g.x+g.width/2-I.width/2,n=g.y+g.height/2-I.height/2,l;switch(t){case Tt:l={x:A,y:g.y-I.height};break;case Pi:l={x:A,y:g.y+g.height};break;case _i:l={x:g.x+g.width,y:n};break;case vt:l={x:g.x-I.width,y:n};break;default:l={x:g.x,y:g.y}}var o=t?wM(t):null;if(o!=null){var a=o==="y"?"height":"width";switch(i){case Ur:l[o]=l[o]-(g[a]/2-I[a]/2);break;case O0:l[o]=l[o]+(g[a]/2-I[a]/2);break}}return l}function _0(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=e===void 0?C.placement:e,i=I.boundary,A=i===void 0?j_g:i,n=I.rootBoundary,l=n===void 0?lz:n,o=I.elementContext,a=o===void 0?Q0:o,d=I.altBoundary,m=d===void 0?!1:d,u=I.padding,h=u===void 0?0:u,Z=mz(typeof h!="number"?h:uz(h,x0)),G=a===Q0?x_g:Q0,w=C.rects.popper,B=C.elements[m?G:a],p=p$g(Er(B)?B:B.contextElement||so(C.elements.popper),A,l),y=_r(C.elements.reference),Y=wz({reference:y,element:w,strategy:"absolute",placement:t}),R=yM(Object.assign({},w,Y)),M=a===Q0?R:y,K={top:p.top-M.top+Z.top,bottom:M.bottom-p.bottom+Z.bottom,left:p.left-M.left+Z.left,right:M.right-p.right+Z.right},J=C.modifiersData.offset;if(a===Q0&&J){var X=J[t];Object.keys(K).forEach(function(D){var z=[_i,Pi].indexOf(D)>=0?1:-1,j=[Tt,Pi].indexOf(D)>=0?"y":"x";K[D]+=X[j]*z})}return K}function y$g(C,g){g===void 0&&(g={});var I=g,e=I.placement,t=I.boundary,i=I.rootBoundary,A=I.padding,n=I.flipVariations,l=I.allowedAutoPlacements,o=l===void 0?oz:l,a=$r(e),d=a?n?sz:sz.filter(function(h){return $r(h)===a}):x0,m=d.filter(function(h){return o.indexOf(h)>=0});m.length===0&&(m=d);var u=m.reduce(function(h,Z){return h[Z]=_0(C,{placement:Z,boundary:t,rootBoundary:i,padding:A})[Mn(Z)],h},{});return Object.keys(u).sort(function(h,Z){return u[h]-u[Z]})}function Y$g(C){if(Mn(C)===ZM)return[];var g=sp(C);return[bz(C),g,bz(g)]}function V$g(C){var g=C.state,I=C.options,e=C.name;if(!g.modifiersData[e]._skip){for(var t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!0:A,l=I.fallbackPlacements,o=I.padding,a=I.boundary,d=I.rootBoundary,m=I.altBoundary,u=I.flipVariations,h=u===void 0?!0:u,Z=I.allowedAutoPlacements,G=g.options.placement,w=Mn(G),B=w===G,p=l||(B||!h?[sp(G)]:Y$g(G)),y=[G].concat(p).reduce(function(pg,bg){return pg.concat(Mn(bg)===ZM?y$g(g,{placement:bg,boundary:a,rootBoundary:d,padding:o,flipVariations:h,allowedAutoPlacements:Z}):bg)},[]),Y=g.rects.reference,R=g.rects.popper,M=new Map,K=!0,J=y[0],X=0;X<y.length;X++){var D=y[X],z=Mn(D),j=$r(D)===Ur,q=[Tt,Pi].indexOf(z)>=0,gg=q?"width":"height",Q=_0(g,{placement:D,boundary:a,rootBoundary:d,altBoundary:m,padding:o}),_=q?j?_i:vt:j?Pi:Tt;Y[gg]>R[gg]&&(_=sp(_));var og=sp(_),eg=[];if(i&&eg.push(Q[z]<=0),n&&eg.push(Q[_]<=0,Q[og]<=0),eg.every(function(pg){return pg})){J=D,K=!1;break}M.set(D,eg)}if(K)for(var mg=h?3:1,Yg=function(bg){var oI=y.find(function(AI){var nC=M.get(AI);if(nC)return nC.slice(0,bg).every(function(KC){return KC})});if(oI)return J=oI,"break"},Zg=mg;Zg>0;Zg--){var ag=Yg(Zg);if(ag==="break")break}g.placement!==J&&(g.modifiersData[e]._skip=!0,g.placement=J,g.reset=!0)}}var N$g={name:"flip",enabled:!0,phase:"main",fn:V$g,requiresIfExists:["offset"],data:{_skip:!1}};function Wz(C,g,I){return I===void 0&&(I={x:0,y:0}),{top:C.top-g.height-I.y,right:C.right-g.width+I.x,bottom:C.bottom-g.height+I.y,left:C.left-g.width-I.x}}function Bz(C){return[Tt,_i,Pi,vt].some(function(g){return C[g]>=0})}function M$g(C){var g=C.state,I=C.name,e=g.rects.reference,t=g.rects.popper,i=g.modifiersData.preventOverflow,A=_0(g,{elementContext:"reference"}),n=_0(g,{altBoundary:!0}),l=Wz(A,e),o=Wz(n,t,i),a=Bz(l),d=Bz(o);g.modifiersData[I]={referenceClippingOffsets:l,popperEscapeOffsets:o,isReferenceHidden:a,hasPopperEscaped:d},g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":d})}var R$g={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M$g};function f$g(C,g,I){var e=Mn(C),t=[vt,Tt].indexOf(e)>=0?-1:1,i=typeof I=="function"?I(Object.assign({},g,{placement:C})):I,A=i[0],n=i[1];return A=A||0,n=(n||0)*t,[vt,_i].indexOf(e)>=0?{x:n,y:A}:{x:A,y:n}}function X$g(C){var g=C.state,I=C.options,e=C.name,t=I.offset,i=t===void 0?[0,0]:t,A=oz.reduce(function(a,d){return a[d]=f$g(d,g.rects,i),a},{}),n=A[g.placement],l=n.x,o=n.y;g.modifiersData.popperOffsets!=null&&(g.modifiersData.popperOffsets.x+=l,g.modifiersData.popperOffsets.y+=o),g.modifiersData[e]=A}var H$g={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:X$g};function D$g(C){var g=C.state,I=C.name;g.modifiersData[I]=wz({reference:g.rects.reference,element:g.rects.popper,strategy:"absolute",placement:g.placement})}var S$g={name:"popperOffsets",enabled:!0,phase:"read",fn:D$g,data:{}};function K$g(C){return C==="x"?"y":"x"}function k$g(C){var g=C.state,I=C.options,e=C.name,t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!1:A,l=I.boundary,o=I.rootBoundary,a=I.altBoundary,d=I.padding,m=I.tether,u=m===void 0?!0:m,h=I.tetherOffset,Z=h===void 0?0:h,G=_0(g,{boundary:l,rootBoundary:o,padding:d,altBoundary:a}),w=Mn(g.placement),B=$r(g.placement),p=!B,y=wM(w),Y=K$g(y),R=g.modifiersData.popperOffsets,M=g.rects.reference,K=g.rects.popper,J=typeof Z=="function"?Z(Object.assign({},g.rects,{placement:g.placement})):Z,X=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),D=g.modifiersData.offset?g.modifiersData.offset[g.placement]:null,z={x:0,y:0};if(R){if(i){var j,q=y==="y"?Tt:vt,gg=y==="y"?Pi:_i,Q=y==="y"?"height":"width",_=R[y],og=_+G[q],eg=_-G[gg],mg=u?-K[Q]/2:0,Yg=B===Ur?M[Q]:K[Q],Zg=B===Ur?-K[Q]:-M[Q],ag=g.elements.arrow,pg=u&&ag?GM(ag):{width:0,height:0},bg=g.modifiersData["arrow#persistent"]?g.modifiersData["arrow#persistent"].padding:rz(),oI=bg[q],AI=bg[gg],nC=E0(0,M[Q],pg[Q]),KC=p?M[Q]/2-mg-nC-oI-X.mainAxis:Yg-nC-oI-X.mainAxis,eC=p?-M[Q]/2+mg+nC+AI+X.mainAxis:Zg+nC+AI+X.mainAxis,WI=g.elements.arrow&&U0(g.elements.arrow),ie=WI?y==="y"?WI.clientTop||0:WI.clientLeft||0:0,ke=(j=D==null?void 0:D[y])!=null?j:0,kC=_+KC-ke-ie,Ri=_+eC-ke,Nu=E0(u?Ap(og,kC):og,_,u?ad(eg,Ri):eg);R[y]=Nu,z[y]=Nu-_}if(n){var Fe,as=y==="x"?Tt:vt,TZ=y==="x"?Pi:_i,Vt=R[Y],Ae=Y==="y"?"height":"width",_A=Vt+G[as],$A=Vt-G[TZ],ds=[Tt,vt].indexOf(w)!==-1,qA=(Fe=D==null?void 0:D[Y])!=null?Fe:0,cA=ds?_A:Vt-M[Ae]-K[Ae]-qA+X.altAxis,gl=ds?Vt+M[Ae]+K[Ae]-qA-X.altAxis:$A,gn=u&&ds?n$g(cA,Vt,gl):E0(u?cA:_A,Vt,u?gl:$A);R[Y]=gn,z[Y]=gn-Vt}g.modifiersData[e]=z}}var F$g={name:"preventOverflow",enabled:!0,phase:"main",fn:k$g,requiresIfExists:["offset"]};function z$g(C){return{scrollLeft:C.scrollLeft,scrollTop:C.scrollTop}}function J$g(C){return C===SA(C)||!$i(C)?WM(C):z$g(C)}function L$g(C){var g=C.getBoundingClientRect(),I=Pr(g.width)/C.offsetWidth||1,e=Pr(g.height)/C.offsetHeight||1;return I!==1||e!==1}function T$g(C,g,I){I===void 0&&(I=!1);var e=$i(g),t=$i(g)&&L$g(g),i=so(g),A=_r(C,t),n={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(e||!e&&!I)&&((Nn(g)!=="body"||pM(i))&&(n=J$g(g)),$i(g)?(l=_r(g,!0),l.x+=g.clientLeft,l.y+=g.clientTop):i&&(l.x=BM(i))),{x:A.left+n.scrollLeft-l.x,y:A.top+n.scrollTop-l.y,width:A.width,height:A.height}}function v$g(C){var g=new Map,I=new Set,e=[];C.forEach(function(i){g.set(i.name,i)});function t(i){I.add(i.name);var A=[].concat(i.requires||[],i.requiresIfExists||[]);A.forEach(function(n){if(!I.has(n)){var l=g.get(n);l&&t(l)}}),e.push(i)}return C.forEach(function(i){I.has(i.name)||t(i)}),e}function j$g(C){var g=v$g(C);return I$g.reduce(function(I,e){return I.concat(g.filter(function(t){return t.phase===e}))},[])}function x$g(C){var g;return function(){return g||(g=new Promise(function(I){Promise.resolve().then(function(){g=void 0,I(C())})})),g}}function O$g(C){var g=C.reduce(function(I,e){var t=I[e.name];return I[e.name]=t?Object.assign({},t,e,{options:Object.assign({},t.options,e.options),data:Object.assign({},t.data,e.data)}):e,I},{});return Object.keys(g).map(function(I){return g[I]})}var pz={placement:"bottom",modifiers:[],strategy:"absolute"};function yz(){for(var C=arguments.length,g=new Array(C),I=0;I<C;I++)g[I]=arguments[I];return!g.some(function(e){return!(e&&typeof e.getBoundingClientRect=="function")})}function Q$g(C){C===void 0&&(C={});var g=C,I=g.defaultModifiers,e=I===void 0?[]:I,t=g.defaultOptions,i=t===void 0?pz:t;return function(n,l,o){o===void 0&&(o=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},pz,i),modifiersData:{},elements:{reference:n,popper:l},attributes:{},styles:{}},d=[],m=!1,u={state:a,setOptions:function(w){var B=typeof w=="function"?w(a.options):w;Z(),a.options=Object.assign({},i,a.options,B),a.scrollParents={reference:Er(n)?P0(n):n.contextElement?P0(n.contextElement):[],popper:P0(l)};var p=j$g(O$g([].concat(e,a.options.modifiers)));return a.orderedModifiers=p.filter(function(y){return y.enabled}),h(),u.update()},forceUpdate:function(){if(!m){var w=a.elements,B=w.reference,p=w.popper;if(yz(B,p)){a.rects={reference:T$g(B,U0(p),a.options.strategy==="fixed"),popper:GM(p)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(X){return a.modifiersData[X.name]=Object.assign({},X.data)});for(var y=0;y<a.orderedModifiers.length;y++){if(a.reset===!0){a.reset=!1,y=-1;continue}var Y=a.orderedModifiers[y],R=Y.fn,M=Y.options,K=M===void 0?{}:M,J=Y.name;typeof R=="function"&&(a=R({state:a,options:K,name:J,instance:u})||a)}}}},update:x$g(function(){return new Promise(function(G){u.forceUpdate(),G(a)})}),destroy:function(){Z(),m=!0}};if(!yz(n,l))return u;u.setOptions(o).then(function(G){!m&&o.onFirstUpdate&&o.onFirstUpdate(G)});function h(){a.orderedModifiers.forEach(function(G){var w=G.name,B=G.options,p=B===void 0?{}:B,y=G.effect;if(typeof y=="function"){var Y=y({state:a,name:w,instance:u,options:p}),R=function(){};d.push(Y||R)}})}function Z(){d.forEach(function(G){return G()}),d=[]}return u}}var U$g=[h$g,S$g,m$g,t$g,H$g,N$g,F$g,a$g,R$g],E$g=Q$g({defaultModifiers:U$g}),Yz="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function op(C){return C.split("-").map(g=>parseInt(g,16)).map(g=>String.fromCodePoint(g)).join("")}function P$g(C,g,I,e=[]){const t={};return Object.keys(C).forEach(i=>{if(e.includes(i))return;const A=[];C[i].forEach(n=>{var l;if(n[ep][0].includes(g.toLocaleLowerCase())){let o=n[Iz];if(I!==ip&&Array.isArray(n[tp])){const a=((l=n[tp])==null?void 0:l.findIndex(d=>d.includes(I)))||-1;a!==-1&&n[tp]&&(o=n[tp][a])}return A.push({...n,[j0]:o})}}),A.length&&(t[i]=A)}),t}function Vz(){var C;return(((C=navigator==null?void 0:navigator.userAgentData)==null?void 0:C.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function Nz(C){return C.replace(/^_*(.)|_+(.)/g,(g,I,e)=>I?I.toUpperCase():" "+e.toUpperCase())}var $0=(C,g)=>{const I=C.__vccOpts||C;for(const[e,t]of g)I[e]=t;return I};const _$g=s.defineComponent({name:"Body",emits:{select:C=>!0},setup(){const{state:C,updateEmoji:g,updateSelect:I}=s.inject("store"),e=s.ref(null),t=s.computed(()=>P$g(C.emojis,C.search,C.skinTone,C.options.disabledGroups)),i=s.getCurrentInstance(),A=s.computed(()=>!C.options.hideGroupNames),n=s.computed(()=>!C.options.disableStickyGroupNames),l=s.toRaw(C.options.groupNames),o=C.orderedGroupKeys;C.options.additionalGroups&&Object.keys(C.options.additionalGroups).map(h=>{C.options.groupNames[h]?l[h]=C.options.groupNames[h]:l[h]=Nz(h)});const a=Vz()?"is-mac":"";function d(h){g(h)}function m(h){I(h),i==null||i.emit("select",{...h,t:C.skinTone,i:op(h.r)})}function u(h,Z){var G;const w=(G=h==null?void 0:h.target)==null?void 0:G.closest("button");w&&(w.innerHTML=`<span>${op(Z)}</span>`)}return s.watch(()=>C.activeGroup,()=>{var h;const Z=(h=e.value)==null?void 0:h.querySelector("#"+C.activeGroup);Z&&(Z.parentNode.scrollTop=Z.offsetTop-Z.parentNode.offsetTop)}),{emojis:t,bodyInner:e,EMOJI_REMOTE_SRC:qF,GROUP_NAMES:gz,handleClick:m,handleError:u,handleMouseEnter:d,native:C.options.native,unicodeToEmoji:op,EMOJI_RESULT_KEY:j0,EMOJI_NAME_KEY:ep,hasGroupNames:A,isSticky:n,platform:a,groupNames:l,orderedKeys:o}}}),$$g={class:"v3-body"},q$g=["id"],gqg={class:"v3-emojis"},Iqg=["onMouseenter","onClick"],Cqg={key:0},eqg=["src","alt","onError"],tqg={key:1,class:"v3-no-result"};function iqg(C,g,I,e,t,i){return s.openBlock(),s.createElementBlock("div",$$g,[s.createElementVNode("div",{ref:"bodyInner",class:s.normalizeClass([C.platform,"v3-body-inner"])},[C.orderedKeys.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(C.orderedKeys,A=>(s.openBlock(),s.createElementBlock("div",{id:A,key:A,class:"v3-group"},[C.hasGroupNames?s.withDirectives((s.openBlock(),s.createElementBlock("h5",{key:0,class:s.normalizeClass(C.isSticky?"v3-sticky":"")},s.toDisplayString(C.groupNames[A]),3)),[[s.vShow,C.emojis[A]]]):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",gqg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.emojis[A],n=>(s.openBlock(),s.createElementBlock("button",{key:n.r,type:"button",onMouseenter:l=>C.handleMouseEnter(n),onClick:l=>C.handleClick(n)},[C.native?(s.openBlock(),s.createElementBlock("span",Cqg,s.toDisplayString(C.unicodeToEmoji(n.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,src:C.EMOJI_REMOTE_SRC+`/${n.r}.png`,alt:n.n[0],onError:l=>C.handleError(l,n.r)},null,40,eqg))],40,Iqg))),128))],512),[[s.vShow,C.emojis[A]]])],8,q$g))),128)):(s.openBlock(),s.createElementBlock("span",tqg," No emoji has been found! "))],2)])}var Aqg=$0(_$g,[["render",iqg]]),nqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",lqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",sqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",oqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",aqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",dqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",cqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",rqg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const mqg=s.defineComponent({name:"Header",setup(C){const{state:g,updateSearch:I,updateActiveGroup:e}=s.inject("store"),t=s.computed(()=>!g.options.hideSearch),i=s.computed(()=>!g.options.hideGroupIcons),A=JSON.parse(JSON.stringify(g.orderedGroupKeys)),n=s.computed(()=>g.options.staticTexts.placeholder||""),l=s.computed({get:()=>g.search,set:d=>I(d)}),o=[...g.groups,...Object.keys(g.options.additionalGroups).map(d=>({key:d,title:g.options.groupNames[d]?g.options.groupNames[d]:Nz(d)}))],a=[];return A.forEach(d=>{const m=o.findIndex(u=>u.key===d);m!==-1&&(a.push(o[m]),o.splice(m,1))}),{orderedGroups:a,orderedKeys:A,searchValue:l,updateActiveGroup:e,hasSearch:t,hasGroupIcons:i,placeholder:n,icons:{smileys_people:Yz,animals_nature:nqg,food_drink:lqg,activities:sqg,travel_places:oqg,objects:aqg,symbols:dqg,flags:cqg,...g.options.groupIcons,recent:rqg}}}}),uqg={key:0,class:"v3-header"},hqg={key:0,class:"v3-groups"},bqg=["onClick"],Zqg=["title"],Gqg=["src"],wqg={key:1,class:"v3-spacing"},Wqg={key:2,class:"v3-search"},Bqg=["placeholder"];function pqg(C,g,I,e,t,i){return C.hasGroupIcons||C.hasSearch?(s.openBlock(),s.createElementBlock("div",uqg,[C.hasGroupIcons?(s.openBlock(),s.createElementBlock("div",hqg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.orderedGroups,A=>(s.openBlock(),s.createElementBlock("button",{key:A.key,type:"button",class:s.normalizeClass(["v3-group",{"v3-is-hidden":!C.icons[A.key]}]),onClick:n=>C.updateActiveGroup(A.key)},[s.createElementVNode("span",{title:A.title,class:"v3-icon"},[s.createElementVNode("img",{src:C.icons[A.key],alt:""},null,8,Gqg)],8,Zqg)],10,bqg))),128))])):s.createCommentVNode("",!0),C.hasGroupIcons&&C.hasSearch?(s.openBlock(),s.createElementBlock("div",wqg)):s.createCommentVNode("",!0),C.hasSearch?(s.openBlock(),s.createElementBlock("div",Wqg,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=A=>C.searchValue=A),type:"text",placeholder:C.placeholder},null,8,Bqg),[[s.vModelText,C.searchValue]])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}var yqg=$0(mqg,[["render",pqg]]);const Yqg=s.defineComponent({name:"Header",setup(){const{state:C,updateSkinTone:g}=s.inject("store"),I=s.ref(!1),e=s.ref(!1),t=s.computed(()=>C.skinTone),i=s.computed(()=>C.options.staticTexts.skinTone||"Skin tone"),A=s.computed(()=>!C.options.disableSkinTones),n=Vz()?"is-mac":"",l=s.computed(()=>({...C.emoji,src:qF+"/"+C.emoji[j0]+".png"}));function o(m=!0){I.value=m}function a(){I.value=!I.value}function d(m){g(m),o(!1)}return s.watch(()=>C.emoji,()=>{e.value=!1}),{emoji:l,SKIN_TONES:Y_g,updateSkinToneState:o,skinTone:I,stateSkinTone:t,selectSkinTone:d,toggleSkinToneState:a,EMOJI_RESULT_KEY:j0,EMOJI_NAME_KEY:ep,skinToneText:i,hasSkinTones:A,native:C.options.native,unicodeToEmoji:op,platform:n,hasError:e}}}),Vqg={class:"v3-foot-left"},Nqg={key:0},Mqg=["alt","src"],Rqg={class:"v3-text"},fqg={class:"v3-text"},Xqg=["onClick"];function Hqg(C,g,I,e,t,i){return s.openBlock(),s.createElementBlock("div",{class:"v3-footer",onMouseleave:g[2]||(g[2]=A=>C.updateSkinToneState(!1))},[s.createElementVNode("div",Vqg,[s.createElementVNode("span",{class:s.normalizeClass([C.platform,"v3-icon"])},[C.native||C.hasError?(s.openBlock(),s.createElementBlock("span",Nqg,s.toDisplayString(C.unicodeToEmoji(C.emoji.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,alt:C.unicodeToEmoji(C.emoji.r),src:C.emoji.src,onError:g[0]||(g[0]=A=>C.hasError=!0)},null,40,Mqg))],2),s.createElementVNode("span",Rqg," :"+s.toDisplayString(C.emoji[C.EMOJI_NAME_KEY][1]||C.emoji[C.EMOJI_NAME_KEY][0])+": ",1)]),C.hasSkinTones?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("button",{type:"button",class:"v3-tone",onClick:g[1]||(g[1]=(...A)=>C.toggleSkinToneState&&C.toggleSkinToneState(...A))},[s.createElementVNode("span",fqg,s.toDisplayString(C.skinToneText),1),s.createElementVNode("span",{class:s.normalizeClass(`v3-icon v3-tone-${C.stateSkinTone}`)},null,2)]),s.createElementVNode("div",{class:s.normalizeClass([C.skinTone?"v3-is-open":"","v3-skin-tones"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.SKIN_TONES,A=>(s.openBlock(),s.createElementBlock("button",{key:A,type:"button",class:s.normalizeClass(["v3-skin-tone-"+A,"v3-skin-tone"]),onClick:n=>C.selectSkinTone(A)},null,10,Xqg))),128))],2)],64)):s.createCommentVNode("",!0)],32)}var Dqg=$0(Yqg,[["render",Hqg]]);const Sqg=s.defineComponent({name:"PickerRoot",components:{Header:yqg,Body:Aqg,Footer:Dqg},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:C=>!0,"update:text":C=>!0},setup(C,{emit:g}){const I=s.ref(),e=s.ref(),t=s.ref(),i=s.ref(!1),A=s.ref(C.text),n=C.type==="input"||C.type==="textarea";let l=-1;const{state:o}=s.inject("store"),a=s.computed(()=>o.options.colorTheme);function d(G){if(n){const w=o.options.mode;w==="prepend"?A.value=G.i+A.value:w==="insert"&&l!==-1?(A.value=`${A.value.slice(0,l)}${G.i}${A.value.slice(l)}`,l+=G.i.length):A.value+=G.i,g("update:text",A.value)}g("select",G)}function m(){var G;I.value&&(l=((G=I.value)==null?void 0:G.selectionEnd)||-1)}function u(G){var w;!((w=G.target)!=null&&w.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function h(){if(e.value&&t.value&&n){let G=o.options.offset;typeof G!="number"&&(G=6),E$g(e.value,t.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,G]}}]}),document.body.addEventListener("click",u)}}function Z(G){A.value=G.target.value||"",g("update:text",A.value)}return s.onMounted(()=>{h()}),s.onBeforeUnmount(()=>{document.body.removeEventListener("click",u)}),{face:Yz,open:i,onSelect:d,input:A,elem:I,updateCursor:m,button:e,picker:t,isInputType:n,onChangeText:Z,colorTheme:a}}}),Kqg={key:0,class:"v3-input-emoji-picker"},kqg={class:"v3-input-picker-root"},Fqg=["value"],zqg=["value"],Jqg=["src"];function Lqg(C,g,I,e,t,i){const A=s.resolveComponent("Header"),n=s.resolveComponent("Body"),l=s.resolveComponent("Footer");return C.isInputType?(s.openBlock(),s.createElementBlock("div",Kqg,[s.createElementVNode("div",kqg,[C.type==="input"?(s.openBlock(),s.createElementBlock("input",{key:0,ref:"elem",value:C.input,type:"text",class:"v3-emoji-picker-input",onInput:g[0]||(g[0]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[1]||(g[1]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,Fqg)):(s.openBlock(),s.createElementBlock("textarea",{key:1,ref:"elem",value:C.input,class:"v3-emoji-picker-textarea",onInput:g[2]||(g[2]=(...o)=>C.onChangeText&&C.onChangeText(...o)),onBlur:g[3]||(g[3]=(...o)=>C.updateCursor&&C.updateCursor(...o))},null,40,zqg)),s.createElementVNode("div",{class:s.normalizeClass(["v3-input-picker-wrap",C.open?"v3-picker-is-open":""])},[s.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:g[4]||(g[4]=o=>C.open=!C.open)},[s.createElementVNode("img",{src:C.face,alt:""},null,8,Jqg)],512),s.createElementVNode("div",{ref:"picker",class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),s.createVNode(l)],2)],2)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+C.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:C.onSelect},null,8,["onSelect"]),s.createVNode(l)],2))}var Tqg=$0(Sqg,[["render",Lqg]]);const vqg=s.defineComponent({name:"Picker",components:{PickerRoot:Tqg},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":C=>!0,select:C=>!0},setup(C,{emit:g}){const I=s.ref(C.text);function e(i){I.value=i||"",g("update:text",I.value)}const t=v_g();return t.updateOptions({native:C.native,hideSearch:C.hideSearch,hideGroupIcons:C.hideGroupIcons,hideGroupNames:C.hideGroupNames,staticTexts:{...V_g,...C.staticTexts},disableStickyGroupNames:C.disableStickyGroupNames,disabledGroups:C.disabledGroups,groupNames:{...gz,...C.groupNames},disableSkinTones:C.disableSkinTones,displayRecent:C.displayRecent,additionalGroups:C.additionalGroups,mode:C.mode,offset:C.offset,groupOrder:C.groupOrder,groupIcons:C.groupIcons,colorTheme:N_g.includes(C.theme)?C.theme:"light"}),s.provide("store",t),{type:C.pickerType,input:I,onChangeText:e}}});function jqg(C,g,I,e,t,i){const A=s.resolveComponent("picker-root");return s.openBlock(),s.createBlock(A,{type:C.type,text:C.input,onSelect:g[0]||(g[0]=n=>C.$emit("select",n)),"onUpdate:text":C.onChangeText},null,8,["type","text","onUpdate:text"])}var Mz=$0(vqg,[["render",jqg]]),ap=(C=>(C.primary="primary",C.secondary="secondary",C.red="red",C.green="green",C.yellow="yellow",C.blue="blue",C.white="white",C.black="black",C))(ap||{});const xqg=fg(s.defineComponent({__name:"DropZone",emits:["files-dropped"],setup(C,{emit:g}){const I=g,e=s.reactive({dragging:!1}),t=h=>{const Z=Array.from(h.items??[]).filter(G=>G.kind==="file").map(G=>G.getAsFile()).filter(G=>!!G);return Z.length?Z:Array.from(h.files??[])},i=h=>h?Array.from(h.types??[]).includes("Files")?!0:Array.from(h.items??[]).some(G=>G.kind==="file"):!1,A=async h=>{const Z=await h.arrayBuffer();return new File([Z],h.name,{type:h.type,lastModified:h.lastModified})},n=async h=>{if(h.preventDefault(),e.dragging=!1,!h.dataTransfer)return;const Z=t(h.dataTransfer);if(!Z.length)return;const G=await Promise.all(Z.map(A));I("files-dropped",G)},l=h=>{h.preventDefault(),e.dragging=!1},o=h=>{h.preventDefault()},a=h=>{h.preventDefault(),i(h.dataTransfer)&&(e.dragging=!0)},d=h=>{h.clientX===0&&h.clientY===0&&(e.dragging=!1)},m=()=>{e.dragging=!1},u=h=>{h.clientX===0&&h.clientY===0&&(e.dragging=!1)};return s.onMounted(()=>{window.addEventListener("dragenter",a),window.addEventListener("dragover",o),window.addEventListener("drop",l),window.addEventListener("dragleave",d),window.addEventListener("dragend",m)}),s.onUnmounted(()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragover",o),window.removeEventListener("drop",l),window.removeEventListener("dragleave",d),window.removeEventListener("dragend",m)}),(h,Z)=>(s.openBlock(),s.createBlock(s.Transition,{name:"drag"},{default:s.withCtx(()=>[e.dragging?(s.openBlock(),s.createElementBlock("div",{key:0,class:"drag-overlay",onDragleave:u,onDragover:Z[0]||(Z[0]=s.withModifiers(()=>{},["prevent"])),onDrop:s.withModifiers(n,["prevent"])}," Загрузить файл ",32)):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-72c68cb7"]]),Oqg={class:"editor-component"},Qqg={key:0,class:"editor-component-slot"},Uqg={class:"right-buttons"},Eqg={class:"toolbar"},Pqg={class:"camera-selection"},_qg={class:"camera-selection-options"},YM=s.defineComponent({__name:"ContentEditor",props:s.mergeModels({activeAttachFile:{type:Boolean},activeSelectUser:{type:Boolean},activeSend:{type:Boolean},disableSendOnEnter:{type:Boolean},isMentionModalOpen:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:s.mergeModels(["unmount-send","unmount-attach-file","mention-change"],["update:modelValue"]),setup(C,{expose:g,emit:I}){const e=C,t=s.useModel(C,"modelValue"),i=s.ref(!1),A=s.ref({vertical:"bottom",horizontal:"left"}),n=I,l=s.computed(()=>{var D;return!e.activeSend&&((D=h.value)==null?void 0:D.isEmpty)}),o=s.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,l.value?"":"translateX"]),a=s.ref(null),d=s.ref(!1),m=D=>{d.value=!1,G(!0,D)},u=Jt.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""},userId:{default:null,parseHTML:D=>D.getAttribute("data-user-id"),renderHTML:D=>D.userId?{"data-user-id":D.userId}:{}}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:D,HTMLAttributes:z}){return["span",HC(z,{"data-span":"",contenteditable:"false",class:D==null?void 0:D.attrs.class}),D==null?void 0:D.attrs.content]}}),h=j6g({extensions:[B_g.configure({link:!1,bold:!1,italic:!1,strike:!1,heading:!1,bulletList:!1,orderedList:!1,codeBlock:!1,blockquote:!1,underline:!1}),k8g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),p_g.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),u],content:t.value,editorProps:{handlePaste(D,z){const j=z.clipboardData;if(!j)return!1;if(j.files.length>0&&e.activeAttachFile){const q=Array.from(j.files).every(gg=>gg.type.startsWith("image/")||gg.type.startsWith("video/"));return n("unmount-attach-file",j.files,q),z.preventDefault(),!0}}},onUpdate:({editor:D})=>{if(t.value=D.getHTML(),e.activeSelectUser){const{$from:z}=D.state.selection,j=Math.max(0,z.parentOffset-50),gg=z.parent.textBetween(j,z.parentOffset,null,"").match(/@([^\s]*)$/);gg?n("mention-change",gg[1].toLowerCase()):n("mention-change",null)}},parseOptions:{preserveWhitespace:!0}});s.watch(t,D=>{h!=null&&h.value&&D!==h.value.getHTML()&&h.value.commands.setContent(D??"",{parseOptions:{preserveWhitespace:!0}})});const Z=D=>{h!=null&&h.value&&h.value.chain().focus().insertContent(D.i).run()},G=(D=!1,z)=>{if(!(h!=null&&h.value))return;const j=document.createElement("input");j.type="file",z?(z==="video"?j.accept="video/*":z==="image"?j.accept="image/*":j.accept="image/*,video/*",j.capture="environment",j.multiple=!1):(j.multiple=!0,D&&(j.accept="image/*,video/*")),j.onchange=()=>{j!=null&&j.files&&n("unmount-attach-file",j.files,D)},j.click()},w=D=>{const z=D.every(gg=>gg.type.startsWith("image/")||gg.type.startsWith("video/")),j=new DataTransfer;D.forEach(gg=>j.items.add(gg));const q=j.files;n("unmount-attach-file",q,z)},B=()=>{h!=null&&h.value&&(n("unmount-send",{content:h.value.getHTML()}),h.value.chain().focus())},p=(D,z)=>{if(!(h!=null&&h.value))return;const{$from:j}=h.value.state.selection,q=Math.max(0,j.parentOffset-50),Q=j.parent.textBetween(q,j.parentOffset,null,"").match(/@([^\s]*)$/);if(Q){const _=j.start()+q+(Q.index||0);h.value.chain().focus().insertContentAt({from:_,to:j.pos},{type:"spanNode",attrs:{content:D,class:"link",...z}}).run()}else h.value.chain().focus().insertContent({type:"spanNode",attrs:{content:D,class:"link",...z}}).run()},y=()=>{if(!(h!=null&&h.value))return;const{$from:D}=h.value.state.selection,z=Math.max(0,D.parentOffset-50),q=D.parent.textBetween(z,D.parentOffset,null,"").match(/@([^\s]*)$/);if(q){const gg=D.start()+z+(q.index||0);h.value.chain().focus().deleteRange({from:gg,to:D.pos}).run()}else h.value.chain().focus().insertContent("@").run()},Y=()=>{h!=null&&h.value&&h.value.chain().focus()},R=(D,z=300,j=260)=>{if(!D)return;const q=D.getBoundingClientRect(),gg=window.innerWidth,Q=window.innerHeight;A.value.vertical=q.bottom+j>Q?"top":"bottom",A.value.horizontal=q.left+z>gg?"right":"left"},M=D=>{if(i.value=!i.value,i.value){const z=D.currentTarget;s.nextTick(()=>{R(z)})}},K=()=>{i.value=!1},J=()=>{const D=document.querySelector(".toolbar-button.smile-button");i.value&&D&&R(D)},X=D=>{window.innerWidth<=480||!e.disableSendOnEnter&&D.key==="Enter"&&D.code&&!(D.shiftKey||D.ctrlKey||D.metaKey)&&(D.preventDefault(),D.stopPropagation(),B())};return s.onMounted(()=>{var D,z;(z=(D=h==null?void 0:h.value)==null?void 0:D.view)!=null&&z.dom&&(a.value=h.value.view.dom,window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),a.value.addEventListener("keydown",X,{capture:!0}))}),s.onBeforeUnmount(()=>{var D;(D=h==null?void 0:h.value)==null||D.destroy(),a.value&&a.value.removeEventListener("keydown",X,{capture:!0}),window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0)}),g({addSpanLink:p,focus:Y,editor:h}),(D,z)=>(s.openBlock(),s.createElementBlock("div",Oqg,[D.$slots.action?(s.openBlock(),s.createElementBlock("div",Qqg,[s.renderSlot(D.$slots,"action")])):s.createCommentVNode("",!0),s.createVNode(Mr,{isWCUse:"",disabled:!e.activeAttachFile,options:[{value:"Камера",function:()=>d.value=!0},{value:"Фото или видео",function:()=>G(!0)},{value:"Файл",function:()=>G(!1)}],translateY:"calc(-100% - 47px)",class:"mobile-item"},{trigger:s.withCtx(()=>[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button attach-file-button mobile-buttons",disabled:!e.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).paperClip},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(s.unref(v6g),{class:"editor-content",editor:s.unref(h)},null,8,["editor"]),e.activeAttachFile?(s.openBlock(),s.createBlock(xqg,{key:1,onFilesDropped:w})):s.createCommentVNode("",!0),s.createElementVNode("div",Uqg,[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button mobile-buttons smile-button",onClick:s.withModifiers(M,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).smile},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:z[0]||(z[0]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(o.value)},[s.createVNode(s.unref(Mz),{native:!0,onSelect:Z})],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.withDirectives(s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button right mobile-buttons",onClick:B},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[s.vShow,!l.value]])]),s.createElementVNode("div",Eqg,[s.createVNode(Mr,{isWCUse:"",disabled:!e.activeAttachFile,options:[{value:"Фото или видео",function:()=>G(!0)},{value:"Файл",function:()=>G(!1)}],translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button attach-file-button",disabled:!e.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(sC,{type:s.unref(MI).ghost,size:s.unref(it).small,class:"toolbar-button smile-button",onClick:s.withModifiers(M,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:z[1]||(z[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(o.value)},[s.withDirectives(s.createVNode(s.unref(Mz),{native:!0,onSelect:Z},null,512),[[s.unref(Oc),K,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.createVNode(sC,{disabled:!e.activeSelectUser,type:s.unref(MI).ghost,class:"toolbar-button",size:s.unref(it).small,onClick:y},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["disabled","type","size"]),s.createCommentVNode("",!0),s.createVNode(sC,{disabled:l.value,class:"toolbar-button right",size:s.unref(it).small,onClick:B},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(ug).planeRight,color:s.unref(ap).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])]),d.value?(s.openBlock(),s.createBlock(xS,{key:2,open:d.value,onClose:z[4]||(z[4]=j=>d.value=!1),position:"center",width:"320px",height:"auto"},{default:s.withCtx(()=>[s.createElementVNode("div",Pqg,[z[7]||(z[7]=s.createElementVNode("div",{class:"camera-selection-header"},"Выберите действие",-1)),s.createElementVNode("div",_qg,[s.createVNode(sC,{type:s.unref(MI).outline,onClick:z[2]||(z[2]=j=>m("image")),class:"camera-selection-item"},{default:s.withCtx(()=>[...z[5]||(z[5]=[s.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),s.createVNode(sC,{type:s.unref(MI).outline,onClick:z[3]||(z[3]=j=>m("video")),class:"camera-selection-item"},{default:s.withCtx(()=>[...z[6]||(z[6]=[s.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])]),_:1},8,["open"])):s.createCommentVNode("",!0)]))}}),$qg=["data-testid"],qqg=["data-testid"],ggI=fg(s.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=s.useTemplateRef("canvas"),A=s.useTemplateRef("container"),n=s.reactive({ctx:null,image:null,id:s.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:e.min,maxScale:e.max,stepScale:e.step});s.watch(()=>e.image,()=>{e.image&&d(e.image)});const l=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:R,height:M}=A.value.getBoundingClientRect();i.value&&(i.value.width=R,i.value.height=M),n.image&&a()}},a=()=>{if(n.image){const R=n.ctx,M=i.value;R&&M&&(R.clearRect(0,0,M.width,M.height),R.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=R=>{const M=new FileReader;M.onload=async K=>{var J;typeof((J=K.target)==null?void 0:J.result)=="string"&&(n.image=new Image,n.image.src=K.target.result,n.image.onload=async()=>{if(await s.nextTick(),i.value&&n.image){const X=i.value.width,D=i.value.height,z=n.image.width/n.image.height,j=X/D;z>j?(n.image.width=X,n.image.height=X/z):(n.image.height=D,n.image.width=D*z),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},M.readAsDataURL(R)},m=R=>{n.isDragging=!0,n.startX=R.clientX-n.position.x,n.startY=R.clientY-n.position.y,window.addEventListener("mousemove",u),window.addEventListener("mouseup",h)},u=R=>{if(!n.isDragging&&!i.value)return;let M=R.clientX-n.startX,K=R.clientY-n.startY;if(i.value&&n.image){const J=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?M=Math.min(Math.max(M,0),i.value.width-n.image.width*n.scale):(M>0&&(M=0),M<J&&(M=J));const X=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?K=Math.min(Math.max(K,0),i.value.height-n.image.height*n.scale):(K>0&&(K=0),K<X&&(K=X)),n.position.x=M,n.position.y=K}a()},h=()=>{n.isDragging=!1,window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",h)},Z=R=>Math.max(n.minScale,Math.min(R,n.maxScale)),G=R=>{if(i.value){const M=i.value.width/2,K=i.value.height/2;n.position.x=M-(M-n.position.x)*R,n.position.y=K-(K-n.position.y)*R}},w=R=>{const M=n.scale,K=n.scale+R.deltaY*-.001;if(M===Z(K))return;n.scale=Z(K);const J=K/M;G(J),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:R,height:M}=A.value.getBoundingClientRect(),K=document.createElement("canvas");K.width=R,K.height=M;const J=K.getContext("2d");J&&n.image&&J.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const X=K.toDataURL("image/png"),D=atob(X.split(",")[1]),z=new ArrayBuffer(D.length),j=new Uint8Array(z);for(let gg=0;gg<D.length;gg++)j[gg]=D.charCodeAt(gg);const q=new Blob([j],{type:"image/png"});return e.image?new File([q],e.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const R=n.scale+n.stepScale;n.scale=Z(R),a()},scaleMinus:()=>{const R=n.scale-n.stepScale;n.scale=Z(R),a()},setScale:R=>{const M=n.scale,J=R/M;n.scale=Z(R),G(J),a()},startMove:m,scaleImage:w}),s.onMounted(()=>{l(),e.image&&d(e.image)}),(R,M)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[s.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:m,onWheel:s.withModifiers(w,["prevent"])},null,40,qqg)],8,$qg))}}),[["__scopeId","data-v-df483607"]]),IgI=C=>{const g=s.ref(C==null?void 0:C.defaultValue),I=C==null?void 0:C.min,e=C==null?void 0:C.max,t=C==null?void 0:C.step;s.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,e));return{value:g,min:I,max:e,step:t,getCorrectValue:i}},CgI=(C,g)=>new File([C],g,{type:C.type}),egI=["data-testid"],tgI=["data-testid"],igI=["data-testid"],AgI=["data-testid"],ngI=["data-testid"],lgI=["data-testid"],VM=fg(s.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(C,{emit:g}){const I=C,e=g,{max:t,min:i,step:A,value:n}=IgI({defaultValue:1,max:3,min:1,step:.1}),l=s.useId(),o=s.useTemplateRef("cropper"),a=s.reactive({openModal:!1});s.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,e("unmount-close")},m=G=>{n.value=G},u=()=>{n.value=n.value-A},h=()=>{n.value=n.value+A},Z=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,B=CgI(G,w);e("unmount-save",B),d()}}};return s.onUnmounted(()=>{d()}),s.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(s.openBlock(),s.createBlock(C0,s.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${s.unref(l)}`,onClose:d}),{default:s.withCtx(()=>[s.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content`},[s.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${s.unref(l)}-title`}," Изменение фото профиля ",8,tgI),s.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main`},[s.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main-cropped`},[s.createVNode(ggI,{ref_key:"cropper",ref:o,image:C.image,max:s.unref(t),min:s.unref(i),step:s.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),s.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-tools`},[s.createVNode(Xg,{name:s.unref(ug).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-iconMinus`,onClick:u},null,8,["name","data-testid"]),s.createVNode(KW,{max:s.unref(t),min:s.unref(i),step:s.unref(A),modelValue:s.unref(n),"onUpdate:modelValue":w[0]||(w[0]=B=>s.isRef(n)?n.value=B:null),"data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),s.createVNode(Xg,{name:s.unref(ug).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-IconPlus`,onClick:h},null,8,["name","data-testid"])],8,ngI)],8,AgI),s.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttons`},[s.createVNode(sC,{type:s.unref(MI).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-ButtonCancel`,onClick:d},{default:s.withCtx(()=>[...w[1]||(w[1]=[s.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),s.createVNode(sC,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttonSave`,onClick:Z},{default:s.withCtx(()=>[...w[2]||(w[2]=[s.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,lgI)],8,igI)],8,egI)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-65b5d91e"]]),NM={install(C,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const e=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(e)};C.mixin({mounted(){e(this.$el)}})}},sgI=["src"],MM=s.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(C,{expose:g,emit:I}){const e=C,t=I,i=s.reactive({isError:!1,rotate:0});s.watch(()=>e.src,()=>{i.isError=!1,i.rotate=0,s.nextTick(()=>{n()})});const A=s.ref(null),n=async()=>{try{if(!A.value||!e.src)return;const o=new Image;o.src=e.src,o.addEventListener("load",()=>{var Z;if(!A.value)return;const a=(Z=A.value)==null?void 0:Z.getContext("2d");if(!a)return;const d=o.width,m=o.height;let u=d,h=m;i.rotate%180!==0&&(u=m,h=d),A.value.width=u,A.value.height=h,a.save(),a.clearRect(0,0,u,h),a.translate(u/2,h/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},l=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,s.nextTick(()=>{n()})};return s.onMounted(()=>{s.nextTick(()=>{n()})}),g({rotateImage:l}),(o,a)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(hn)},null,8,sgI)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),Rz={Accordion:gV,Badges:ve,BreadCrumbs:Iy,Dialog:Dw,DragAndDrop:IV,Card:CV,Combobox:tV,Calendar:qY,Button:sC,Switch:DG,SelectList:Qc,Dropdown:by,Textarea:uN,Filter:eV,Icon:Xg,Input:AV,InputNumber:Gh,Picture:bN,PushNotification:ZN,Scroll:aN,Search:Hh,Modal:C0,Slider:oN,Checkbox:dN,Toggle:yW,UserMenu:mN,CopyIcon:GN,Loader:i0,FilterTag:wN,CircularProgress:WN,Popover:Mr,Table:BN,TableNew:VN,TableSimple:MN,TableRow:SW,TableRowNew:NN,TableTd:d0,TableTh:Rr,SectionTableRow:pN,HeadTableRow:o0,HeadTableRowNew:kW,ScrollWrapper:a0,ScrollWrapperNew:SQg,Radio:yN,Tooltip:s0,BaseFilter:YN,Range:KW,Tabs:RN,ContentEditor:YM,ModalCroppedAvatar:VM,Avatar:fW,TimePicker:Sw,SliderModal:pW,PdfPreview:dl,ImagePreview:MM,VideoPreview:e0,Skeleton:DW},fz=Object.freeze(Object.defineProperty({__proto__:null,Accordion:gV,Avatar:fW,Badges:ve,BadgesTypeEnum:pI,BaseFilter:YN,BreadCrumbs:Iy,Button:sC,ButtonTypeEnum:MI,Calendar:qY,Card:CV,Checkbox:dN,CheckboxCircularEnum:RW,CheckboxSizeEnum:MW,CircularProgress:WN,ColorsEnum:ap,Combobox:tV,ContentEditor:YM,CopyIcon:GN,Dialog:Dw,DragAndDrop:IV,Dropdown:by,Filter:eV,FilterTag:wN,HeadTableRow:o0,HeadTableRowNew:kW,Icon:Xg,IconNameEnum:ug,ImageExtensionsEnum:Sh,ImagePreview:MM,Input:AV,InputNumber:Gh,InputTypeEnum:iV,Loader:i0,MenuTypeEnum:QI,MessageTypeEnum:HW,Modal:C0,ModalCroppedAvatar:VM,PdfPreview:dl,Picture:bN,Popover:Mr,PushNotification:ZN,Radio:yN,Range:KW,Scroll:aN,ScrollWrapper:a0,Search:Hh,SectionTableRow:pN,SelectList:Qc,SizesEnum:it,Skeleton:DW,Slider:oN,SliderModal:pW,Switch:DG,Table:BN,TableNew:VN,TableRow:SW,TableRowNew:NN,TableSimple:MN,TableTd:d0,TableTh:Rr,Tabs:RN,TextFieldEnum:xw,Textarea:uN,TextareaTypeEnum:XW,TimePicker:Sw,Toggle:yW,Tooltip:s0,UserMenu:mN,VideoExtensionsEnum:Kh,VideoPreview:e0,default:{install:C=>{Object.keys(Rz).forEach(g=>{C.component("Y"+g,Rz[g])})}},getFirstTime:JD,getLastTime:vw,vuePluginRemoveTestid:NM},Symbol.toStringTag,{value:"Module"})),ogI={install(C){for(const g in fz){const I=fz[g];C.use(I).use(NM,{enabled:!1})}}};P.Accordion=gV,P.Avatar=fW,P.Badges=ve,P.BadgesTypeEnum=pI,P.BaseFilter=YN,P.BreadCrumbs=Iy,P.Button=sC,P.ButtonTypeEnum=MI,P.Calendar=qY,P.Card=CV,P.Checkbox=dN,P.CheckboxCircularEnum=RW,P.CheckboxSizeEnum=MW,P.CircularProgress=WN,P.ColorsEnum=ap,P.Combobox=tV,P.ContentEditor=YM,P.CopyIcon=GN,P.Dialog=Dw,P.DragAndDrop=IV,P.Dropdown=by,P.Filter=eV,P.FilterTag=wN,P.HeadTableRow=o0,P.HeadTableRowNew=kW,P.Icon=Xg,P.IconNameEnum=ug,P.ImageExtensionsEnum=Sh,P.ImagePreview=MM,P.Input=AV,P.InputNumber=Gh,P.InputTypeEnum=iV,P.Loader=i0,P.MenuTypeEnum=QI,P.MessageTypeEnum=HW,P.Modal=C0,P.ModalCroppedAvatar=VM,P.OnClickOutside=LO,P.OnLongPress=OO,P.PdfPreview=dl,P.Picture=bN,P.Popover=Mr,P.PushNotification=ZN,P.Radio=yN,P.Range=KW,P.Scroll=aN,P.ScrollWrapper=a0,P.Search=Hh,P.SectionTableRow=pN,P.SelectList=Qc,P.SizesEnum=it,P.Skeleton=DW,P.Slider=oN,P.SliderModal=pW,P.Switch=DG,P.Table=BN,P.TableNew=VN,P.TableRow=SW,P.TableRowNew=NN,P.TableSimple=MN,P.TableTd=d0,P.TableTh=Rr,P.Tabs=RN,P.TextFieldEnum=xw,P.Textarea=uN,P.TextareaTypeEnum=XW,P.TimePicker=Sw,P.Toggle=yW,P.Tooltip=s0,P.UseActiveElement=QO,P.UseBattery=UO,P.UseBrowserLocation=EO,P.UseClipboard=PO,P.UseColorMode=nQ,P.UseDark=lQ,P.UseDeviceMotion=sQ,P.UseDeviceOrientation=oQ,P.UseDevicePixelRatio=aQ,P.UseDevicesList=dQ,P.UseDocumentVisibility=cQ,P.UseDraggable=rQ,P.UseElementBounding=mQ,P.UseElementSize=hQ,P.UseElementVisibility=GQ,P.UseEyeDropper=WQ,P.UseFullscreen=BQ,P.UseGeolocation=pQ,P.UseIdle=yQ,P.UseImage=MQ,P.UseMouse=XQ,P.UseMouseInElement=HQ,P.UseMousePressed=DQ,P.UseNetwork=SQ,P.UseNow=KQ,P.UseObjectUrl=kQ,P.UseOffsetPagination=FQ,P.UseOnline=zQ,P.UsePageLeave=JQ,P.UsePointer=LQ,P.UsePointerLock=TQ,P.UsePreferredColorScheme=vQ,P.UsePreferredContrast=jQ,P.UsePreferredDark=xQ,P.UsePreferredLanguages=OQ,P.UsePreferredReducedMotion=QQ,P.UseScreenSafeArea=_Q,P.UseTimeAgo=eU,P.UseTimestamp=tU,P.UseVirtualList=iU,P.UseWindowFocus=AU,P.UseWindowSize=nU,P.UserMenu=mN,P.VOnClickOutside=Oc,P.VOnLongPress=Xf,P.VideoExtensionsEnum=Kh,P.VideoPreview=e0,P.VueToolsCore=$Jg,P.arrow=dTg,P.autoPlacement=DD,P.autoUpdate=XD,P.computePosition=SD,P.default=ogI,P.detectOverflow=eTg,P.flip=iTg,P.getFirstTime=JD,P.getLastTime=vw,P.getOverflowAncestors=mr,P.hide=nTg,P.inline=sTg,P.limitShift=oTg,P.offset=HD,P.platform=RD,P.shift=tTg,P.size=ATg,P.useFloating=FD,P.useSearch=LD,P.vElementHover=uQ,P.vElementSize=ZQ,P.vElementVisibility=wQ,P.vInfiniteScroll=RQ,P.vIntersectionObserver=fQ,P.vOnClickOutside=Oc,P.vOnKeyStroke=vO,P.vOnLongPress=Xf,P.vResizeObserver=UQ,P.vScroll=$Q,P.vScrollLock=CU,P.vuePluginRemoveTestid=NM,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|