@quoreadmin/ui 0.27.17 → 0.27.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- (function(ee,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(ee=typeof globalThis<"u"?globalThis:ee||self,l(ee.QuoreUI={},ee.Vue))})(this,function(ee,l){"use strict";var Ife=Object.defineProperty;var Ofe=(ee,l,ut)=>l in ee?Ife(ee,l,{enumerable:!0,configurable:!0,writable:!0,value:ut}):ee[l]=ut;var pe=(ee,l,ut)=>(Ofe(ee,typeof l!="symbol"?l+"":l,ut),ut),av=(ee,l,ut)=>{if(!l.has(ee))throw TypeError("Cannot "+ut)};var g=(ee,l,ut)=>(av(ee,l,"read from private field"),ut?ut.call(ee):l.get(ee)),M=(ee,l,ut)=>{if(l.has(ee))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(ee):l.set(ee,ut)},A=(ee,l,ut,me)=>(av(ee,l,"write to private field"),me?me.call(ee,ut):l.set(ee,ut),ut);var Gn=(ee,l,ut,me)=>({set _(M5){A(ee,l,M5,ut)},get _(){return g(ee,l,me)}}),x=(ee,l,ut)=>(av(ee,l,"access private method"),ut);var jc,Qy,Ff,lv,jf,Sl,Ml,Jr,El,zf,Hf,h3,JD,p3,eN,m3,tN,zc,Xy,g3,nN,Uf,cv,Zf,Al,Tl,y3,rN,b3,iN,w3,oN,v3,Wf,C3,Nr,qf,uv,jt,qs,Kf,zt,GD,k3,sN,Hc,ar,Ot,en,Uc,Eo,Zc,ei,Ks,Wc,xl,Di,ti,Il,Gf,Yf,qc,Qf,Ni,Gs,Kc,Ys,Pi,M3,Qs,Xf,Xs,Ol,Jf,eh,Ht,He,Ao,Dl,th,nh,Js,_i,To,rh,Gc,Jy,ih,dv,E3,aN,A3,lN,Yc,e5,T3,cN,x3,uN,I3,dN,oh,fv,O3,fN,sh,hv,ah,pv,D3,hN,tn,On,Li,Ia,N3,pN,P3,mN,lh,mv,_3,gN,Nl,K1,ch,gv,Ut,Bi,ni,Ri,lr,Xc,$i,Wn,xo,Pl,Vi,Jc,t5,eu,n5,_l,ri,lt,tu,Ll,nn,Bl,ea,uh,Rl,ta,dh,$l,Io,Fi,nu,ru,_r,fh,L3,hh,yv,ph,bv,mh,wv,B3,yN,R3,bN,gh,vv,yh,Cv,bh,kv,$3,wN,wh,Sv,V3,vN,F3,CN,j3,kN,vh,Mv,Vl,G1,Fl,jl,Zt,z3,SN,Ch,iu,kh,Ev,Sh,Av,Mh,Eh,U3,MN,Z3,EN,ou,r5,zl,Ah,Th,xh,Ih,su,na,Ke,au,lu,Oh,Tv,YD,ra,qn,Dh,Nh,Hl,Oo,Ph,_h,Ul,cu,uu,ia,du,Lh,fu,Zl,Bh,Rh,Wl,ql,oa,hu,W3,AN,q3,TN,$h,xv,pu,i5,K3,xN,G3,IN,Kl,Gl,ji,Do,hn,Y3,Yl,qt,gn,sa,ud,aa,dd,mu,o5,la,fd,Q3,ON,Vh,Iv,ca,hd,Ql,Y1,Xl,Q1,Fh,Ov,Jl,X1,QD,X3,ua,No,da,pd,gu,s5,e0,ey,ty,t0,n0,yu,a5,bu,l5,Po,zi,wu,vu,Hi,r0,J1,ii,jh,Dv,fa,ha,i0,s0,Cu,ku,zh,Nv,_o,B0,ny,DN,ry,NN,Su,iy,oy,Mu,a0,ht,Lo,Eu,Hh,Uh,Au,Bo,oi,Ro,Zh,$o,Wh,l0,c0,Tu,c5,qh,Pv,sy,PN,ay,_N,ly,LN,cy,BN,xu,u5,Iu,d5,Kh,_v,Gh,Yh,Qh,Xh,Jh,e1,t1,Lv,n1,u0,d0,uy,RN,r1,Bv,si,cr,i1,f0,ur,Ou,dy,$N,fy,VN,hy,FN,Du,f5,Nu,h5,Pu,p5,py,jN,o1,Rv,my,zN,s1,pa,ai,gy,HN,_u,m5,yy,UN,by,ZN,a1,$v,l1,Lu,Ui,Vo,Bu,Ru,Zi,xe,h0,p0,c1,u1,$u,Vu,ma,d1,wy,vy,f1,Vv,Fu,m0,jo,h1,dr,p1,wt,g0,ep,y0,tp,Cy,WN,m1,g1,li,b0,ju,Dt,y1,zu,b1,w1,ci,Hu,v1,Fv,C1,jv,ky,qN,zo,R0,Sy,KN,Wi,Oa,Uu,k1,ga,w0,Zu,Lr,S1,M1,v0,ui,An,fr,Wu,C0,Nt,qu,qi,E1,A1,zv,T1,Hv,My,GN,Ey,YN,Ay,QN,x1,Uv,k0,np,ya,md,Ty,XN,Ku,g5,S0,rp,xy,JN,Iy,eP,Oy,tP,Dy,nP,M0,E0,Ki,Uo,Br,A0,T0,x0,Zo,Gu,I0,O0,ba,Ny,rP,Py,iP,_y,oP,Ly,sP,I1,Zv,By,aP,O1,Wv,Ry,lP,$y,cP,Vy,uP,Fy,dP,jy,fP,Wo,$0,D1,qv,N1,Kv,P1,Gv,Yu,y5,Qu,b5,wa,gd,_1,Yv,Xu,w5,zy,hP,L1,Qv,Hy,pP,Uy,mP,B1,Xv,Ju,v5,D0,ip,vt,rn,va,qo,Ca,ed,Gi,Ko,Yi,Rr,R1,N0,op,P0,sp,td,C5,$1,Jv,Zy,gP,V1,e8,F1,t8,nd,k5,Wy,yP,_0,rd,Qi,ka,Go,hr,Sa,id,od,Tn,Yo,ce,Ma,qy,bP,z1,n8,H1,r8,U1,i8,sd,S5,Xi,Z1,Pt,Ea,W1,o8,q1,s8,Ky,wP;const ut=l.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e,slots:t}){const r=l.computed({get:()=>!!n.modelValue,set:d=>e("update:modelValue",d)}),i=l.computed(()=>!!t.text),o=l.computed(()=>{const d=r.value?"Hide":"Show";return s.value?d:n.triggerText}),s=l.computed(()=>n.variant==="bubble"),a=l.computed(()=>["leading-normal font-bold",{"text-md":n.variant==="white"},{"text-base":n.variant==="gray"},{"flex-grow":n.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":n.variant==="bubble"}]),c=l.computed(()=>n.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:a,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),me=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},M5=["value"],CP={key:0,class:"flex-grow border-t border-gray-20"},kP={key:1,class:"flex-grow border-t border-gray-20"};function SP(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{value:n.modelValue,class:l.normalizeClass(["accordion","accordion-"+n.variant,{"is-open":!!n.modelValue}])},[l.renderSlot(n.$slots,"toggle",l.normalizeProps(l.guardReactiveProps({onToggle:n.onToggle})),()=>[l.createElementVNode("div",{class:l.normalizeClass(["accordion-trigger",n.triggerClass,{"py-5":n.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...a)=>n.onToggle&&n.onToggle(...a))},[n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",CP)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"w-full":!n.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":n.isBubbleAccordion}])},[n.hasTextSlot?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.triggerTextClasses)},[l.renderSlot(n.$slots,"text",{},void 0,!0)],2)):(l.openBlock(),l.createElementBlock("h4",{key:1,class:l.normalizeClass(n.triggerTextClasses)},l.toDisplayString(n.triggerTextValue),3)),l.renderSlot(n.$slots,"additionalInfo",{},void 0,!0),l.createVNode(s,{icon:"chevron-down",color:"gray-40",size:n.triggerIconSize,type:"",class:l.normalizeClass(["shrink-0 mr-4",n.chevronClass,{open:!!n.show}])},null,8,["size","class"])],2),n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",kP)):l.createCommentVNode("",!0)],2)],!0),l.createVNode(l.Transition,{name:"slide-down"},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["accordion-content",n.contentClass,{"p-0":n.variant==="custom"}])},[l.renderSlot(n.$slots,"content",{},void 0,!0)],2)):l.createCommentVNode("",!0)]),_:3})],10,M5)}const MP=me(ut,[["render",SP],["__scopeId","data-v-c7b4341d"]]),EP=l.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const n=l.ref(!0),e=l.ref(!1);return{validSrc:n,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{n.value=!1}}}}),AP={class:"avatar-text"},TP=["src"];function xP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["avatar flex justify-center items-center",[`avatar-${n.size}`,`bg-${n.bgColor}`]])},[l.createElementVNode("span",AP,l.toDisplayString(n.text),1),n.src&&n.validSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"avatar-image",src:n.src,onLoad:e[0]||(e[0]=(...s)=>n.onImageLoad&&n.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>n.onImageError&&n.onImageError(...s))},null,40,TP)):l.createCommentVNode("",!0)],2)}const d8=me(EP,[["render",xP],["__scopeId","data-v-ebde1d6f"]]),IP=l.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),OP={class:"banner-text mb-0"};function DP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-banner flex","bg-"+n.backgroundColor,"text-"+n.textColor]),onClick:e[0]||(e[0]=s=>n.$emit("bannerClick"))},[l.createElementVNode("p",OP,[l.renderSlot(n.$slots,"default",{},void 0,!0)])],2)}const NP=me(IP,[["render",DP],["__scopeId","data-v-8edf76be"]]),PP=l.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(n,e){const t=l.computed(function(){return n.color?`bg-${n.color}`:""}),r=l.computed(function(){return!!e.slots.icon});return{bgColor:t,hasIcon:r}}}),_P={key:1,class:"badge-text"};function LP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["badge",n.shape,n.bgColor])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock("p",_P,[l.renderSlot(n.$slots,"text",{},void 0,!0)]))],2)}const Da=me(PP,[["render",LP],["__scopeId","data-v-c8e6730f"]]);function BP(){try{return"constructor"in GestureEvent}catch{return!1}}function f8(){return typeof window<"u"&&"ontouchstart"in window}function h8(n){return"pointerId"in n?null:n.type==="touchend"?n.changedTouches:n.targetTouches}function p8(n){return Array.from(h8(n)).map(e=>e.identifier)}function m8(n){const e="buttons"in n?n.buttons:0,{shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}=n;return{buttons:e,shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}}const RP=n=>n;function g8(n,e=RP){const t=h8(n),{clientX:r,clientY:i}=t?t[0]:n;return e([r,i])}function y8(){}function b8(...n){return n.length===0?y8:n.length===1?n[0]:function(){var e;for(let t of n)e=t.apply(this,arguments)||e;return e}}function Jo(n,e){if(n===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");n=e}return Array.isArray(n)?n:[n,n]}function w8(n,...e){return typeof n=="function"?n(...e):n}function yd(n){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:y8,canceled:!1,memo:void 0,args:void 0,...n}}function E5(){const n={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=yd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),t=yd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:n,drag:e,pinch:t,wheel:r,move:i,scroll:o}}var $P=Object.defineProperty,VP=(n,e,t)=>e in n?$P(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Dn=(n,e,t)=>(VP(n,typeof e!="symbol"?e+"":e,t),t);class FP{constructor(e){this.classes=e,Dn(this,"nativeRefs"),Dn(this,"config"),Dn(this,"handlers"),Dn(this,"state"),Dn(this,"timeouts"),Dn(this,"domListeners"),Dn(this,"windowListeners"),Dn(this,"pointerIds",new Set),Dn(this,"touchIds",new Set),Dn(this,"supportsTouchEvents",f8()),Dn(this,"supportsGestureEvents",BP()),Dn(this,"bind",(...t)=>{const r={};for(let i of this.classes)new i(this,t).addBindings(r);for(let i in this.nativeRefs)hi(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:t}));return this.config.domTarget?WP(this,r):qP(this,r)}),Dn(this,"clean",()=>{const{eventOptions:t,domTarget:r}=this.config,i=l.unref(r);i&&bd(i,v8(this.domListeners),t),Object.values(this.timeouts).forEach(clearTimeout),HP(this)}),Dn(this,"reset",()=>{this.state=E5()}),this.classes=e,this.state=E5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function jP(n,e){"pointerId"in e?n.pointerIds.add(e.pointerId):n.touchIds=new Set(p8(e))}function zP(n,e){"pointerId"in e?n.pointerIds.delete(e.pointerId):p8(e).forEach(t=>n.touchIds.delete(t))}function HP(n){const{config:{window:e,eventOptions:t},windowListeners:r}=n,i=l.unref(e);if(i){for(let o in r){const s=r[o];bd(i,s,t)}n.windowListeners={}}}function UP({config:n,windowListeners:e},t,r=n.eventOptions){const i=l.unref(n.window);i&&(bd(i,e[t],r),delete e[t])}function ZP({config:n,windowListeners:e},t,r=[],i=n.eventOptions){const o=l.unref(n.window);o&&(bd(o,e[t],i),C8(o,e[t]=r,i))}function WP({config:n,domListeners:e},t){const{eventOptions:r,domTarget:i}=n,o=l.unref(i);if(!o)throw new Error("domTarget must be defined");bd(o,v8(e),r);for(let[s,a]of Object.entries(t)){const c=s.slice(2).toLowerCase();e.push([c,b8(...a)])}C8(o,e,r)}function qP({config:n},e){const t={},r=n.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],a=i+r;t[a]=b8(...s)}return t}function v8(n=[]){return n.splice(0,n.length)}function hi(n,e,t){n[e]||(n[e]=[]),n[e].push(t)}function C8(n,e=[],t={}){if(n)for(let[r,i]of e)n.addEventListener(r,i,t)}function bd(n,e=[],t={}){if(n)for(let[r,i]of e)n.removeEventListener(r,i,t)}function A5(n,e){return n.map((t,r)=>t+e[r])}function k8(n,e){return n.map((t,r)=>t-e[r])}function T5(n){return Math.hypot(...n)}function KP(n,e,t){const r=T5(e),i=r===0?0:1/r,o=t===0?0:1/t,s=o*r,a=e.map(d=>o*d),c=e.map(d=>i*d),u=T5(n);return{velocities:a,velocity:s,distance:u,direction:c}}function x5(n){return Math.sign?Math.sign(n):+(n>0)-+(n<0)||+n}function GP(n,e,t){return Math.max(e,Math.min(n,t))}function YP(n,e){return Math.pow(n,e*5)}function S8(n,e,t){return e===0||Math.abs(e)===1/0?YP(n,t):n*e*t/(e+t*n)}function M8(n,e,t,r=.15){return r===0?GP(n,e,t):n<e?-S8(e-n,t-e,r)+e:n>t?+S8(n-t,t-e,r)+t:n}var QP=Object.defineProperty,XP=(n,e,t)=>e in n?QP(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ap=(n,e,t)=>(XP(n,typeof e!="symbol"?e+"":e,t),t);const Na=new Map,JP=n=>n;class e_{constructor(e,t=[]){this.controller=e,this.args=t,ap(this,"debounced",!0),ap(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),ap(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),ap(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,u=this.state._active;this.state.active=u,this.state.first=u&&!c,this.state.last=c&&!u,this.controller.state.shared[this.ingKey]=u}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},a=this.handler(s);return this.state.memo=a!==void 0?a:this.state.memo,s}),this.controller=e,this.args=t}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||JP}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,t){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:t,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:a,lastOffset:c,movement:u}=this.state,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=a[0]===!1?E8(d[0],f[0]):a[0],p=a[1]===!1?E8(d[1],f[1]):a[1],m=this.checkIntentionality([h,p],d);if(m._blocked)return{...m,_movement:d,delta:[0,0]};const y=m._intentional,b=d;let w=[y[0]!==!1?d[0]-y[0]:0,y[1]!==!1?d[1]-y[1]:0];const v=A5(w,c),k=s?t:[0,0];return w=A8(i,A5(w,o),k),{...m,intentional:y[0]!==!1||y[1]!==!1,_initial:o,_movement:b,movement:w,values:e,offset:A8(i,v,k),delta:k8(w,u)}}clean(){this.clearTimeout()}}function E8(n,e){return Math.abs(n)>=e?x5(n)*e:!1}function A8(n,[e,t],[r,i]){const[[o,s],[a,c]]=n;return[M8(e,o,s,r),M8(t,a,c,i)]}function I5({state:n},e,t){const{timeStamp:r,type:i}=e,o=n.values,s=t?0:r-n.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function t_({state:n,config:e,stateKey:t,args:r},i,o){const s=n.offset,a=o.timeStamp,{initial:c,bounds:u}=e,d={...E5()[t],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:a};return{...d,_initial:w8(c,d),_bounds:w8(u,d)}}class n_ extends e_{getInternalMovement(e,t){return k8(e,t.initial)}checkIntentionality(e,t){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=t.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,t){const r=this.getMovement(e);if(!r._blocked){const i=t.timeStamp-this.state.timeStamp;Object.assign(r,KP(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var r_=Object.defineProperty,i_=(n,e,t)=>e in n?r_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Kt=(n,e,t)=>(i_(n,typeof e!="symbol"?e+"":e,t),t);const o_=3;function T8(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}class s_ extends n_{constructor(){super(...arguments),Kt(this,"ingKey","dragging"),Kt(this,"stateKey","drag"),Kt(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:t,pointerId:r}=e;t&&"setPointerCapture"in t&&t.setPointerCapture(r),this.updateGestureState({_dragTarget:t,_dragPointerId:r})}),Kt(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:t}=this.state;if(t&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(t)))try{e.releasePointerCapture(t)}catch{}}),Kt(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),Kt(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),Kt(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),Kt(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),Kt(this,"setUpWindowScrollDetection",e=>{T8(e),ZP(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),Kt(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,T8(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),Kt(this,"setStartState",e=>{const t=g8(e,this.transform);this.updateSharedState(m8(e)),this.updateGestureState({...t_(this,t,e),...I5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(t))}),Kt(this,"onDragStart",e=>{jP(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),Kt(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let t;if(document.pointerLockElement){const{movementX:c,movementY:u}=e;t=A5(this.transform([c,u]),this.state.values)}else t=g8(e,this.transform);const r=this.getKinematics(t,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=m8(e);this.updateSharedState(i);const o=I5(this,e),s=T5(r._movement);let{_dragIsTap:a}=this.state;a&&s>=o_&&(a=!1),this.updateGestureState({...o,...r,_dragIsTap:a}),this.fireGestureHandler()}),Kt(this,"onDragEnd",e=>{if(zP(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const t=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[a,c]=this.state._intentional,[u,d]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,m={...I5(this,e),...this.getMovement(this.state.values)},y=[0,0];m.elapsedTime<p&&(a!==!1&&Math.abs(r)>u&&Math.abs(o)>f&&(y[0]=x5(r)),c!==!1&&Math.abs(i)>d&&Math.abs(s)>h&&(y[1]=x5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...m,tap:t,swipe:y}),this.fireGestureHandler(this.config.filterTaps&&t===!0)}),Kt(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),UP(this.controller,this.stateKey)}),Kt(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),l.nextTick(this.fireGestureHandler))}),Kt(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,t=!1){!this.state._active||this.state._dragStarted||(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(hi(e,"onTouchStart",this.onDragStart),hi(e,"onTouchMove",this.onDragChange),hi(e,"onTouchEnd",this.onDragEnd),hi(e,"onTouchCancel",this.onDragEnd)):(hi(e,"onPointerDown",this.onDragStart),hi(e,"onPointerMove",this.onDragChange),hi(e,"onPointerUp",this.onDragEnd),hi(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const t=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";hi(e,t,this.onClick)}}}function a_(n,e){let t,r=[],i,o=!1;function s(...a){return o&&t===this&&e(a,r)||(i=n.apply(this,a),o=!0,t=this,r=a),i}return s}function lp(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;let t,r,i;if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!lp(n[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=n.entries();!(r=o.next()).done;)if(!lp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&n instanceof Element)return!1;for(r=t;r--!==0;)if(!(i[r]==="_owner"&&n.$$typeof)&&!lp(n[i[r]],e[i[r]]))return!1;return!0}return n!==n&&e!==e}function l_(n,e){try{return lp(n,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}function O5(n={},e){const t={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":t[r]=i.call(t,n[r],r,n);break;case"object":t[r]=O5(n[r],i);break;case"boolean":i&&(t[r]=n[r]);break}return t}const c_=180,u_=.15,d_=.5,f_=50,h_=250,x8={...{threshold(n=0){return Jo(n)},rubberband(n=0){switch(n){case!0:return Jo(u_);case!1:return Jo(0);default:return Jo(n)}},enabled(n=!0){return n},triggerAllEvents(n=!1){return n},initial(n=0){return typeof n=="function"?n:Jo(n)},transform:!0},axis:!0,lockDirection(n=!1){return n},bounds(n={}){if(typeof n=="function")return o=>x8.bounds(n(o));const{left:e=-1/0,right:t=1/0,top:r=-1/0,bottom:i=1/0}=n;return[[e,t],[r,i]]}},p_=typeof window<"u"&&window.document&&window.document.createElement,m_={enabled(n=!0){return n},domTarget:!0,window(n=p_?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform:!0},g_={...x8,useTouch(n=!0){return n&&f8()},preventWindowScrollY(n=!1){return n},threshold(n,e,{filterTaps:t=!1,lockDirection:r=!1,axis:i=void 0}){const o=Jo(n,t?3:r||i?1:0);return this.filterTaps=t,o},swipeVelocity(n=d_){return Jo(n)},swipeDistance(n=f_){return Jo(n)},swipeDuration(n=h_){return n},delay(n=0){switch(n){case!0:return c_;case!1:return 0;default:return n}}};function y_(n){return O5(n,m_)}function b_(n={}){return O5(n,g_)}function w_({domTarget:n,eventOptions:e,window:t,enabled:r,...i}){const o=y_({domTarget:n,eventOptions:e,window:t,enabled:r});return o.drag=b_(i),o}function v_(n,e,t={}){const r=C_(n),i=new FP(r);return i.config=e,i.handlers=n,i.nativeRefs=t,l.getCurrentInstance()&&!e.manual&&(l.onMounted(i.bind),l.onUnmounted(i.clean)),i}function C_(n){const e=new Set;return n.drag&&e.add(Na.get("drag")),n.wheel&&e.add(Na.get("wheel")),n.scroll&&e.add(Na.get("scroll")),n.move&&e.add(Na.get("move")),n.pinch&&e.add(Na.get("pinch")),n.hover&&e.add(Na.get("hover")),e}function I8(n,e={}){Na.set("drag",s_);const t=l.ref();return t.value||(t.value=a_(w_,l_)),v_({drag:n},t.value(e))}let k_=Symbol("headlessui.useid"),S_=0;function M_(){return l.inject(k_,()=>`${++S_}`)()}function O8(n){var e;if(n==null||n.value==null)return null;let t=(e=n.value.$el)!=null?e:n.value;return t instanceof Node?t:null}function wd(n,e,...t){if(n in e){let i=e[n];return typeof i=="function"?i(...t):i}let r=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wd),r}var E_=Object.defineProperty,A_=(n,e,t)=>e in n?E_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,D8=(n,e,t)=>(A_(n,typeof e!="symbol"?e+"":e,t),t);let T_=class{constructor(){D8(this,"current",this.detect()),D8(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},x_=new T_;var N8=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(N8||{}),es=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(es||{});function P8({visible:n=!0,features:e=0,ourProps:t,theirProps:r,...i}){var o;let s=L8(r,t),a=Object.assign(i,{props:s});if(n||e&2&&s.static)return D5(a);if(e&1){let c=(o=s.unmount)==null||o?0:1;return wd(c,{0(){return null},1(){return D5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return D5(a)}function D5({props:n,attrs:e,slots:t,slot:r,name:i}){var o,s;let{as:a,...c}=B8(n,["unmount","static"]),u=(o=t.default)==null?void 0:o.call(t,r),d={};if(r){let f=!1,h=[];for(let[p,m]of Object.entries(r))typeof m=="boolean"&&(f=!0),m===!0&&h.push(p);f&&(d["data-headlessui-state"]=h.join(" "))}if(a==="template"){if(u=_8(u??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=u??[];if(!I_(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(y=>y.trim()).filter((y,b,w)=>w.indexOf(y)===b).sort((y,b)=>y.localeCompare(b)).map(y=>` - ${y}`).join(`
1
+ (function(ee,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(ee=typeof globalThis<"u"?globalThis:ee||self,l(ee.QuoreUI={},ee.Vue))})(this,function(ee,l){"use strict";var Ife=Object.defineProperty;var Ofe=(ee,l,ut)=>l in ee?Ife(ee,l,{enumerable:!0,configurable:!0,writable:!0,value:ut}):ee[l]=ut;var pe=(ee,l,ut)=>(Ofe(ee,typeof l!="symbol"?l+"":l,ut),ut),av=(ee,l,ut)=>{if(!l.has(ee))throw TypeError("Cannot "+ut)};var g=(ee,l,ut)=>(av(ee,l,"read from private field"),ut?ut.call(ee):l.get(ee)),M=(ee,l,ut)=>{if(l.has(ee))throw TypeError("Cannot add the same private member more than once");l instanceof WeakSet?l.add(ee):l.set(ee,ut)},A=(ee,l,ut,me)=>(av(ee,l,"write to private field"),me?me.call(ee,ut):l.set(ee,ut),ut);var Gn=(ee,l,ut,me)=>({set _(M5){A(ee,l,M5,ut)},get _(){return g(ee,l,me)}}),x=(ee,l,ut)=>(av(ee,l,"access private method"),ut);var jc,Qy,Ff,lv,jf,Sl,Ml,Jr,El,zf,Hf,h3,JD,p3,eN,m3,tN,zc,Xy,g3,nN,Uf,cv,Zf,Al,Tl,y3,rN,b3,iN,w3,oN,v3,Wf,C3,Nr,qf,uv,jt,qs,Kf,zt,GD,k3,sN,Hc,ar,Ot,en,Uc,Eo,Zc,ei,Ks,Wc,xl,Di,ti,Il,Gf,Yf,qc,Qf,Ni,Gs,Kc,Ys,Pi,M3,Qs,Xf,Xs,Ol,Jf,eh,Ht,He,Ao,Dl,th,nh,Js,_i,To,rh,Gc,Jy,ih,dv,E3,aN,A3,lN,Yc,e5,T3,cN,x3,uN,I3,dN,oh,fv,O3,fN,sh,hv,ah,pv,D3,hN,tn,On,Li,Ia,N3,pN,P3,mN,lh,mv,_3,gN,Nl,K1,ch,gv,Ut,Bi,ni,Ri,lr,Xc,$i,Wn,xo,Pl,Vi,Jc,t5,eu,n5,_l,ri,lt,tu,Ll,nn,Bl,ea,uh,Rl,ta,dh,$l,Io,Fi,nu,ru,_r,fh,L3,hh,yv,ph,bv,mh,wv,B3,yN,R3,bN,gh,vv,yh,Cv,bh,kv,$3,wN,wh,Sv,V3,vN,F3,CN,j3,kN,vh,Mv,Vl,G1,Fl,jl,Zt,z3,SN,Ch,iu,kh,Ev,Sh,Av,Mh,Eh,U3,MN,Z3,EN,ou,r5,zl,Ah,Th,xh,Ih,su,na,Ke,au,lu,Oh,Tv,YD,ra,qn,Dh,Nh,Hl,Oo,Ph,_h,Ul,cu,uu,ia,du,Lh,fu,Zl,Bh,Rh,Wl,ql,oa,hu,W3,AN,q3,TN,$h,xv,pu,i5,K3,xN,G3,IN,Kl,Gl,ji,Do,hn,Y3,Yl,qt,gn,sa,ud,aa,dd,mu,o5,la,fd,Q3,ON,Vh,Iv,ca,hd,Ql,Y1,Xl,Q1,Fh,Ov,Jl,X1,QD,X3,ua,No,da,pd,gu,s5,e0,ey,ty,t0,n0,yu,a5,bu,l5,Po,zi,wu,vu,Hi,r0,J1,ii,jh,Dv,fa,ha,i0,s0,Cu,ku,zh,Nv,_o,B0,ny,DN,ry,NN,Su,iy,oy,Mu,a0,ht,Lo,Eu,Hh,Uh,Au,Bo,oi,Ro,Zh,$o,Wh,l0,c0,Tu,c5,qh,Pv,sy,PN,ay,_N,ly,LN,cy,BN,xu,u5,Iu,d5,Kh,_v,Gh,Yh,Qh,Xh,Jh,e1,t1,Lv,n1,u0,d0,uy,RN,r1,Bv,si,cr,i1,f0,ur,Ou,dy,$N,fy,VN,hy,FN,Du,f5,Nu,h5,Pu,p5,py,jN,o1,Rv,my,zN,s1,pa,ai,gy,HN,_u,m5,yy,UN,by,ZN,a1,$v,l1,Lu,Ui,Vo,Bu,Ru,Zi,xe,h0,p0,c1,u1,$u,Vu,ma,d1,wy,vy,f1,Vv,Fu,m0,jo,h1,dr,p1,wt,g0,ep,y0,tp,Cy,WN,m1,g1,li,b0,ju,Dt,y1,zu,b1,w1,ci,Hu,v1,Fv,C1,jv,ky,qN,zo,R0,Sy,KN,Wi,Oa,Uu,k1,ga,w0,Zu,Lr,S1,M1,v0,ui,An,fr,Wu,C0,Nt,qu,qi,E1,A1,zv,T1,Hv,My,GN,Ey,YN,Ay,QN,x1,Uv,k0,np,ya,md,Ty,XN,Ku,g5,S0,rp,xy,JN,Iy,eP,Oy,tP,Dy,nP,M0,E0,Ki,Uo,Br,A0,T0,x0,Zo,Gu,I0,O0,ba,Ny,rP,Py,iP,_y,oP,Ly,sP,I1,Zv,By,aP,O1,Wv,Ry,lP,$y,cP,Vy,uP,Fy,dP,jy,fP,Wo,$0,D1,qv,N1,Kv,P1,Gv,Yu,y5,Qu,b5,wa,gd,_1,Yv,Xu,w5,zy,hP,L1,Qv,Hy,pP,Uy,mP,B1,Xv,Ju,v5,D0,ip,vt,rn,va,qo,Ca,ed,Gi,Ko,Yi,Rr,R1,N0,op,P0,sp,td,C5,$1,Jv,Zy,gP,V1,e8,F1,t8,nd,k5,Wy,yP,_0,rd,Qi,ka,Go,hr,Sa,id,od,Tn,Yo,ue,Ma,qy,bP,z1,n8,H1,r8,U1,i8,sd,S5,Xi,Z1,Pt,Ea,W1,o8,q1,s8,Ky,wP;const ut=l.defineComponent({name:"QAccordion",props:{modelValue:{type:[Boolean,Number],default:!1},variant:{type:String,default:"white"},triggerText:{type:String,default:""},triggerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},chevronClass:{type:[String,Array,Object],default:""},chevronSize:{type:String,default:""}},emits:["update:modelValue"],setup(n,{emit:e,slots:t}){const r=l.computed({get:()=>!!n.modelValue,set:d=>e("update:modelValue",d)}),i=l.computed(()=>!!t.text),o=l.computed(()=>{const d=r.value?"Hide":"Show";return s.value?d:n.triggerText}),s=l.computed(()=>n.variant==="bubble"),a=l.computed(()=>["leading-normal font-bold",{"text-md":n.variant==="white"},{"text-base":n.variant==="gray"},{"flex-grow":n.variant!=="bubble"},{"flex-shrink mr-2 text-gray-40 text-sm":n.variant==="bubble"}]),c=l.computed(()=>n.chevronSize||(s.value?"sm":"md"));return{show:r,hasTextSlot:i,triggerTextClasses:a,isBubbleAccordion:s,triggerTextValue:o,triggerIconSize:c,onToggle:()=>{r.value=!r.value}}}}),me=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},M5=["value"],CP={key:0,class:"flex-grow border-t border-gray-20"},kP={key:1,class:"flex-grow border-t border-gray-20"};function SP(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{value:n.modelValue,class:l.normalizeClass(["accordion","accordion-"+n.variant,{"is-open":!!n.modelValue}])},[l.renderSlot(n.$slots,"toggle",l.normalizeProps(l.guardReactiveProps({onToggle:n.onToggle})),()=>[l.createElementVNode("div",{class:l.normalizeClass(["accordion-trigger",n.triggerClass,{"py-5":n.isBubbleAccordion}]),onClick:e[0]||(e[0]=(...a)=>n.onToggle&&n.onToggle(...a))},[n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",CP)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(["flex items-center",{"w-full":!n.isBubbleAccordion},{"border border-gray-20 rounded-full px-8 py-2 w-32":n.isBubbleAccordion}])},[n.hasTextSlot?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.triggerTextClasses)},[l.renderSlot(n.$slots,"text",{},void 0,!0)],2)):(l.openBlock(),l.createElementBlock("h4",{key:1,class:l.normalizeClass(n.triggerTextClasses)},l.toDisplayString(n.triggerTextValue),3)),l.renderSlot(n.$slots,"additionalInfo",{},void 0,!0),l.createVNode(s,{icon:"chevron-down",color:"gray-40",size:n.triggerIconSize,type:"",class:l.normalizeClass(["shrink-0 mr-4",n.chevronClass,{open:!!n.show}])},null,8,["size","class"])],2),n.isBubbleAccordion?(l.openBlock(),l.createElementBlock("div",kP)):l.createCommentVNode("",!0)],2)],!0),l.createVNode(l.Transition,{name:"slide-down"},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["accordion-content",n.contentClass,{"p-0":n.variant==="custom"}])},[l.renderSlot(n.$slots,"content",{},void 0,!0)],2)):l.createCommentVNode("",!0)]),_:3})],10,M5)}const MP=me(ut,[["render",SP],["__scopeId","data-v-c7b4341d"]]),EP=l.defineComponent({name:"QAvatar",props:{size:{type:String,default:"sm"},text:{type:[String],default:""},bgColor:{type:String,default:"teal-20"},src:{type:String,default:""}},setup(){const n=l.ref(!0),e=l.ref(!1);return{validSrc:n,isLoaded:e,onImageLoad:()=>{e.value=!0},onImageError:()=>{n.value=!1}}}}),AP={class:"avatar-text"},TP=["src"];function xP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["avatar flex justify-center items-center",[`avatar-${n.size}`,`bg-${n.bgColor}`]])},[l.createElementVNode("span",AP,l.toDisplayString(n.text),1),n.src&&n.validSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"avatar-image",src:n.src,onLoad:e[0]||(e[0]=(...s)=>n.onImageLoad&&n.onImageLoad(...s)),onError:e[1]||(e[1]=(...s)=>n.onImageError&&n.onImageError(...s))},null,40,TP)):l.createCommentVNode("",!0)],2)}const d8=me(EP,[["render",xP],["__scopeId","data-v-ebde1d6f"]]),IP=l.defineComponent({props:{backgroundColor:{type:String,default:"blue-20"},textColor:{type:String,default:"white"}}}),OP={class:"banner-text mb-0"};function DP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-banner flex","bg-"+n.backgroundColor,"text-"+n.textColor]),onClick:e[0]||(e[0]=s=>n.$emit("bannerClick"))},[l.createElementVNode("p",OP,[l.renderSlot(n.$slots,"default",{},void 0,!0)])],2)}const NP=me(IP,[["render",DP],["__scopeId","data-v-8edf76be"]]),PP=l.defineComponent({name:"QBadge",props:{color:{type:String,default:""},shape:{type:String,default:"circle"}},setup(n,e){const t=l.computed(function(){return n.color?`bg-${n.color}`:""}),r=l.computed(function(){return!!e.slots.icon});return{bgColor:t,hasIcon:r}}}),_P={key:1,class:"badge-text"};function LP(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["badge",n.shape,n.bgColor])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):(l.openBlock(),l.createElementBlock("p",_P,[l.renderSlot(n.$slots,"text",{},void 0,!0)]))],2)}const Da=me(PP,[["render",LP],["__scopeId","data-v-c8e6730f"]]);function BP(){try{return"constructor"in GestureEvent}catch{return!1}}function f8(){return typeof window<"u"&&"ontouchstart"in window}function h8(n){return"pointerId"in n?null:n.type==="touchend"?n.changedTouches:n.targetTouches}function p8(n){return Array.from(h8(n)).map(e=>e.identifier)}function m8(n){const e="buttons"in n?n.buttons:0,{shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}=n;return{buttons:e,shiftKey:t,altKey:r,metaKey:i,ctrlKey:o}}const RP=n=>n;function g8(n,e=RP){const t=h8(n),{clientX:r,clientY:i}=t?t[0]:n;return e([r,i])}function y8(){}function b8(...n){return n.length===0?y8:n.length===1?n[0]:function(){var e;for(let t of n)e=t.apply(this,arguments)||e;return e}}function Jo(n,e){if(n===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");n=e}return Array.isArray(n)?n:[n,n]}function w8(n,...e){return typeof n=="function"?n(...e):n}function yd(n){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:y8,canceled:!1,memo:void 0,args:void 0,...n}}function E5(){const n={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},e=yd({_pointerId:void 0,axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),t=yd({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=yd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:n,drag:e,pinch:t,wheel:r,move:i,scroll:o}}var $P=Object.defineProperty,VP=(n,e,t)=>e in n?$P(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Dn=(n,e,t)=>(VP(n,typeof e!="symbol"?e+"":e,t),t);class FP{constructor(e){this.classes=e,Dn(this,"nativeRefs"),Dn(this,"config"),Dn(this,"handlers"),Dn(this,"state"),Dn(this,"timeouts"),Dn(this,"domListeners"),Dn(this,"windowListeners"),Dn(this,"pointerIds",new Set),Dn(this,"touchIds",new Set),Dn(this,"supportsTouchEvents",f8()),Dn(this,"supportsGestureEvents",BP()),Dn(this,"bind",(...t)=>{const r={};for(let i of this.classes)new i(this,t).addBindings(r);for(let i in this.nativeRefs)hi(r,i,o=>this.nativeRefs[i]({...this.state.shared,event:o,args:t}));return this.config.domTarget?WP(this,r):qP(this,r)}),Dn(this,"clean",()=>{const{eventOptions:t,domTarget:r}=this.config,i=l.unref(r);i&&bd(i,v8(this.domListeners),t),Object.values(this.timeouts).forEach(clearTimeout),HP(this)}),Dn(this,"reset",()=>{this.state=E5()}),this.classes=e,this.state=E5(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}function jP(n,e){"pointerId"in e?n.pointerIds.add(e.pointerId):n.touchIds=new Set(p8(e))}function zP(n,e){"pointerId"in e?n.pointerIds.delete(e.pointerId):p8(e).forEach(t=>n.touchIds.delete(t))}function HP(n){const{config:{window:e,eventOptions:t},windowListeners:r}=n,i=l.unref(e);if(i){for(let o in r){const s=r[o];bd(i,s,t)}n.windowListeners={}}}function UP({config:n,windowListeners:e},t,r=n.eventOptions){const i=l.unref(n.window);i&&(bd(i,e[t],r),delete e[t])}function ZP({config:n,windowListeners:e},t,r=[],i=n.eventOptions){const o=l.unref(n.window);o&&(bd(o,e[t],i),C8(o,e[t]=r,i))}function WP({config:n,domListeners:e},t){const{eventOptions:r,domTarget:i}=n,o=l.unref(i);if(!o)throw new Error("domTarget must be defined");bd(o,v8(e),r);for(let[s,a]of Object.entries(t)){const c=s.slice(2).toLowerCase();e.push([c,b8(...a)])}C8(o,e,r)}function qP({config:n},e){const t={},r=n.eventOptions.capture?"Capture":"";for(let[i,o]of Object.entries(e)){const s=Array.isArray(o)?o:[o],a=i+r;t[a]=b8(...s)}return t}function v8(n=[]){return n.splice(0,n.length)}function hi(n,e,t){n[e]||(n[e]=[]),n[e].push(t)}function C8(n,e=[],t={}){if(n)for(let[r,i]of e)n.addEventListener(r,i,t)}function bd(n,e=[],t={}){if(n)for(let[r,i]of e)n.removeEventListener(r,i,t)}function A5(n,e){return n.map((t,r)=>t+e[r])}function k8(n,e){return n.map((t,r)=>t-e[r])}function T5(n){return Math.hypot(...n)}function KP(n,e,t){const r=T5(e),i=r===0?0:1/r,o=t===0?0:1/t,s=o*r,a=e.map(d=>o*d),c=e.map(d=>i*d),u=T5(n);return{velocities:a,velocity:s,distance:u,direction:c}}function x5(n){return Math.sign?Math.sign(n):+(n>0)-+(n<0)||+n}function GP(n,e,t){return Math.max(e,Math.min(n,t))}function YP(n,e){return Math.pow(n,e*5)}function S8(n,e,t){return e===0||Math.abs(e)===1/0?YP(n,t):n*e*t/(e+t*n)}function M8(n,e,t,r=.15){return r===0?GP(n,e,t):n<e?-S8(e-n,t-e,r)+e:n>t?+S8(n-t,t-e,r)+t:n}var QP=Object.defineProperty,XP=(n,e,t)=>e in n?QP(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ap=(n,e,t)=>(XP(n,typeof e!="symbol"?e+"":e,t),t);const Na=new Map,JP=n=>n;class e_{constructor(e,t=[]){this.controller=e,this.args=t,ap(this,"debounced",!0),ap(this,"setTimeout",(r,i=140,...o)=>{clearTimeout(this.controller.timeouts[this.stateKey]),this.controller.timeouts[this.stateKey]=window.setTimeout(r,i,...o)}),ap(this,"clearTimeout",()=>{clearTimeout(this.controller.timeouts[this.stateKey])}),ap(this,"fireGestureHandler",(r=!1)=>{if(this.state._blocked)return this.debounced||(this.state._active=!1,this.clean()),null;if(!r&&!this.state.intentional&&!this.config.triggerAllEvents)return null;if(this.state.intentional){const c=this.state.active,u=this.state._active;this.state.active=u,this.state.first=u&&!c,this.state.last=c&&!u,this.controller.state.shared[this.ingKey]=u}const i=this.controller.pointerIds.size||this.controller.touchIds.size,o=this.controller.state.shared.buttons>0||i>0,s={...this.controller.state.shared,...this.state,...this.mapStateValues(this.state),locked:!!document.pointerLockElement,touches:i,down:o},a=this.handler(s);return this.state.memo=a!==void 0?a:this.state.memo,s}),this.controller=e,this.args=t}get config(){return this.controller.config[this.stateKey]}get enabled(){return this.controller.config.enabled&&this.config.enabled}get state(){return this.controller.state[this.stateKey]}get handler(){return this.controller.handlers[this.stateKey]}get transform(){return this.config.transform||this.controller.config.transform||JP}updateSharedState(e){Object.assign(this.controller.state.shared,e)}updateGestureState(e){Object.assign(this.state,e)}checkIntentionality(e,t){return{_intentional:e,_blocked:!1}}getMovement(e){const{rubberband:t,threshold:r}=this.config,{_bounds:i,_initial:o,_active:s,_intentional:a,lastOffset:c,movement:u}=this.state,d=this.getInternalMovement(e,this.state),f=this.transform(r).map(Math.abs),h=a[0]===!1?E8(d[0],f[0]):a[0],p=a[1]===!1?E8(d[1],f[1]):a[1],m=this.checkIntentionality([h,p],d);if(m._blocked)return{...m,_movement:d,delta:[0,0]};const y=m._intentional,b=d;let w=[y[0]!==!1?d[0]-y[0]:0,y[1]!==!1?d[1]-y[1]:0];const v=A5(w,c),k=s?t:[0,0];return w=A8(i,A5(w,o),k),{...m,intentional:y[0]!==!1||y[1]!==!1,_initial:o,_movement:b,movement:w,values:e,offset:A8(i,v,k),delta:k8(w,u)}}clean(){this.clearTimeout()}}function E8(n,e){return Math.abs(n)>=e?x5(n)*e:!1}function A8(n,[e,t],[r,i]){const[[o,s],[a,c]]=n;return[M8(e,o,s,r),M8(t,a,c,i)]}function I5({state:n},e,t){const{timeStamp:r,type:i}=e,o=n.values,s=t?0:r-n.startTime;return{_lastEventType:i,event:e,timeStamp:r,elapsedTime:s,previous:o}}function t_({state:n,config:e,stateKey:t,args:r},i,o){const s=n.offset,a=o.timeStamp,{initial:c,bounds:u}=e,d={...E5()[t],_active:!0,args:r,values:i,initial:i,offset:s,lastOffset:s,startTime:a};return{...d,_initial:w8(c,d),_bounds:w8(u,d)}}class n_ extends e_{getInternalMovement(e,t){return k8(e,t.initial)}checkIntentionality(e,t){if(e[0]===!1&&e[1]===!1)return{_intentional:e,axis:this.state.axis};const[r,i]=t.map(Math.abs),o=this.state.axis||(r>i?"x":r<i?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:e,_blocked:!1,axis:o}:o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e[o==="x"?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}}getKinematics(e,t){const r=this.getMovement(e);if(!r._blocked){const i=t.timeStamp-this.state.timeStamp;Object.assign(r,KP(r.movement,r.delta,i))}return r}mapStateValues(e){return{xy:e.values,vxvy:e.velocities}}}var r_=Object.defineProperty,i_=(n,e,t)=>e in n?r_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Kt=(n,e,t)=>(i_(n,typeof e!="symbol"?e+"":e,t),t);const o_=3;function T8(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}class s_ extends n_{constructor(){super(...arguments),Kt(this,"ingKey","dragging"),Kt(this,"stateKey","drag"),Kt(this,"setPointerCapture",e=>{if(this.config.useTouch||document.pointerLockElement)return;const{target:t,pointerId:r}=e;t&&"setPointerCapture"in t&&t.setPointerCapture(r),this.updateGestureState({_dragTarget:t,_dragPointerId:r})}),Kt(this,"releasePointerCapture",()=>{if(this.config.useTouch||document.pointerLockElement)return;const{_dragTarget:e,_dragPointerId:t}=this.state;if(t&&e&&"releasePointerCapture"in e&&(!("hasPointerCapture"in e)||e.hasPointerCapture(t)))try{e.releasePointerCapture(t)}catch{}}),Kt(this,"preventScroll",e=>{this.state._dragPreventScroll&&e.cancelable&&e.preventDefault()}),Kt(this,"getEventId",e=>this.config.useTouch?e.changedTouches[0].identifier:e.pointerId),Kt(this,"isValidEvent",e=>this.state._pointerId===this.getEventId(e)),Kt(this,"shouldPreventWindowScrollY",this.config.preventWindowScrollY&&this.controller.supportsTouchEvents),Kt(this,"setUpWindowScrollDetection",e=>{T8(e),ZP(this.controller,this.stateKey,[["touchmove",this.preventScroll],["touchend",this.clean.bind(this)],["touchcancel",this.clean.bind(this)]],{passive:!1}),this.setTimeout(this.startDrag.bind(this),250,e)}),Kt(this,"setUpDelayedDragTrigger",e=>{this.state._dragDelayed=!0,T8(e),this.setTimeout(this.startDrag.bind(this),this.config.delay,e)}),Kt(this,"setStartState",e=>{const t=g8(e,this.transform);this.updateSharedState(m8(e)),this.updateGestureState({...t_(this,t,e),...I5(this,e,!0),_pointerId:this.getEventId(e)}),this.updateGestureState(this.getMovement(t))}),Kt(this,"onDragStart",e=>{jP(this.controller,e),!(!this.enabled||this.state._active)&&(this.setStartState(e),this.setPointerCapture(e),this.shouldPreventWindowScrollY?this.setUpWindowScrollDetection(e):this.config.delay>0?this.setUpDelayedDragTrigger(e):this.startDrag(e,!0))}),Kt(this,"onDragChange",e=>{if(this.state.canceled||!this.state._active||!this.isValidEvent(e)||this.state._lastEventType===e.type&&e.timeStamp===this.state.timeStamp)return;let t;if(document.pointerLockElement){const{movementX:c,movementY:u}=e;t=A5(this.transform([c,u]),this.state.values)}else t=g8(e,this.transform);const r=this.getKinematics(t,e);if(!this.state._dragStarted){if(this.state._dragDelayed){this.startDrag(e);return}if(this.shouldPreventWindowScrollY)if(!this.state._dragPreventScroll&&r.axis)if(r.axis==="x")this.startDrag(e);else{this.state._active=!1;return}else return;else return}const i=m8(e);this.updateSharedState(i);const o=I5(this,e),s=T5(r._movement);let{_dragIsTap:a}=this.state;a&&s>=o_&&(a=!1),this.updateGestureState({...o,...r,_dragIsTap:a}),this.fireGestureHandler()}),Kt(this,"onDragEnd",e=>{if(zP(this.controller,e),!this.isValidEvent(e)||(this.clean(),!this.state._active))return;this.state._active=!1;const t=this.state._dragIsTap,[r,i]=this.state.velocities,[o,s]=this.state.movement,[a,c]=this.state._intentional,[u,d]=this.config.swipeVelocity,[f,h]=this.config.swipeDistance,p=this.config.swipeDuration,m={...I5(this,e),...this.getMovement(this.state.values)},y=[0,0];m.elapsedTime<p&&(a!==!1&&Math.abs(r)>u&&Math.abs(o)>f&&(y[0]=x5(r)),c!==!1&&Math.abs(i)>d&&Math.abs(s)>h&&(y[1]=x5(i))),this.updateSharedState({buttons:0}),this.updateGestureState({...m,tap:t,swipe:y}),this.fireGestureHandler(this.config.filterTaps&&t===!0)}),Kt(this,"clean",()=>{super.clean(),this.state._dragStarted=!1,this.releasePointerCapture(),UP(this.controller,this.stateKey)}),Kt(this,"onCancel",()=>{this.state.canceled||(this.updateGestureState({canceled:!0,_active:!1}),this.updateSharedState({buttons:0}),l.nextTick(this.fireGestureHandler))}),Kt(this,"onClick",e=>{this.state._dragIsTap||e.stopPropagation()})}startDrag(e,t=!1){!this.state._active||this.state._dragStarted||(t||this.setStartState(e),this.updateGestureState({_dragStarted:!0,_dragPreventScroll:!0,cancel:this.onCancel}),this.clearTimeout(),this.fireGestureHandler())}addBindings(e){if(this.config.useTouch?(hi(e,"onTouchStart",this.onDragStart),hi(e,"onTouchMove",this.onDragChange),hi(e,"onTouchEnd",this.onDragEnd),hi(e,"onTouchCancel",this.onDragEnd)):(hi(e,"onPointerDown",this.onDragStart),hi(e,"onPointerMove",this.onDragChange),hi(e,"onPointerUp",this.onDragEnd),hi(e,"onPointerCancel",this.onDragEnd)),this.config.filterTaps){const t=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";hi(e,t,this.onClick)}}}function a_(n,e){let t,r=[],i,o=!1;function s(...a){return o&&t===this&&e(a,r)||(i=n.apply(this,a),o=!0,t=this,r=a),i}return s}function lp(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){if(n.constructor!==e.constructor)return!1;let t,r,i;if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!lp(n[r],e[r]))return!1;return!0}let o;if(typeof Map=="function"&&n instanceof Map&&e instanceof Map){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=n.entries();!(r=o.next()).done;)if(!lp(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&n instanceof Set&&e instanceof Set){if(n.size!==e.size)return!1;for(o=n.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(typeof Element<"u"&&n instanceof Element)return!1;for(r=t;r--!==0;)if(!(i[r]==="_owner"&&n.$$typeof)&&!lp(n[i[r]],e[i[r]]))return!1;return!0}return n!==n&&e!==e}function l_(n,e){try{return lp(n,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}function O5(n={},e){const t={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":t[r]=i.call(t,n[r],r,n);break;case"object":t[r]=O5(n[r],i);break;case"boolean":i&&(t[r]=n[r]);break}return t}const c_=180,u_=.15,d_=.5,f_=50,h_=250,x8={...{threshold(n=0){return Jo(n)},rubberband(n=0){switch(n){case!0:return Jo(u_);case!1:return Jo(0);default:return Jo(n)}},enabled(n=!0){return n},triggerAllEvents(n=!1){return n},initial(n=0){return typeof n=="function"?n:Jo(n)},transform:!0},axis:!0,lockDirection(n=!1){return n},bounds(n={}){if(typeof n=="function")return o=>x8.bounds(n(o));const{left:e=-1/0,right:t=1/0,top:r=-1/0,bottom:i=1/0}=n;return[[e,t],[r,i]]}},p_=typeof window<"u"&&window.document&&window.document.createElement,m_={enabled(n=!0){return n},domTarget:!0,window(n=p_?window:void 0){return n},eventOptions({passive:n=!0,capture:e=!1}={}){return{passive:n,capture:e}},transform:!0},g_={...x8,useTouch(n=!0){return n&&f8()},preventWindowScrollY(n=!1){return n},threshold(n,e,{filterTaps:t=!1,lockDirection:r=!1,axis:i=void 0}){const o=Jo(n,t?3:r||i?1:0);return this.filterTaps=t,o},swipeVelocity(n=d_){return Jo(n)},swipeDistance(n=f_){return Jo(n)},swipeDuration(n=h_){return n},delay(n=0){switch(n){case!0:return c_;case!1:return 0;default:return n}}};function y_(n){return O5(n,m_)}function b_(n={}){return O5(n,g_)}function w_({domTarget:n,eventOptions:e,window:t,enabled:r,...i}){const o=y_({domTarget:n,eventOptions:e,window:t,enabled:r});return o.drag=b_(i),o}function v_(n,e,t={}){const r=C_(n),i=new FP(r);return i.config=e,i.handlers=n,i.nativeRefs=t,l.getCurrentInstance()&&!e.manual&&(l.onMounted(i.bind),l.onUnmounted(i.clean)),i}function C_(n){const e=new Set;return n.drag&&e.add(Na.get("drag")),n.wheel&&e.add(Na.get("wheel")),n.scroll&&e.add(Na.get("scroll")),n.move&&e.add(Na.get("move")),n.pinch&&e.add(Na.get("pinch")),n.hover&&e.add(Na.get("hover")),e}function I8(n,e={}){Na.set("drag",s_);const t=l.ref();return t.value||(t.value=a_(w_,l_)),v_({drag:n},t.value(e))}let k_=Symbol("headlessui.useid"),S_=0;function M_(){return l.inject(k_,()=>`${++S_}`)()}function O8(n){var e;if(n==null||n.value==null)return null;let t=(e=n.value.$el)!=null?e:n.value;return t instanceof Node?t:null}function wd(n,e,...t){if(n in e){let i=e[n];return typeof i=="function"?i(...t):i}let r=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wd),r}var E_=Object.defineProperty,A_=(n,e,t)=>e in n?E_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,D8=(n,e,t)=>(A_(n,typeof e!="symbol"?e+"":e,t),t);let T_=class{constructor(){D8(this,"current",this.detect()),D8(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},x_=new T_;var N8=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(N8||{}),es=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(es||{});function P8({visible:n=!0,features:e=0,ourProps:t,theirProps:r,...i}){var o;let s=L8(r,t),a=Object.assign(i,{props:s});if(n||e&2&&s.static)return D5(a);if(e&1){let c=(o=s.unmount)==null||o?0:1;return wd(c,{0(){return null},1(){return D5({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return D5(a)}function D5({props:n,attrs:e,slots:t,slot:r,name:i}){var o,s;let{as:a,...c}=B8(n,["unmount","static"]),u=(o=t.default)==null?void 0:o.call(t,r),d={};if(r){let f=!1,h=[];for(let[p,m]of Object.entries(r))typeof m=="boolean"&&(f=!0),m===!0&&h.push(p);f&&(d["data-headlessui-state"]=h.join(" "))}if(a==="template"){if(u=_8(u??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[f,...h]=u??[];if(!I_(f)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(y=>y.trim()).filter((y,b,w)=>w.indexOf(y)===b).sort((y,b)=>y.localeCompare(b)).map(y=>` - ${y}`).join(`
2
2
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(`
3
3
  `)].join(`
4
- `));let p=L8((s=f.props)!=null?s:{},c,d),m=l.cloneVNode(f,p,!0);for(let y in p)y.startsWith("on")&&(m.props||(m.props={}),m.props[y]=p[y]);return m}return Array.isArray(u)&&u.length===1?u[0]:u}return l.h(a,Object.assign({},c,d),{default:()=>u})}function _8(n){return n.flatMap(e=>e.type===l.Fragment?_8(e.children):[e])}function L8(...n){if(n.length===0)return{};if(n.length===1)return n[0];let e={},t={};for(let r of n)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(t[i]!=null||(t[i]=[]),t[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(e,{[r](i,...o){let s=t[r];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return e}function B8(n,e=[]){let t=Object.assign({},n);for(let r of e)r in t&&delete t[r];return t}function I_(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}let R8=Symbol("Context");var to=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(to||{});function O_(){return $8()!==null}function $8(){return l.inject(R8,null)}function D_(n){l.provide(R8,n)}function N_(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e}))}function N5(){let n=[],e={addEventListener(t,r,i,o){return t.addEventListener(r,i,o),e.add(()=>t.removeEventListener(r,i,o))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);e.add(()=>cancelAnimationFrame(r))},nextFrame(...t){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);e.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return N_(()=>{r.current&&t[0]()}),e.add(()=>{r.current=!1})},style(t,r,i){let o=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:i}),this.add(()=>{Object.assign(t.style,{[r]:o})})},group(t){let r=N5();return t(r),this.add(()=>r.dispose())},add(t){return n.push(t),()=>{let r=n.indexOf(t);if(r>=0)for(let i of n.splice(r,1))i()}},dispose(){for(let t of n.splice(0))t()}};return e}function P_(n){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,n(...t)}}function P5(n,...e){n&&e.length>0&&n.classList.add(...e)}function cp(n,...e){n&&e.length>0&&n.classList.remove(...e)}var _5=(n=>(n.Finished="finished",n.Cancelled="cancelled",n))(_5||{});function __(n,e){let t=N5();if(!n)return t.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(n),[o,s]=[r,i].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c});return o!==0?t.setTimeout(()=>e("finished"),o+s):e("finished"),t.add(()=>e("cancelled")),t.dispose}function V8(n,e,t,r,i,o){let s=N5(),a=o!==void 0?P_(o):()=>{};return cp(n,...i),P5(n,...e,...t),s.nextFrame(()=>{cp(n,...t),P5(n,...r),s.add(__(n,c=>(cp(n,...r,...e),P5(n,...i),a(c))))}),s.add(()=>cp(n,...e,...t,...r,...i)),s.add(()=>a("cancelled")),s.dispose}function Pa(n=""){return n.split(/\s+/).filter(e=>e.length>1)}let L5=Symbol("TransitionContext");var L_=(n=>(n.Visible="visible",n.Hidden="hidden",n))(L_||{});function B_(){return l.inject(L5,null)!==null}function R_(){let n=l.inject(L5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function $_(){let n=l.inject(B5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}let B5=Symbol("NestingContext");function up(n){return"children"in n?up(n.children):n.value.filter(({state:e})=>e==="visible").length>0}function F8(n){let e=l.ref([]),t=l.ref(!1);l.onMounted(()=>t.value=!0),l.onUnmounted(()=>t.value=!1);function r(o,s=es.Hidden){let a=e.value.findIndex(({id:c})=>c===o);a!==-1&&(wd(s,{[es.Unmount](){e.value.splice(a,1)},[es.Hidden](){e.value[a].state="hidden"}}),!up(e)&&t.value&&(n==null||n()))}function i(o){let s=e.value.find(({id:a})=>a===o);return s?s.state!=="visible"&&(s.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,es.Unmount)}return{children:e,register:i,unregister:r}}let j8=N8.RenderStrategy,V_=l.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r,expose:i}){let o=l.ref(0);function s(){o.value|=to.Opening,e("beforeEnter")}function a(){o.value&=~to.Opening,e("afterEnter")}function c(){o.value|=to.Closing,e("beforeLeave")}function u(){o.value&=~to.Closing,e("afterLeave")}if(!B_()&&O_())return()=>l.h(z8,{...n,onBeforeEnter:s,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:u},r);let d=l.ref(null),f=l.computed(()=>n.unmount?es.Unmount:es.Hidden);i({el:d,$el:d});let{show:h,appear:p}=R_(),{register:m,unregister:y}=$_(),b=l.ref(h.value?"visible":"hidden"),w={value:!0},v=M_(),k={value:!1},C=F8(()=>{!k.value&&b.value!=="hidden"&&(b.value="hidden",y(v),u())});l.onMounted(()=>{let V=m(v);l.onUnmounted(V)}),l.watchEffect(()=>{if(f.value===es.Hidden&&v){if(h.value&&b.value!=="visible"){b.value="visible";return}wd(b.value,{hidden:()=>y(v),visible:()=>m(v)})}});let T=Pa(n.enter),S=Pa(n.enterFrom),E=Pa(n.enterTo),O=Pa(n.entered),I=Pa(n.leave),P=Pa(n.leaveFrom),D=Pa(n.leaveTo);l.onMounted(()=>{l.watchEffect(()=>{if(b.value==="visible"){let V=O8(d);if(V instanceof Comment&&V.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function B(V){let U=w.value&&!p.value,L=O8(d);!L||!(L instanceof HTMLElement)||U||(k.value=!0,h.value&&s(),h.value||c(),V(h.value?V8(L,T,S,E,O,N=>{k.value=!1,N===_5.Finished&&a()}):V8(L,I,P,D,O,N=>{k.value=!1,N===_5.Finished&&(up(C)||(b.value="hidden",y(v),u()))})))}return l.onMounted(()=>{l.watch([h],(V,U,L)=>{B(L),w.value=!1},{immediate:!0})}),l.provide(B5,C),D_(l.computed(()=>wd(b.value,{visible:to.Open,hidden:to.Closed})|o.value)),()=>{let{appear:V,show:U,enter:L,enterFrom:N,enterTo:$,entered:R,leave:q,leaveFrom:re,leaveTo:ue,...K}=n,H={ref:d},j={...K,...p.value&&h.value&&x_.isServer?{class:l.normalizeClass([t.class,K.class,...T,...S])}:{}};return P8({theirProps:j,ourProps:H,slot:{},slots:r,attrs:t,features:j8,visible:b.value==="visible",name:"TransitionChild"})}}}),F_=V_,z8=l.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r}){let i=$8(),o=l.computed(()=>n.show===null&&i!==null?(i.value&to.Open)===to.Open:n.show);l.watchEffect(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=l.ref(o.value?"visible":"hidden"),a=F8(()=>{s.value="hidden"}),c=l.ref(!0),u={show:o,appear:l.computed(()=>n.appear||!c.value)};return l.onMounted(()=>{l.watchEffect(()=>{c.value=!1,o.value?s.value="visible":up(a)||(s.value="hidden")})}),l.provide(B5,a),l.provide(L5,u),()=>{let d=B8(n,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:n.unmount};return P8({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[l.h(F_,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...t,...f,...d},r.default)]},attrs:{},features:j8,visible:s.value==="visible",name:"Transition"})}}});function R5(n){return l.getCurrentScope()?(l.onScopeDispose(n),!0):!1}function yn(n){return typeof n=="function"?n():l.unref(n)}const $5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H8=n=>n!=null,j_=Object.prototype.toString,U8=n=>j_.call(n)==="[object Object]",bn=()=>{},z_=H_();function H_(){var n,e;return $5&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Z8(n,e){function t(...r){return new Promise((i,o)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return t}function U_(n,e={}){let t,r,i=bn;const o=a=>{clearTimeout(a),i(),i=bn};return a=>{const c=yn(n),u=yn(e.maxWait);return t&&o(t),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{t&&o(t),r=null,d(a())},u)),t=setTimeout(()=>{r&&o(r),r=null,d(a())},c)})}}function Z_(...n){let e=0,t,r=!0,i=bn,o,s,a,c,u;!l.isRef(n[0])&&typeof n[0]=="object"?{delay:s,trailing:a=!0,leading:c=!0,rejectOnCancel:u=!1}=n[0]:[s,a=!0,c=!0,u=!1]=n;const d=()=>{t&&(clearTimeout(t),t=void 0,i(),i=bn)};return h=>{const p=yn(s),m=Date.now()-e,y=()=>o=h();return d(),p<=0?(e=Date.now(),y()):(m>p&&(c||!r)?(e=Date.now(),y()):a&&(o=new Promise((b,w)=>{i=u?w:b,t=setTimeout(()=>{e=Date.now(),r=!0,b(y()),d()},Math.max(0,p-m))})),!c&&!t&&(t=setTimeout(()=>r=!0,p)),r=!1,o)}}function W_(n,e){var t;if(typeof n=="number")return n+e;const r=((t=n.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:t[0])||"",i=n.slice(r.length),o=Number.parseFloat(r)+e;return Number.isNaN(o)?n:o+i}function W8(n){return n||l.getCurrentInstance()}function q8(n,e=200,t={}){return Z8(U_(e,t),n)}function q_(n,e=200,t=!1,r=!0,i=!1){return Z8(Z_(e,t,r,i),n)}function K_(n,e=!0,t){W8()?l.onMounted(n,t):e?n():l.nextTick(n)}function G_(n,e){W8(e)&&l.onUnmounted(n,e)}function jr(n){var e;const t=yn(n);return(e=t==null?void 0:t.$el)!=null?e:t}const ts=$5?window:void 0;function Ye(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=ts):[e,t,r,i]=n,!e)return bn;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},a=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=l.watch(()=>[jr(e),yn(i)],([d,f])=>{if(s(),!d)return;const h=U8(f)?{...f}:f;o.push(...t.flatMap(p=>r.map(m=>a(d,p,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return R5(u),u}let K8=!1;function V5(n,e,t={}){const{window:r=ts,ignore:i=[],capture:o=!0,detectIframe:s=!1}=t;if(!r)return bn;z_&&!K8&&(K8=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",bn)),r.document.documentElement.addEventListener("click",bn));let a=!0;const c=h=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(m=>m===h.target||h.composedPath().includes(m));{const m=jr(p);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[Ye(r,"click",h=>{const p=jr(n);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(a=!c(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),Ye(r,"pointerdown",h=>{const p=jr(n);a=!c(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),s&&Ye(r,"blur",h=>{setTimeout(()=>{var p;const m=jr(n);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>d.forEach(h=>h())}const Y_=500,Q_=10;function X_(n,e,t){var r,i;const o=l.computed(()=>jr(n));let s,a;function c(){s&&(clearTimeout(s),s=void 0),a=void 0}function u(m){var y,b,w,v;(y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||(c(),(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation(),a={x:m.x,y:m.y},s=setTimeout(()=>e(m),(v=t==null?void 0:t.delay)!=null?v:Y_))}function d(m){var y,b,w,v;if((y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||!a||(t==null?void 0:t.distanceThreshold)===!1)return;(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation();const k=m.x-a.x,C=m.y-a.y;Math.sqrt(k*k+C*C)>=((v=t==null?void 0:t.distanceThreshold)!=null?v:Q_)&&c()}const f={capture:(r=t==null?void 0:t.modifiers)==null?void 0:r.capture,once:(i=t==null?void 0:t.modifiers)==null?void 0:i.once},h=[Ye(o,"pointerdown",u,f),Ye(o,"pointermove",d,f),Ye(o,["pointerup","pointerleave"],c,f)];return()=>h.forEach(m=>m())}function J_(){const n=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{n.value=!0},e),n}function G8(n){const e=J_();return l.computed(()=>(e.value,!!n()))}function vd(n,e={}){const{window:t=ts}=e,r=G8(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const o=l.ref(!1),s=u=>{o.value=u.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=l.watchEffect(()=>{r.value&&(a(),i=t.matchMedia(yn(n)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return R5(()=>{c(),a(),i=void 0}),o}const eL={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Y8(n,e={}){function t(d,f){let h=yn(n[yn(d)]);return f!=null&&(h=W_(h,f)),typeof h=="number"&&(h=`${h}px`),h}const{window:r=ts,strategy:i="min-width"}=e;function o(d){return r?r.matchMedia(d).matches:!1}const s=d=>vd(()=>`(min-width: ${t(d)})`,e),a=d=>vd(()=>`(max-width: ${t(d)})`,e),c=Object.keys(n).reduce((d,f)=>(Object.defineProperty(d,f,{get:()=>i==="min-width"?s(f):a(f),enumerable:!0,configurable:!0}),d),{});function u(){const d=Object.keys(n).map(f=>[f,s(f)]);return l.computed(()=>d.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(c,{greaterOrEqual:s,smallerOrEqual:a,greater(d){return vd(()=>`(min-width: ${t(d,.1)})`,e)},smaller(d){return vd(()=>`(max-width: ${t(d,-.1)})`,e)},between(d,f){return vd(()=>`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`,e)},isGreater(d){return o(`(min-width: ${t(d,.1)})`)},isGreaterOrEqual(d){return o(`(min-width: ${t(d)})`)},isSmaller(d){return o(`(max-width: ${t(d,-.1)})`)},isSmallerOrEqual(d){return o(`(max-width: ${t(d)})`)},isInBetween(d,f){return o(`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`)},current:u,active(){const d=u();return l.computed(()=>d.value.length===0?"":d.value.at(-1))}})}function tL(n,e={}){const t=l.ref(!1),r=l.shallowRef(null);let i=0,o=!0;if($5){const s=typeof e=="function"?{onDrop:e}:e,a=c=>{var u,d;const f=Array.from((d=(u=c.dataTransfer)==null?void 0:u.files)!=null?d:[]);return r.value=f.length===0?null:f};Ye(n,"dragenter",c=>{var u,d;const f=Array.from(((u=c==null?void 0:c.dataTransfer)==null?void 0:u.items)||[]).map(h=>h.kind==="file"?h.type:null).filter(H8);if(s.dataTypes&&c.dataTransfer){const h=l.unref(s.dataTypes);if(o=typeof h=="function"?h(f):h?h.some(p=>f.includes(p)):!0,!o)return}c.preventDefault(),i+=1,t.value=!0,(d=s.onEnter)==null||d.call(s,a(c),c)}),Ye(n,"dragover",c=>{var u;o&&(c.preventDefault(),(u=s.onOver)==null||u.call(s,a(c),c))}),Ye(n,"dragleave",c=>{var u;o&&(c.preventDefault(),i-=1,i===0&&(t.value=!1),(u=s.onLeave)==null||u.call(s,a(c),c))}),Ye(n,"drop",c=>{var u;c.preventDefault(),i=0,t.value=!1,(u=s.onDrop)==null||u.call(s,a(c),c)})}return{files:r,isOverDropZone:t}}function nL(n,e,t={}){const{root:r,rootMargin:i="0px",threshold:o=.1,window:s=ts,immediate:a=!0}=t,c=G8(()=>s&&"IntersectionObserver"in s),u=l.computed(()=>{const m=yn(n);return(Array.isArray(m)?m:[m]).map(jr).filter(H8)});let d=bn;const f=l.ref(a),h=c.value?l.watch(()=>[u.value,jr(r),f.value],([m,y])=>{if(d(),!f.value||!m.length)return;const b=new IntersectionObserver(e,{root:jr(y),rootMargin:i,threshold:o});m.forEach(w=>w&&b.observe(w)),d=()=>{b.disconnect(),d=bn}},{immediate:a,flush:"post"}):bn,p=()=>{d(),h(),f.value=!1};return R5(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}const Q8=1;function rL(n,e={}){const{throttle:t=0,idle:r=200,onStop:i=bn,onScroll:o=bn,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:u=ts,onError:d=E=>{console.error(E)}}=e,f=l.ref(0),h=l.ref(0),p=l.computed({get(){return f.value},set(E){y(E,void 0)}}),m=l.computed({get(){return h.value},set(E){y(void 0,E)}});function y(E,O){var I,P,D;if(!u)return;const B=yn(n);B&&((D=B instanceof Document?u.document.body:B)==null||D.scrollTo({top:(I=yn(O))!=null?I:m.value,left:(P=yn(E))!=null?P:p.value,behavior:yn(c)}))}const b=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),k=E=>{b.value&&(b.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(E))},C=q8(k,t+r),T=E=>{var O;if(!u)return;const I=((O=E==null?void 0:E.document)==null?void 0:O.documentElement)||(E==null?void 0:E.documentElement)||jr(E),{display:P,flexDirection:D}=getComputedStyle(I),B=I.scrollLeft;v.left=B<f.value,v.right=B>f.value;const V=Math.abs(B)<=(s.left||0),U=Math.abs(B)+I.clientWidth>=I.scrollWidth-(s.right||0)-Q8;P==="flex"&&D==="row-reverse"?(w.left=U,w.right=V):(w.left=V,w.right=U),f.value=B;let L=I.scrollTop;E===u.document&&!L&&(L=u.document.body.scrollTop),v.top=L<h.value,v.bottom=L>h.value;const N=Math.abs(L)<=(s.top||0),$=Math.abs(L)+I.clientHeight>=I.scrollHeight-(s.bottom||0)-Q8;P==="flex"&&D==="column-reverse"?(w.top=$,w.bottom=N):(w.top=N,w.bottom=$),h.value=L},S=E=>{var O;if(!u)return;const I=(O=E.target.documentElement)!=null?O:E.target;T(I),b.value=!0,C(E),o(E)};return Ye(n,"scroll",t?q_(S,t,!0,!1):S,a),K_(()=>{try{const E=yn(n);if(!E)return;T(E)}catch(E){d(E)}}),Ye(n,"scrollend",k,a),{x:p,y:m,isScrolling:b,arrivedState:w,directions:v,measure(){const E=yn(n);u&&E&&T(E)}}}function iL(n,e={}){const{threshold:t=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:s=!0,window:a=ts}=e,c=l.reactive({x:0,y:0}),u=l.reactive({x:0,y:0}),d=l.computed(()=>c.x-u.x),f=l.computed(()=>c.y-u.y),{max:h,abs:p}=Math,m=l.computed(()=>h(p(d.value),p(f.value))>=t),y=l.ref(!1),b=l.computed(()=>m.value?p(d.value)>p(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none"),w=I=>[I.touches[0].clientX,I.touches[0].clientY],v=(I,P)=>{c.x=I,c.y=P},k=(I,P)=>{u.x=I,u.y=P};let C;const T=oL(a==null?void 0:a.document);s?C=T?{passive:!0}:{capture:!1}:C=T?{passive:!1,capture:!0}:{capture:!0};const S=I=>{y.value&&(i==null||i(I,b.value)),y.value=!1},E=[Ye(n,"touchstart",I=>{if(I.touches.length!==1)return;C.capture&&!C.passive&&I.preventDefault();const[P,D]=w(I);v(P,D),k(P,D),o==null||o(I)},C),Ye(n,"touchmove",I=>{if(I.touches.length!==1)return;const[P,D]=w(I);k(P,D),!y.value&&m.value&&(y.value=!0),y.value&&(r==null||r(I))},C),Ye(n,["touchend","touchcancel"],S,C)];return{isPassiveEventSupported:T,isSwiping:y,direction:b,coordsStart:c,coordsEnd:u,lengthX:d,lengthY:f,stop:()=>E.forEach(I=>I())}}function oL(n){if(!n)return!1;let e=!1;const t={get passive(){return e=!0,!1}};return n.addEventListener("x",bn,t),n.removeEventListener("x",bn),e}function sL(n={}){const{window:e=ts,behavior:t="auto"}=n;if(!e)return{x:l.ref(0),y:l.ref(0)};const r=l.ref(e.scrollX),i=l.ref(e.scrollY),o=l.computed({get(){return r.value},set(a){scrollTo({left:a,behavior:t})}}),s=l.computed({get(){return i.value},set(a){scrollTo({top:a,behavior:t})}});return Ye(e,"scroll",()=>{r.value=e.scrollX,i.value=e.scrollY},{capture:!1,passive:!0}),{x:o,y:s}}const X8=1/60*1e3,aL=typeof performance<"u"?()=>performance.now():()=>Date.now(),J8=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(aL()),X8);function lL(n){let e=[],t=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(c,u=!1,d=!1)=>{const f=d&&i,h=f?e:t;return u&&s.add(c),h.indexOf(c)===-1&&(h.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=t.indexOf(c);u!==-1&&t.splice(u,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[e,t]=[t,e],t.length=0,r=e.length,r)for(let u=0;u<r;u++){const d=e[u];d(c),s.has(d)&&(a.schedule(d),n())}i=!1,o&&(o=!1,a.process(c))}};return a}const cL=40;let F5=!0,Cd=!1,j5=!1;const V0={delta:0,timestamp:0},kd=["read","update","preRender","render","postRender"],dp=kd.reduce((n,e)=>(n[e]=lL(()=>Cd=!0),n),{}),z5=kd.reduce((n,e)=>{const t=dp[e];return n[e]=(r,i=!1,o=!1)=>(Cd||fL(),t.schedule(r,i,o)),n},{}),uL=kd.reduce((n,e)=>(n[e]=dp[e].cancel,n),{});kd.reduce((n,e)=>(n[e]=()=>dp[e].process(V0),n),{});const dL=n=>dp[n].process(V0),e9=n=>{Cd=!1,V0.delta=F5?X8:Math.max(Math.min(n-V0.timestamp,cL),1),V0.timestamp=n,j5=!0,kd.forEach(dL),j5=!1,Cd&&(F5=!1,J8(e9))},fL=()=>{Cd=!0,F5=!0,j5||J8(e9)},t9=()=>V0;function n9(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}var H5=function(){},Sd=function(){};process.env.NODE_ENV!=="production"&&(H5=function(n,e){!n&&typeof console<"u"&&console.warn(e)},Sd=function(n,e){if(!n)throw new Error(e)});const U5=(n,e,t)=>Math.min(Math.max(t,n),e),Z5=.001,hL=.01,r9=10,pL=.05,mL=1;function gL({duration:n=800,bounce:e=.25,velocity:t=0,mass:r=1}){let i,o;H5(n<=r9*1e3,"Spring duration must be 10 seconds or less");let s=1-e;s=U5(pL,mL,s),n=U5(hL,r9,n/1e3),s<1?(i=u=>{const d=u*s,f=d*n,h=d-t,p=W5(u,s),m=Math.exp(-f);return Z5-h/p*m},o=u=>{const f=u*s*n,h=f*t+t,p=Math.pow(s,2)*Math.pow(u,2)*n,m=Math.exp(-f),y=W5(Math.pow(u,2),s);return(-i(u)+Z5>0?-1:1)*((h-p)*m)/y}):(i=u=>{const d=Math.exp(-u*n),f=(u-t)*n+1;return-Z5+d*f},o=u=>{const d=Math.exp(-u*n),f=(t-u)*(n*n);return d*f});const a=5/n,c=bL(i,o,a);if(n=n*1e3,isNaN(c))return{stiffness:100,damping:10,duration:n};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:n}}}const yL=12;function bL(n,e,t){let r=t;for(let i=1;i<yL;i++)r=r-n(r)/e(r);return r}function W5(n,e){return n*Math.sqrt(1-e*e)}const wL=["duration","bounce"],vL=["stiffness","damping","mass"];function i9(n,e){return e.some(t=>n[t]!==void 0)}function CL(n){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!i9(n,vL)&&i9(n,wL)){const t=gL(n);e=Object.assign(Object.assign(Object.assign({},e),t),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function q5(n){var{from:e=0,to:t=1,restSpeed:r=2,restDelta:i}=n,o=n9(n,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:c,mass:u,velocity:d,duration:f,isResolvedFromDuration:h}=CL(o),p=o9,m=o9;function y(){const b=d?-(d/1e3):0,w=t-e,v=c/(2*Math.sqrt(a*u)),k=Math.sqrt(a/u)/1e3;if(i===void 0&&(i=Math.min(Math.abs(t-e)/100,.4)),v<1){const C=W5(k,v);p=T=>{const S=Math.exp(-v*k*T);return t-S*((b+v*k*w)/C*Math.sin(C*T)+w*Math.cos(C*T))},m=T=>{const S=Math.exp(-v*k*T);return v*k*S*(Math.sin(C*T)*(b+v*k*w)/C+w*Math.cos(C*T))-S*(Math.cos(C*T)*(b+v*k*w)-C*w*Math.sin(C*T))}}else if(v===1)p=C=>t-Math.exp(-k*C)*(w+(b+k*w)*C);else{const C=k*Math.sqrt(v*v-1);p=T=>{const S=Math.exp(-v*k*T),E=Math.min(C*T,300);return t-S*((b+v*k*w)*Math.sinh(E)+C*w*Math.cosh(E))/C}}}return y(),{next:b=>{const w=p(b);if(h)s.done=b>=f;else{const v=m(b)*1e3,k=Math.abs(v)<=r,C=Math.abs(t-w)<=i;s.done=k&&C}return s.value=s.done?t:w,s},flipTarget:()=>{d=-d,[e,t]=[t,e],y()}}}q5.needsInterpolation=(n,e)=>typeof n=="string"||typeof e=="string";const o9=n=>0,s9=(n,e,t)=>{const r=e-n;return r===0?1:(t-n)/r},K5=(n,e,t)=>-t*n+t*e+n,a9=(n,e)=>t=>Math.max(Math.min(t,e),n),Md=n=>n%1?Number(n.toFixed(5)):n,Ed=/(-)?([\d]*\.?[\d])+/g,G5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kL=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ad(n){return typeof n=="string"}const Td={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xd=Object.assign(Object.assign({},Td),{transform:a9(0,1)}),fp=Object.assign(Object.assign({},Td),{default:1}),Y5=n=>({test:e=>Ad(e)&&e.endsWith(n)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${n}`}),_a=Y5("deg"),Id=Y5("%"),Ce=Y5("px"),l9=Object.assign(Object.assign({},Id),{parse:n=>Id.parse(n)/100,transform:n=>Id.transform(n*100)}),Q5=(n,e)=>t=>!!(Ad(t)&&kL.test(t)&&t.startsWith(n)||e&&Object.prototype.hasOwnProperty.call(t,e)),c9=(n,e,t)=>r=>{if(!Ad(r))return r;const[i,o,s,a]=r.match(Ed);return{[n]:parseFloat(i),[e]:parseFloat(o),[t]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},La={test:Q5("hsl","hue"),parse:c9("hue","saturation","lightness"),transform:({hue:n,saturation:e,lightness:t,alpha:r=1})=>"hsla("+Math.round(n)+", "+Id.transform(Md(e))+", "+Id.transform(Md(t))+", "+Md(xd.transform(r))+")"},SL=a9(0,255),X5=Object.assign(Object.assign({},Td),{transform:n=>Math.round(SL(n))}),ns={test:Q5("rgb","red"),parse:c9("red","green","blue"),transform:({red:n,green:e,blue:t,alpha:r=1})=>"rgba("+X5.transform(n)+", "+X5.transform(e)+", "+X5.transform(t)+", "+Md(xd.transform(r))+")"};function ML(n){let e="",t="",r="",i="";return n.length>5?(e=n.substr(1,2),t=n.substr(3,2),r=n.substr(5,2),i=n.substr(7,2)):(e=n.substr(1,1),t=n.substr(2,1),r=n.substr(3,1),i=n.substr(4,1),e+=e,t+=t,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const J5={test:Q5("#"),parse:ML,transform:ns.transform},Nn={test:n=>ns.test(n)||J5.test(n)||La.test(n),parse:n=>ns.test(n)?ns.parse(n):La.test(n)?La.parse(n):J5.parse(n),transform:n=>Ad(n)?n:n.hasOwnProperty("red")?ns.transform(n):La.transform(n)},u9="${c}",d9="${n}";function EL(n){var e,t,r,i;return isNaN(n)&&Ad(n)&&((t=(e=n.match(Ed))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+((i=(r=n.match(G5))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function f9(n){typeof n=="number"&&(n=`${n}`);const e=[];let t=0;const r=n.match(G5);r&&(t=r.length,n=n.replace(G5,u9),e.push(...r.map(Nn.parse)));const i=n.match(Ed);return i&&(n=n.replace(Ed,d9),e.push(...i.map(Td.parse))),{values:e,numColors:t,tokenised:n}}function h9(n){return f9(n).values}function p9(n){const{values:e,numColors:t,tokenised:r}=f9(n),i=e.length;return o=>{let s=r;for(let a=0;a<i;a++)s=s.replace(a<t?u9:d9,a<t?Nn.transform(o[a]):Md(o[a]));return s}}const AL=n=>typeof n=="number"?0:n;function TL(n){const e=h9(n);return p9(n)(e.map(AL))}const Od={test:EL,parse:h9,createTransformer:p9,getAnimatableNone:TL},xL=new Set(["brightness","contrast","saturate","opacity"]);function IL(n){let[e,t]=n.slice(0,-1).split("(");if(e==="drop-shadow")return n;const[r]=t.match(Ed)||[];if(!r)return n;const i=t.replace(r,"");let o=xL.has(e)?1:0;return r!==t&&(o*=100),e+"("+o+i+")"}const OL=/([a-z-]*)\(.*?\)/g,eb=Object.assign(Object.assign({},Od),{getAnimatableNone:n=>{const e=n.match(OL);return e?e.map(IL).join(" "):n}});function tb(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function m9({hue:n,saturation:e,lightness:t,alpha:r}){n/=360,e/=100,t/=100;let i=0,o=0,s=0;if(!e)i=o=s=t;else{const a=t<.5?t*(1+e):t+e-t*e,c=2*t-a;i=tb(c,a,n+1/3),o=tb(c,a,n),s=tb(c,a,n-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const DL=(n,e,t)=>{const r=n*n,i=e*e;return Math.sqrt(Math.max(0,t*(i-r)+r))},NL=[J5,ns,La],g9=n=>NL.find(e=>e.test(n)),y9=n=>`'${n}' is not an animatable color. Use the equivalent color code instead.`,b9=(n,e)=>{let t=g9(n),r=g9(e);Sd(!!t,y9(n)),Sd(!!r,y9(e));let i=t.parse(n),o=r.parse(e);t===La&&(i=m9(i),t=ns),r===La&&(o=m9(o),r=ns);const s=Object.assign({},i);return a=>{for(const c in s)c!=="alpha"&&(s[c]=DL(i[c],o[c],a));return s.alpha=K5(i.alpha,o.alpha,a),t.transform(s)}},PL=n=>typeof n=="number",_L=(n,e)=>t=>e(n(t)),w9=(...n)=>n.reduce(_L);function v9(n,e){return PL(n)?t=>K5(n,e,t):Nn.test(n)?b9(n,e):S9(n,e)}const C9=(n,e)=>{const t=[...n],r=t.length,i=n.map((o,s)=>v9(o,e[s]));return o=>{for(let s=0;s<r;s++)t[s]=i[s](o);return t}},LL=(n,e)=>{const t=Object.assign(Object.assign({},n),e),r={};for(const i in t)n[i]!==void 0&&e[i]!==void 0&&(r[i]=v9(n[i],e[i]));return i=>{for(const o in r)t[o]=r[o](i);return t}};function k9(n){const e=Od.parse(n),t=e.length;let r=0,i=0,o=0;for(let s=0;s<t;s++)r||typeof e[s]=="number"?r++:e[s].hue!==void 0?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const S9=(n,e)=>{const t=Od.createTransformer(e),r=k9(n),i=k9(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?w9(C9(r.parsed,i.parsed),t):(H5(!0,`Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?e:n}`)},BL=(n,e)=>t=>K5(n,e,t);function RL(n){if(typeof n=="number")return BL;if(typeof n=="string")return Nn.test(n)?b9:S9;if(Array.isArray(n))return C9;if(typeof n=="object")return LL}function $L(n,e,t){const r=[],i=t||RL(n[0]),o=n.length-1;for(let s=0;s<o;s++){let a=i(n[s],n[s+1]);if(e){const c=Array.isArray(e)?e[s]:e;a=w9(c,a)}r.push(a)}return r}function VL([n,e],[t]){return r=>t(s9(n,e,r))}function FL(n,e){const t=n.length,r=t-1;return i=>{let o=0,s=!1;if(i<=n[0]?s=!0:i>=n[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<t&&!(n[c]>i||c===r);c++);o=c-1}const a=s9(n[o],n[o+1],i);return e[o](a)}}function M9(n,e,{clamp:t=!0,ease:r,mixer:i}={}){const o=n.length;Sd(o===e.length,"Both input and output ranges must be the same length"),Sd(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),n[0]>n[o-1]&&(n=[].concat(n),e=[].concat(e),n.reverse(),e.reverse());const s=$L(e,r,i),a=o===2?VL(n,s):FL(n,s);return t?c=>a(U5(n[0],n[o-1],c)):a}const hp=n=>e=>1-n(1-e),nb=n=>e=>e<=.5?n(2*e)/2:(2-n(2*(1-e)))/2,jL=n=>e=>Math.pow(e,n),E9=n=>e=>e*e*((n+1)*e-n),zL=n=>{const e=E9(n);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},A9=1.525,HL=4/11,UL=8/11,ZL=9/10,T9=n=>n,rb=jL(2),WL=hp(rb),x9=nb(rb),I9=n=>1-Math.sin(Math.acos(n)),O9=hp(I9),qL=nb(O9),ib=E9(A9),KL=hp(ib),GL=nb(ib),YL=zL(A9),QL=4356/361,XL=35442/1805,JL=16061/1805,pp=n=>{if(n===1||n===0)return n;const e=n*n;return n<HL?7.5625*e:n<UL?9.075*e-9.9*n+3.4:n<ZL?QL*e-XL*n+JL:10.8*n*n-20.52*n+10.72},eB=hp(pp),tB=n=>n<.5?.5*(1-pp(1-n*2)):.5*pp(n*2-1)+.5;function nB(n,e){return n.map(()=>e||x9).splice(0,n.length-1)}function rB(n){const e=n.length;return n.map((t,r)=>r!==0?r/(e-1):0)}function iB(n,e){return n.map(t=>t*e)}function mp({from:n=0,to:e=1,ease:t,offset:r,duration:i=300}){const o={done:!1,value:n},s=Array.isArray(e)?e:[n,e],a=iB(r&&r.length===s.length?r:rB(s),i);function c(){return M9(a,s,{ease:Array.isArray(t)?t:nB(s,t)})}let u=c();return{next:d=>(o.value=u(d),o.done=d>=i,o),flipTarget:()=>{s.reverse(),u=c()}}}function oB({velocity:n=0,from:e=0,power:t=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:e};let a=t*n;const c=e+a,u=o===void 0?c:o(c);return u!==c&&(a=u-e),{next:d=>{const f=-a*Math.exp(-d/r);return s.done=!(f>i||f<-i),s.value=s.done?u:u+f,s},flipTarget:()=>{}}}const D9={keyframes:mp,spring:q5,decay:oB};function sB(n){if(Array.isArray(n.to))return mp;if(D9[n.type])return D9[n.type];const e=new Set(Object.keys(n));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?mp:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?q5:mp}function N9(n,e,t=0){return n-e-t}function aB(n,e,t=0,r=!0){return r?N9(e+-n,e,t):e-(n-e)+t}function lB(n,e,t,r){return r?n>=e+t:n<=-t}const cB=n=>{const e=({delta:t})=>n(t);return{start:()=>z5.update(e,!0),stop:()=>uL.update(e)}};function P9(n){var e,t,{from:r,autoplay:i=!0,driver:o=cB,elapsed:s=0,repeat:a=0,repeatType:c="loop",repeatDelay:u=0,onPlay:d,onStop:f,onComplete:h,onRepeat:p,onUpdate:m}=n,y=n9(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,w,v=0,k=y.duration,C,T=!1,S=!0,E;const O=sB(y);!((t=(e=O).needsInterpolation)===null||t===void 0)&&t.call(e,r,b)&&(E=M9([0,100],[r,b],{clamp:!1}),r=0,b=100);const I=O(Object.assign(Object.assign({},y),{from:r,to:b}));function P(){v++,c==="reverse"?(S=v%2===0,s=aB(s,k,u,S)):(s=N9(s,k,u),c==="mirror"&&I.flipTarget()),T=!1,p&&p()}function D(){w.stop(),h&&h()}function B(U){if(S||(U=-U),s+=U,!T){const L=I.next(Math.max(0,s));C=L.value,E&&(C=E(C)),T=S?L.done:s<=0}m==null||m(C),T&&(v===0&&(k??(k=s)),v<a?lB(s,k,u,S)&&P():D())}function V(){d==null||d(),w=o(B),w.start()}return i&&V(),{stop:()=>{f==null||f(),w.stop()}}}function _9(n,e){return e?n*(1e3/e):0}function uB({from:n=0,velocity:e=0,min:t,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:d,onUpdate:f,onComplete:h,onStop:p}){let m;function y(k){return t!==void 0&&k<t||r!==void 0&&k>r}function b(k){return t===void 0?r:r===void 0||Math.abs(t-k)<Math.abs(r-k)?t:r}function w(k){m==null||m.stop(),m=P9(Object.assign(Object.assign({},k),{driver:d,onUpdate:C=>{var T;f==null||f(C),(T=k.onUpdate)===null||T===void 0||T.call(k,C)},onComplete:h,onStop:p}))}function v(k){w(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:c},k))}if(y(n))v({from:n,velocity:e,to:b(n)});else{let k=i*e+n;typeof u<"u"&&(k=u(k));const C=b(k),T=C===t?-1:1;let S,E;const O=I=>{S=E,E=I,e=_9(I-S,t9().delta),(T===1&&I>C||T===-1&&I<C)&&v({from:I,to:C,velocity:e})};w({type:"decay",from:n,velocity:e,timeConstant:o,power:i,restDelta:c,modifyTarget:u,onUpdate:y(k)?O:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const L9=(n,e)=>1-3*e+3*n,B9=(n,e)=>3*e-6*n,R9=n=>3*n,gp=(n,e,t)=>((L9(e,t)*n+B9(e,t))*n+R9(e))*n,$9=(n,e,t)=>3*L9(e,t)*n*n+2*B9(e,t)*n+R9(e),dB=1e-7,fB=10;function hB(n,e,t,r,i){let o,s,a=0;do s=e+(t-e)/2,o=gp(s,r,i)-n,o>0?t=s:e=s;while(Math.abs(o)>dB&&++a<fB);return s}const pB=8,mB=.001;function gB(n,e,t,r){for(let i=0;i<pB;++i){const o=$9(e,t,r);if(o===0)return e;const s=gp(e,t,r)-n;e-=s/o}return e}const yp=11,bp=1/(yp-1);function yB(n,e,t,r){if(n===e&&t===r)return T9;const i=new Float32Array(yp);for(let s=0;s<yp;++s)i[s]=gp(s*bp,n,t);function o(s){let a=0,c=1;const u=yp-1;for(;c!==u&&i[c]<=s;++c)a+=bp;--c;const d=(s-i[c])/(i[c+1]-i[c]),f=a+d*bp,h=$9(f,n,t);return h>=mB?gB(s,f,n,t):h===0?f:hB(s,a,a+bp,n,t)}return s=>s===0||s===1?s:gp(o(s),e,r)}/**
4
+ `));let p=L8((s=f.props)!=null?s:{},c,d),m=l.cloneVNode(f,p,!0);for(let y in p)y.startsWith("on")&&(m.props||(m.props={}),m.props[y]=p[y]);return m}return Array.isArray(u)&&u.length===1?u[0]:u}return l.h(a,Object.assign({},c,d),{default:()=>u})}function _8(n){return n.flatMap(e=>e.type===l.Fragment?_8(e.children):[e])}function L8(...n){if(n.length===0)return{};if(n.length===1)return n[0];let e={},t={};for(let r of n)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(t[i]!=null||(t[i]=[]),t[i].push(r[i])):e[i]=r[i];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(e,{[r](i,...o){let s=t[r];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return e}function B8(n,e=[]){let t=Object.assign({},n);for(let r of e)r in t&&delete t[r];return t}function I_(n){return n==null?!1:typeof n.type=="string"||typeof n.type=="object"||typeof n.type=="function"}let R8=Symbol("Context");var to=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(to||{});function O_(){return $8()!==null}function $8(){return l.inject(R8,null)}function D_(n){l.provide(R8,n)}function N_(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e}))}function N5(){let n=[],e={addEventListener(t,r,i,o){return t.addEventListener(r,i,o),e.add(()=>t.removeEventListener(r,i,o))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);e.add(()=>cancelAnimationFrame(r))},nextFrame(...t){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);e.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return N_(()=>{r.current&&t[0]()}),e.add(()=>{r.current=!1})},style(t,r,i){let o=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:i}),this.add(()=>{Object.assign(t.style,{[r]:o})})},group(t){let r=N5();return t(r),this.add(()=>r.dispose())},add(t){return n.push(t),()=>{let r=n.indexOf(t);if(r>=0)for(let i of n.splice(r,1))i()}},dispose(){for(let t of n.splice(0))t()}};return e}function P_(n){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,n(...t)}}function P5(n,...e){n&&e.length>0&&n.classList.add(...e)}function cp(n,...e){n&&e.length>0&&n.classList.remove(...e)}var _5=(n=>(n.Finished="finished",n.Cancelled="cancelled",n))(_5||{});function __(n,e){let t=N5();if(!n)return t.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(n),[o,s]=[r,i].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c});return o!==0?t.setTimeout(()=>e("finished"),o+s):e("finished"),t.add(()=>e("cancelled")),t.dispose}function V8(n,e,t,r,i,o){let s=N5(),a=o!==void 0?P_(o):()=>{};return cp(n,...i),P5(n,...e,...t),s.nextFrame(()=>{cp(n,...t),P5(n,...r),s.add(__(n,c=>(cp(n,...r,...e),P5(n,...i),a(c))))}),s.add(()=>cp(n,...e,...t,...r,...i)),s.add(()=>a("cancelled")),s.dispose}function Pa(n=""){return n.split(/\s+/).filter(e=>e.length>1)}let L5=Symbol("TransitionContext");var L_=(n=>(n.Visible="visible",n.Hidden="hidden",n))(L_||{});function B_(){return l.inject(L5,null)!==null}function R_(){let n=l.inject(L5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}function $_(){let n=l.inject(B5,null);if(n===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return n}let B5=Symbol("NestingContext");function up(n){return"children"in n?up(n.children):n.value.filter(({state:e})=>e==="visible").length>0}function F8(n){let e=l.ref([]),t=l.ref(!1);l.onMounted(()=>t.value=!0),l.onUnmounted(()=>t.value=!1);function r(o,s=es.Hidden){let a=e.value.findIndex(({id:c})=>c===o);a!==-1&&(wd(s,{[es.Unmount](){e.value.splice(a,1)},[es.Hidden](){e.value[a].state="hidden"}}),!up(e)&&t.value&&(n==null||n()))}function i(o){let s=e.value.find(({id:a})=>a===o);return s?s.state!=="visible"&&(s.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,es.Unmount)}return{children:e,register:i,unregister:r}}let j8=N8.RenderStrategy,V_=l.defineComponent({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r,expose:i}){let o=l.ref(0);function s(){o.value|=to.Opening,e("beforeEnter")}function a(){o.value&=~to.Opening,e("afterEnter")}function c(){o.value|=to.Closing,e("beforeLeave")}function u(){o.value&=~to.Closing,e("afterLeave")}if(!B_()&&O_())return()=>l.h(z8,{...n,onBeforeEnter:s,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:u},r);let d=l.ref(null),f=l.computed(()=>n.unmount?es.Unmount:es.Hidden);i({el:d,$el:d});let{show:h,appear:p}=R_(),{register:m,unregister:y}=$_(),b=l.ref(h.value?"visible":"hidden"),w={value:!0},v=M_(),k={value:!1},C=F8(()=>{!k.value&&b.value!=="hidden"&&(b.value="hidden",y(v),u())});l.onMounted(()=>{let V=m(v);l.onUnmounted(V)}),l.watchEffect(()=>{if(f.value===es.Hidden&&v){if(h.value&&b.value!=="visible"){b.value="visible";return}wd(b.value,{hidden:()=>y(v),visible:()=>m(v)})}});let T=Pa(n.enter),S=Pa(n.enterFrom),E=Pa(n.enterTo),O=Pa(n.entered),I=Pa(n.leave),P=Pa(n.leaveFrom),D=Pa(n.leaveTo);l.onMounted(()=>{l.watchEffect(()=>{if(b.value==="visible"){let V=O8(d);if(V instanceof Comment&&V.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function B(V){let U=w.value&&!p.value,L=O8(d);!L||!(L instanceof HTMLElement)||U||(k.value=!0,h.value&&s(),h.value||c(),V(h.value?V8(L,T,S,E,O,N=>{k.value=!1,N===_5.Finished&&a()}):V8(L,I,P,D,O,N=>{k.value=!1,N===_5.Finished&&(up(C)||(b.value="hidden",y(v),u()))})))}return l.onMounted(()=>{l.watch([h],(V,U,L)=>{B(L),w.value=!1},{immediate:!0})}),l.provide(B5,C),D_(l.computed(()=>wd(b.value,{visible:to.Open,hidden:to.Closed})|o.value)),()=>{let{appear:V,show:U,enter:L,enterFrom:N,enterTo:$,entered:R,leave:q,leaveFrom:re,leaveTo:ce,...K}=n,H={ref:d},j={...K,...p.value&&h.value&&x_.isServer?{class:l.normalizeClass([t.class,K.class,...T,...S])}:{}};return P8({theirProps:j,ourProps:H,slot:{},slots:r,attrs:t,features:j8,visible:b.value==="visible",name:"TransitionChild"})}}}),F_=V_,z8=l.defineComponent({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(n,{emit:e,attrs:t,slots:r}){let i=$8(),o=l.computed(()=>n.show===null&&i!==null?(i.value&to.Open)===to.Open:n.show);l.watchEffect(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let s=l.ref(o.value?"visible":"hidden"),a=F8(()=>{s.value="hidden"}),c=l.ref(!0),u={show:o,appear:l.computed(()=>n.appear||!c.value)};return l.onMounted(()=>{l.watchEffect(()=>{c.value=!1,o.value?s.value="visible":up(a)||(s.value="hidden")})}),l.provide(B5,a),l.provide(L5,u),()=>{let d=B8(n,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:n.unmount};return P8({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[l.h(F_,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...t,...f,...d},r.default)]},attrs:{},features:j8,visible:s.value==="visible",name:"Transition"})}}});function R5(n){return l.getCurrentScope()?(l.onScopeDispose(n),!0):!1}function yn(n){return typeof n=="function"?n():l.unref(n)}const $5=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H8=n=>n!=null,j_=Object.prototype.toString,U8=n=>j_.call(n)==="[object Object]",bn=()=>{},z_=H_();function H_(){var n,e;return $5&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Z8(n,e){function t(...r){return new Promise((i,o)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return t}function U_(n,e={}){let t,r,i=bn;const o=a=>{clearTimeout(a),i(),i=bn};return a=>{const c=yn(n),u=yn(e.maxWait);return t&&o(t),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{i=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{t&&o(t),r=null,d(a())},u)),t=setTimeout(()=>{r&&o(r),r=null,d(a())},c)})}}function Z_(...n){let e=0,t,r=!0,i=bn,o,s,a,c,u;!l.isRef(n[0])&&typeof n[0]=="object"?{delay:s,trailing:a=!0,leading:c=!0,rejectOnCancel:u=!1}=n[0]:[s,a=!0,c=!0,u=!1]=n;const d=()=>{t&&(clearTimeout(t),t=void 0,i(),i=bn)};return h=>{const p=yn(s),m=Date.now()-e,y=()=>o=h();return d(),p<=0?(e=Date.now(),y()):(m>p&&(c||!r)?(e=Date.now(),y()):a&&(o=new Promise((b,w)=>{i=u?w:b,t=setTimeout(()=>{e=Date.now(),r=!0,b(y()),d()},Math.max(0,p-m))})),!c&&!t&&(t=setTimeout(()=>r=!0,p)),r=!1,o)}}function W_(n,e){var t;if(typeof n=="number")return n+e;const r=((t=n.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:t[0])||"",i=n.slice(r.length),o=Number.parseFloat(r)+e;return Number.isNaN(o)?n:o+i}function W8(n){return n||l.getCurrentInstance()}function q8(n,e=200,t={}){return Z8(U_(e,t),n)}function q_(n,e=200,t=!1,r=!0,i=!1){return Z8(Z_(e,t,r,i),n)}function K_(n,e=!0,t){W8()?l.onMounted(n,t):e?n():l.nextTick(n)}function G_(n,e){W8(e)&&l.onUnmounted(n,e)}function jr(n){var e;const t=yn(n);return(e=t==null?void 0:t.$el)!=null?e:t}const ts=$5?window:void 0;function Ye(...n){let e,t,r,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,i]=n,e=ts):[e,t,r,i]=n,!e)return bn;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},a=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),c=l.watch(()=>[jr(e),yn(i)],([d,f])=>{if(s(),!d)return;const h=U8(f)?{...f}:f;o.push(...t.flatMap(p=>r.map(m=>a(d,p,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return R5(u),u}let K8=!1;function V5(n,e,t={}){const{window:r=ts,ignore:i=[],capture:o=!0,detectIframe:s=!1}=t;if(!r)return bn;z_&&!K8&&(K8=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",bn)),r.document.documentElement.addEventListener("click",bn));let a=!0;const c=h=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(m=>m===h.target||h.composedPath().includes(m));{const m=jr(p);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[Ye(r,"click",h=>{const p=jr(n);if(!(!p||p===h.target||h.composedPath().includes(p))){if(h.detail===0&&(a=!c(h)),!a){a=!0;return}e(h)}},{passive:!0,capture:o}),Ye(r,"pointerdown",h=>{const p=jr(n);a=!c(h)&&!!(p&&!h.composedPath().includes(p))},{passive:!0}),s&&Ye(r,"blur",h=>{setTimeout(()=>{var p;const m=jr(n);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&e(h)},0)})].filter(Boolean);return()=>d.forEach(h=>h())}const Y_=500,Q_=10;function X_(n,e,t){var r,i;const o=l.computed(()=>jr(n));let s,a;function c(){s&&(clearTimeout(s),s=void 0),a=void 0}function u(m){var y,b,w,v;(y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||(c(),(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation(),a={x:m.x,y:m.y},s=setTimeout(()=>e(m),(v=t==null?void 0:t.delay)!=null?v:Y_))}function d(m){var y,b,w,v;if((y=t==null?void 0:t.modifiers)!=null&&y.self&&m.target!==o.value||!a||(t==null?void 0:t.distanceThreshold)===!1)return;(b=t==null?void 0:t.modifiers)!=null&&b.prevent&&m.preventDefault(),(w=t==null?void 0:t.modifiers)!=null&&w.stop&&m.stopPropagation();const k=m.x-a.x,C=m.y-a.y;Math.sqrt(k*k+C*C)>=((v=t==null?void 0:t.distanceThreshold)!=null?v:Q_)&&c()}const f={capture:(r=t==null?void 0:t.modifiers)==null?void 0:r.capture,once:(i=t==null?void 0:t.modifiers)==null?void 0:i.once},h=[Ye(o,"pointerdown",u,f),Ye(o,"pointermove",d,f),Ye(o,["pointerup","pointerleave"],c,f)];return()=>h.forEach(m=>m())}function J_(){const n=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{n.value=!0},e),n}function G8(n){const e=J_();return l.computed(()=>(e.value,!!n()))}function vd(n,e={}){const{window:t=ts}=e,r=G8(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const o=l.ref(!1),s=u=>{o.value=u.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},c=l.watchEffect(()=>{r.value&&(a(),i=t.matchMedia(yn(n)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),o.value=i.matches)});return R5(()=>{c(),a(),i=void 0}),o}const eL={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Y8(n,e={}){function t(d,f){let h=yn(n[yn(d)]);return f!=null&&(h=W_(h,f)),typeof h=="number"&&(h=`${h}px`),h}const{window:r=ts,strategy:i="min-width"}=e;function o(d){return r?r.matchMedia(d).matches:!1}const s=d=>vd(()=>`(min-width: ${t(d)})`,e),a=d=>vd(()=>`(max-width: ${t(d)})`,e),c=Object.keys(n).reduce((d,f)=>(Object.defineProperty(d,f,{get:()=>i==="min-width"?s(f):a(f),enumerable:!0,configurable:!0}),d),{});function u(){const d=Object.keys(n).map(f=>[f,s(f)]);return l.computed(()=>d.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(c,{greaterOrEqual:s,smallerOrEqual:a,greater(d){return vd(()=>`(min-width: ${t(d,.1)})`,e)},smaller(d){return vd(()=>`(max-width: ${t(d,-.1)})`,e)},between(d,f){return vd(()=>`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`,e)},isGreater(d){return o(`(min-width: ${t(d,.1)})`)},isGreaterOrEqual(d){return o(`(min-width: ${t(d)})`)},isSmaller(d){return o(`(max-width: ${t(d,-.1)})`)},isSmallerOrEqual(d){return o(`(max-width: ${t(d)})`)},isInBetween(d,f){return o(`(min-width: ${t(d)}) and (max-width: ${t(f,-.1)})`)},current:u,active(){const d=u();return l.computed(()=>d.value.length===0?"":d.value.at(-1))}})}function tL(n,e={}){const t=l.ref(!1),r=l.shallowRef(null);let i=0,o=!0;if($5){const s=typeof e=="function"?{onDrop:e}:e,a=c=>{var u,d;const f=Array.from((d=(u=c.dataTransfer)==null?void 0:u.files)!=null?d:[]);return r.value=f.length===0?null:f};Ye(n,"dragenter",c=>{var u,d;const f=Array.from(((u=c==null?void 0:c.dataTransfer)==null?void 0:u.items)||[]).map(h=>h.kind==="file"?h.type:null).filter(H8);if(s.dataTypes&&c.dataTransfer){const h=l.unref(s.dataTypes);if(o=typeof h=="function"?h(f):h?h.some(p=>f.includes(p)):!0,!o)return}c.preventDefault(),i+=1,t.value=!0,(d=s.onEnter)==null||d.call(s,a(c),c)}),Ye(n,"dragover",c=>{var u;o&&(c.preventDefault(),(u=s.onOver)==null||u.call(s,a(c),c))}),Ye(n,"dragleave",c=>{var u;o&&(c.preventDefault(),i-=1,i===0&&(t.value=!1),(u=s.onLeave)==null||u.call(s,a(c),c))}),Ye(n,"drop",c=>{var u;c.preventDefault(),i=0,t.value=!1,(u=s.onDrop)==null||u.call(s,a(c),c)})}return{files:r,isOverDropZone:t}}function nL(n,e,t={}){const{root:r,rootMargin:i="0px",threshold:o=.1,window:s=ts,immediate:a=!0}=t,c=G8(()=>s&&"IntersectionObserver"in s),u=l.computed(()=>{const m=yn(n);return(Array.isArray(m)?m:[m]).map(jr).filter(H8)});let d=bn;const f=l.ref(a),h=c.value?l.watch(()=>[u.value,jr(r),f.value],([m,y])=>{if(d(),!f.value||!m.length)return;const b=new IntersectionObserver(e,{root:jr(y),rootMargin:i,threshold:o});m.forEach(w=>w&&b.observe(w)),d=()=>{b.disconnect(),d=bn}},{immediate:a,flush:"post"}):bn,p=()=>{d(),h(),f.value=!1};return R5(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}const Q8=1;function rL(n,e={}){const{throttle:t=0,idle:r=200,onStop:i=bn,onScroll:o=bn,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:c="auto",window:u=ts,onError:d=E=>{console.error(E)}}=e,f=l.ref(0),h=l.ref(0),p=l.computed({get(){return f.value},set(E){y(E,void 0)}}),m=l.computed({get(){return h.value},set(E){y(void 0,E)}});function y(E,O){var I,P,D;if(!u)return;const B=yn(n);B&&((D=B instanceof Document?u.document.body:B)==null||D.scrollTo({top:(I=yn(O))!=null?I:m.value,left:(P=yn(E))!=null?P:p.value,behavior:yn(c)}))}const b=l.ref(!1),w=l.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=l.reactive({left:!1,right:!1,top:!1,bottom:!1}),k=E=>{b.value&&(b.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(E))},C=q8(k,t+r),T=E=>{var O;if(!u)return;const I=((O=E==null?void 0:E.document)==null?void 0:O.documentElement)||(E==null?void 0:E.documentElement)||jr(E),{display:P,flexDirection:D}=getComputedStyle(I),B=I.scrollLeft;v.left=B<f.value,v.right=B>f.value;const V=Math.abs(B)<=(s.left||0),U=Math.abs(B)+I.clientWidth>=I.scrollWidth-(s.right||0)-Q8;P==="flex"&&D==="row-reverse"?(w.left=U,w.right=V):(w.left=V,w.right=U),f.value=B;let L=I.scrollTop;E===u.document&&!L&&(L=u.document.body.scrollTop),v.top=L<h.value,v.bottom=L>h.value;const N=Math.abs(L)<=(s.top||0),$=Math.abs(L)+I.clientHeight>=I.scrollHeight-(s.bottom||0)-Q8;P==="flex"&&D==="column-reverse"?(w.top=$,w.bottom=N):(w.top=N,w.bottom=$),h.value=L},S=E=>{var O;if(!u)return;const I=(O=E.target.documentElement)!=null?O:E.target;T(I),b.value=!0,C(E),o(E)};return Ye(n,"scroll",t?q_(S,t,!0,!1):S,a),K_(()=>{try{const E=yn(n);if(!E)return;T(E)}catch(E){d(E)}}),Ye(n,"scrollend",k,a),{x:p,y:m,isScrolling:b,arrivedState:w,directions:v,measure(){const E=yn(n);u&&E&&T(E)}}}function iL(n,e={}){const{threshold:t=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:s=!0,window:a=ts}=e,c=l.reactive({x:0,y:0}),u=l.reactive({x:0,y:0}),d=l.computed(()=>c.x-u.x),f=l.computed(()=>c.y-u.y),{max:h,abs:p}=Math,m=l.computed(()=>h(p(d.value),p(f.value))>=t),y=l.ref(!1),b=l.computed(()=>m.value?p(d.value)>p(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none"),w=I=>[I.touches[0].clientX,I.touches[0].clientY],v=(I,P)=>{c.x=I,c.y=P},k=(I,P)=>{u.x=I,u.y=P};let C;const T=oL(a==null?void 0:a.document);s?C=T?{passive:!0}:{capture:!1}:C=T?{passive:!1,capture:!0}:{capture:!0};const S=I=>{y.value&&(i==null||i(I,b.value)),y.value=!1},E=[Ye(n,"touchstart",I=>{if(I.touches.length!==1)return;C.capture&&!C.passive&&I.preventDefault();const[P,D]=w(I);v(P,D),k(P,D),o==null||o(I)},C),Ye(n,"touchmove",I=>{if(I.touches.length!==1)return;const[P,D]=w(I);k(P,D),!y.value&&m.value&&(y.value=!0),y.value&&(r==null||r(I))},C),Ye(n,["touchend","touchcancel"],S,C)];return{isPassiveEventSupported:T,isSwiping:y,direction:b,coordsStart:c,coordsEnd:u,lengthX:d,lengthY:f,stop:()=>E.forEach(I=>I())}}function oL(n){if(!n)return!1;let e=!1;const t={get passive(){return e=!0,!1}};return n.addEventListener("x",bn,t),n.removeEventListener("x",bn),e}function sL(n={}){const{window:e=ts,behavior:t="auto"}=n;if(!e)return{x:l.ref(0),y:l.ref(0)};const r=l.ref(e.scrollX),i=l.ref(e.scrollY),o=l.computed({get(){return r.value},set(a){scrollTo({left:a,behavior:t})}}),s=l.computed({get(){return i.value},set(a){scrollTo({top:a,behavior:t})}});return Ye(e,"scroll",()=>{r.value=e.scrollX,i.value=e.scrollY},{capture:!1,passive:!0}),{x:o,y:s}}const X8=1/60*1e3,aL=typeof performance<"u"?()=>performance.now():()=>Date.now(),J8=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(aL()),X8);function lL(n){let e=[],t=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(c,u=!1,d=!1)=>{const f=d&&i,h=f?e:t;return u&&s.add(c),h.indexOf(c)===-1&&(h.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=t.indexOf(c);u!==-1&&t.splice(u,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[e,t]=[t,e],t.length=0,r=e.length,r)for(let u=0;u<r;u++){const d=e[u];d(c),s.has(d)&&(a.schedule(d),n())}i=!1,o&&(o=!1,a.process(c))}};return a}const cL=40;let F5=!0,Cd=!1,j5=!1;const V0={delta:0,timestamp:0},kd=["read","update","preRender","render","postRender"],dp=kd.reduce((n,e)=>(n[e]=lL(()=>Cd=!0),n),{}),z5=kd.reduce((n,e)=>{const t=dp[e];return n[e]=(r,i=!1,o=!1)=>(Cd||fL(),t.schedule(r,i,o)),n},{}),uL=kd.reduce((n,e)=>(n[e]=dp[e].cancel,n),{});kd.reduce((n,e)=>(n[e]=()=>dp[e].process(V0),n),{});const dL=n=>dp[n].process(V0),e9=n=>{Cd=!1,V0.delta=F5?X8:Math.max(Math.min(n-V0.timestamp,cL),1),V0.timestamp=n,j5=!0,kd.forEach(dL),j5=!1,Cd&&(F5=!1,J8(e9))},fL=()=>{Cd=!0,F5=!0,j5||J8(e9)},t9=()=>V0;function n9(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}var H5=function(){},Sd=function(){};process.env.NODE_ENV!=="production"&&(H5=function(n,e){!n&&typeof console<"u"&&console.warn(e)},Sd=function(n,e){if(!n)throw new Error(e)});const U5=(n,e,t)=>Math.min(Math.max(t,n),e),Z5=.001,hL=.01,r9=10,pL=.05,mL=1;function gL({duration:n=800,bounce:e=.25,velocity:t=0,mass:r=1}){let i,o;H5(n<=r9*1e3,"Spring duration must be 10 seconds or less");let s=1-e;s=U5(pL,mL,s),n=U5(hL,r9,n/1e3),s<1?(i=u=>{const d=u*s,f=d*n,h=d-t,p=W5(u,s),m=Math.exp(-f);return Z5-h/p*m},o=u=>{const f=u*s*n,h=f*t+t,p=Math.pow(s,2)*Math.pow(u,2)*n,m=Math.exp(-f),y=W5(Math.pow(u,2),s);return(-i(u)+Z5>0?-1:1)*((h-p)*m)/y}):(i=u=>{const d=Math.exp(-u*n),f=(u-t)*n+1;return-Z5+d*f},o=u=>{const d=Math.exp(-u*n),f=(t-u)*(n*n);return d*f});const a=5/n,c=bL(i,o,a);if(n=n*1e3,isNaN(c))return{stiffness:100,damping:10,duration:n};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:n}}}const yL=12;function bL(n,e,t){let r=t;for(let i=1;i<yL;i++)r=r-n(r)/e(r);return r}function W5(n,e){return n*Math.sqrt(1-e*e)}const wL=["duration","bounce"],vL=["stiffness","damping","mass"];function i9(n,e){return e.some(t=>n[t]!==void 0)}function CL(n){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!i9(n,vL)&&i9(n,wL)){const t=gL(n);e=Object.assign(Object.assign(Object.assign({},e),t),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function q5(n){var{from:e=0,to:t=1,restSpeed:r=2,restDelta:i}=n,o=n9(n,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:c,mass:u,velocity:d,duration:f,isResolvedFromDuration:h}=CL(o),p=o9,m=o9;function y(){const b=d?-(d/1e3):0,w=t-e,v=c/(2*Math.sqrt(a*u)),k=Math.sqrt(a/u)/1e3;if(i===void 0&&(i=Math.min(Math.abs(t-e)/100,.4)),v<1){const C=W5(k,v);p=T=>{const S=Math.exp(-v*k*T);return t-S*((b+v*k*w)/C*Math.sin(C*T)+w*Math.cos(C*T))},m=T=>{const S=Math.exp(-v*k*T);return v*k*S*(Math.sin(C*T)*(b+v*k*w)/C+w*Math.cos(C*T))-S*(Math.cos(C*T)*(b+v*k*w)-C*w*Math.sin(C*T))}}else if(v===1)p=C=>t-Math.exp(-k*C)*(w+(b+k*w)*C);else{const C=k*Math.sqrt(v*v-1);p=T=>{const S=Math.exp(-v*k*T),E=Math.min(C*T,300);return t-S*((b+v*k*w)*Math.sinh(E)+C*w*Math.cosh(E))/C}}}return y(),{next:b=>{const w=p(b);if(h)s.done=b>=f;else{const v=m(b)*1e3,k=Math.abs(v)<=r,C=Math.abs(t-w)<=i;s.done=k&&C}return s.value=s.done?t:w,s},flipTarget:()=>{d=-d,[e,t]=[t,e],y()}}}q5.needsInterpolation=(n,e)=>typeof n=="string"||typeof e=="string";const o9=n=>0,s9=(n,e,t)=>{const r=e-n;return r===0?1:(t-n)/r},K5=(n,e,t)=>-t*n+t*e+n,a9=(n,e)=>t=>Math.max(Math.min(t,e),n),Md=n=>n%1?Number(n.toFixed(5)):n,Ed=/(-)?([\d]*\.?[\d])+/g,G5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kL=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ad(n){return typeof n=="string"}const Td={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xd=Object.assign(Object.assign({},Td),{transform:a9(0,1)}),fp=Object.assign(Object.assign({},Td),{default:1}),Y5=n=>({test:e=>Ad(e)&&e.endsWith(n)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${n}`}),_a=Y5("deg"),Id=Y5("%"),Ce=Y5("px"),l9=Object.assign(Object.assign({},Id),{parse:n=>Id.parse(n)/100,transform:n=>Id.transform(n*100)}),Q5=(n,e)=>t=>!!(Ad(t)&&kL.test(t)&&t.startsWith(n)||e&&Object.prototype.hasOwnProperty.call(t,e)),c9=(n,e,t)=>r=>{if(!Ad(r))return r;const[i,o,s,a]=r.match(Ed);return{[n]:parseFloat(i),[e]:parseFloat(o),[t]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},La={test:Q5("hsl","hue"),parse:c9("hue","saturation","lightness"),transform:({hue:n,saturation:e,lightness:t,alpha:r=1})=>"hsla("+Math.round(n)+", "+Id.transform(Md(e))+", "+Id.transform(Md(t))+", "+Md(xd.transform(r))+")"},SL=a9(0,255),X5=Object.assign(Object.assign({},Td),{transform:n=>Math.round(SL(n))}),ns={test:Q5("rgb","red"),parse:c9("red","green","blue"),transform:({red:n,green:e,blue:t,alpha:r=1})=>"rgba("+X5.transform(n)+", "+X5.transform(e)+", "+X5.transform(t)+", "+Md(xd.transform(r))+")"};function ML(n){let e="",t="",r="",i="";return n.length>5?(e=n.substr(1,2),t=n.substr(3,2),r=n.substr(5,2),i=n.substr(7,2)):(e=n.substr(1,1),t=n.substr(2,1),r=n.substr(3,1),i=n.substr(4,1),e+=e,t+=t,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const J5={test:Q5("#"),parse:ML,transform:ns.transform},Nn={test:n=>ns.test(n)||J5.test(n)||La.test(n),parse:n=>ns.test(n)?ns.parse(n):La.test(n)?La.parse(n):J5.parse(n),transform:n=>Ad(n)?n:n.hasOwnProperty("red")?ns.transform(n):La.transform(n)},u9="${c}",d9="${n}";function EL(n){var e,t,r,i;return isNaN(n)&&Ad(n)&&((t=(e=n.match(Ed))===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+((i=(r=n.match(G5))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function f9(n){typeof n=="number"&&(n=`${n}`);const e=[];let t=0;const r=n.match(G5);r&&(t=r.length,n=n.replace(G5,u9),e.push(...r.map(Nn.parse)));const i=n.match(Ed);return i&&(n=n.replace(Ed,d9),e.push(...i.map(Td.parse))),{values:e,numColors:t,tokenised:n}}function h9(n){return f9(n).values}function p9(n){const{values:e,numColors:t,tokenised:r}=f9(n),i=e.length;return o=>{let s=r;for(let a=0;a<i;a++)s=s.replace(a<t?u9:d9,a<t?Nn.transform(o[a]):Md(o[a]));return s}}const AL=n=>typeof n=="number"?0:n;function TL(n){const e=h9(n);return p9(n)(e.map(AL))}const Od={test:EL,parse:h9,createTransformer:p9,getAnimatableNone:TL},xL=new Set(["brightness","contrast","saturate","opacity"]);function IL(n){let[e,t]=n.slice(0,-1).split("(");if(e==="drop-shadow")return n;const[r]=t.match(Ed)||[];if(!r)return n;const i=t.replace(r,"");let o=xL.has(e)?1:0;return r!==t&&(o*=100),e+"("+o+i+")"}const OL=/([a-z-]*)\(.*?\)/g,eb=Object.assign(Object.assign({},Od),{getAnimatableNone:n=>{const e=n.match(OL);return e?e.map(IL).join(" "):n}});function tb(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function m9({hue:n,saturation:e,lightness:t,alpha:r}){n/=360,e/=100,t/=100;let i=0,o=0,s=0;if(!e)i=o=s=t;else{const a=t<.5?t*(1+e):t+e-t*e,c=2*t-a;i=tb(c,a,n+1/3),o=tb(c,a,n),s=tb(c,a,n-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const DL=(n,e,t)=>{const r=n*n,i=e*e;return Math.sqrt(Math.max(0,t*(i-r)+r))},NL=[J5,ns,La],g9=n=>NL.find(e=>e.test(n)),y9=n=>`'${n}' is not an animatable color. Use the equivalent color code instead.`,b9=(n,e)=>{let t=g9(n),r=g9(e);Sd(!!t,y9(n)),Sd(!!r,y9(e));let i=t.parse(n),o=r.parse(e);t===La&&(i=m9(i),t=ns),r===La&&(o=m9(o),r=ns);const s=Object.assign({},i);return a=>{for(const c in s)c!=="alpha"&&(s[c]=DL(i[c],o[c],a));return s.alpha=K5(i.alpha,o.alpha,a),t.transform(s)}},PL=n=>typeof n=="number",_L=(n,e)=>t=>e(n(t)),w9=(...n)=>n.reduce(_L);function v9(n,e){return PL(n)?t=>K5(n,e,t):Nn.test(n)?b9(n,e):S9(n,e)}const C9=(n,e)=>{const t=[...n],r=t.length,i=n.map((o,s)=>v9(o,e[s]));return o=>{for(let s=0;s<r;s++)t[s]=i[s](o);return t}},LL=(n,e)=>{const t=Object.assign(Object.assign({},n),e),r={};for(const i in t)n[i]!==void 0&&e[i]!==void 0&&(r[i]=v9(n[i],e[i]));return i=>{for(const o in r)t[o]=r[o](i);return t}};function k9(n){const e=Od.parse(n),t=e.length;let r=0,i=0,o=0;for(let s=0;s<t;s++)r||typeof e[s]=="number"?r++:e[s].hue!==void 0?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const S9=(n,e)=>{const t=Od.createTransformer(e),r=k9(n),i=k9(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?w9(C9(r.parsed,i.parsed),t):(H5(!0,`Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?e:n}`)},BL=(n,e)=>t=>K5(n,e,t);function RL(n){if(typeof n=="number")return BL;if(typeof n=="string")return Nn.test(n)?b9:S9;if(Array.isArray(n))return C9;if(typeof n=="object")return LL}function $L(n,e,t){const r=[],i=t||RL(n[0]),o=n.length-1;for(let s=0;s<o;s++){let a=i(n[s],n[s+1]);if(e){const c=Array.isArray(e)?e[s]:e;a=w9(c,a)}r.push(a)}return r}function VL([n,e],[t]){return r=>t(s9(n,e,r))}function FL(n,e){const t=n.length,r=t-1;return i=>{let o=0,s=!1;if(i<=n[0]?s=!0:i>=n[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<t&&!(n[c]>i||c===r);c++);o=c-1}const a=s9(n[o],n[o+1],i);return e[o](a)}}function M9(n,e,{clamp:t=!0,ease:r,mixer:i}={}){const o=n.length;Sd(o===e.length,"Both input and output ranges must be the same length"),Sd(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),n[0]>n[o-1]&&(n=[].concat(n),e=[].concat(e),n.reverse(),e.reverse());const s=$L(e,r,i),a=o===2?VL(n,s):FL(n,s);return t?c=>a(U5(n[0],n[o-1],c)):a}const hp=n=>e=>1-n(1-e),nb=n=>e=>e<=.5?n(2*e)/2:(2-n(2*(1-e)))/2,jL=n=>e=>Math.pow(e,n),E9=n=>e=>e*e*((n+1)*e-n),zL=n=>{const e=E9(n);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))},A9=1.525,HL=4/11,UL=8/11,ZL=9/10,T9=n=>n,rb=jL(2),WL=hp(rb),x9=nb(rb),I9=n=>1-Math.sin(Math.acos(n)),O9=hp(I9),qL=nb(O9),ib=E9(A9),KL=hp(ib),GL=nb(ib),YL=zL(A9),QL=4356/361,XL=35442/1805,JL=16061/1805,pp=n=>{if(n===1||n===0)return n;const e=n*n;return n<HL?7.5625*e:n<UL?9.075*e-9.9*n+3.4:n<ZL?QL*e-XL*n+JL:10.8*n*n-20.52*n+10.72},eB=hp(pp),tB=n=>n<.5?.5*(1-pp(1-n*2)):.5*pp(n*2-1)+.5;function nB(n,e){return n.map(()=>e||x9).splice(0,n.length-1)}function rB(n){const e=n.length;return n.map((t,r)=>r!==0?r/(e-1):0)}function iB(n,e){return n.map(t=>t*e)}function mp({from:n=0,to:e=1,ease:t,offset:r,duration:i=300}){const o={done:!1,value:n},s=Array.isArray(e)?e:[n,e],a=iB(r&&r.length===s.length?r:rB(s),i);function c(){return M9(a,s,{ease:Array.isArray(t)?t:nB(s,t)})}let u=c();return{next:d=>(o.value=u(d),o.done=d>=i,o),flipTarget:()=>{s.reverse(),u=c()}}}function oB({velocity:n=0,from:e=0,power:t=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:e};let a=t*n;const c=e+a,u=o===void 0?c:o(c);return u!==c&&(a=u-e),{next:d=>{const f=-a*Math.exp(-d/r);return s.done=!(f>i||f<-i),s.value=s.done?u:u+f,s},flipTarget:()=>{}}}const D9={keyframes:mp,spring:q5,decay:oB};function sB(n){if(Array.isArray(n.to))return mp;if(D9[n.type])return D9[n.type];const e=new Set(Object.keys(n));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?mp:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?q5:mp}function N9(n,e,t=0){return n-e-t}function aB(n,e,t=0,r=!0){return r?N9(e+-n,e,t):e-(n-e)+t}function lB(n,e,t,r){return r?n>=e+t:n<=-t}const cB=n=>{const e=({delta:t})=>n(t);return{start:()=>z5.update(e,!0),stop:()=>uL.update(e)}};function P9(n){var e,t,{from:r,autoplay:i=!0,driver:o=cB,elapsed:s=0,repeat:a=0,repeatType:c="loop",repeatDelay:u=0,onPlay:d,onStop:f,onComplete:h,onRepeat:p,onUpdate:m}=n,y=n9(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,w,v=0,k=y.duration,C,T=!1,S=!0,E;const O=sB(y);!((t=(e=O).needsInterpolation)===null||t===void 0)&&t.call(e,r,b)&&(E=M9([0,100],[r,b],{clamp:!1}),r=0,b=100);const I=O(Object.assign(Object.assign({},y),{from:r,to:b}));function P(){v++,c==="reverse"?(S=v%2===0,s=aB(s,k,u,S)):(s=N9(s,k,u),c==="mirror"&&I.flipTarget()),T=!1,p&&p()}function D(){w.stop(),h&&h()}function B(U){if(S||(U=-U),s+=U,!T){const L=I.next(Math.max(0,s));C=L.value,E&&(C=E(C)),T=S?L.done:s<=0}m==null||m(C),T&&(v===0&&(k??(k=s)),v<a?lB(s,k,u,S)&&P():D())}function V(){d==null||d(),w=o(B),w.start()}return i&&V(),{stop:()=>{f==null||f(),w.stop()}}}function _9(n,e){return e?n*(1e3/e):0}function uB({from:n=0,velocity:e=0,min:t,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:u,driver:d,onUpdate:f,onComplete:h,onStop:p}){let m;function y(k){return t!==void 0&&k<t||r!==void 0&&k>r}function b(k){return t===void 0?r:r===void 0||Math.abs(t-k)<Math.abs(r-k)?t:r}function w(k){m==null||m.stop(),m=P9(Object.assign(Object.assign({},k),{driver:d,onUpdate:C=>{var T;f==null||f(C),(T=k.onUpdate)===null||T===void 0||T.call(k,C)},onComplete:h,onStop:p}))}function v(k){w(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:c},k))}if(y(n))v({from:n,velocity:e,to:b(n)});else{let k=i*e+n;typeof u<"u"&&(k=u(k));const C=b(k),T=C===t?-1:1;let S,E;const O=I=>{S=E,E=I,e=_9(I-S,t9().delta),(T===1&&I>C||T===-1&&I<C)&&v({from:I,to:C,velocity:e})};w({type:"decay",from:n,velocity:e,timeConstant:o,power:i,restDelta:c,modifyTarget:u,onUpdate:y(k)?O:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const L9=(n,e)=>1-3*e+3*n,B9=(n,e)=>3*e-6*n,R9=n=>3*n,gp=(n,e,t)=>((L9(e,t)*n+B9(e,t))*n+R9(e))*n,$9=(n,e,t)=>3*L9(e,t)*n*n+2*B9(e,t)*n+R9(e),dB=1e-7,fB=10;function hB(n,e,t,r,i){let o,s,a=0;do s=e+(t-e)/2,o=gp(s,r,i)-n,o>0?t=s:e=s;while(Math.abs(o)>dB&&++a<fB);return s}const pB=8,mB=.001;function gB(n,e,t,r){for(let i=0;i<pB;++i){const o=$9(e,t,r);if(o===0)return e;const s=gp(e,t,r)-n;e-=s/o}return e}const yp=11,bp=1/(yp-1);function yB(n,e,t,r){if(n===e&&t===r)return T9;const i=new Float32Array(yp);for(let s=0;s<yp;++s)i[s]=gp(s*bp,n,t);function o(s){let a=0,c=1;const u=yp-1;for(;c!==u&&i[c]<=s;++c)a+=bp;--c;const d=(s-i[c])/(i[c+1]-i[c]),f=a+d*bp,h=$9(f,n,t);return h>=mB?gB(s,f,n,t):h===0?f:hB(s,a,a+bp,n,t)}return s=>s===0||s===1?s:gp(o(s),e,r)}/**
5
5
  * @vue/shared v3.4.21
6
6
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
7
7
  * @license MIT
@@ -73,7 +73,7 @@ ${u}`:c)}else throw s},onCacheKey:s=>gj(e,t,s)}}function pz(n){if(se(n))return n
73
73
  * vue-i18n v9.9.1
74
74
  * (c) 2024 kazuya kawaguchi
75
75
  * Released under the MIT License.
76
- */const gz="9.9.1";function yz(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gb().__INTLIFY_PROD_DEVTOOLS__=!1)}const PS=vn.__EXTEND_POINT__,us=Yb(PS),br={FALLBACK_TO_ROOT:PS,NOT_SUPPORTED_PRESERVE:us(),NOT_SUPPORTED_FORMATTER:us(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:us(),NOT_SUPPORTED_GET_CHOICE_INDEX:us(),COMPONENT_NAME_LEGACY_COMPATIBLE:us(),NOT_FOUND_PARENT_SCOPE:us(),IGNORE_OBJ_FLATTEN:us(),NOTICE_DROP_ALLOW_COMPOSITION:us()},bz={[br.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[br.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[br.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[br.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[br.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[br.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[br.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[br.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[br.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function r4(n,...e){return Jk(bz[n],...e)}const _S=Yt.__EXTEND_POINT__,Bn=Yb(_S),St={UNEXPECTED_RETURN_TYPE:_S,INVALID_ARGUMENT:Bn(),MUST_BE_CALL_SETUP_TOP:Bn(),NOT_INSTALLED:Bn(),NOT_AVAILABLE_IN_LEGACY_MODE:Bn(),REQUIRED_VALUE:Bn(),INVALID_VALUE:Bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bn(),NOT_INSTALLED_WITH_PROVIDE:Bn(),UNEXPECTED_ERROR:Bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bn(),BRIDGE_SUPPORT_VUE_2_ONLY:Bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bn(),__EXTEND_POINT__:Bn()};function Qd(n,...e){return sS(n,null,process.env.NODE_ENV!=="production"?{messages:wz,args:e}:void 0)}const wz={[St.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[St.INVALID_ARGUMENT]:"Invalid argument",[St.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[St.NOT_INSTALLED]:"Need to install with `app.use` function",[St.UNEXPECTED_ERROR]:"Unexpected error",[St.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[St.REQUIRED_VALUE]:"Required in value: {0}",[St.INVALID_VALUE]:"Invalid value",[St.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[St.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[St.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[St.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[St.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[St.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},i4=oo("__translateVNode"),o4=oo("__datetimeParts"),s4=oo("__numberParts"),a4=oo("__enableEmitter"),l4=oo("__disableEmitter"),vz=oo("__setPluralRules"),Cz=oo("__injectWithOption"),c4=oo("__dispose");function Xd(n){if(!Ve(n))return n;for(const e in n)if(zp(n,e))if(!e.includes("."))Ve(n[e])&&Xd(n[e]);else{const t=e.split("."),r=t.length-1;let i=n,o=!1;for(let s=0;s<r;s++){if(t[s]in i||(i[t[s]]={}),!Ve(i[t[s]])){process.env.NODE_ENV!=="production"&&J0(r4(br.IGNORE_OBJ_FLATTEN,{key:t[s]})),o=!0;break}i=i[t[s]]}o||(i[t[r]]=n[e],delete n[e]),Ve(i[t[r]])&&Xd(i[t[r]])}return n}function LS(n,e){const{messages:t,__i18n:r,messageResolver:i,flatJson:o}=e,s=Re(t)?t:Tt(r)?{}:{[n]:{}};if(Tt(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Up(u,s[c])):Up(u,s)}else se(a)&&Up(JSON.parse(a),s)}),i==null&&o)for(const a in s)zp(s,a)&&Xd(s[a]);return s}function BS(n){return n.type}function kz(n,e,t){let r=Ve(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=LS(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{n.mergeLocaleMessage(o,r[o])});{if(Ve(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(s=>{n.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ve(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(s=>{n.mergeNumberFormat(s,e.numberFormats[s])})}}}function RS(n){return l.createVNode(l.Text,null,n,0)}const $S="__INTLIFY_META__",VS=()=>[],Sz=()=>!1;let FS=0;function jS(n){return(e,t,r,i)=>n(t,r,l.getCurrentInstance()||void 0,i)}const Mz=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=BS(n)[$S])?{[$S]:e}:null};function Ez(n={},e){const{__root:t,__injectWithOption:r}=n,i=t===void 0,o=n.flatJson,s=io?l.ref:l.shallowRef;let a=kt(n.inheritLocale)?n.inheritLocale:!0;const c=s(t&&a?t.locale.value:se(n.locale)?n.locale:Wp),u=s(t&&a?t.fallbackLocale.value:se(n.fallbackLocale)||Tt(n.fallbackLocale)||Re(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:c.value),d=s(LS(c.value,n)),f=s(Re(n.datetimeFormats)?n.datetimeFormats:{[c.value]:{}}),h=s(Re(n.numberFormats)?n.numberFormats:{[c.value]:{}});let p=t?t.missingWarn:kt(n.missingWarn)||Fp(n.missingWarn)?n.missingWarn:!0,m=t?t.fallbackWarn:kt(n.fallbackWarn)||Fp(n.fallbackWarn)?n.fallbackWarn:!0,y=t?t.fallbackRoot:kt(n.fallbackRoot)?n.fallbackRoot:!0,b=!!n.fallbackFormat,w=it(n.missing)?n.missing:null,v=it(n.missing)?jS(n.missing):null,k=it(n.postTranslation)?n.postTranslation:null,C=t?t.warnHtmlMessage:kt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,T=!!n.escapeParameter;const S=t?t.modifiers:Re(n.modifiers)?n.modifiers:{};let E=n.pluralRules||t&&t.pluralRules,O;O=(()=>{i&&bS(null);const Z={version:gz,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:E,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:b,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:C,escapeParameter:T,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=f.value,Z.numberFormats=h.value,Z.__datetimeFormatters=Re(O)?O.__datetimeFormatters:void 0,Z.__numberFormatters=Re(O)?O.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=Re(O)?O.__v_emitter:void 0);const Y=uz(Z);return i&&bS(Y),Y})(),Yd(O,c.value,u.value);function P(){return[c.value,u.value,d.value,f.value,h.value]}const D=l.computed({get:()=>c.value,set:Z=>{c.value=Z,O.locale=c.value}}),B=l.computed({get:()=>u.value,set:Z=>{u.value=Z,O.fallbackLocale=u.value,Yd(O,c.value,Z)}}),V=l.computed(()=>d.value),U=l.computed(()=>f.value),L=l.computed(()=>h.value);function N(){return it(k)?k:null}function $(Z){k=Z,O.postTranslation=Z}function R(){return w}function q(Z){Z!==null&&(v=jS(Z)),w=Z,O.missing=v}function re(Z,Y){return Z!=="translate"||!Y.resolvedMessage}const ue=(Z,Y,Ae,ct,Qo,ad)=>{P();let xa;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(O.fallbackContext=t?cz():void 0),xa=Z(O)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(O.fallbackContext=void 0)}if(Ae!=="translate exists"&&an(xa)&&xa===Zp||Ae==="translate exists"&&!xa){const[Xo,W]=Y();if(process.env.NODE_ENV!=="production"&&t&&se(Xo)&&re(Ae,W)&&(y&&(Kp(m,Xo)||vS(p,Xo))&&J0(r4(br.FALLBACK_TO_ROOT,{key:Xo,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:oe}=O;oe&&y&&oe.emit("fallback",{type:Ae,key:Xo,to:"global",groupId:`${Ae}:${Xo}`})}return t&&y?ct(t):Qo(Xo)}else{if(ad(xa))return xa;throw Qd(St.UNEXPECTED_RETURN_TYPE)}};function K(...Z){return ue(Y=>Reflect.apply(kS,null,[Y,...Z]),()=>e4(...Z),"translate",Y=>Reflect.apply(Y.t,Y,[...Z]),Y=>Y,Y=>se(Y))}function H(...Z){const[Y,Ae,ct]=Z;if(ct&&!Ve(ct))throw Qd(St.INVALID_ARGUMENT);return K(Y,Ae,ln({resolvedMessage:!0},ct||{}))}function j(...Z){return ue(Y=>Reflect.apply(TS,null,[Y,...Z]),()=>t4(...Z),"datetime format",Y=>Reflect.apply(Y.d,Y,[...Z]),()=>qp,Y=>se(Y))}function F(...Z){return ue(Y=>Reflect.apply(OS,null,[Y,...Z]),()=>n4(...Z),"number format",Y=>Reflect.apply(Y.n,Y,[...Z]),()=>qp,Y=>se(Y))}function G(Z){return Z.map(Y=>se(Y)||an(Y)||kt(Y)?RS(String(Y)):Y)}const ae={normalize:G,interpolate:Z=>Z,type:"vnode"};function Oe(...Z){return ue(Y=>{let Ae;const ct=Y;try{ct.processor=ae,Ae=Reflect.apply(kS,null,[ct,...Z])}finally{ct.processor=null}return Ae},()=>e4(...Z),"translate",Y=>Y[i4](...Z),Y=>[RS(Y)],Y=>Tt(Y))}function be(...Z){return ue(Y=>Reflect.apply(OS,null,[Y,...Z]),()=>n4(...Z),"number format",Y=>Y[s4](...Z),VS,Y=>se(Y)||Tt(Y))}function Le(...Z){return ue(Y=>Reflect.apply(TS,null,[Y,...Z]),()=>t4(...Z),"datetime format",Y=>Y[o4](...Z),VS,Y=>se(Y)||Tt(Y))}function pt(Z){E=Z,O.pluralRules=E}function pn(Z,Y){return ue(()=>{if(!Z)return!1;const Ae=se(Y)?Y:c.value,ct=mn(Ae),Qo=O.messageResolver(ct,Z);return ec(Qo)||yr(Qo)||se(Qo)},()=>[Z],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[Z,Y]),Sz,Ae=>kt(Ae))}function $r(Z){let Y=null;const Ae=dS(O,u.value,c.value);for(let ct=0;ct<Ae.length;ct++){const Qo=d.value[Ae[ct]]||{},ad=O.messageResolver(Qo,Z);if(ad!=null){Y=ad;break}}return Y}function Kn(Z){const Y=$r(Z);return Y??(t?t.tm(Z)||{}:{})}function mn(Z){return d.value[Z]||{}}function Ji(Z,Y){if(o){const Ae={[Z]:Y};for(const ct in Ae)zp(Ae,ct)&&Xd(Ae[ct]);Y=Ae[Z]}d.value[Z]=Y,O.messages=d.value}function Aa(Z,Y){d.value[Z]=d.value[Z]||{};const Ae={[Z]:Y};if(o)for(const ct in Ae)zp(Ae,ct)&&Xd(Ae[ct]);Y=Ae[Z],Up(Y,d.value[Z]),O.messages=d.value}function Ta(Z){return f.value[Z]||{}}function _t(Z,Y){f.value[Z]=Y,O.datetimeFormats=f.value,IS(O,Z,Y)}function xn(Z,Y){f.value[Z]=ln(f.value[Z]||{},Y),O.datetimeFormats=f.value,IS(O,Z,Y)}function eo(Z){return h.value[Z]||{}}function Vr(Z,Y){h.value[Z]=Y,O.numberFormats=h.value,NS(O,Z,Y)}function fi(Z,Y){h.value[Z]=ln(h.value[Z]||{},Y),O.numberFormats=h.value,NS(O,Z,Y)}FS++,t&&io&&(l.watch(t.locale,Z=>{a&&(c.value=Z,O.locale=Z,Yd(O,c.value,u.value))}),l.watch(t.fallbackLocale,Z=>{a&&(u.value=Z,O.fallbackLocale=Z,Yd(O,c.value,u.value))}));const Ge={id:FS,locale:D,fallbackLocale:B,get inheritLocale(){return a},set inheritLocale(Z){a=Z,Z&&t&&(c.value=t.locale.value,u.value=t.fallbackLocale.value,Yd(O,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:V,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(Z){p=Z,O.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(Z){m=Z,O.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(Z){y=Z},get fallbackFormat(){return b},set fallbackFormat(Z){b=Z,O.fallbackFormat=b},get warnHtmlMessage(){return C},set warnHtmlMessage(Z){C=Z,O.warnHtmlMessage=Z},get escapeParameter(){return T},set escapeParameter(Z){T=Z,O.escapeParameter=Z},t:K,getLocaleMessage:mn,setLocaleMessage:Ji,mergeLocaleMessage:Aa,getPostTranslationHandler:N,setPostTranslationHandler:$,getMissingHandler:R,setMissingHandler:q,[vz]:pt};return Ge.datetimeFormats=U,Ge.numberFormats=L,Ge.rt=H,Ge.te=pn,Ge.tm=Kn,Ge.d=j,Ge.n=F,Ge.getDateTimeFormat=Ta,Ge.setDateTimeFormat=_t,Ge.mergeDateTimeFormat=xn,Ge.getNumberFormat=eo,Ge.setNumberFormat=Vr,Ge.mergeNumberFormat=fi,Ge[Cz]=r,Ge[i4]=Oe,Ge[o4]=Le,Ge[s4]=be,process.env.NODE_ENV!=="production"&&(Ge[a4]=Z=>{O.__v_emitter=Z},Ge[l4]=()=>{O.__v_emitter=void 0}),Ge}const u4={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function Az({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,i)=>[...r,...i.type===l.Fragment?i.children:[i]],[]):e.reduce((t,r)=>{const i=n[r];return i&&(t[r]=i()),t},{})}function zS(n){return l.Fragment}ln({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>an(n)||!isNaN(n)}},u4);function Tz(n){return Tt(n)&&!se(n[0])}function HS(n,e,t,r){const{slots:i,attrs:o}=e;return()=>{const s={part:!0};let a={};n.locale&&(s.locale=n.locale),se(n.format)?s.key=n.format:Ve(n.format)&&(se(n.format.key)&&(s.key=n.format.key),a=Object.keys(n.format).reduce((h,p)=>t.includes(p)?ln({},h,{[p]:n.format[p]}):h,{}));const c=r(n.value,s,a);let u=[s.key];Tt(c)?u=c.map((h,p)=>{const m=i[h.type],y=m?m({[h.type]:h.value,index:p,parts:c}):[h.value];return Tz(y)&&(y[0].key=`${h.type}-${p}`),y}):se(c)&&(u=[c]);const d=ln({},o),f=se(n.tag)||Ve(n.tag)?n.tag:zS();return l.h(f,d,u)}}ln({value:{type:Number,required:!0},format:{type:[String,Object]}},u4),ln({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},u4);function US(n,e){}const xz=oo("global-vue-i18n");function ao(n={}){const e=l.getCurrentInstance();if(e==null)throw Qd(St.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Qd(St.NOT_INSTALLED);const t=Iz(e),r=Dz(t),i=BS(e),o=Oz(n,i);if(o==="global")return kz(r,n,i),r;if(o==="parent"){let c=Nz(t,e,n.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&J0(r4(br.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=t;let a=s.__getInstance(e);if(a==null){const c=ln({},n);"__i18n"in i&&(c.__i18n=i.__i18n),r&&(c.__root=r),a=Ez(c),s.__composerExtend&&(a[c4]=s.__composerExtend(a)),_z(s,e,a),s.__setInstance(e,a)}return a}function Iz(n){{const e=l.inject(n.isCE?xz:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Qd(n.isCE?St.NOT_INSTALLED_WITH_PROVIDE:St.UNEXPECTED_ERROR);return e}}function Oz(n,e){return jp(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Dz(n){return n.mode==="composition"?n.global:n.global.__composer}function Nz(n,e,t=!1){let r=null;const i=e.root;let o=Pz(e,t);for(;o!=null;){const s=n;if(n.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function Pz(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function _z(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=Ej();const i=t;i[a4]&&i[a4](r),r.on("*",US)}},e),l.onUnmounted(()=>{const i=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",US),i[l4]&&i[l4](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const o=i[c4];o&&(o(),delete i[c4])},e)}if(yz(),oz($j),sz(dS),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=Gb();n.__INTLIFY__=!0,qj(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Lz={},Bz=De.extend({style:Lz});function Jd(n){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jd(n)}function ZS(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function WS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ZS(Object(t),!0).forEach(function(r){Rz(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ZS(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Rz(n,e,t){return e=$z(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $z(n){var e=Vz(n,"string");return Jd(e)=="symbol"?e:String(e)}function Vz(n,e){if(Jd(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var qS=Bz.extend("focustrap",{mounted:function(e,t){var r=t.value||{},i=r.disabled;i||(this.createHiddenFocusableElements(e,t),this.bind(e,t),this.autoElementFocus(e,t)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,t){var r=t.value||{},i=r.disabled;i&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,t){var r=this,i=t.value||{},o=i.onFocusIn,s=i.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(a){a.forEach(function(c){if(c.type==="childList"&&!e.contains(document.activeElement)){var u=function d(f){var h=_.isFocusableElement(f)?_.isFocusableElement(f,r.getComputedSelector(e.$_pfocustrap_focusableselector))?f:_.getFirstFocusableElement(e,r.getComputedSelector(e.$_pfocustrap_focusableselector)):_.getFirstFocusableElement(f);return z.isNotEmpty(h)?h:f.nextSibling&&d(f.nextSibling)};_.focus(u(c.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(a){return o&&o(a)},e.$_pfocustrap_focusoutlistener=function(a){return s&&s(a)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:WS(WS({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,t){var r=t.value||{},i=r.autoFocusSelector,o=i===void 0?"":i,s=r.firstFocusableSelector,a=s===void 0?"":s,c=r.autoFocus,u=c===void 0?!1:c,d=_.getFirstFocusableElement(e,"[autofocus]".concat(this.getComputedSelector(o)));u&&!d&&(d=_.getFirstFocusableElement(e,this.getComputedSelector(a))),_.focus(d)},onFirstHiddenElementFocus:function(e){var t,r=e.currentTarget,i=e.relatedTarget,o=i===r.$_pfocustrap_lasthiddenfocusableelement||!((t=this.$el)!==null&&t!==void 0&&t.contains(i))?_.getFirstFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement;_.focus(o)},onLastHiddenElementFocus:function(e){var t,r=e.currentTarget,i=e.relatedTarget,o=i===r.$_pfocustrap_firsthiddenfocusableelement||!((t=this.$el)!==null&&t!==void 0&&t.contains(i))?_.getLastFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_firsthiddenfocusableelement;_.focus(o)},createHiddenFocusableElements:function(e,t){var r=this,i=t.value||{},o=i.tabIndex,s=o===void 0?0:o,a=i.firstFocusableSelector,c=a===void 0?"":a,u=i.lastFocusableSelector,d=u===void 0?"":u,f=function(y){return _.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:s,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:y==null?void 0:y.bind(r)})},h=f(this.onFirstHiddenElementFocus),p=f(this.onLastHiddenElementFocus);h.$_pfocustrap_lasthiddenfocusableelement=p,h.$_pfocustrap_focusableselector=c,h.setAttribute("data-pc-section","firstfocusableelement"),p.$_pfocustrap_firsthiddenfocusableelement=h,p.$_pfocustrap_focusableselector=d,p.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(h),e.append(p)}}}),Gp={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=_.isClient()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Fz(n,e,t,r,i,o){return o.inline?l.renderSlot(n.$slots,"default",{key:0}):i.mounted?(l.openBlock(),l.createBlock(l.Teleport,{key:1,to:t.appendTo},[l.renderSlot(n.$slots,"default")],8,["to"])):l.createCommentVNode("",!0)}Gp.render=Fz;var jz={mask:function(e){var t=e.instance;return["p-galleria-mask p-component-overlay p-component-overlay-enter",{"p-ripple-disabled":t.$primevue.config.ripple===!1}]},root:function(e){var t=e.instance,r=t.$attrs.showThumbnails&&t.getPositionClass("p-galleria-thumbnails",t.$attrs.thumbnailsPosition),i=t.$attrs.showIndicators&&t.getPositionClass("p-galleria-indicators",t.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":t.$attrs.fullScreen,"p-galleria-indicator-onitem":t.$attrs.showIndicatorsOnItem,"p-galleria-item-nav-onhover":t.$attrs.showItemNavigatorsOnHover&&!t.$attrs.fullScreen},r,i]},closeButton:"p-galleria-close p-link",closeIcon:"p-galleria-close-icon",header:"p-galleria-header",content:"p-galleria-content",footer:"p-galleria-footer",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",previousItemButton:function(e){var t=e.instance;return["p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":t.isNavBackwardDisabled()}]},previousItemIcon:"p-galleria-item-prev-icon",item:"p-galleria-item",nextItemButton:function(e){var t=e.instance;return["p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":t.isNavForwardDisabled()}]},nextItemIcon:"p-galleria-item-next-icon",caption:"p-galleria-caption",indicators:"p-galleria-indicators p-reset",indicator:function(e){var t=e.instance,r=e.index;return["p-galleria-indicator",{"p-highlight":t.isIndicatorItemActive(r)}]},indicatorButton:"p-link",thumbnailWrapper:"p-galleria-thumbnail-wrapper",thumbnailContainer:"p-galleria-thumbnail-container",previousThumbnailButton:function(e){var t=e.instance;return["p-galleria-thumbnail-prev p-link",{"p-disabled":t.isNavBackwardDisabled()}]},previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailItem:function(e){var t=e.instance,r=e.index,i=e.activeIndex;return["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":i===r,"p-galleria-thumbnail-item-active":t.isItemActive(r),"p-galleria-thumbnail-item-start":t.firstItemAciveIndex()===r,"p-galleria-thumbnail-item-end":t.lastItemActiveIndex()===r}]},thumbnailItemContent:"p-galleria-thumbnail-item-content",nextThumbnailButton:function(e){var t=e.instance;return["p-galleria-thumbnail-next p-link",{"p-disabled":t.isNavForwardDisabled()}]},nextThumbnailIcon:"p-galleria-thumbnail-next-icon"},zz=gt.extend({name:"galleria",classes:jz}),Hz=`
76
+ */const gz="9.9.1";function yz(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gb().__INTLIFY_PROD_DEVTOOLS__=!1)}const PS=vn.__EXTEND_POINT__,us=Yb(PS),br={FALLBACK_TO_ROOT:PS,NOT_SUPPORTED_PRESERVE:us(),NOT_SUPPORTED_FORMATTER:us(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:us(),NOT_SUPPORTED_GET_CHOICE_INDEX:us(),COMPONENT_NAME_LEGACY_COMPATIBLE:us(),NOT_FOUND_PARENT_SCOPE:us(),IGNORE_OBJ_FLATTEN:us(),NOTICE_DROP_ALLOW_COMPOSITION:us()},bz={[br.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[br.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[br.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[br.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[br.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[br.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[br.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[br.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[br.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function r4(n,...e){return Jk(bz[n],...e)}const _S=Yt.__EXTEND_POINT__,Bn=Yb(_S),St={UNEXPECTED_RETURN_TYPE:_S,INVALID_ARGUMENT:Bn(),MUST_BE_CALL_SETUP_TOP:Bn(),NOT_INSTALLED:Bn(),NOT_AVAILABLE_IN_LEGACY_MODE:Bn(),REQUIRED_VALUE:Bn(),INVALID_VALUE:Bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bn(),NOT_INSTALLED_WITH_PROVIDE:Bn(),UNEXPECTED_ERROR:Bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bn(),BRIDGE_SUPPORT_VUE_2_ONLY:Bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bn(),__EXTEND_POINT__:Bn()};function Qd(n,...e){return sS(n,null,process.env.NODE_ENV!=="production"?{messages:wz,args:e}:void 0)}const wz={[St.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[St.INVALID_ARGUMENT]:"Invalid argument",[St.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[St.NOT_INSTALLED]:"Need to install with `app.use` function",[St.UNEXPECTED_ERROR]:"Unexpected error",[St.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[St.REQUIRED_VALUE]:"Required in value: {0}",[St.INVALID_VALUE]:"Invalid value",[St.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[St.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[St.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[St.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[St.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[St.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},i4=oo("__translateVNode"),o4=oo("__datetimeParts"),s4=oo("__numberParts"),a4=oo("__enableEmitter"),l4=oo("__disableEmitter"),vz=oo("__setPluralRules"),Cz=oo("__injectWithOption"),c4=oo("__dispose");function Xd(n){if(!Ve(n))return n;for(const e in n)if(zp(n,e))if(!e.includes("."))Ve(n[e])&&Xd(n[e]);else{const t=e.split("."),r=t.length-1;let i=n,o=!1;for(let s=0;s<r;s++){if(t[s]in i||(i[t[s]]={}),!Ve(i[t[s]])){process.env.NODE_ENV!=="production"&&J0(r4(br.IGNORE_OBJ_FLATTEN,{key:t[s]})),o=!0;break}i=i[t[s]]}o||(i[t[r]]=n[e],delete n[e]),Ve(i[t[r]])&&Xd(i[t[r]])}return n}function LS(n,e){const{messages:t,__i18n:r,messageResolver:i,flatJson:o}=e,s=Re(t)?t:Tt(r)?{}:{[n]:{}};if(Tt(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Up(u,s[c])):Up(u,s)}else se(a)&&Up(JSON.parse(a),s)}),i==null&&o)for(const a in s)zp(s,a)&&Xd(s[a]);return s}function BS(n){return n.type}function kz(n,e,t){let r=Ve(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=LS(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{n.mergeLocaleMessage(o,r[o])});{if(Ve(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(s=>{n.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ve(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(s=>{n.mergeNumberFormat(s,e.numberFormats[s])})}}}function RS(n){return l.createVNode(l.Text,null,n,0)}const $S="__INTLIFY_META__",VS=()=>[],Sz=()=>!1;let FS=0;function jS(n){return(e,t,r,i)=>n(t,r,l.getCurrentInstance()||void 0,i)}const Mz=()=>{const n=l.getCurrentInstance();let e=null;return n&&(e=BS(n)[$S])?{[$S]:e}:null};function Ez(n={},e){const{__root:t,__injectWithOption:r}=n,i=t===void 0,o=n.flatJson,s=io?l.ref:l.shallowRef;let a=kt(n.inheritLocale)?n.inheritLocale:!0;const c=s(t&&a?t.locale.value:se(n.locale)?n.locale:Wp),u=s(t&&a?t.fallbackLocale.value:se(n.fallbackLocale)||Tt(n.fallbackLocale)||Re(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:c.value),d=s(LS(c.value,n)),f=s(Re(n.datetimeFormats)?n.datetimeFormats:{[c.value]:{}}),h=s(Re(n.numberFormats)?n.numberFormats:{[c.value]:{}});let p=t?t.missingWarn:kt(n.missingWarn)||Fp(n.missingWarn)?n.missingWarn:!0,m=t?t.fallbackWarn:kt(n.fallbackWarn)||Fp(n.fallbackWarn)?n.fallbackWarn:!0,y=t?t.fallbackRoot:kt(n.fallbackRoot)?n.fallbackRoot:!0,b=!!n.fallbackFormat,w=it(n.missing)?n.missing:null,v=it(n.missing)?jS(n.missing):null,k=it(n.postTranslation)?n.postTranslation:null,C=t?t.warnHtmlMessage:kt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,T=!!n.escapeParameter;const S=t?t.modifiers:Re(n.modifiers)?n.modifiers:{};let E=n.pluralRules||t&&t.pluralRules,O;O=(()=>{i&&bS(null);const Z={version:gz,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:E,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:b,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:C,escapeParameter:T,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=f.value,Z.numberFormats=h.value,Z.__datetimeFormatters=Re(O)?O.__datetimeFormatters:void 0,Z.__numberFormatters=Re(O)?O.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=Re(O)?O.__v_emitter:void 0);const Y=uz(Z);return i&&bS(Y),Y})(),Yd(O,c.value,u.value);function P(){return[c.value,u.value,d.value,f.value,h.value]}const D=l.computed({get:()=>c.value,set:Z=>{c.value=Z,O.locale=c.value}}),B=l.computed({get:()=>u.value,set:Z=>{u.value=Z,O.fallbackLocale=u.value,Yd(O,c.value,Z)}}),V=l.computed(()=>d.value),U=l.computed(()=>f.value),L=l.computed(()=>h.value);function N(){return it(k)?k:null}function $(Z){k=Z,O.postTranslation=Z}function R(){return w}function q(Z){Z!==null&&(v=jS(Z)),w=Z,O.missing=v}function re(Z,Y){return Z!=="translate"||!Y.resolvedMessage}const ce=(Z,Y,Ae,ct,Qo,ad)=>{P();let xa;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(O.fallbackContext=t?cz():void 0),xa=Z(O)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(O.fallbackContext=void 0)}if(Ae!=="translate exists"&&an(xa)&&xa===Zp||Ae==="translate exists"&&!xa){const[Xo,W]=Y();if(process.env.NODE_ENV!=="production"&&t&&se(Xo)&&re(Ae,W)&&(y&&(Kp(m,Xo)||vS(p,Xo))&&J0(r4(br.FALLBACK_TO_ROOT,{key:Xo,type:Ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:oe}=O;oe&&y&&oe.emit("fallback",{type:Ae,key:Xo,to:"global",groupId:`${Ae}:${Xo}`})}return t&&y?ct(t):Qo(Xo)}else{if(ad(xa))return xa;throw Qd(St.UNEXPECTED_RETURN_TYPE)}};function K(...Z){return ce(Y=>Reflect.apply(kS,null,[Y,...Z]),()=>e4(...Z),"translate",Y=>Reflect.apply(Y.t,Y,[...Z]),Y=>Y,Y=>se(Y))}function H(...Z){const[Y,Ae,ct]=Z;if(ct&&!Ve(ct))throw Qd(St.INVALID_ARGUMENT);return K(Y,Ae,ln({resolvedMessage:!0},ct||{}))}function j(...Z){return ce(Y=>Reflect.apply(TS,null,[Y,...Z]),()=>t4(...Z),"datetime format",Y=>Reflect.apply(Y.d,Y,[...Z]),()=>qp,Y=>se(Y))}function F(...Z){return ce(Y=>Reflect.apply(OS,null,[Y,...Z]),()=>n4(...Z),"number format",Y=>Reflect.apply(Y.n,Y,[...Z]),()=>qp,Y=>se(Y))}function G(Z){return Z.map(Y=>se(Y)||an(Y)||kt(Y)?RS(String(Y)):Y)}const ae={normalize:G,interpolate:Z=>Z,type:"vnode"};function Oe(...Z){return ce(Y=>{let Ae;const ct=Y;try{ct.processor=ae,Ae=Reflect.apply(kS,null,[ct,...Z])}finally{ct.processor=null}return Ae},()=>e4(...Z),"translate",Y=>Y[i4](...Z),Y=>[RS(Y)],Y=>Tt(Y))}function be(...Z){return ce(Y=>Reflect.apply(OS,null,[Y,...Z]),()=>n4(...Z),"number format",Y=>Y[s4](...Z),VS,Y=>se(Y)||Tt(Y))}function Le(...Z){return ce(Y=>Reflect.apply(TS,null,[Y,...Z]),()=>t4(...Z),"datetime format",Y=>Y[o4](...Z),VS,Y=>se(Y)||Tt(Y))}function pt(Z){E=Z,O.pluralRules=E}function pn(Z,Y){return ce(()=>{if(!Z)return!1;const Ae=se(Y)?Y:c.value,ct=mn(Ae),Qo=O.messageResolver(ct,Z);return ec(Qo)||yr(Qo)||se(Qo)},()=>[Z],"translate exists",Ae=>Reflect.apply(Ae.te,Ae,[Z,Y]),Sz,Ae=>kt(Ae))}function $r(Z){let Y=null;const Ae=dS(O,u.value,c.value);for(let ct=0;ct<Ae.length;ct++){const Qo=d.value[Ae[ct]]||{},ad=O.messageResolver(Qo,Z);if(ad!=null){Y=ad;break}}return Y}function Kn(Z){const Y=$r(Z);return Y??(t?t.tm(Z)||{}:{})}function mn(Z){return d.value[Z]||{}}function Ji(Z,Y){if(o){const Ae={[Z]:Y};for(const ct in Ae)zp(Ae,ct)&&Xd(Ae[ct]);Y=Ae[Z]}d.value[Z]=Y,O.messages=d.value}function Aa(Z,Y){d.value[Z]=d.value[Z]||{};const Ae={[Z]:Y};if(o)for(const ct in Ae)zp(Ae,ct)&&Xd(Ae[ct]);Y=Ae[Z],Up(Y,d.value[Z]),O.messages=d.value}function Ta(Z){return f.value[Z]||{}}function _t(Z,Y){f.value[Z]=Y,O.datetimeFormats=f.value,IS(O,Z,Y)}function xn(Z,Y){f.value[Z]=ln(f.value[Z]||{},Y),O.datetimeFormats=f.value,IS(O,Z,Y)}function eo(Z){return h.value[Z]||{}}function Vr(Z,Y){h.value[Z]=Y,O.numberFormats=h.value,NS(O,Z,Y)}function fi(Z,Y){h.value[Z]=ln(h.value[Z]||{},Y),O.numberFormats=h.value,NS(O,Z,Y)}FS++,t&&io&&(l.watch(t.locale,Z=>{a&&(c.value=Z,O.locale=Z,Yd(O,c.value,u.value))}),l.watch(t.fallbackLocale,Z=>{a&&(u.value=Z,O.fallbackLocale=Z,Yd(O,c.value,u.value))}));const Ge={id:FS,locale:D,fallbackLocale:B,get inheritLocale(){return a},set inheritLocale(Z){a=Z,Z&&t&&(c.value=t.locale.value,u.value=t.fallbackLocale.value,Yd(O,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:V,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(Z){p=Z,O.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(Z){m=Z,O.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(Z){y=Z},get fallbackFormat(){return b},set fallbackFormat(Z){b=Z,O.fallbackFormat=b},get warnHtmlMessage(){return C},set warnHtmlMessage(Z){C=Z,O.warnHtmlMessage=Z},get escapeParameter(){return T},set escapeParameter(Z){T=Z,O.escapeParameter=Z},t:K,getLocaleMessage:mn,setLocaleMessage:Ji,mergeLocaleMessage:Aa,getPostTranslationHandler:N,setPostTranslationHandler:$,getMissingHandler:R,setMissingHandler:q,[vz]:pt};return Ge.datetimeFormats=U,Ge.numberFormats=L,Ge.rt=H,Ge.te=pn,Ge.tm=Kn,Ge.d=j,Ge.n=F,Ge.getDateTimeFormat=Ta,Ge.setDateTimeFormat=_t,Ge.mergeDateTimeFormat=xn,Ge.getNumberFormat=eo,Ge.setNumberFormat=Vr,Ge.mergeNumberFormat=fi,Ge[Cz]=r,Ge[i4]=Oe,Ge[o4]=Le,Ge[s4]=be,process.env.NODE_ENV!=="production"&&(Ge[a4]=Z=>{O.__v_emitter=Z},Ge[l4]=()=>{O.__v_emitter=void 0}),Ge}const u4={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function Az({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,i)=>[...r,...i.type===l.Fragment?i.children:[i]],[]):e.reduce((t,r)=>{const i=n[r];return i&&(t[r]=i()),t},{})}function zS(n){return l.Fragment}ln({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>an(n)||!isNaN(n)}},u4);function Tz(n){return Tt(n)&&!se(n[0])}function HS(n,e,t,r){const{slots:i,attrs:o}=e;return()=>{const s={part:!0};let a={};n.locale&&(s.locale=n.locale),se(n.format)?s.key=n.format:Ve(n.format)&&(se(n.format.key)&&(s.key=n.format.key),a=Object.keys(n.format).reduce((h,p)=>t.includes(p)?ln({},h,{[p]:n.format[p]}):h,{}));const c=r(n.value,s,a);let u=[s.key];Tt(c)?u=c.map((h,p)=>{const m=i[h.type],y=m?m({[h.type]:h.value,index:p,parts:c}):[h.value];return Tz(y)&&(y[0].key=`${h.type}-${p}`),y}):se(c)&&(u=[c]);const d=ln({},o),f=se(n.tag)||Ve(n.tag)?n.tag:zS();return l.h(f,d,u)}}ln({value:{type:Number,required:!0},format:{type:[String,Object]}},u4),ln({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},u4);function US(n,e){}const xz=oo("global-vue-i18n");function ao(n={}){const e=l.getCurrentInstance();if(e==null)throw Qd(St.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Qd(St.NOT_INSTALLED);const t=Iz(e),r=Dz(t),i=BS(e),o=Oz(n,i);if(o==="global")return kz(r,n,i),r;if(o==="parent"){let c=Nz(t,e,n.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&J0(r4(br.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=t;let a=s.__getInstance(e);if(a==null){const c=ln({},n);"__i18n"in i&&(c.__i18n=i.__i18n),r&&(c.__root=r),a=Ez(c),s.__composerExtend&&(a[c4]=s.__composerExtend(a)),_z(s,e,a),s.__setInstance(e,a)}return a}function Iz(n){{const e=l.inject(n.isCE?xz:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Qd(n.isCE?St.NOT_INSTALLED_WITH_PROVIDE:St.UNEXPECTED_ERROR);return e}}function Oz(n,e){return jp(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Dz(n){return n.mode==="composition"?n.global:n.global.__composer}function Nz(n,e,t=!1){let r=null;const i=e.root;let o=Pz(e,t);for(;o!=null;){const s=n;if(n.mode==="composition"&&(r=s.__getInstance(o)),r!=null||i===o)break;o=o.parent}return r}function Pz(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function _z(n,e,t){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=t,r=Ej();const i=t;i[a4]&&i[a4](r),r.on("*",US)}},e),l.onUnmounted(()=>{const i=t;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",US),i[l4]&&i[l4](),delete e.vnode.el.__VUE_I18N__),n.__deleteInstance(e);const o=i[c4];o&&(o(),delete i[c4])},e)}if(yz(),oz($j),sz(dS),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const n=Gb();n.__INTLIFY__=!0,qj(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Lz={},Bz=De.extend({style:Lz});function Jd(n){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jd(n)}function ZS(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function WS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ZS(Object(t),!0).forEach(function(r){Rz(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ZS(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Rz(n,e,t){return e=$z(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $z(n){var e=Vz(n,"string");return Jd(e)=="symbol"?e:String(e)}function Vz(n,e){if(Jd(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var qS=Bz.extend("focustrap",{mounted:function(e,t){var r=t.value||{},i=r.disabled;i||(this.createHiddenFocusableElements(e,t),this.bind(e,t),this.autoElementFocus(e,t)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,t){var r=t.value||{},i=r.disabled;i&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,t){var r=this,i=t.value||{},o=i.onFocusIn,s=i.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(a){a.forEach(function(c){if(c.type==="childList"&&!e.contains(document.activeElement)){var u=function d(f){var h=_.isFocusableElement(f)?_.isFocusableElement(f,r.getComputedSelector(e.$_pfocustrap_focusableselector))?f:_.getFirstFocusableElement(e,r.getComputedSelector(e.$_pfocustrap_focusableselector)):_.getFirstFocusableElement(f);return z.isNotEmpty(h)?h:f.nextSibling&&d(f.nextSibling)};_.focus(u(c.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(a){return o&&o(a)},e.$_pfocustrap_focusoutlistener=function(a){return s&&s(a)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:WS(WS({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,t){var r=t.value||{},i=r.autoFocusSelector,o=i===void 0?"":i,s=r.firstFocusableSelector,a=s===void 0?"":s,c=r.autoFocus,u=c===void 0?!1:c,d=_.getFirstFocusableElement(e,"[autofocus]".concat(this.getComputedSelector(o)));u&&!d&&(d=_.getFirstFocusableElement(e,this.getComputedSelector(a))),_.focus(d)},onFirstHiddenElementFocus:function(e){var t,r=e.currentTarget,i=e.relatedTarget,o=i===r.$_pfocustrap_lasthiddenfocusableelement||!((t=this.$el)!==null&&t!==void 0&&t.contains(i))?_.getFirstFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement;_.focus(o)},onLastHiddenElementFocus:function(e){var t,r=e.currentTarget,i=e.relatedTarget,o=i===r.$_pfocustrap_firsthiddenfocusableelement||!((t=this.$el)!==null&&t!==void 0&&t.contains(i))?_.getLastFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_firsthiddenfocusableelement;_.focus(o)},createHiddenFocusableElements:function(e,t){var r=this,i=t.value||{},o=i.tabIndex,s=o===void 0?0:o,a=i.firstFocusableSelector,c=a===void 0?"":a,u=i.lastFocusableSelector,d=u===void 0?"":u,f=function(y){return _.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:s,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:y==null?void 0:y.bind(r)})},h=f(this.onFirstHiddenElementFocus),p=f(this.onLastHiddenElementFocus);h.$_pfocustrap_lasthiddenfocusableelement=p,h.$_pfocustrap_focusableselector=c,h.setAttribute("data-pc-section","firstfocusableelement"),p.$_pfocustrap_firsthiddenfocusableelement=h,p.$_pfocustrap_focusableselector=d,p.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(h),e.append(p)}}}),Gp={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=_.isClient()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Fz(n,e,t,r,i,o){return o.inline?l.renderSlot(n.$slots,"default",{key:0}):i.mounted?(l.openBlock(),l.createBlock(l.Teleport,{key:1,to:t.appendTo},[l.renderSlot(n.$slots,"default")],8,["to"])):l.createCommentVNode("",!0)}Gp.render=Fz;var jz={mask:function(e){var t=e.instance;return["p-galleria-mask p-component-overlay p-component-overlay-enter",{"p-ripple-disabled":t.$primevue.config.ripple===!1}]},root:function(e){var t=e.instance,r=t.$attrs.showThumbnails&&t.getPositionClass("p-galleria-thumbnails",t.$attrs.thumbnailsPosition),i=t.$attrs.showIndicators&&t.getPositionClass("p-galleria-indicators",t.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":t.$attrs.fullScreen,"p-galleria-indicator-onitem":t.$attrs.showIndicatorsOnItem,"p-galleria-item-nav-onhover":t.$attrs.showItemNavigatorsOnHover&&!t.$attrs.fullScreen},r,i]},closeButton:"p-galleria-close p-link",closeIcon:"p-galleria-close-icon",header:"p-galleria-header",content:"p-galleria-content",footer:"p-galleria-footer",itemWrapper:"p-galleria-item-wrapper",itemContainer:"p-galleria-item-container",previousItemButton:function(e){var t=e.instance;return["p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":t.isNavBackwardDisabled()}]},previousItemIcon:"p-galleria-item-prev-icon",item:"p-galleria-item",nextItemButton:function(e){var t=e.instance;return["p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":t.isNavForwardDisabled()}]},nextItemIcon:"p-galleria-item-next-icon",caption:"p-galleria-caption",indicators:"p-galleria-indicators p-reset",indicator:function(e){var t=e.instance,r=e.index;return["p-galleria-indicator",{"p-highlight":t.isIndicatorItemActive(r)}]},indicatorButton:"p-link",thumbnailWrapper:"p-galleria-thumbnail-wrapper",thumbnailContainer:"p-galleria-thumbnail-container",previousThumbnailButton:function(e){var t=e.instance;return["p-galleria-thumbnail-prev p-link",{"p-disabled":t.isNavBackwardDisabled()}]},previousThumbnailIcon:"p-galleria-thumbnail-prev-icon",thumbnailItemsContainer:"p-galleria-thumbnail-items-container",thumbnailItems:"p-galleria-thumbnail-items",thumbnailItem:function(e){var t=e.instance,r=e.index,i=e.activeIndex;return["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":i===r,"p-galleria-thumbnail-item-active":t.isItemActive(r),"p-galleria-thumbnail-item-start":t.firstItemAciveIndex()===r,"p-galleria-thumbnail-item-end":t.lastItemActiveIndex()===r}]},thumbnailItemContent:"p-galleria-thumbnail-item-content",nextThumbnailButton:function(e){var t=e.instance;return["p-galleria-thumbnail-next p-link",{"p-disabled":t.isNavForwardDisabled()}]},nextThumbnailIcon:"p-galleria-thumbnail-next-icon"},zz=gt.extend({name:"galleria",classes:jz}),Hz=`
77
77
  .p-icon {
78
78
  display: inline-block;
79
79
  }
@@ -116,9 +116,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
116
116
  flex: 1 0 `).concat(100/o.numVisible,`%
117
117
  }
118
118
  }
119
- `)}}this.thumbnailsStyle.innerHTML=t},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,t={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var i=this.sortedResponsiveOptions[r];parseInt(i.breakpoint,10)>=e&&(t=i)}this.d_numVisible!==t.numVisible&&(this.d_numVisible=t.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:d4,ChevronRightIcon:t2,ChevronUpIcon:YS,ChevronDownIcon:n2},directives:{ripple:Pn}};function i2(n){"@babel/helpers - typeof";return i2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i2(n)}function JS(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Yp(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?JS(Object(t),!0).forEach(function(r){MH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):JS(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function MH(n,e,t){return e=EH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EH(n){var e=AH(n,"string");return i2(e)=="symbol"?e:String(e)}function AH(n,e){if(i2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(i2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var TH=["disabled","aria-label"],xH=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],IH=["tabindex","aria-label","aria-current","onClick"],OH=["disabled","aria-label"];function DH(n,e,t,r,i,o){var s=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:n.cx("thumbnailWrapper")},n.ptm("thumbnailWrapper")),[l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailContainer")},n.ptm("thumbnailContainer")),[t.showThumbnailNavigators?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,class:n.cx("previousThumbnailButton"),disabled:o.isNavBackwardDisabled(),type:"button","aria-label":o.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(a){return o.navBackward(a)})},Yp(Yp({},t.prevButtonProps),n.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.previousthumbnailicon||(t.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),l.mergeProps({class:n.cx("previousThumbnailIcon")},n.ptm("previousThumbnailIcon")),null,16,["class"]))],16,TH)),[[s]]):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailItemsContainer"),style:{height:t.isVertical?t.contentHeight:""}},n.ptm("thumbnailItemsContainer")),[l.createElementVNode("div",l.mergeProps({ref:"itemsContainer",class:n.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(a){return o.onTransitionEnd(a)}),onTouchstart:e[2]||(e[2]=function(a){return o.onTouchStart(a)}),onTouchmove:e[3]||(e[3]=function(a){return o.onTouchMove(a)}),onTouchend:e[4]||(e[4]=function(a){return o.onTouchEnd(a)})},n.ptm("thumbnailItems")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,function(a,c){return l.openBlock(),l.createElementBlock("div",l.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:n.cx("thumbnailItem",{index:c,activeIndex:t.activeIndex}),role:"tab","data-p-active":t.activeIndex===c,"aria-selected":t.activeIndex===c,"aria-controls":t.containerId+"_item_"+c,onKeydown:function(d){return o.onThumbnailKeydown(d,c)}},n.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":t.activeIndex===c,"data-p-galleria-thumbnail-item-active":o.isItemActive(c),"data-p-galleria-thumbnail-item-start":o.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":o.lastItemActiveIndex()===c}),[l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailItemContent"),tabindex:t.activeIndex===c?"0":"-1","aria-label":o.ariaPageLabel(c+1),"aria-current":t.activeIndex===c?"page":void 0,onClick:function(d){return o.onItemClick(c)}},n.ptm("thumbnailItemContent")),[t.templates.thumbnail?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.thumbnail),{key:0,item:a},null,8,["item"])):l.createCommentVNode("",!0)],16,IH)],16,xH)}),128))],16)],16),t.showThumbnailNavigators?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:1,class:n.cx("nextThumbnailButton"),disabled:o.isNavForwardDisabled(),type:"button","aria-label":o.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(a){return o.navForward(a)})},Yp(Yp({},t.nextButtonProps),n.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.nextthumbnailicon||(t.isVertical?"ChevronDownIcon":"ChevronRightIcon")),l.mergeProps({class:n.cx("nextThumbnailIcon")},n.ptm("nextThumbnailIcon")),null,16,["class"]))],16,OH)),[[s]]):l.createCommentVNode("",!0)],16)],16)}XS.render=DH;function o2(n){"@babel/helpers - typeof";return o2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o2(n)}function eM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function tM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?eM(Object(t),!0).forEach(function(r){NH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):eM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function NH(n,e,t){return e=PH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PH(n){var e=_H(n,"string");return o2(e)=="symbol"?e:String(e)}function _H(n,e){if(o2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(o2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var nM={name:"GalleriaContent",hostName:"Galleria",extends:we,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||zr(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||zr()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||zr()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:tM(tM({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var t=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=t},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,t){var r=["top","left","bottom","right"],i=r.find(function(o){return o===t});return i?"".concat(e,"-").concat(i):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:QS,GalleriaThumbnails:XS,TimesIcon:Za},directives:{ripple:Pn}};function s2(n){"@babel/helpers - typeof";return s2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s2(n)}function rM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function iM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rM(Object(t),!0).forEach(function(r){LH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function LH(n,e,t){return e=BH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function BH(n){var e=RH(n,"string");return s2(e)=="symbol"?e:String(e)}function RH(n,e){if(s2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(s2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var $H=["id","aria-label","aria-roledescription"],VH=["aria-label"],FH=["aria-live"];function jH(n,e,t,r,i,o){var s=l.resolveComponent("GalleriaItem"),a=l.resolveComponent("GalleriaThumbnails"),c=l.resolveDirective("ripple");return n.$attrs.value&&n.$attrs.value.length>0?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,id:i.id,role:"region",class:[n.cx("root"),n.$attrs.containerClass],style:n.$attrs.containerStyle,"aria-label":n.$attrs.ariaLabel,"aria-roledescription":n.$attrs.ariaRoledescription},iM(iM({},n.$attrs.containerProps),o.getPTOptions("root"))),[n.$attrs.fullScreen?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,autofocus:"",type:"button",class:n.cx("closeButton"),"aria-label":o.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return n.$emit("mask-hide")})},o.getPTOptions("closeButton")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.closeicon||"TimesIcon"),l.mergeProps({class:n.cx("closeIcon")},o.getPTOptions("closeIcon")),null,16,["class"]))],16,VH)),[[c]]):l.createCommentVNode("",!0),n.$attrs.templates&&n.$attrs.templates.header?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:n.cx("header")},o.getPTOptions("header")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.header)))],16)):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("content"),"aria-live":n.$attrs.autoPlay?"polite":"off"},o.getPTOptions("content")),[l.createVNode(s,{id:i.id,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return i.slideShowActive=u}),value:n.$attrs.value,circular:n.$attrs.circular,templates:n.$attrs.templates,showIndicators:n.$attrs.showIndicators,changeItemOnIndicatorHover:n.$attrs.changeItemOnIndicatorHover,showItemNavigators:n.$attrs.showItemNavigators,autoPlay:n.$attrs.autoPlay,onStartSlideshow:o.startSlideShow,onStopSlideshow:o.stopSlideShow,pt:n.pt,unstyled:n.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),n.$attrs.showThumbnails?(l.openBlock(),l.createBlock(a,{key:0,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return i.slideShowActive=u}),containerId:i.id,value:n.$attrs.value,templates:n.$attrs.templates,numVisible:i.numVisible,responsiveOptions:n.$attrs.responsiveOptions,circular:n.$attrs.circular,isVertical:o.isVertical(),contentHeight:n.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:n.$attrs.showThumbnailNavigators,prevButtonProps:n.$attrs.prevButtonProps,nextButtonProps:n.$attrs.nextButtonProps,onStopSlideshow:o.stopSlideShow,pt:n.pt,unstyled:n.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):l.createCommentVNode("",!0)],16,FH),n.$attrs.templates&&n.$attrs.templates.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:2,class:n.cx("footer")},o.getPTOptions("footer")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.footer)))],16)):l.createCommentVNode("",!0)],16,$H)):l.createCommentVNode("",!0)}nM.render=jH;var oM={name:"Galleria",extends:cH,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&_.unblockBodyScroll(),this.mask=null,this.container&&(no.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){no.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),_.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&_.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){no.clear(e),this.containerVisible=!1,_.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:nM,Portal:Gp},directives:{focustrap:qS}},zH=["aria-modal"];function HH(n,e,t,r,i,o){var s=l.resolveComponent("GalleriaContent"),a=l.resolveComponent("Portal"),c=l.resolveDirective("focustrap");return n.fullScreen?(l.openBlock(),l.createBlock(a,{key:0},{default:l.withCtx(function(){return[i.containerVisible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:o.maskRef,class:[n.cx("mask"),n.maskClass],role:"dialog","aria-modal":n.fullScreen?"true":void 0},n.ptm("mask")),[l.createVNode(l.Transition,l.mergeProps({name:"p-galleria",onBeforeEnter:o.onBeforeEnter,onEnter:o.onEnter,onBeforeLeave:o.onBeforeLeave,onAfterLeave:o.onAfterLeave,appear:""},n.ptm("transition")),{default:l.withCtx(function(){return[n.visible?l.withDirectives((l.openBlock(),l.createBlock(s,l.mergeProps({key:0,ref:o.containerRef,onMaskHide:o.maskHide,templates:n.$slots,onActiveitemChange:o.onActiveItemChange,pt:n.pt,unstyled:n.unstyled},n.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):l.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,zH)):l.createCommentVNode("",!0)]}),_:1})):(l.openBlock(),l.createBlock(s,l.mergeProps({key:1,templates:n.$slots,onActiveitemChange:o.onActiveItemChange,pt:n.pt,unstyled:n.unstyled},n.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}oM.render=HH;const UH=l.defineComponent({name:"QMenu",props:{modelValue:{type:Boolean,default:!1},actions:{type:Array},dismissibleOverlay:{type:Boolean,default:!0},links:{type:Array,required:!0},linksBackground:{type:String,default:"bg-white"},overlay:{type:String,default:"black-transparent"}},emits:["click:link","click:action"],setup(){return l.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),l.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{}}}),ZH=n=>(l.pushScopeId("data-v-bd24b7a3"),n=n(),l.popScopeId(),n),WH=["value"],qH=ZH(()=>l.createElementVNode("div",{class:"overlay"},null,-1)),KH={class:"q-menu-content px-4 pb-10"},GH=["onClick"],YH={class:"actions"},QH=["onClick"];function XH(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-menu",n.overlay]),value:n.modelValue},[qH,l.createElementVNode("div",KH,[l.renderSlot(n.$slots,"links",{},()=>[l.createElementVNode("ul",{class:l.normalizeClass(["links rounded-[0.8125rem] mb-2",n.linksBackground])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.links,(s,a)=>(l.openBlock(),l.createElementBlock("li",{key:a},[l.createElementVNode("a",{class:l.normalizeClass(["px-4 py-[1.125rem] flex items-center justify-center cursor-pointer text-inkwell-00 text-md",s.classes]),onClick:c=>n.$emit("click:link",s)},l.toDisplayString(s.text),11,GH)]))),128))],2)],!0),l.renderSlot(n.$slots,"actions",{},()=>[l.createElementVNode("ul",YH,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.actions,(s,a)=>(l.openBlock(),l.createElementBlock("li",{key:a},[l.createElementVNode("a",{class:"bg-white px-4 py-[1.125rem] rounded-[0.8125rem] flex items-center justify-center cursor-pointer text-blue-20 text-md font-semibold",onClick:c=>n.$emit("click:action",s)},l.toDisplayString(s.text),9,QH)]))),128))])],!0)])],10,WH)}const m4=me(UH,[["render",XH],["__scopeId","data-v-bd24b7a3"]]);var JH={9306:(n,e,t)=>{var r=t(4901),i=t(6823),o=TypeError;n.exports=function(s){if(r(s))return s;throw new o(i(s)+" is not a function")}},3506:(n,e,t)=>{var r=t(3925),i=String,o=TypeError;n.exports=function(s){if(r(s))return s;throw new o("Can't set "+i(s)+" as a prototype")}},7080:(n,e,t)=>{var r=t(4402).has;n.exports=function(i){return r(i),i}},679:(n,e,t)=>{var r=t(1625),i=TypeError;n.exports=function(o,s){if(r(s,o))return o;throw new i("Incorrect invocation")}},8551:(n,e,t)=>{var r=t(34),i=String,o=TypeError;n.exports=function(s){if(r(s))return s;throw new o(i(s)+" is not an object")}},7811:n=>{n.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(n,e,t)=>{var r=t(4576),i=t(6706),o=t(2195),s=r.ArrayBuffer,a=r.TypeError;n.exports=s&&i(s.prototype,"byteLength","get")||function(c){if(o(c)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return c.byteLength}},3238:(n,e,t)=>{var r=t(4576),i=t(7476),o=t(7394),s=r.ArrayBuffer,a=s&&s.prototype,c=a&&i(a.slice);n.exports=function(u){if(o(u)!==0||!c)return!1;try{return c(u,0,0),!1}catch{return!0}}},5169:(n,e,t)=>{var r=t(3238),i=TypeError;n.exports=function(o){if(r(o))throw new i("ArrayBuffer is detached");return o}},5636:(n,e,t)=>{var r=t(4576),i=t(9504),o=t(6706),s=t(7696),a=t(5169),c=t(7394),u=t(4483),d=t(1548),f=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,m=Math.min,y=h.prototype,b=p.prototype,w=i(y.slice),v=o(y,"resizable","get"),k=o(y,"maxByteLength","get"),C=i(b.getInt8),T=i(b.setInt8);n.exports=(d||u)&&function(S,E,O){var I,P=c(S),D=E===void 0?P:s(E),B=!v||!v(S);if(a(S),d&&(S=f(S,{transfer:[S]}),P===D&&(O||B)))return S;if(P>=D&&(!O||B))I=w(S,0,D);else{var V=O&&!B&&k?{maxByteLength:k(S)}:void 0;I=new h(D,V);for(var U=new p(S),L=new p(I),N=m(D,P),$=0;$<N;$++)T(L,$,C(U,$))}return d||u(S),I}},4644:(n,e,t)=>{var r,i,o,s=t(7811),a=t(3724),c=t(4576),u=t(4901),d=t(34),f=t(9297),h=t(6955),p=t(6823),m=t(6699),y=t(6840),b=t(2106),w=t(1625),v=t(2787),k=t(2967),C=t(8227),T=t(3392),S=t(1181),E=S.enforce,O=S.get,I=c.Int8Array,P=I&&I.prototype,D=c.Uint8ClampedArray,B=D&&D.prototype,V=I&&v(I),U=P&&v(P),L=Object.prototype,N=c.TypeError,$=C("toStringTag"),R=T("TYPED_ARRAY_TAG"),q="TypedArrayConstructor",re=s&&!!k&&h(c.opera)!=="Opera",ue=!1,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},j=function(G){var J=v(G);if(d(J)){var ae=O(J);return ae&&f(ae,q)?ae[q]:j(J)}},F=function(G){if(!d(G))return!1;var J=h(G);return f(K,J)||f(H,J)};for(r in K)(o=(i=c[r])&&i.prototype)?E(o)[q]=i:re=!1;for(r in H)(o=(i=c[r])&&i.prototype)&&(E(o)[q]=i);if((!re||!u(V)||V===Function.prototype)&&(V=function(){throw new N("Incorrect invocation")},re))for(r in K)c[r]&&k(c[r],V);if((!re||!U||U===L)&&(U=V.prototype,re))for(r in K)c[r]&&k(c[r].prototype,U);if(re&&v(B)!==U&&k(B,U),a&&!f(U,$)){ue=!0,b(U,$,{configurable:!0,get:function(){return d(this)?this[R]:void 0}});for(r in K)c[r]&&m(c[r],R,r)}n.exports={NATIVE_ARRAY_BUFFER_VIEWS:re,TYPED_ARRAY_TAG:ue&&R,aTypedArray:function(G){if(F(G))return G;throw new N("Target is not a typed array")},aTypedArrayConstructor:function(G){if(u(G)&&(!k||w(V,G)))return G;throw new N(p(G)+" is not a typed array constructor")},exportTypedArrayMethod:function(G,J,ae,Oe){if(a){if(ae)for(var be in K){var Le=c[be];if(Le&&f(Le.prototype,G))try{delete Le.prototype[G]}catch{try{Le.prototype[G]=J}catch{}}}U[G]&&!ae||y(U,G,ae?J:re&&P[G]||J,Oe)}},exportTypedArrayStaticMethod:function(G,J,ae){var Oe,be;if(a){if(k){if(ae){for(Oe in K)if((be=c[Oe])&&f(be,G))try{delete be[G]}catch{}}if(V[G]&&!ae)return;try{return y(V,G,ae?J:re&&V[G]||J)}catch{}}for(Oe in K)!(be=c[Oe])||be[G]&&!ae||y(be,G,J)}},getTypedArrayConstructor:j,isView:function(J){if(!d(J))return!1;var ae=h(J);return ae==="DataView"||f(K,ae)||f(H,ae)},isTypedArray:F,TypedArray:V,TypedArrayPrototype:U}},5370:(n,e,t)=>{var r=t(6198);n.exports=function(i,o,s){for(var a=0,c=arguments.length>2?s:r(o),u=new i(c);c>a;)u[a]=o[a++];return u}},9617:(n,e,t)=>{var r=t(5397),i=t(5610),o=t(6198),s=function(a){return function(c,u,d){var f=r(c),h=o(f);if(h===0)return!a&&-1;var p,m=i(d,h);if(a&&u!=u){for(;h>m;)if((p=f[m++])!=p)return!0}else for(;h>m;m++)if((a||m in f)&&f[m]===u)return a||m||0;return!a&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},4527:(n,e,t)=>{var r=t(3724),i=t(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(c){return c instanceof TypeError}}();n.exports=a?function(c,u){if(i(c)&&!s(c,"length").writable)throw new o("Cannot set read only .length");return c.length=u}:function(c,u){return c.length=u}},7628:(n,e,t)=>{var r=t(6198);n.exports=function(i,o){for(var s=r(i),a=new o(s),c=0;c<s;c++)a[c]=i[s-c-1];return a}},9928:(n,e,t)=>{var r=t(6198),i=t(1291),o=RangeError;n.exports=function(s,a,c,u){var d=r(s),f=i(c),h=f<0?d+f:f;if(h>=d||h<0)throw new o("Incorrect index");for(var p=new a(d),m=0;m<d;m++)p[m]=m===h?u:s[m];return p}},6319:(n,e,t)=>{var r=t(8551),i=t(9539);n.exports=function(o,s,a,c){try{return c?s(r(a)[0],a[1]):s(a)}catch(u){i(o,"throw",u)}}},2195:(n,e,t)=>{var r=t(9504),i=r({}.toString),o=r("".slice);n.exports=function(s){return o(i(s),8,-1)}},6955:(n,e,t)=>{var r=t(2140),i=t(4901),o=t(2195),s=t(8227)("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments";n.exports=r?o:function(u){var d,f,h;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(p,m){try{return p[m]}catch{}}(d=a(u),s))=="string"?f:c?o(d):(h=o(d))==="Object"&&i(d.callee)?"Arguments":h}},7740:(n,e,t)=>{var r=t(9297),i=t(5031),o=t(7347),s=t(4913);n.exports=function(a,c,u){for(var d=i(c),f=s.f,h=o.f,p=0;p<d.length;p++){var m=d[p];r(a,m)||u&&r(u,m)||f(a,m,h(c,m))}}},2211:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},2529:n=>{n.exports=function(e,t){return{value:e,done:t}}},6699:(n,e,t)=>{var r=t(3724),i=t(4913),o=t(6980);n.exports=r?function(s,a,c){return i.f(s,a,o(1,c))}:function(s,a,c){return s[a]=c,s}},6980:n=>{n.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:(n,e,t)=>{var r=t(3724),i=t(4913),o=t(6980);n.exports=function(s,a,c){r?i.f(s,a,o(0,c)):s[a]=c}},2106:(n,e,t)=>{var r=t(283),i=t(4913);n.exports=function(o,s,a){return a.get&&r(a.get,s,{getter:!0}),a.set&&r(a.set,s,{setter:!0}),i.f(o,s,a)}},6840:(n,e,t)=>{var r=t(4901),i=t(4913),o=t(283),s=t(9433);n.exports=function(a,c,u,d){d||(d={});var f=d.enumerable,h=d.name!==void 0?d.name:c;if(r(u)&&o(u,h,d),d.global)f?a[c]=u:s(c,u);else{try{d.unsafe?a[c]&&(f=!0):delete a[c]}catch{}f?a[c]=u:i.f(a,c,{value:u,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return a}},6279:(n,e,t)=>{var r=t(6840);n.exports=function(i,o,s){for(var a in o)r(i,a,o[a],s);return i}},9433:(n,e,t)=>{var r=t(4576),i=Object.defineProperty;n.exports=function(o,s){try{i(r,o,{value:s,configurable:!0,writable:!0})}catch{r[o]=s}return s}},3724:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483:(n,e,t)=>{var r,i,o,s,a=t(4576),c=t(9429),u=t(1548),d=a.structuredClone,f=a.ArrayBuffer,h=a.MessageChannel,p=!1;if(u)p=function(m){d(m,{transfer:[m]})};else if(f)try{h||(r=c("worker_threads"))&&(h=r.MessageChannel),h&&(i=new h,o=new f(2),s=function(m){i.port1.postMessage(null,[m])},o.byteLength===2&&(s(o),o.byteLength===0&&(p=s)))}catch{}n.exports=p},4055:(n,e,t)=>{var r=t(4576),i=t(34),o=r.document,s=i(o)&&i(o.createElement);n.exports=function(a){return s?o.createElement(a):{}}},6837:n=>{var e=TypeError;n.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},5002:n=>{n.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:n=>{n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193:(n,e,t)=>{var r=t(4215);n.exports=r==="NODE"},2839:(n,e,t)=>{var r=t(4576).navigator,i=r&&r.userAgent;n.exports=i?String(i):""},9519:(n,e,t)=>{var r,i,o=t(4576),s=t(2839),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,d=u&&u.v8;d&&(i=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),n.exports=i},4215:(n,e,t)=>{var r=t(4576),i=t(2839),o=t(2195),s=function(a){return i.slice(0,a.length)===a};n.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":o(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"},8574:(n,e,t)=>{var r=t(9504),i=Error,o=r("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);n.exports=function(u,d){if(c&&typeof u=="string"&&!i.prepareStackTrace)for(;d--;)u=o(u,a,"");return u}},6518:(n,e,t)=>{var r=t(4576),i=t(7347).f,o=t(6699),s=t(6840),a=t(9433),c=t(7740),u=t(2796);n.exports=function(d,f){var h,p,m,y,b,w=d.target,v=d.global,k=d.stat;if(h=v?r:k?r[w]||a(w,{}):r[w]&&r[w].prototype)for(p in f){if(y=f[p],m=d.dontCallGetSet?(b=i(h,p))&&b.value:h[p],!u(v?p:w+(k?".":"#")+p,d.forced)&&m!==void 0){if(typeof y==typeof m)continue;c(y,m)}(d.sham||m&&m.sham)&&o(y,"sham",!0),s(h,p,y,d)}}},9039:n=>{n.exports=function(e){try{return!!e()}catch{return!0}}},6080:(n,e,t)=>{var r=t(7476),i=t(9306),o=t(616),s=r(r.bind);n.exports=function(a,c){return i(a),c===void 0?a:o?s(a,c):function(){return a.apply(c,arguments)}}},616:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9565:(n,e,t)=>{var r=t(616),i=Function.prototype.call;n.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350:(n,e,t)=>{var r=t(3724),i=t(9297),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&(function(){}).name==="something",u=a&&(!r||r&&s(o,"name").configurable);n.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:(n,e,t)=>{var r=t(9504),i=t(9306);n.exports=function(o,s,a){try{return r(i(Object.getOwnPropertyDescriptor(o,s)[a]))}catch{}}},7476:(n,e,t)=>{var r=t(2195),i=t(9504);n.exports=function(o){if(r(o)==="Function")return i(o)}},9504:(n,e,t)=>{var r=t(616),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);n.exports=r?s:function(a){return function(){return o.apply(a,arguments)}}},9429:(n,e,t)=>{var r=t(4576),i=t(6193);n.exports=function(o){if(i){try{return r.process.getBuiltinModule(o)}catch{}try{return Function('return require("'+o+'")')()}catch{}}}},7751:(n,e,t)=>{var r=t(4576),i=t(4901);n.exports=function(o,s){return arguments.length<2?(a=r[o],i(a)?a:void 0):r[o]&&r[o][s];var a}},1767:n=>{n.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8646:(n,e,t)=>{var r=t(9565),i=t(8551),o=t(1767),s=t(851);n.exports=function(a,c){c&&typeof a=="string"||i(a);var u=s(a);return o(i(u!==void 0?r(u,a):a))}},851:(n,e,t)=>{var r=t(6955),i=t(5966),o=t(4117),s=t(6269),a=t(8227)("iterator");n.exports=function(c){if(!o(c))return i(c,a)||i(c,"@@iterator")||s[r(c)]}},81:(n,e,t)=>{var r=t(9565),i=t(9306),o=t(8551),s=t(6823),a=t(851),c=TypeError;n.exports=function(u,d){var f=arguments.length<2?a(u):d;if(i(f))return o(r(f,u));throw new c(s(u)+" is not iterable")}},5966:(n,e,t)=>{var r=t(9306),i=t(4117);n.exports=function(o,s){var a=o[s];return i(a)?void 0:r(a)}},3789:(n,e,t)=>{var r=t(9306),i=t(8551),o=t(9565),s=t(1291),a=t(1767),c="Invalid size",u=RangeError,d=TypeError,f=Math.max,h=function(p,m){this.set=p,this.size=f(m,0),this.has=r(p.has),this.keys=r(p.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(p){return o(this.has,this.set,p)}},n.exports=function(p){i(p);var m=+p.size;if(m!=m)throw new d(c);var y=s(m);if(y<0)throw new u(c);return new h(p,y)}},4576:function(n){var e=function(t){return t&&t.Math===Math&&t};n.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:(n,e,t)=>{var r=t(9504),i=t(8981),o=r({}.hasOwnProperty);n.exports=Object.hasOwn||function(a,c){return o(i(a),c)}},421:n=>{n.exports={}},397:(n,e,t)=>{var r=t(7751);n.exports=r("document","documentElement")},5917:(n,e,t)=>{var r=t(3724),i=t(9039),o=t(4055);n.exports=!r&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7055:(n,e,t)=>{var r=t(9504),i=t(9039),o=t(2195),s=Object,a=r("".split);n.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return o(c)==="String"?a(c,""):s(c)}:s},3167:(n,e,t)=>{var r=t(4901),i=t(34),o=t(2967);n.exports=function(s,a,c){var u,d;return o&&r(u=a.constructor)&&u!==c&&i(d=u.prototype)&&d!==c.prototype&&o(s,d),s}},3706:(n,e,t)=>{var r=t(9504),i=t(4901),o=t(7629),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(a){return s(a)}),n.exports=o.inspectSource},1181:(n,e,t)=>{var r,i,o,s=t(8622),a=t(4576),c=t(34),u=t(6699),d=t(9297),f=t(7629),h=t(6119),p=t(421),m="Object already initialized",y=a.TypeError,b=a.WeakMap;if(s||f.state){var w=f.state||(f.state=new b);w.get=w.get,w.has=w.has,w.set=w.set,r=function(k,C){if(w.has(k))throw new y(m);return C.facade=k,w.set(k,C),C},i=function(k){return w.get(k)||{}},o=function(k){return w.has(k)}}else{var v=h("state");p[v]=!0,r=function(k,C){if(d(k,v))throw new y(m);return C.facade=k,u(k,v,C),C},i=function(k){return d(k,v)?k[v]:{}},o=function(k){return d(k,v)}}n.exports={set:r,get:i,has:o,enforce:function(k){return o(k)?i(k):r(k,{})},getterFor:function(k){return function(C){var T;if(!c(C)||(T=i(C)).type!==k)throw new y("Incompatible receiver, "+k+" required");return T}}}},4209:(n,e,t)=>{var r=t(8227),i=t(6269),o=r("iterator"),s=Array.prototype;n.exports=function(a){return a!==void 0&&(i.Array===a||s[o]===a)}},4376:(n,e,t)=>{var r=t(2195);n.exports=Array.isArray||function(o){return r(o)==="Array"}},1108:(n,e,t)=>{var r=t(6955);n.exports=function(i){var o=r(i);return o==="BigInt64Array"||o==="BigUint64Array"}},4901:n=>{var e=typeof document=="object"&&document.all;n.exports=e===void 0&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796:(n,e,t)=>{var r=t(9039),i=t(4901),o=/#|\.prototype\./,s=function(f,h){var p=c[a(f)];return p===d||p!==u&&(i(h)?r(h):!!h)},a=s.normalize=function(f){return String(f).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",d=s.POLYFILL="P";n.exports=s},4117:n=>{n.exports=function(e){return e==null}},34:(n,e,t)=>{var r=t(4901);n.exports=function(i){return typeof i=="object"?i!==null:r(i)}},3925:(n,e,t)=>{var r=t(34);n.exports=function(i){return r(i)||i===null}},6395:n=>{n.exports=!1},757:(n,e,t)=>{var r=t(7751),i=t(4901),o=t(1625),s=t(7040),a=Object;n.exports=s?function(c){return typeof c=="symbol"}:function(c){var u=r("Symbol");return i(u)&&o(u.prototype,a(c))}},507:(n,e,t)=>{var r=t(9565);n.exports=function(i,o,s){for(var a,c,u=s?i:i.iterator,d=i.next;!(a=r(d,u)).done;)if((c=o(a.value))!==void 0)return c}},2652:(n,e,t)=>{var r=t(6080),i=t(9565),o=t(8551),s=t(6823),a=t(4209),c=t(6198),u=t(1625),d=t(81),f=t(851),h=t(9539),p=TypeError,m=function(b,w){this.stopped=b,this.result=w},y=m.prototype;n.exports=function(b,w,v){var k,C,T,S,E,O,I,P=v&&v.that,D=!(!v||!v.AS_ENTRIES),B=!(!v||!v.IS_RECORD),V=!(!v||!v.IS_ITERATOR),U=!(!v||!v.INTERRUPTED),L=r(w,P),N=function(R){return k&&h(k,"normal",R),new m(!0,R)},$=function(R){return D?(o(R),U?L(R[0],R[1],N):L(R[0],R[1])):U?L(R,N):L(R)};if(B)k=b.iterator;else if(V)k=b;else{if(!(C=f(b)))throw new p(s(b)+" is not iterable");if(a(C)){for(T=0,S=c(b);S>T;T++)if((E=$(b[T]))&&u(y,E))return E;return new m(!1)}k=d(b,C)}for(O=B?b.next:k.next;!(I=i(O,k)).done;){try{E=$(I.value)}catch(R){h(k,"throw",R)}if(typeof E=="object"&&E&&u(y,E))return E}return new m(!1)}},9539:(n,e,t)=>{var r=t(9565),i=t(8551),o=t(5966);n.exports=function(s,a,c){var u,d;i(s);try{if(!(u=o(s,"return"))){if(a==="throw")throw c;return c}u=r(u,s)}catch(f){d=!0,u=f}if(a==="throw")throw c;if(d)throw u;return i(u),c}},9462:(n,e,t)=>{var r=t(9565),i=t(2360),o=t(6699),s=t(6279),a=t(8227),c=t(1181),u=t(5966),d=t(7657).IteratorPrototype,f=t(2529),h=t(9539),p=a("toStringTag"),m="IteratorHelper",y="WrapForValidIterator",b=c.set,w=function(C){var T=c.getterFor(C?y:m);return s(i(d),{next:function(){var E=T(this);if(C)return E.nextHandler();try{var O=E.done?void 0:E.nextHandler();return f(O,E.done)}catch(I){throw E.done=!0,I}},return:function(){var S=T(this),E=S.iterator;if(S.done=!0,C){var O=u(E,"return");return O?r(O,E):f(void 0,!0)}if(S.inner)try{h(S.inner.iterator,"normal")}catch(I){return h(E,"throw",I)}return h(E,"normal"),f(void 0,!0)}})},v=w(!0),k=w(!1);o(k,p,"Iterator Helper"),n.exports=function(C,T){var S=function(O,I){I?(I.iterator=O.iterator,I.next=O.next):I=O,I.type=T?y:m,I.nextHandler=C,I.counter=0,I.done=!1,b(this,I)};return S.prototype=T?v:k,S}},713:(n,e,t)=>{var r=t(9565),i=t(9306),o=t(8551),s=t(1767),a=t(9462),c=t(6319),u=a(function(){var d=this.iterator,f=o(r(this.next,d));if(!(this.done=!!f.done))return c(d,this.mapper,[f.value,this.counter++],!0)});n.exports=function(f){return o(this),i(f),new u(s(this),{mapper:f})}},7657:(n,e,t)=>{var r,i,o,s=t(9039),a=t(4901),c=t(34),u=t(2360),d=t(2787),f=t(6840),h=t(8227),p=t(6395),m=h("iterator"),y=!1;[].keys&&("next"in(o=[].keys())?(i=d(d(o)))!==Object.prototype&&(r=i):y=!0),!c(r)||s(function(){var b={};return r[m].call(b)!==b})?r={}:p&&(r=u(r)),a(r[m])||f(r,m,function(){return this}),n.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},6269:n=>{n.exports={}},6198:(n,e,t)=>{var r=t(8014);n.exports=function(i){return r(i.length)}},283:(n,e,t)=>{var r=t(9504),i=t(9039),o=t(4901),s=t(9297),a=t(3724),c=t(350).CONFIGURABLE,u=t(3706),d=t(1181),f=d.enforce,h=d.get,p=String,m=Object.defineProperty,y=r("".slice),b=r("".replace),w=r([].join),v=a&&!i(function(){return m(function(){},"length",{value:8}).length!==8}),k=String(String).split("String"),C=n.exports=function(T,S,E){y(p(S),0,7)==="Symbol("&&(S="["+b(p(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),E&&E.getter&&(S="get "+S),E&&E.setter&&(S="set "+S),(!s(T,"name")||c&&T.name!==S)&&(a?m(T,"name",{value:S,configurable:!0}):T.name=S),v&&E&&s(E,"arity")&&T.length!==E.arity&&m(T,"length",{value:E.arity});try{E&&s(E,"constructor")&&E.constructor?a&&m(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch{}var O=f(T);return s(O,"source")||(O.source=w(k,typeof S=="string"?S:"")),T};Function.prototype.toString=C(function(){return o(this)&&h(this).source||u(this)},"toString")},741:n=>{var e=Math.ceil,t=Math.floor;n.exports=Math.trunc||function(i){var o=+i;return(o>0?t:e)(o)}},6043:(n,e,t)=>{var r=t(9306),i=TypeError,o=function(s){var a,c;this.promise=new s(function(u,d){if(a!==void 0||c!==void 0)throw new i("Bad Promise constructor");a=u,c=d}),this.resolve=r(a),this.reject=r(c)};n.exports.f=function(s){return new o(s)}},2603:(n,e,t)=>{var r=t(655);n.exports=function(i,o){return i===void 0?arguments.length<2?"":o:r(i)}},4149:n=>{var e=RangeError;n.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},2360:(n,e,t)=>{var r,i=t(8551),o=t(6801),s=t(8727),a=t(421),c=t(397),u=t(4055),d=t(6119),f="prototype",h="script",p=d("IE_PROTO"),m=function(){},y=function(v){return"<"+h+">"+v+"</"+h+">"},b=function(v){v.write(y("")),v.close();var k=v.parentWindow.Object;return v=null,k},w=function(){try{r=new ActiveXObject("htmlfile")}catch{}w=typeof document<"u"?document.domain&&r?b(r):function(){var k,C=u("iframe"),T="java"+h+":";return C.style.display="none",c.appendChild(C),C.src=String(T),(k=C.contentWindow.document).open(),k.write(y("document.F=Object")),k.close(),k.F}():b(r);for(var v=s.length;v--;)delete w[f][s[v]];return w()};a[p]=!0,n.exports=Object.create||function(k,C){var T;return k!==null?(m[f]=i(k),T=new m,m[f]=null,T[p]=k):T=w(),C===void 0?T:o.f(T,C)}},6801:(n,e,t)=>{var r=t(3724),i=t(8686),o=t(4913),s=t(8551),a=t(5397),c=t(1072);e.f=r&&!i?Object.defineProperties:function(d,f){s(d);for(var h,p=a(f),m=c(f),y=m.length,b=0;y>b;)o.f(d,h=m[b++],p[h]);return d}},4913:(n,e,t)=>{var r=t(3724),i=t(5917),o=t(8686),s=t(8551),a=t(6969),c=TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(y,b,w){if(s(y),b=a(b),s(w),typeof y=="function"&&b==="prototype"&&"value"in w&&p in w&&!w[p]){var v=d(y,b);v&&v[p]&&(y[b]=w.value,w={configurable:h in w?w[h]:v[h],enumerable:f in w?w[f]:v[f],writable:!1})}return u(y,b,w)}:u:function(y,b,w){if(s(y),b=a(b),s(w),i)try{return u(y,b,w)}catch{}if("get"in w||"set"in w)throw new c("Accessors not supported");return"value"in w&&(y[b]=w.value),y}},7347:(n,e,t)=>{var r=t(3724),i=t(9565),o=t(8773),s=t(6980),a=t(5397),c=t(6969),u=t(9297),d=t(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(p,m){if(p=a(p),m=c(m),d)try{return f(p,m)}catch{}if(u(p,m))return s(!i(o.f,p,m),p[m])}},8480:(n,e,t)=>{var r=t(1828),i=t(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return r(s,i)}},3717:(n,e)=>{e.f=Object.getOwnPropertySymbols},2787:(n,e,t)=>{var r=t(9297),i=t(4901),o=t(8981),s=t(6119),a=t(2211),c=s("IE_PROTO"),u=Object,d=u.prototype;n.exports=a?u.getPrototypeOf:function(f){var h=o(f);if(r(h,c))return h[c];var p=h.constructor;return i(p)&&h instanceof p?p.prototype:h instanceof u?d:null}},1625:(n,e,t)=>{var r=t(9504);n.exports=r({}.isPrototypeOf)},1828:(n,e,t)=>{var r=t(9504),i=t(9297),o=t(5397),s=t(9617).indexOf,a=t(421),c=r([].push);n.exports=function(u,d){var f,h=o(u),p=0,m=[];for(f in h)!i(a,f)&&i(h,f)&&c(m,f);for(;d.length>p;)i(h,f=d[p++])&&(~s(m,f)||c(m,f));return m}},1072:(n,e,t)=>{var r=t(1828),i=t(8727);n.exports=Object.keys||function(s){return r(s,i)}},8773:(n,e)=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!t.call({1:2},1);e.f=i?function(s){var a=r(this,s);return!!a&&a.enumerable}:t},2967:(n,e,t)=>{var r=t(6706),i=t(34),o=t(7750),s=t(3506);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,c=!1,u={};try{(a=r(Object.prototype,"__proto__","set"))(u,[]),c=u instanceof Array}catch{}return function(f,h){return o(f),s(h),i(f)&&(c?a(f,h):f.__proto__=h),f}}():void 0)},4270:(n,e,t)=>{var r=t(9565),i=t(4901),o=t(34),s=TypeError;n.exports=function(a,c){var u,d;if(c==="string"&&i(u=a.toString)&&!o(d=r(u,a))||i(u=a.valueOf)&&!o(d=r(u,a))||c!=="string"&&i(u=a.toString)&&!o(d=r(u,a)))return d;throw new s("Can't convert object to primitive value")}},5031:(n,e,t)=>{var r=t(7751),i=t(9504),o=t(8480),s=t(3717),a=t(8551),c=i([].concat);n.exports=r("Reflect","ownKeys")||function(d){var f=o.f(a(d)),h=s.f;return h?c(f,h(d)):f}},8235:(n,e,t)=>{var r=t(9504),i=t(9297),o=SyntaxError,s=parseInt,a=String.fromCharCode,c=r("".charAt),u=r("".slice),d=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
120
- `,"\\r":"\r","\\t":" "},h=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;n.exports=function(m,y){for(var b=!0,w="";y<m.length;){var v=c(m,y);if(v==="\\"){var k=u(m,y,y+2);if(i(f,k))w+=f[k],y+=2;else{if(k!=="\\u")throw new o('Unknown escape sequence: "'+k+'"');var C=u(m,y+=2,y+4);if(!d(h,C))throw new o("Bad Unicode escape at: "+y);w+=a(s(C,16)),y+=4}}else{if(v==='"'){b=!1,y++;break}if(d(p,v))throw new o("Bad control character in string literal at: "+y);w+=v,y++}}if(b)throw new o("Unterminated string at: "+y);return{value:w,end:y}}},7750:(n,e,t)=>{var r=t(4117),i=TypeError;n.exports=function(o){if(r(o))throw new i("Can't call method on "+o);return o}},9286:(n,e,t)=>{var r=t(4402),i=t(8469),o=r.Set,s=r.add;n.exports=function(a){var c=new o;return i(a,function(u){s(c,u)}),c}},3440:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(9286),s=t(5170),a=t(3789),c=t(8469),u=t(507),d=i.has,f=i.remove;n.exports=function(p){var m=r(this),y=a(p),b=o(m);return s(m)<=y.size?c(m,function(w){y.includes(w)&&f(b,w)}):u(y.getIterator(),function(w){d(m,w)&&f(b,w)}),b}},4402:(n,e,t)=>{var r=t(9504),i=Set.prototype;n.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},8750:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(5170),s=t(3789),a=t(8469),c=t(507),u=i.Set,d=i.add,f=i.has;n.exports=function(p){var m=r(this),y=s(p),b=new u;return o(m)>y.size?c(y.getIterator(),function(w){f(m,w)&&d(b,w)}):a(m,function(w){y.includes(w)&&d(b,w)}),b}},4449:(n,e,t)=>{var r=t(7080),i=t(4402).has,o=t(5170),s=t(3789),a=t(8469),c=t(507),u=t(9539);n.exports=function(f){var h=r(this),p=s(f);if(o(h)<=p.size)return a(h,function(y){if(p.includes(y))return!1},!0)!==!1;var m=p.getIterator();return c(m,function(y){if(i(h,y))return u(m,"normal",!1)})!==!1}},3838:(n,e,t)=>{var r=t(7080),i=t(5170),o=t(8469),s=t(3789);n.exports=function(c){var u=r(this),d=s(c);return!(i(u)>d.size)&&o(u,function(f){if(!d.includes(f))return!1},!0)!==!1}},8527:(n,e,t)=>{var r=t(7080),i=t(4402).has,o=t(5170),s=t(3789),a=t(507),c=t(9539);n.exports=function(d){var f=r(this),h=s(d);if(o(f)<h.size)return!1;var p=h.getIterator();return a(p,function(m){if(!i(f,m))return c(p,"normal",!1)})!==!1}},8469:(n,e,t)=>{var r=t(9504),i=t(507),o=t(4402),s=o.Set,a=o.proto,c=r(a.forEach),u=r(a.keys),d=u(new s).next;n.exports=function(f,h,p){return p?i({iterator:u(f),next:d},h):c(f,h)}},4916:(n,e,t)=>{var r=t(7751),i=function(o){return{size:o,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};n.exports=function(o){var s=r("Set");try{new s()[o](i(0));try{return new s()[o](i(-1)),!1}catch{return!0}}catch{return!1}}},5170:(n,e,t)=>{var r=t(6706),i=t(4402);n.exports=r(i.proto,"size","get")||function(o){return o.size}},3650:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(9286),s=t(3789),a=t(507),c=i.add,u=i.has,d=i.remove;n.exports=function(h){var p=r(this),m=s(h).getIterator(),y=o(p);return a(m,function(b){u(p,b)?d(y,b):c(y,b)}),y}},4204:(n,e,t)=>{var r=t(7080),i=t(4402).add,o=t(9286),s=t(3789),a=t(507);n.exports=function(u){var d=r(this),f=s(u).getIterator(),h=o(d);return a(f,function(p){i(h,p)}),h}},6119:(n,e,t)=>{var r=t(5745),i=t(3392),o=r("keys");n.exports=function(s){return o[s]||(o[s]=i(s))}},7629:(n,e,t)=>{var r=t(6395),i=t(4576),o=t(9433),s="__core-js_shared__",a=n.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(n,e,t)=>{var r=t(7629);n.exports=function(i,o){return r[i]||(r[i]=o||{})}},1548:(n,e,t)=>{var r=t(4576),i=t(9039),o=t(9519),s=t(4215),a=r.structuredClone;n.exports=!!a&&!i(function(){if(s==="DENO"&&o>92||s==="NODE"&&o>94||s==="BROWSER"&&o>97)return!1;var c=new ArrayBuffer(8),u=a(c,{transfer:[c]});return c.byteLength!==0||u.byteLength!==8})},4495:(n,e,t)=>{var r=t(9519),i=t(9039),o=t(4576).String;n.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:(n,e,t)=>{var r=t(1291),i=Math.max,o=Math.min;n.exports=function(s,a){var c=r(s);return c<0?i(c+a,0):o(c,a)}},5854:(n,e,t)=>{var r=t(2777),i=TypeError;n.exports=function(o){var s=r(o,"number");if(typeof s=="number")throw new i("Can't convert number to bigint");return BigInt(s)}},7696:(n,e,t)=>{var r=t(1291),i=t(8014),o=RangeError;n.exports=function(s){if(s===void 0)return 0;var a=r(s),c=i(a);if(a!==c)throw new o("Wrong length or index");return c}},5397:(n,e,t)=>{var r=t(7055),i=t(7750);n.exports=function(o){return r(i(o))}},1291:(n,e,t)=>{var r=t(741);n.exports=function(i){var o=+i;return o!=o||o===0?0:r(o)}},8014:(n,e,t)=>{var r=t(1291),i=Math.min;n.exports=function(o){var s=r(o);return s>0?i(s,9007199254740991):0}},8981:(n,e,t)=>{var r=t(7750),i=Object;n.exports=function(o){return i(r(o))}},9590:(n,e,t)=>{var r=t(1291),i=RangeError;n.exports=function(o){var s=r(o);if(s<0)throw new i("The argument can't be less than 0");return s}},2777:(n,e,t)=>{var r=t(9565),i=t(34),o=t(757),s=t(5966),a=t(4270),c=t(8227),u=TypeError,d=c("toPrimitive");n.exports=function(f,h){if(!i(f)||o(f))return f;var p,m=s(f,d);if(m){if(h===void 0&&(h="default"),p=r(m,f,h),!i(p)||o(p))return p;throw new u("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(f,h)}},6969:(n,e,t)=>{var r=t(2777),i=t(757);n.exports=function(o){var s=r(o,"string");return i(s)?s:s+""}},2140:(n,e,t)=>{var r={};r[t(8227)("toStringTag")]="z",n.exports=String(r)==="[object z]"},655:(n,e,t)=>{var r=t(6955),i=String;n.exports=function(o){if(r(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},6823:n=>{var e=String;n.exports=function(t){try{return e(t)}catch{return"Object"}}},3392:(n,e,t)=>{var r=t(9504),i=0,o=Math.random(),s=r(1 .toString);n.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+s(++i+o,36)}},7040:(n,e,t)=>{var r=t(4495);n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:(n,e,t)=>{var r=t(3724),i=t(9039);n.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812:n=>{var e=TypeError;n.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:(n,e,t)=>{var r=t(4576),i=t(4901),o=r.WeakMap;n.exports=i(o)&&/native code/.test(String(o))},8227:(n,e,t)=>{var r=t(4576),i=t(5745),o=t(9297),s=t(3392),a=t(4495),c=t(7040),u=r.Symbol,d=i("wks"),f=c?u.for||u:u&&u.withoutSetter||s;n.exports=function(h){return o(d,h)||(d[h]=a&&o(u,h)?u[h]:f("Symbol."+h)),d[h]}},6573:(n,e,t)=>{var r=t(3724),i=t(2106),o=t(3238),s=ArrayBuffer.prototype;r&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},7936:(n,e,t)=>{var r=t(6518),i=t(5636);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100:(n,e,t)=>{var r=t(6518),i=t(5636);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4114:(n,e,t)=>{var r=t(6518),i=t(8981),o=t(6198),s=t(4527),a=t(6837);r({target:"Array",proto:!0,arity:1,forced:t(9039)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(c){return c instanceof TypeError}}()},{push:function(u){var d=i(this),f=o(d),h=arguments.length;a(f+h);for(var p=0;p<h;p++)d[f]=arguments[p],f++;return s(d,f),f}})},4628:(n,e,t)=>{var r=t(6518),i=t(6043);r({target:"Promise",stat:!0},{withResolvers:function(){var s=i.f(this);return{promise:s.promise,resolve:s.resolve,reject:s.reject}}})},7642:(n,e,t)=>{var r=t(6518),i=t(3440);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("difference")},{difference:i})},8004:(n,e,t)=>{var r=t(6518),i=t(9039),o=t(8750);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("intersection")||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"})},{intersection:o})},3853:(n,e,t)=>{var r=t(6518),i=t(4449);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isDisjointFrom")},{isDisjointFrom:i})},5876:(n,e,t)=>{var r=t(6518),i=t(3838);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isSubsetOf")},{isSubsetOf:i})},2475:(n,e,t)=>{var r=t(6518),i=t(8527);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isSupersetOf")},{isSupersetOf:i})},5024:(n,e,t)=>{var r=t(6518),i=t(3650);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("symmetricDifference")},{symmetricDifference:i})},1698:(n,e,t)=>{var r=t(6518),i=t(4204);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("union")},{union:i})},7467:(n,e,t)=>{var r=t(7628),i=t(4644),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",function(){return r(o(this),a(this))})},4732:(n,e,t)=>{var r=t(4644),i=t(9504),o=t(9306),s=t(5370),a=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=i(r.TypedArrayPrototype.sort);u("toSorted",function(h){h!==void 0&&o(h);var p=a(this),m=s(c(p),p);return d(m,h)})},9577:(n,e,t)=>{var r=t(9928),i=t(4644),o=t(1108),s=t(1291),a=t(5854),c=i.aTypedArray,u=i.getTypedArrayConstructor,d=i.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(h){return h===8}}();d("with",function(h,p){var m=c(this),y=s(h),b=o(m)?a(p):+p;return r(m,u(m),y,b)},!f)},8992:(n,e,t)=>{var r=t(6518),i=t(4576),o=t(679),s=t(8551),a=t(4901),c=t(2787),u=t(2106),d=t(4659),f=t(9039),h=t(9297),p=t(8227),m=t(7657).IteratorPrototype,y=t(3724),b=t(6395),w="constructor",v="Iterator",k=p("toStringTag"),C=TypeError,T=i[v],S=b||!a(T)||T.prototype!==m||!f(function(){T({})}),E=function(){if(o(this,m),c(this)===m)throw new C("Abstract class Iterator not directly constructable")},O=function(I,P){y?u(m,I,{configurable:!0,get:function(){return P},set:function(D){if(s(this),this===m)throw new C("You can't redefine this property");h(this,I)?this[I]=D:d(this,I,D)}}):m[I]=P};h(m,k)||O(k,v),!S&&h(m,w)&&m[w]!==Object||O(w,E),E.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:E})},4743:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(8551),s=t(1767),a=t(4149),c=t(9590),u=t(9462),d=t(6395),f=u(function(){for(var h,p=this.iterator,m=this.next;this.remaining;)if(this.remaining--,h=o(i(m,p)),this.done=!!h.done)return;if(h=o(i(m,p)),!(this.done=!!h.done))return h.value});r({target:"Iterator",proto:!0,real:!0,forced:d},{drop:function(p){o(this);var m=c(a(+p));return new f(s(this),{remaining:m})}})},3215:(n,e,t)=>{var r=t(6518),i=t(2652),o=t(9306),s=t(8551),a=t(1767);r({target:"Iterator",proto:!0,real:!0},{every:function(u){s(this),o(u);var d=a(this),f=0;return!i(d,function(h,p){if(!u(h,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},4520:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(9306),s=t(8551),a=t(1767),c=t(9462),u=t(6319),d=t(6395),f=c(function(){for(var h,p,m=this.iterator,y=this.predicate,b=this.next;;){if(h=s(i(b,m)),this.done=!!h.done)return;if(p=h.value,u(m,y,[p,this.counter++],!0))return p}});r({target:"Iterator",proto:!0,real:!0,forced:d},{filter:function(p){return s(this),o(p),new f(a(this),{predicate:p})}})},670:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(9306),s=t(8551),a=t(1767),c=t(8646),u=t(9462),d=t(9539),f=t(6395),h=u(function(){for(var p,m,y=this.iterator,b=this.mapper;;){if(m=this.inner)try{if(!(p=s(i(m.next,m.iterator))).done)return p.value;this.inner=null}catch(w){d(y,"throw",w)}if(p=s(i(this.next,y)),this.done=!!p.done)return;try{this.inner=c(b(p.value,this.counter++),!1)}catch(w){d(y,"throw",w)}}});r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(m){return s(this),o(m),new h(a(this),{mapper:m,inner:null})}})},1454:(n,e,t)=>{var r=t(6518),i=t(713);r({target:"Iterator",proto:!0,real:!0,forced:t(6395)},{map:i})},7550:(n,e,t)=>{var r=t(6518),i=t(2652),o=t(9306),s=t(8551),a=t(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(u){s(this),o(u);var d=a(this),f=0;return i(d,function(h,p){if(u(h,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8335:(n,e,t)=>{var r=t(6518),i=t(3724),o=t(4576),s=t(7751),a=t(9504),c=t(9565),u=t(4901),d=t(34),f=t(4376),h=t(9297),p=t(655),m=t(6198),y=t(4659),b=t(9039),w=t(8235),v=t(4495),k=o.JSON,C=o.Number,T=o.SyntaxError,S=k&&k.parse,E=s("Object","keys"),O=Object.getOwnPropertyDescriptor,I=a("".charAt),P=a("".slice),D=a(/./.exec),B=a([].push),V=/^\d$/,U=/^[1-9]$/,L=/^[\d-]$/,N=/^[\t\n\r ]$/,$=function(H,j,F,G){var J,ae,Oe,be,Le,pt=H[j],pn=G&&pt===G.value,$r=pn&&typeof G.source=="string"?{source:G.source}:{};if(d(pt)){var Kn=f(pt),mn=pn?G.nodes:Kn?[]:{};if(Kn)for(J=mn.length,Oe=m(pt),be=0;be<Oe;be++)R(pt,be,$(pt,""+be,F,be<J?mn[be]:void 0));else for(ae=E(pt),Oe=m(ae),be=0;be<Oe;be++)Le=ae[be],R(pt,Le,$(pt,Le,F,h(mn,Le)?mn[Le]:void 0))}return c(F,H,j,pt,$r)},R=function(H,j,F){if(i){var G=O(H,j);if(G&&!G.configurable)return}F===void 0?delete H[j]:y(H,j,F)},q=function(H,j,F,G){this.value=H,this.end=j,this.source=F,this.nodes=G},re=function(H,j){this.source=H,this.index=j};re.prototype={fork:function(H){return new re(this.source,H)},parse:function(){var H=this.source,j=this.skip(N,this.index),F=this.fork(j),G=I(H,j);if(D(L,G))return F.number();switch(G){case"{":return F.object();case"[":return F.array();case'"':return F.string();case"t":return F.keyword(!0);case"f":return F.keyword(!1);case"n":return F.keyword(null)}throw new T('Unexpected character: "'+G+'" at: '+j)},node:function(H,j,F,G,J){return new q(j,G,H?null:P(this.source,F,G),J)},object:function(){for(var H=this.source,j=this.index+1,F=!1,G={},J={};j<H.length;){if(j=this.until(['"',"}"],j),I(H,j)==="}"&&!F){j++;break}var ae=this.fork(j).string(),Oe=ae.value;j=ae.end,j=this.until([":"],j)+1,j=this.skip(N,j),ae=this.fork(j).parse(),y(J,Oe,ae),y(G,Oe,ae.value),j=this.until([",","}"],ae.end);var be=I(H,j);if(be===",")F=!0,j++;else if(be==="}"){j++;break}}return this.node(1,G,this.index,j,J)},array:function(){for(var H=this.source,j=this.index+1,F=!1,G=[],J=[];j<H.length;){if(j=this.skip(N,j),I(H,j)==="]"&&!F){j++;break}var ae=this.fork(j).parse();if(B(J,ae),B(G,ae.value),j=this.until([",","]"],ae.end),I(H,j)===",")F=!0,j++;else if(I(H,j)==="]"){j++;break}}return this.node(1,G,this.index,j,J)},string:function(){var H=this.index,j=w(this.source,this.index+1);return this.node(0,j.value,H,j.end)},number:function(){var H=this.source,j=this.index,F=j;if(I(H,F)==="-"&&F++,I(H,F)==="0")F++;else{if(!D(U,I(H,F)))throw new T("Failed to parse number at: "+F);F=this.skip(V,F+1)}if(I(H,F)==="."&&(F=this.skip(V,F+1)),(I(H,F)==="e"||I(H,F)==="E")&&(F++,I(H,F)!=="+"&&I(H,F)!=="-"||F++,F===(F=this.skip(V,F))))throw new T("Failed to parse number's exponent value at: "+F);return this.node(0,C(P(H,j,F)),j,F)},keyword:function(H){var j=""+H,F=this.index,G=F+j.length;if(P(this.source,F,G)!==j)throw new T("Failed to parse value at: "+F);return this.node(0,H,F,G)},skip:function(H,j){for(var F=this.source;j<F.length&&D(H,I(F,j));j++);return j},until:function(H,j){j=this.skip(N,j);for(var F=I(this.source,j),G=0;G<H.length;G++)if(H[G]===F)return j;throw new T('Unexpected character: "'+F+'" at: '+j)}};var ue=b(function(){var H,j="9007199254740993";return S(j,function(F,G,J){H=J.source}),H!==j}),K=v&&!b(function(){return 1/S("-0 ")!=-1/0});r({target:"JSON",stat:!0,forced:ue},{parse:function(j,F){return K&&!u(F)?S(j):function(G,J){G=p(G);var ae=new re(G,0),Oe=ae.parse(),be=Oe.value,Le=ae.skip(N,Oe.end);if(Le<G.length)throw new T('Unexpected extra character: "'+I(G,Le)+'" after the parsed data at: '+Le);return u(J)?$({"":be},"",J,Oe):be}(j,F)}})},4979:(n,e,t)=>{var r=t(6518),i=t(4576),o=t(7751),s=t(6980),a=t(4913).f,c=t(9297),u=t(679),d=t(3167),f=t(2603),h=t(5002),p=t(8574),m=t(3724),y=t(6395),b="DOMException",w=o("Error"),v=o(b),k=function(){u(this,C);var N=arguments.length,$=f(N<1?void 0:arguments[0]),R=f(N<2?void 0:arguments[1],"Error"),q=new v($,R),re=new w($);return re.name=b,a(q,"stack",s(1,p(re.stack,1))),d(q,this,k),q},C=k.prototype=v.prototype,T="stack"in new w(b),S="stack"in new v(1,2),E=v&&m&&Object.getOwnPropertyDescriptor(i,b),O=!(!E||E.writable&&E.configurable),I=T&&!O&&!S;r({global:!0,constructor:!0,forced:y||I},{DOMException:I?k:v});var P=o(b),D=P.prototype;if(D.constructor!==P){y||a(D,"constructor",s(1,P));for(var B in h)if(c(h,B)){var V=h[B],U=V.s;c(P,U)||a(P,U,s(6,V.c))}}},4603:(n,e,t)=>{var r=t(6840),i=t(9504),o=t(655),s=t(2812),a=URLSearchParams,c=a.prototype,u=i(c.append),d=i(c.delete),f=i(c.forEach),h=i([].push),p=new a("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(c,"delete",function(m){var y=arguments.length,b=y<2?void 0:arguments[1];if(y&&b===void 0)return d(this,m);var w=[];f(this,function(I,P){h(w,{key:P,value:I})}),s(y,1);for(var v,k=o(m),C=o(b),T=0,S=0,E=!1,O=w.length;T<O;)v=w[T++],E||v.key===k?(E=!0,d(this,v.key)):S++;for(;S<O;)(v=w[S++]).key===k&&v.value===C||u(this,v.key,v.value)},{enumerable:!0,unsafe:!0})},7566:(n,e,t)=>{var r=t(6840),i=t(9504),o=t(655),s=t(2812),a=URLSearchParams,c=a.prototype,u=i(c.getAll),d=i(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||r(c,"has",function(p){var m=arguments.length,y=m<2?void 0:arguments[1];if(m&&y===void 0)return d(this,p);var b=u(this,p);s(m,1);for(var w=o(y),v=0;v<b.length;)if(b[v++]===w)return!0;return!1},{enumerable:!0,unsafe:!0})},8721:(n,e,t)=>{var r=t(3724),i=t(9504),o=t(2106),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var u=0;return a(this,function(){u++}),u},configurable:!0,enumerable:!0})}},sM={};function Pe(n){var e=sM[n];if(e!==void 0)return e.exports;var t=sM[n]={exports:{}};return JH[n].call(t.exports,t,t.exports,Pe),t.exports}Pe.d=(n,e)=>{for(var t in e)Pe.o(e,t)&&!Pe.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},Pe.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var ye=globalThis.pdfjsLib={};Pe.d(ye,{AbortException:()=>qa,AnnotationEditorLayer:()=>X4,AnnotationEditorParamsType:()=>he,AnnotationEditorType:()=>Te,AnnotationEditorUIManager:()=>Ga,AnnotationLayer:()=>lW,AnnotationMode:()=>ds,CMapCompressionType:()=>v4,ColorPicker:()=>gm,DOMSVGFactory:()=>A4,DrawLayer:()=>J4,FeatureTest:()=>Rn,GlobalWorkerOptions:()=>uo,ImageKind:()=>Jp,InvalidPDFException:()=>uM,MissingPDFException:()=>Wa,OPS:()=>qr,PDFDataRangeTransport:()=>KM,PDFDateString:()=>kM,PDFWorker:()=>nc,PasswordResponses:()=>DU,PermissionFlag:()=>sU,PixelsPerInch:()=>hs,RenderingCancelledException:()=>T4,TextLayer:()=>m2,UnexpectedResponseException:()=>rm,Util:()=>le,VerbosityLevel:()=>em,XfaLayer:()=>XM,build:()=>HZ,createValidAbsoluteUrl:()=>_U,fetchData:()=>om,getDocument:()=>BZ,getFilenameFromUrl:()=>qU,getPdfFilenameFromUrl:()=>KU,getXfaPageViewport:()=>GU,isDataScheme:()=>sm,isPdfFile:()=>x4,noContextMenu:()=>wr,normalizeUnicode:()=>BU,setLayerDimensions:()=>Ka,shadow:()=>Ie,version:()=>zZ}),Pe(4114),Pe(6573),Pe(8100),Pe(7936),Pe(7467),Pe(4732),Pe(9577),Pe(4603),Pe(7566),Pe(8721);const cn=!(typeof process!="object"||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type!=="browser"),aM=[1,0,0,1,0,0],g4=[.001,0,0,.001,0,0],y4=1.35,eU=1,b4=2,Qp=4,tU=16,nU=32,rU=64,iU=128,oU=256,ds={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Te={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},he={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},sU={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Xp=0,w4=1,a2=2,aU=3,lM=3,lU=4,Jp={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},cU=1,uU=2,dU=3,fU=4,hU=5,pU=6,mU=7,gU=8,yU=9,bU=10,wU=11,vU=12,CU=13,kU=14,SU=15,cM=16,MU=17,EU=20,AU=1,TU=2,xU=3,IU=4,OU=5,em={ERRORS:0,WARNINGS:1,INFOS:5},v4={NONE:0,BINARY:1},qr={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},DU={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let tm=em.WARNINGS;function NU(n){Number.isInteger(n)&&(tm=n)}function PU(){return tm}function nm(n){tm>=em.INFOS&&console.log(`Info: ${n}`)}function ke(n){tm>=em.WARNINGS&&console.log(`Warning: ${n}`)}function Mt(n){throw new Error(n)}function xt(n,e){n||Mt(e)}function _U(n,e=null,t=null){if(!n)return null;try{if(t&&typeof n=="string"){if(t.addDefaultProtocol&&n.startsWith("www.")){const i=n.match(/\./g);(i==null?void 0:i.length)>=2&&(n=`http://${n}`)}if(t.tryConvertEncoding)try{n=function(o){return decodeURIComponent(escape(o))}(n)}catch{}}const r=e?new URL(n,e):new URL(n);if(function(o){switch(o==null?void 0:o.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch{}return null}function Ie(n,e,t,r=!1){return Object.defineProperty(n,e,{value:t,enumerable:!r,configurable:!0,writable:!1}),t}const fs=function(){function e(t,r){this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();class C4 extends fs{constructor(e,t){super(e,"PasswordException"),this.code=t}}class k4 extends fs{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}class uM extends fs{constructor(e){super(e,"InvalidPDFException")}}class Wa extends fs{constructor(e){super(e,"MissingPDFException")}}class rm extends fs{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}class LU extends fs{constructor(e){super(e,"FormatError")}}class qa extends fs{constructor(e){super(e,"AbortException")}}function dM(n){typeof n=="object"&&(n==null?void 0:n.length)!==void 0||Mt("Invalid argument for bytesToString");const e=n.length,t=8192;if(e<t)return String.fromCharCode.apply(null,n);const r=[];for(let i=0;i<e;i+=t){const o=Math.min(i+t,e),s=n.subarray(i,o);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function im(n){typeof n!="string"&&Mt("Invalid argument for stringToBytes");const e=n.length,t=new Uint8Array(e);for(let r=0;r<e;++r)t[r]=255&n.charCodeAt(r);return t}function S4(n){const e=Object.create(null);for(const[t,r]of n)e[t]=r;return e}class Rn{static get isLittleEndian(){return Ie(this,"isLittleEndian",function(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}())}static get isEvalSupported(){return Ie(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return Ie(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?Ie(this,"platform",{isMac:navigator.platform.includes("Mac")}):Ie(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var e,t;return Ie(this,"isCSSRoundSupported",(t=(e=globalThis.CSS)==null?void 0:e.supports)==null?void 0:t.call(e,"width: round(1.5px, 1px)"))}}const M4=Array.from(Array(256).keys(),n=>n.toString(16).padStart(2,"0"));class le{static makeHexColor(e,t,r){return`#${M4[e]}${M4[t]}${M4[r]}`}static scaleMinMax(e,t){let r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[1],t[1]=r,r=t[2],t[2]=t[3],t[3]=r,e[1]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),o=this.applyTransform([e[0],e[3]],t),s=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],i[0],o[0],s[0]),Math.min(r[1],i[1],o[1],s[1]),Math.max(r[0],i[0],o[0],s[0]),Math.max(r[1],i[1],o[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(r+s)/2,c=Math.sqrt((r+s)**2-4*(r*s-o*i))/2,u=a+c||1,d=a-c||1;return[Math.sqrt(u),Math.sqrt(d)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>i)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>s?null:[r,o,i,s]}static bezierBoundingBox(e,t,r,i,o,s,a,c,u){return u?(u[0]=Math.min(u[0],e,a),u[1]=Math.min(u[1],t,c),u[2]=Math.max(u[2],e,a),u[3]=Math.max(u[3],t,c)):u=[Math.min(e,a),Math.min(t,c),Math.max(e,a),Math.max(t,c)],x(this,Ff,lv).call(this,e,r,o,a,t,i,s,c,3*(3*(r-o)-e+a),6*(e-2*r+o),3*(r-e),u),x(this,Ff,lv).call(this,e,r,o,a,t,i,s,c,3*(3*(i-s)-t+c),6*(t-2*i+s),3*(i-t),u),u}}jc=new WeakSet,Qy=function(e,t,r,i,o,s,a,c,u,d){if(u<=0||u>=1)return;const f=1-u,h=u*u,p=h*u,m=f*(f*(f*e+3*u*t)+3*h*r)+p*i,y=f*(f*(f*o+3*u*s)+3*h*a)+p*c;d[0]=Math.min(d[0],m),d[1]=Math.min(d[1],y),d[2]=Math.max(d[2],m),d[3]=Math.max(d[3],y)},Ff=new WeakSet,lv=function(e,t,r,i,o,s,a,c,u,d,f,h){if(Math.abs(u)<1e-12){Math.abs(d)>=1e-12&&x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,-f/d,h);return}const p=d**2-4*f*u;if(p<0)return;const m=Math.sqrt(p),y=2*u;x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,(-d+m)/y,h),x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,(-d-m)/y,h)},M(le,jc),M(le,Ff);let E4=null,fM=null;function BU(n){return E4||(E4=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,fM=new Map([["ſt","ſt"]])),n.replaceAll(E4,(e,t,r)=>t?t.normalize("NFKC"):fM.get(r))}const hM="pdfjs_internal_id_",RU=0,$U=1,VU=2,FU=3,jU=4,zU=5,HU=6,UU=7,ZU=8;Pe(4628),Pe(7642),Pe(8004),Pe(3853),Pe(5876),Pe(2475),Pe(5024),Pe(1698),Pe(1454),Pe(4979),Pe(8992),Pe(4743),Pe(3215),Pe(7550),Pe(8335),Pe(4520);class pM{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,r,i,o){return"none"}destroy(e=!1){}}class mM{constructor({enableHWA:e=!1}={}){M(this,jf,!1);A(this,jf,e)}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d",{willReadFrequently:!g(this,jf)})}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){Mt("Abstract method `_createCanvas` called.")}}jf=new WeakMap;class gM{constructor({baseUrl:e=null,isCompressed:t=!0}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?v4.BINARY:v4.NONE;return this._fetchData(t,r).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)})}_fetchData(e,t){Mt("Abstract method `_fetchData` called.")}}class yM{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch(r=>{throw new Error(`Unable to load font data at: ${t}`)})}_fetchData(e){Mt("Abstract method `_fetchData` called.")}}class WU{create(e,t,r=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),r||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){Mt("Abstract method `_createSVG` called.")}}const lo="http://www.w3.org/2000/svg",kl=class kl{};pe(kl,"CSS",96),pe(kl,"PDF",72),pe(kl,"PDF_TO_CSS_UNITS",kl.CSS/kl.PDF);let hs=kl;async function om(n,e="text"){if(c2(n,document.baseURI)){const t=await fetch(n);if(!t.ok)throw new Error(t.statusText);switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json()}return t.text()}return new Promise((t,r)=>{const i=new XMLHttpRequest;i.open("GET",n,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE)if(i.status!==200&&i.status!==0)r(new Error(i.statusText));else{switch(e){case"arraybuffer":case"blob":case"json":t(i.response);return}t(i.responseText)}},i.send(null)})}class bM extends gM{_fetchData(e,t){return om(e,this.isCompressed?"arraybuffer":"text").then(r=>({cMapData:r instanceof ArrayBuffer?new Uint8Array(r):im(r),compressionType:t}))}}class wM extends yM{_fetchData(e){return om(e,"arraybuffer").then(t=>new Uint8Array(t))}}class A4 extends WU{_createSVG(e){return document.createElementNS(lo,e)}}class l2{constructor({viewBox:e,scale:t,rotation:r,offsetX:i=0,offsetY:o=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=i,this.offsetY=o;const a=(e[2]+e[0])/2,c=(e[3]+e[1])/2;let u,d,f,h,p,m,y,b;switch((r%=360)<0&&(r+=360),r){case 180:u=-1,d=0,f=0,h=1;break;case 90:u=0,d=1,f=1,h=0;break;case 270:u=0,d=-1,f=-1,h=0;break;case 0:u=1,d=0,f=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(f=-f,h=-h),u===0?(p=Math.abs(c-e[1])*t+i,m=Math.abs(a-e[0])*t+o,y=(e[3]-e[1])*t,b=(e[2]-e[0])*t):(p=Math.abs(a-e[0])*t+i,m=Math.abs(c-e[1])*t+o,y=(e[2]-e[0])*t,b=(e[3]-e[1])*t),this.transform=[u*t,d*t,f*t,h*t,p-u*t*a-f*t*c,m-d*t*a-h*t*c],this.width=y,this.height=b}get rawDims(){const{viewBox:e}=this;return Ie(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:o=!1}={}){return new l2({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:o})}convertToViewportPoint(e,t){return le.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=le.applyTransform([e[0],e[1]],this.transform),r=le.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return le.applyInverseTransform([e,t],this.transform)}}class T4 extends fs{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}}function sm(n){const e=n.length;let t=0;for(;t<e&&n[t].trim()==="";)t++;return n.substring(t,t+5).toLowerCase()==="data:"}function x4(n){return typeof n=="string"&&/\.pdf$/i.test(n)}function qU(n){return[n]=n.split(/[#?]/,1),n.substring(n.lastIndexOf("/")+1)}function KU(n,e="document.pdf"){if(typeof n!="string")return e;if(sm(n))return ke('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const t=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(n);let i=t.exec(r[1])||t.exec(r[2])||t.exec(r[3]);if(i&&(i=i[0],i.includes("%")))try{i=t.exec(decodeURIComponent(i))[0]}catch{}return i||e}class vM{constructor(){pe(this,"started",Object.create(null));pe(this,"times",[])}time(e){e in this.started&&ke(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||ke(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:r}of this.times)t=Math.max(r.length,t);for(const{name:r,start:i,end:o}of this.times)e.push(`${r.padEnd(t)} ${o-i}ms
121
- `);return e.join("")}}function c2(n,e){try{const{protocol:t}=e?new URL(n,e):new URL(n);return t==="http:"||t==="https:"}catch{return!1}}function wr(n){n.preventDefault()}let CM;class kM{static toDateObject(e){if(!e||typeof e!="string")return null;CM||(CM=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=CM.exec(e);if(!t)return null;const r=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;const u=t[7]||"Z";let d=parseInt(t[8],10);d=d>=0&&d<=23?d:0;let f=parseInt(t[9],10)||0;return f=f>=0&&f<=59?f:0,u==="-"?(s+=d,a+=f):u==="+"&&(s-=d,a-=f),new Date(Date.UTC(r,i,o,s,a,c))}}function GU(n,{scale:e=1,rotation:t=0}){const{width:r,height:i}=n.attributes.style,o=[0,0,parseInt(r),parseInt(i)];return new l2({viewBox:o,scale:e,rotation:t})}function I4(n){if(n.startsWith("#")){const e=parseInt(n.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}return n.startsWith("rgb(")?n.slice(4,-1).split(",").map(e=>parseInt(e)):n.startsWith("rgba(")?n.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(ke(`Not a valid color format: "${n}"`),[0,0,0])}function ot(n){const{a:e,b:t,c:r,d:i,e:o,f:s}=n.getTransform();return[e,t,r,i,o,s]}function co(n){const{a:e,b:t,c:r,d:i,e:o,f:s}=n.getTransform().invertSelf();return[e,t,r,i,o,s]}function Ka(n,e,t=!1,r=!0){if(e instanceof l2){const{pageWidth:i,pageHeight:o}=e.rawDims,{style:s}=n,a=Rn.isCSSRoundSupported,c=`var(--scale-factor) * ${i}px`,u=`var(--scale-factor) * ${o}px`,d=a?`round(${c}, 1px)`:`calc(${c})`,f=a?`round(${u}, 1px)`:`calc(${u})`;t&&e.rotation%180!=0?(s.width=f,s.height=d):(s.width=d,s.height=f)}r&&n.setAttribute("data-main-rotation",e.rotation)}const Mo=class Mo{constructor(e){M(this,p3);M(this,m3);M(this,zc);M(this,g3);M(this,Uf);M(this,Sl,null);M(this,Ml,null);M(this,Jr,void 0);M(this,El,null);M(this,zf,null);A(this,Jr,e),g(Mo,Hf)||A(Mo,Hf,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const e=A(this,Sl,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const t=g(this,Jr)._uiManager._signal;e.addEventListener("contextmenu",wr,{signal:t}),e.addEventListener("pointerdown",x(Mo,h3,JD),{signal:t});const r=A(this,El,document.createElement("div"));r.className="buttons",e.append(r);const i=g(this,Jr).toolbarPosition;if(i){const{style:o}=e,s=g(this,Jr)._uiManager.direction==="ltr"?1-i[0]:i[0];o.insetInlineEnd=100*s+"%",o.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return x(this,g3,nN).call(this),e}hide(){var e;g(this,Sl).classList.add("hidden"),(e=g(this,Ml))==null||e.hideDropdown()}show(){var e;g(this,Sl).classList.remove("hidden"),(e=g(this,zf))==null||e.shown()}async addAltText(e){const t=await e.render();x(this,zc,Xy).call(this,t),g(this,El).prepend(t,g(this,Uf,cv)),A(this,zf,e)}addColorPicker(e){A(this,Ml,e);const t=e.renderButton();x(this,zc,Xy).call(this,t),g(this,El).prepend(t,g(this,Uf,cv))}remove(){var e;g(this,Sl).remove(),(e=g(this,Ml))==null||e.destroy(),A(this,Ml,null)}};Sl=new WeakMap,Ml=new WeakMap,Jr=new WeakMap,El=new WeakMap,zf=new WeakMap,Hf=new WeakMap,h3=new WeakSet,JD=function(e){e.stopPropagation()},p3=new WeakSet,eN=function(e){g(this,Jr)._focusEventsAllowed=!1,e.preventDefault(),e.stopPropagation()},m3=new WeakSet,tN=function(e){g(this,Jr)._focusEventsAllowed=!0,e.preventDefault(),e.stopPropagation()},zc=new WeakSet,Xy=function(e){const t=g(this,Jr)._uiManager._signal;e.addEventListener("focusin",x(this,p3,eN).bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",x(this,m3,tN).bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",wr,{signal:t})},g3=new WeakSet,nN=function(){const{editorType:e,_uiManager:t}=g(this,Jr),r=document.createElement("button");r.className="delete",r.tabIndex=0,r.setAttribute("data-l10n-id",g(Mo,Hf)[e]),x(this,zc,Xy).call(this,r),r.addEventListener("click",i=>{t.delete()},{signal:t._signal}),g(this,El).append(r)},Uf=new WeakSet,cv=function(){const e=document.createElement("div");return e.className="divider",e},M(Mo,h3),M(Mo,Hf,null);let O4=Mo;class YU{constructor(e){M(this,y3);M(this,b3);M(this,w3);M(this,Zf,null);M(this,Al,null);M(this,Tl,void 0);A(this,Tl,e)}show(e,t,r){const[i,o]=x(this,b3,iN).call(this,t,r),{style:s}=g(this,Al)||A(this,Al,x(this,y3,rN).call(this));e.append(g(this,Al)),s.insetInlineEnd=100*i+"%",s.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){g(this,Al).remove()}}Zf=new WeakMap,Al=new WeakMap,Tl=new WeakMap,y3=new WeakSet,rN=function(){const e=A(this,Al,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar"),e.addEventListener("contextmenu",wr,{signal:g(this,Tl)._signal});const t=A(this,Zf,document.createElement("div"));return t.className="buttons",e.append(t),x(this,w3,oN).call(this),e},b3=new WeakSet,iN=function(e,t){let r=0,i=0;for(const o of e){const s=o.y+o.height;if(s<r)continue;const a=o.x+(t?o.width:0);s>r?(i=a,r=s):t?a>i&&(i=a):a<i&&(i=a)}return[t?1-i:i,r]},w3=new WeakSet,oN=function(){const e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const t=document.createElement("span");e.append(t),t.className="visuallyHidden",t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const r=g(this,Tl)._signal;e.addEventListener("contextmenu",wr,{signal:r}),e.addEventListener("click",()=>{g(this,Tl).highlightSelection("floating_button")},{signal:r}),g(this,Zf).append(e)};function am(n,e,t){for(const r of t)e.addEventListener(r,n[r].bind(n))}class QU{constructor(){M(this,v3,0)}get id(){return"pdfjs_internal_editor_"+Gn(this,v3)._++}}v3=new WeakMap;const nv=class nv{constructor(){M(this,qf);M(this,Wf,function(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const t=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(t);else for(let r=0;r<32;r++)t[r]=Math.floor(255*Math.random());return dM(t)}());M(this,C3,0);M(this,Nr,null)}static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',Ie(this,"_isSVGFittingCanvas",t.decode().then(()=>(e.drawImage(t,0,0,1,1,0,0,1,3),new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]===0)))}async getFromFile(e){const{lastModified:t,name:r,size:i,type:o}=e;return x(this,qf,uv).call(this,`${t}_${r}_${i}_${o}`,e)}async getFromUrl(e){return x(this,qf,uv).call(this,e,e)}async getFromId(e){g(this,Nr)||A(this,Nr,new Map);const t=g(this,Nr).get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=g(this,Nr).get(e);return t!=null&&t.isSvg?t.svgUrl:null}deleteId(e){g(this,Nr)||A(this,Nr,new Map);const t=g(this,Nr).get(e);t&&(t.refCounter-=1,t.refCounter===0&&(t.bitmap=null))}isValidId(e){return e.startsWith(`image_${g(this,Wf)}_`)}};Wf=new WeakMap,C3=new WeakMap,Nr=new WeakMap,qf=new WeakSet,uv=async function(e,t){g(this,Nr)||A(this,Nr,new Map);let r=g(this,Nr).get(e);if(r===null)return null;if(r!=null&&r.bitmap)return r.refCounter+=1,r;try{r||(r={bitmap:null,id:`image_${g(this,Wf)}_${Gn(this,C3)._++}`,refCounter:0,isSvg:!1});let i;if(typeof t=="string"?(r.url=t,i=await om(t,"blob")):i=r.file=t,i.type==="image/svg+xml"){const o=nv._isSVGFittingCanvas,s=new FileReader,a=new Image,c=new Promise((u,d)=>{a.onload=()=>{r.bitmap=a,r.isSvg=!0,u()},s.onload=async()=>{const f=r.svgUrl=s.result;a.src=await o?`${f}#svgView(preserveAspectRatio(none))`:f},a.onerror=s.onerror=d});s.readAsDataURL(i),await c}else r.bitmap=await createImageBitmap(i);r.refCounter=1}catch(i){console.error(i),r=null}return g(this,Nr).set(e,r),r&&g(this,Nr).set(r.id,r),r};let D4=nv,XU=(GD=class{constructor(e=128){M(this,jt,[]);M(this,qs,!1);M(this,Kf,void 0);M(this,zt,-1);A(this,Kf,e)}add({cmd:e,undo:t,post:r,mustExec:i,type:o=NaN,overwriteIfSameType:s=!1,keepUndo:a=!1}){if(i&&e(),g(this,qs))return;const c={cmd:e,undo:t,post:r,type:o};if(g(this,zt)===-1){g(this,jt).length>0&&(g(this,jt).length=0),A(this,zt,0),g(this,jt).push(c);return}if(s&&g(this,jt)[g(this,zt)].type===o){a&&(c.undo=g(this,jt)[g(this,zt)].undo),g(this,jt)[g(this,zt)]=c;return}const u=g(this,zt)+1;u===g(this,Kf)?g(this,jt).splice(0,1):(A(this,zt,u),u<g(this,jt).length&&g(this,jt).splice(u)),g(this,jt).push(c)}undo(){if(g(this,zt)===-1)return;A(this,qs,!0);const{undo:e,post:t}=g(this,jt)[g(this,zt)];e(),t==null||t(),A(this,qs,!1),A(this,zt,g(this,zt)-1)}redo(){if(g(this,zt)<g(this,jt).length-1){A(this,zt,g(this,zt)+1),A(this,qs,!0);const{cmd:e,post:t}=g(this,jt)[g(this,zt)];e(),t==null||t(),A(this,qs,!1)}}hasSomethingToUndo(){return g(this,zt)!==-1}hasSomethingToRedo(){return g(this,zt)<g(this,jt).length-1}destroy(){A(this,jt,null)}},jt=new WeakMap,qs=new WeakMap,Kf=new WeakMap,zt=new WeakMap,GD);class u2{constructor(e){M(this,k3);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=Rn.platform;for(const[r,i,o={}]of e)for(const s of r){const a=s.startsWith("mac+");t&&a?(this.callbacks.set(s.slice(4),{callback:i,options:o}),this.allKeys.add(s.split("+").at(-1))):!t&&!a&&(this.callbacks.set(s,{callback:i,options:o}),this.allKeys.add(s.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const r=this.callbacks.get(x(this,k3,sN).call(this,t));if(!r)return;const{callback:i,options:{bubbles:o=!1,args:s=[],checker:a=null}}=r;(!a||a(e,t))&&(i.bind(e,...s,t)(),o||(t.stopPropagation(),t.preventDefault()))}}k3=new WeakSet,sN=function(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t};const S3=class S3{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return function(r){const i=document.createElement("span");i.style.visibility="hidden",document.body.append(i);for(const o of r.keys()){i.style.color=o;const s=window.getComputedStyle(i).color;r.set(o,I4(s))}i.remove()}(e),Ie(this,"_colors",e)}convert(e){const t=I4(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[r,i]of this._colors)if(i.every((o,s)=>o===t[s]))return S3._colorsMapping.get(r);return t}getHexCode(e){const t=this._colors.get(e);return t?le.makeHexColor(...t):e}};pe(S3,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let N4=S3;const Qc=class Qc{constructor(e,t,r,i,o,s,a,c,u,d,f){M(this,Gc);M(this,ih);M(this,E3);M(this,A3);M(this,Yc);M(this,T3);M(this,x3);M(this,I3);M(this,oh);M(this,O3);M(this,sh);M(this,ah);M(this,D3);M(this,tn);M(this,Li);M(this,N3);M(this,P3);M(this,lh);M(this,_3);M(this,Nl);M(this,ch);M(this,Hc,new AbortController);M(this,ar,null);M(this,Ot,new Map);M(this,en,new Map);M(this,Uc,null);M(this,Eo,null);M(this,Zc,null);M(this,ei,new XU);M(this,Ks,null);M(this,Wc,0);M(this,xl,new Set);M(this,Di,null);M(this,ti,null);M(this,Il,new Set);M(this,Gf,!1);M(this,Yf,!1);M(this,qc,!1);M(this,Qf,null);M(this,Ni,null);M(this,Gs,null);M(this,Kc,null);M(this,Ys,!1);M(this,Pi,null);M(this,M3,new QU);M(this,Qs,!1);M(this,Xf,!1);M(this,Xs,null);M(this,Ol,null);M(this,Jf,null);M(this,eh,null);M(this,Ht,Te.NONE);M(this,He,new Set);M(this,Ao,null);M(this,Dl,null);M(this,th,null);M(this,nh,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});M(this,Js,[0,0]);M(this,_i,null);M(this,To,null);M(this,rh,null);const h=this._signal=g(this,Hc).signal;A(this,To,e),A(this,rh,t),A(this,Uc,r),this._eventBus=i,i._on("editingaction",this.onEditingAction.bind(this),{signal:h}),i._on("pagechanging",this.onPageChanging.bind(this),{signal:h}),i._on("scalechanging",this.onScaleChanging.bind(this),{signal:h}),i._on("rotationchanging",this.onRotationChanging.bind(this),{signal:h}),i._on("setpreference",this.onSetPreference.bind(this),{signal:h}),i._on("switchannotationeditorparams",p=>this.updateParams(p.type,p.value),{signal:h}),x(this,T3,cN).call(this),x(this,D3,hN).call(this),x(this,oh,fv).call(this),A(this,Eo,o.annotationStorage),A(this,Qf,o.filterFactory),A(this,Dl,s),A(this,Kc,a||null),A(this,Gf,c),A(this,Yf,u),A(this,qc,d),A(this,eh,f||null),this.viewParameters={realScale:hs.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const e=Qc.prototype,t=s=>g(s,To).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),r=(s,{target:a})=>{if(a instanceof HTMLInputElement){const{type:c}=a;return c!=="text"&&c!=="number"}return!0},i=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return Ie(this,"_keyboardManager",new u2([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:a})=>!(a instanceof HTMLButtonElement)&&g(s,To).contains(a)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:a})=>!(a instanceof HTMLButtonElement)&&g(s,To).contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-o,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[o,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-o],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,o],checker:t}]]))}destroy(){var e,t,r;(e=g(this,Hc))==null||e.abort(),A(this,Hc,null),this._signal=null;for(const i of g(this,en).values())i.destroy();g(this,en).clear(),g(this,Ot).clear(),g(this,Il).clear(),A(this,ar,null),g(this,He).clear(),g(this,ei).destroy(),(t=g(this,Uc))==null||t.destroy(),(r=g(this,Pi))==null||r.hide(),A(this,Pi,null),g(this,Ni)&&(clearTimeout(g(this,Ni)),A(this,Ni,null)),g(this,_i)&&(clearTimeout(g(this,_i)),A(this,_i,null))}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return g(this,eh)}get useNewAltTextFlow(){return g(this,Yf)}get useNewAltTextWhenAddingImage(){return g(this,qc)}get hcmFilter(){return Ie(this,"hcmFilter",g(this,Dl)?g(this,Qf).addHCMFilter(g(this,Dl).foreground,g(this,Dl).background):"none")}get direction(){return Ie(this,"direction",getComputedStyle(g(this,To)).direction)}get highlightColors(){return Ie(this,"highlightColors",g(this,Kc)?new Map(g(this,Kc).split(",").map(e=>e.split("=").map(t=>t.trim()))):null)}get highlightColorNames(){return Ie(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setMainHighlightColorPicker(e){A(this,Jf,e)}editAltText(e,t=!1){var r;(r=g(this,Uc))==null||r.editAltText(this,e,t)}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){e==="enableNewAltTextWhenAddingImage"&&A(this,qc,t)}onPageChanging({pageNumber:e}){A(this,Wc,e-1)}focusMainContainer(){g(this,To).focus()}findParent(e,t){for(const r of g(this,en).values()){const{x:i,y:o,width:s,height:a}=r.div.getBoundingClientRect();if(e>=i&&e<=i+s&&t>=o&&t<=o+a)return r}return null}disableUserSelect(e=!1){g(this,rh).classList.toggle("noUserSelect",e)}addShouldRescale(e){g(this,Il).add(e)}removeShouldRescale(e){g(this,Il).delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*hs.PDF_TO_CSS_UNITS;for(const t of g(this,Il))t.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}highlightSelection(e=""){const t=document.getSelection();if(!t||t.isCollapsed)return;const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}=t,a=t.toString(),c=x(this,Gc,Jy).call(this,t).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;t.empty();const d=x(this,ih,dv).call(this,c),f=g(this,Ht)===Te.NONE,h=()=>{d==null||d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:u,anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s,text:a}),f&&this.showAllEditors("highlight",!0,!0)};f?this.switchToMode(Te.HIGHLIGHT,h):h()}addToAnnotationStorage(e){e.isEmpty()||!g(this,Eo)||g(this,Eo).has(e.id)||g(this,Eo).setValue(e.id,e)}blur(){if(this.isShiftKeyDown=!1,g(this,Ys)&&(A(this,Ys,!1),x(this,Yc,e5).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const t of g(this,He))if(t.div.contains(e)){A(this,Ol,[t,e]),t._focusEventsAllowed=!1;break}}focus(){if(!g(this,Ol))return;const[e,t]=g(this,Ol);A(this,Ol,null),t.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}addEditListeners(){x(this,oh,fv).call(this),x(this,sh,hv).call(this)}removeEditListeners(){x(this,O3,fN).call(this),x(this,ah,pv).call(this)}dragOver(e){for(const{type:t}of e.dataTransfer.items)for(const r of g(this,ti))if(r.isHandlingMimeForPasting(t)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const t of e.dataTransfer.items)for(const r of g(this,ti))if(r.isHandlingMimeForPasting(t.type)){r.paste(t,this.currentLayer),e.preventDefault();return}}copy(e){var r;if(e.preventDefault(),(r=g(this,ar))==null||r.commitOrRemove(),!this.hasSelection)return;const t=[];for(const i of g(this,He)){const o=i.serialize(!0);o&&t.push(o)}t.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const o of t.items)for(const s of g(this,ti))if(s.isHandlingMimeForPasting(o.type)){s.paste(o,this.currentLayer);return}let r=t.getData("application/pdfjs");if(!r)return;try{r=JSON.parse(r)}catch(o){ke(`paste: "${o.message}".`);return}if(!Array.isArray(r))return;this.unselectAll();const i=this.currentLayer;try{const o=[];for(const c of r){const u=i.deserialize(c);if(!u)return;o.push(u)}const s=()=>{for(const c of o)x(this,lh,mv).call(this,c);x(this,ch,gv).call(this,o)},a=()=>{for(const c of o)c.remove()};this.addCommands({cmd:s,undo:a,mustExec:!0})}catch(o){ke(`paste: "${o.message}".`)}}keydown(e){this.isShiftKeyDown||e.key!=="Shift"||(this.isShiftKeyDown=!0),g(this,Ht)===Te.NONE||this.isEditorHandlingKeyboard||Qc._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,g(this,Ys)&&(A(this,Ys,!1),x(this,Yc,e5).call(this,"main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu")}}setEditingState(e){e?(x(this,x3,uN).call(this),x(this,sh,hv).call(this),x(this,tn,On).call(this,{isEditing:g(this,Ht)!==Te.NONE,isEmpty:x(this,Nl,K1).call(this),hasSomethingToUndo:g(this,ei).hasSomethingToUndo(),hasSomethingToRedo:g(this,ei).hasSomethingToRedo(),hasSelectedEditor:!1})):(x(this,I3,dN).call(this),x(this,ah,pv).call(this),x(this,tn,On).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!g(this,ti)){A(this,ti,e);for(const t of g(this,ti))x(this,Li,Ia).call(this,t.defaultPropertiesToUpdate)}}getId(){return g(this,M3).id}get currentLayer(){return g(this,en).get(g(this,Wc))}getLayer(e){return g(this,en).get(e)}get currentPageIndex(){return g(this,Wc)}addLayer(e){g(this,en).set(e.pageIndex,e),g(this,Qs)?e.enable():e.disable()}removeLayer(e){g(this,en).delete(e.pageIndex)}updateMode(e,t=null,r=!1){if(g(this,Ht)!==e)if(A(this,Ht,e),e!==Te.NONE){this.setEditingState(!0),x(this,N3,pN).call(this),this.unselectAll();for(const i of g(this,en).values())i.updateMode(e);if(t||!r){if(t){for(const i of g(this,Ot).values())if(i.annotationElementId===t){this.setSelected(i),i.enterInEditMode();break}}}else this.addNewEditorFromKeyboard()}else this.setEditingState(!1),x(this,P3,mN).call(this)}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e!==g(this,Ht)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){var r;if(g(this,ti)){switch(e){case he.CREATE:this.currentLayer.addNewEditor();return;case he.HIGHLIGHT_DEFAULT_COLOR:(r=g(this,Jf))==null||r.updateColor(t);break;case he.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(g(this,th)||A(this,th,new Map)).set(e,t),this.showAllEditors("highlight",t)}for(const i of g(this,He))i.updateParams(e,t);for(const i of g(this,ti))i.updateDefaultParams(e,t)}}showAllEditors(e,t,r=!1){var i;for(const o of g(this,Ot).values())o.editorType===e&&o.show(t);(((i=g(this,th))==null?void 0:i.get(he.HIGHLIGHT_SHOW_ALL))??!0)!==t&&x(this,Li,Ia).call(this,[[he.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(g(this,Xf)!==e){A(this,Xf,e);for(const t of g(this,en).values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}getEditors(e){const t=[];for(const r of g(this,Ot).values())r.pageIndex===e&&t.push(r);return t}getEditor(e){return g(this,Ot).get(e)}addEditor(e){g(this,Ot).set(e.id,e)}removeEditor(e){var t;e.div.contains(document.activeElement)&&(g(this,Ni)&&clearTimeout(g(this,Ni)),A(this,Ni,setTimeout(()=>{this.focusMainContainer(),A(this,Ni,null)},0))),g(this,Ot).delete(e.id),this.unselect(e),e.annotationElementId&&g(this,xl).has(e.annotationElementId)||((t=g(this,Eo))==null||t.remove(e.id))}addDeletedAnnotationElement(e){g(this,xl).add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return g(this,xl).has(e)}removeDeletedAnnotationElement(e){g(this,xl).delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}setActiveEditor(e){g(this,ar)!==e&&(A(this,ar,e),e&&x(this,Li,Ia).call(this,e.propertiesToUpdate))}updateUI(e){g(this,_3,gN)===e&&x(this,Li,Ia).call(this,e.propertiesToUpdate)}toggleSelected(e){g(this,He).has(e)?(g(this,He).delete(e),e.unselect(),x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})):(g(this,He).add(e),e.select(),x(this,Li,Ia).call(this,e.propertiesToUpdate),x(this,tn,On).call(this,{hasSelectedEditor:!0}))}setSelected(e){for(const t of g(this,He))t!==e&&t.unselect();g(this,He).clear(),g(this,He).add(e),e.select(),x(this,Li,Ia).call(this,e.propertiesToUpdate),x(this,tn,On).call(this,{hasSelectedEditor:!0})}isSelected(e){return g(this,He).has(e)}get firstSelectedEditor(){return g(this,He).values().next().value}unselect(e){e.unselect(),g(this,He).delete(e),x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return g(this,He).size!==0}get isEnterHandled(){return g(this,He).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){g(this,ei).undo(),x(this,tn,On).call(this,{hasSomethingToUndo:g(this,ei).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:x(this,Nl,K1).call(this)})}redo(){g(this,ei).redo(),x(this,tn,On).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:g(this,ei).hasSomethingToRedo(),isEmpty:x(this,Nl,K1).call(this)})}addCommands(e){g(this,ei).add(e),x(this,tn,On).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:x(this,Nl,K1).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[...g(this,He)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)x(this,lh,mv).call(this,t)},mustExec:!0})}commitOrRemove(){var e;(e=g(this,ar))==null||e.commitOrRemove()}hasSomethingToControl(){return g(this,ar)||this.hasSelection}selectAll(){for(const e of g(this,He))e.commit();x(this,ch,gv).call(this,g(this,Ot).values())}unselectAll(){if(!(g(this,ar)&&(g(this,ar).commitOrRemove(),g(this,Ht)!==Te.NONE))&&this.hasSelection){for(const e of g(this,He))e.unselect();g(this,He).clear(),x(this,tn,On).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;g(this,Js)[0]+=e,g(this,Js)[1]+=t;const[i,o]=g(this,Js),s=[...g(this,He)];g(this,_i)&&clearTimeout(g(this,_i)),A(this,_i,setTimeout(()=>{A(this,_i,null),g(this,Js)[0]=g(this,Js)[1]=0,this.addCommands({cmd:()=>{for(const a of s)g(this,Ot).has(a.id)&&a.translateInPage(i,o)},undo:()=>{for(const a of s)g(this,Ot).has(a.id)&&a.translateInPage(-i,-o)},mustExec:!1})},1e3));for(const a of s)a.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),A(this,Di,new Map);for(const e of g(this,He))g(this,Di).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!g(this,Di))return!1;this.disableUserSelect(!1);const e=g(this,Di);A(this,Di,null);let t=!1;for(const[{x:i,y:o,pageIndex:s},a]of e)a.newX=i,a.newY=o,a.newPageIndex=s,t||(t=i!==a.savedX||o!==a.savedY||s!==a.savedPageIndex);if(!t)return!1;const r=(i,o,s,a)=>{if(g(this,Ot).has(i.id)){const c=g(this,en).get(a);c?i._setParentAndPosition(c,o,s):(i.pageIndex=a,i.x=o,i.y=s)}};return this.addCommands({cmd:()=>{for(const[i,{newX:o,newY:s,newPageIndex:a}]of e)r(i,o,s,a)},undo:()=>{for(const[i,{savedX:o,savedY:s,savedPageIndex:a}]of e)r(i,o,s,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(g(this,Di))for(const r of g(this,Di).keys())r.drag(e,t)}rebuild(e){if(e.parent===null){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){var e;return((e=this.getActive())==null?void 0:e.shouldGetKeyboardEvents())||g(this,He).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return g(this,ar)===e}getActive(){return g(this,ar)}getMode(){return g(this,Ht)}get imageManager(){return Ie(this,"imageManager",new D4)}getSelectionBoxes(e){if(!e)return null;const t=document.getSelection();for(let u=0,d=t.rangeCount;u<d;u++)if(!e.contains(t.getRangeAt(u).commonAncestorContainer))return null;const{x:r,y:i,width:o,height:s}=e.getBoundingClientRect();let a;switch(e.getAttribute("data-main-rotation")){case"90":a=(u,d,f,h)=>({x:(d-i)/s,y:1-(u+f-r)/o,width:h/s,height:f/o});break;case"180":a=(u,d,f,h)=>({x:1-(u+f-r)/o,y:1-(d+h-i)/s,width:f/o,height:h/s});break;case"270":a=(u,d,f,h)=>({x:1-(d+h-i)/s,y:(u-r)/o,width:h/s,height:f/o});break;default:a=(u,d,f,h)=>({x:(u-r)/o,y:(d-i)/s,width:f/o,height:h/s})}const c=[];for(let u=0,d=t.rangeCount;u<d;u++){const f=t.getRangeAt(u);if(!f.collapsed)for(const{x:h,y:p,width:m,height:y}of f.getClientRects())m!==0&&y!==0&&c.push(a(h,p,m,y))}return c.length===0?null:c}addChangedExistingAnnotation({annotationElementId:e,id:t}){(g(this,Zc)||A(this,Zc,new Map)).set(e,t)}removeChangedExistingAnnotation({annotationElementId:e}){var t;(t=g(this,Zc))==null||t.delete(e)}renderAnnotationElement(e){var i;const t=(i=g(this,Zc))==null?void 0:i.get(e.data.id);if(!t)return;const r=g(this,Eo).getRawValue(t);r&&(g(this,Ht)!==Te.NONE||r.hasBeenModified)&&r.renderAnnotationElement(e)}};Hc=new WeakMap,ar=new WeakMap,Ot=new WeakMap,en=new WeakMap,Uc=new WeakMap,Eo=new WeakMap,Zc=new WeakMap,ei=new WeakMap,Ks=new WeakMap,Wc=new WeakMap,xl=new WeakMap,Di=new WeakMap,ti=new WeakMap,Il=new WeakMap,Gf=new WeakMap,Yf=new WeakMap,qc=new WeakMap,Qf=new WeakMap,Ni=new WeakMap,Gs=new WeakMap,Kc=new WeakMap,Ys=new WeakMap,Pi=new WeakMap,M3=new WeakMap,Qs=new WeakMap,Xf=new WeakMap,Xs=new WeakMap,Ol=new WeakMap,Jf=new WeakMap,eh=new WeakMap,Ht=new WeakMap,He=new WeakMap,Ao=new WeakMap,Dl=new WeakMap,th=new WeakMap,nh=new WeakMap,Js=new WeakMap,_i=new WeakMap,To=new WeakMap,rh=new WeakMap,Gc=new WeakSet,Jy=function({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e},ih=new WeakSet,dv=function(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const r of g(this,en).values())if(r.hasTextLayer(e))return r;return null},E3=new WeakSet,aN=function(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=x(this,Gc,Jy).call(this,e).closest(".textLayer"),r=this.getSelectionBoxes(t);r&&(g(this,Pi)||A(this,Pi,new YU(this)),g(this,Pi).show(t,r,this.direction==="ltr"))},A3=new WeakSet,lN=function(){var i,o,s;const e=document.getSelection();if(!e||e.isCollapsed){g(this,Ao)&&((i=g(this,Pi))==null||i.hide(),A(this,Ao,null),x(this,tn,On).call(this,{hasSelectedText:!1}));return}const{anchorNode:t}=e;if(t===g(this,Ao))return;const r=x(this,Gc,Jy).call(this,e).closest(".textLayer");if(r){if((o=g(this,Pi))==null||o.hide(),A(this,Ao,t),x(this,tn,On).call(this,{hasSelectedText:!0}),(g(this,Ht)===Te.HIGHLIGHT||g(this,Ht)===Te.NONE)&&(g(this,Ht)===Te.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),A(this,Ys,this.isShiftKeyDown),!this.isShiftKeyDown)){const a=g(this,Ht)===Te.HIGHLIGHT?x(this,ih,dv).call(this,r):null;a==null||a.toggleDrawing();const c=new AbortController,u=this.combinedSignal(c),d=f=>{(f.type!=="pointerup"||f.button===0)&&(c.abort(),a==null||a.toggleDrawing(!0),f.type==="pointerup"&&x(this,Yc,e5).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:u}),window.addEventListener("blur",d,{signal:u})}}else g(this,Ao)&&((s=g(this,Pi))==null||s.hide(),A(this,Ao,null),x(this,tn,On).call(this,{hasSelectedText:!1}))},Yc=new WeakSet,e5=function(e=""){g(this,Ht)===Te.HIGHLIGHT?this.highlightSelection(e):g(this,Gf)&&x(this,E3,aN).call(this)},T3=new WeakSet,cN=function(){document.addEventListener("selectionchange",x(this,A3,lN).bind(this),{signal:this._signal})},x3=new WeakSet,uN=function(){if(g(this,Gs))return;A(this,Gs,new AbortController);const e=this.combinedSignal(g(this,Gs));window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})},I3=new WeakSet,dN=function(){var e;(e=g(this,Gs))==null||e.abort(),A(this,Gs,null)},oh=new WeakSet,fv=function(){if(g(this,Xs))return;A(this,Xs,new AbortController);const e=this.combinedSignal(g(this,Xs));window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})},O3=new WeakSet,fN=function(){var e;(e=g(this,Xs))==null||e.abort(),A(this,Xs,null)},sh=new WeakSet,hv=function(){if(g(this,Ks))return;A(this,Ks,new AbortController);const e=this.combinedSignal(g(this,Ks));document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})},ah=new WeakSet,pv=function(){var e;(e=g(this,Ks))==null||e.abort(),A(this,Ks,null)},D3=new WeakSet,hN=function(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})},tn=new WeakSet,On=function(e){Object.entries(e).some(([t,r])=>g(this,nh)[t]!==r)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(g(this,nh),e)}),g(this,Ht)===Te.HIGHLIGHT&&e.hasSelectedEditor===!1&&x(this,Li,Ia).call(this,[[he.HIGHLIGHT_FREE,!0]]))},Li=new WeakSet,Ia=function(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})},N3=new WeakSet,pN=function(){if(!g(this,Qs)){A(this,Qs,!0);for(const e of g(this,en).values())e.enable();for(const e of g(this,Ot).values())e.enable()}},P3=new WeakSet,mN=function(){if(this.unselectAll(),g(this,Qs)){A(this,Qs,!1);for(const e of g(this,en).values())e.disable();for(const e of g(this,Ot).values())e.disable()}},lh=new WeakSet,mv=function(e){const t=g(this,en).get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))},_3=new WeakSet,gN=function(){let e=null;for(e of g(this,He));return e},Nl=new WeakSet,K1=function(){if(g(this,Ot).size===0)return!0;if(g(this,Ot).size===1)for(const e of g(this,Ot).values())return e.isEmpty();return!1},ch=new WeakSet,gv=function(e){for(const t of g(this,He))t.unselect();g(this,He).clear();for(const t of e)t.isEmpty()||(g(this,He).add(t),t.select());x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})},pe(Qc,"TRANSLATE_SMALL",1),pe(Qc,"TRANSLATE_BIG",10);let Ga=Qc;const Pr=class Pr{constructor(e){M(this,Jc);M(this,eu);M(this,Ut,null);M(this,Bi,!1);M(this,ni,null);M(this,Ri,null);M(this,lr,null);M(this,Xc,!1);M(this,$i,null);M(this,Wn,null);M(this,xo,null);M(this,Pl,null);M(this,Vi,!1);A(this,Wn,e),A(this,Vi,e._uiManager.useNewAltTextFlow)}static initialize(e){Pr._l10nPromise||(Pr._l10nPromise=e)}async render(){const e=A(this,ni,document.createElement("button"));e.className="altText";let t;g(this,Vi)?(e.classList.add("new"),t=await Pr._l10nPromise.get("pdfjs-editor-new-alt-text-missing-button-label")):t=await Pr._l10nPromise.get("pdfjs-editor-alt-text-button-label"),e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0";const r=g(this,Wn)._uiManager._signal;e.addEventListener("contextmenu",wr,{signal:r}),e.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:r});const i=o=>{o.preventDefault(),g(this,Wn)._uiManager.editAltText(g(this,Wn)),g(this,Vi)&&g(this,Wn)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:g(this,Jc,t5)}})};return e.addEventListener("click",i,{capture:!0,signal:r}),e.addEventListener("keydown",o=>{o.target===e&&o.key==="Enter"&&(A(this,Xc,!0),i(o))},{signal:r}),await x(this,eu,n5).call(this),e}finish(){g(this,ni)&&(g(this,ni).focus({focusVisible:g(this,Xc)}),A(this,Xc,!1))}isEmpty(){return g(this,Vi)?g(this,Ut)===null:!g(this,Ut)&&!g(this,Bi)}hasData(){return g(this,Vi)?g(this,Ut)!==null||!!g(this,xo):this.isEmpty()}get guessedText(){return g(this,xo)}async setGuessedText(e){g(this,Ut)===null&&(A(this,xo,e),A(this,Pl,await Pr._l10nPromise.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer")({generatedAltText:e})),x(this,eu,n5).call(this))}toggleAltTextBadge(e=!1){var t;if(g(this,Vi)&&!g(this,Ut)){if(!g(this,$i)){const r=A(this,$i,document.createElement("div"));r.className="noAltTextBadge",g(this,Wn).div.append(r)}g(this,$i).classList.toggle("hidden",!e)}else(t=g(this,$i))==null||t.remove(),A(this,$i,null)}serialize(e){let t=g(this,Ut);return e||g(this,xo)!==t||(t=g(this,Pl)),{altText:t,decorative:g(this,Bi),guessedText:g(this,xo),textWithDisclaimer:g(this,Pl)}}get data(){return{altText:g(this,Ut),decorative:g(this,Bi)}}set data({altText:e,decorative:t,guessedText:r,textWithDisclaimer:i,cancel:o=!1}){r&&(A(this,xo,r),A(this,Pl,i)),(g(this,Ut)!==e||g(this,Bi)!==t)&&(o||(A(this,Ut,e),A(this,Bi,t)),x(this,eu,n5).call(this))}toggle(e=!1){g(this,ni)&&(!e&&g(this,lr)&&(clearTimeout(g(this,lr)),A(this,lr,null)),g(this,ni).disabled=!e)}shown(){g(this,Wn)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:g(this,Jc,t5)}})}destroy(){var e,t;(e=g(this,ni))==null||e.remove(),A(this,ni,null),A(this,Ri,null),(t=g(this,$i))==null||t.remove(),A(this,$i,null)}};Ut=new WeakMap,Bi=new WeakMap,ni=new WeakMap,Ri=new WeakMap,lr=new WeakMap,Xc=new WeakMap,$i=new WeakMap,Wn=new WeakMap,xo=new WeakMap,Pl=new WeakMap,Vi=new WeakMap,Jc=new WeakSet,t5=function(){return(g(this,Ut)?"added":g(this,Ut)===null&&this.guessedText&&"review")||"missing"},eu=new WeakSet,n5=async function(){var i,o;const e=g(this,ni);if(!e)return;if(g(this,Vi)){const s=g(this,Jc,t5),a=s==="review"?"to-review":s;if(e.classList.toggle("done",!!g(this,Ut)),Pr._l10nPromise.get(`pdfjs-editor-new-alt-text-${a}-button-label`).then(c=>{e.setAttribute("aria-label",c);for(const u of e.childNodes)if(u.nodeType===Node.TEXT_NODE){u.textContent=c;break}}),!g(this,Ut)){(i=g(this,Ri))==null||i.remove();return}}else{if(!g(this,Ut)&&!g(this,Bi)){e.classList.remove("done"),(o=g(this,Ri))==null||o.remove();return}e.classList.add("done"),Pr._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(s=>{e.setAttribute("aria-label",s)})}let t=g(this,Ri);if(!t){A(this,Ri,t=document.createElement("span")),t.className="tooltip",t.setAttribute("role","tooltip");const s=t.id=`alt-text-tooltip-${g(this,Wn).id}`;e.setAttribute("aria-describedby",s);const a=100,c=g(this,Wn)._uiManager._signal;c.addEventListener("abort",()=>{clearTimeout(g(this,lr)),A(this,lr,null)},{once:!0}),e.addEventListener("mouseenter",()=>{A(this,lr,setTimeout(()=>{A(this,lr,null),g(this,Ri).classList.add("show"),g(this,Wn)._reportTelemetry({action:"alt_text_tooltip"})},a))},{signal:c}),e.addEventListener("mouseleave",()=>{var u;g(this,lr)&&(clearTimeout(g(this,lr)),A(this,lr,null)),(u=g(this,Ri))==null||u.classList.remove("show")},{signal:c})}t.innerText=g(this,Bi)?await Pr._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):g(this,Ut),t.parentNode||e.append(t);const r=g(this,Wn).getImageForAltText();r==null||r.setAttribute("aria-describedby",t.id)},pe(Pr,"_l10nPromise",null);let lm=Pr;const Fe=class Fe{constructor(e){M(this,hh);M(this,mh);M(this,B3);M(this,R3);M(this,gh);M(this,yh);M(this,bh);M(this,$3);M(this,wh);M(this,V3);M(this,F3);M(this,j3);M(this,vh);M(this,Vl);M(this,_l,null);M(this,ri,null);M(this,lt,null);M(this,tu,!1);M(this,Ll,!1);M(this,nn,null);M(this,Bl,null);M(this,ea,null);M(this,uh,"");M(this,Rl,!1);M(this,ta,null);M(this,dh,!1);M(this,$l,!1);M(this,Io,!1);M(this,Fi,null);M(this,nu,0);M(this,ru,0);M(this,_r,null);pe(this,"_editToolbar",null);pe(this,"_initialOptions",Object.create(null));pe(this,"_isVisible",!0);pe(this,"_uiManager",null);pe(this,"_focusEventsAllowed",!0);M(this,fh,!1);M(this,L3,Fe._zIndex++);this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:r,pageHeight:i,pageX:o,pageY:s}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[o,s];const[a,c]=this.parentDimensions;this.x=e.x/a,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const e=Fe.prototype._resizeWithKeyboard,t=Ga.TRANSLATE_SMALL,r=Ga.TRANSLATE_BIG;return Ie(this,"_resizerKeyboardManager",new u2([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-r,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[r,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-r]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,r]}],[["Escape","mac+Escape"],Fe.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return Ie(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new JU({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t,r){if(Fe._l10nResizer||(Fe._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),Fe._l10nPromise||(Fe._l10nPromise=new Map([...["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-new-alt-text-added-button-label","pdfjs-editor-new-alt-text-missing-button-label","pdfjs-editor-new-alt-text-to-review-button-label"].map(o=>[o,e.get(o)]),...["pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer"].map(o=>[o,e.get.bind(e,o)])])),r!=null&&r.strings)for(const o of r.strings)Fe._l10nPromise.set(o,e.get(o));if(Fe._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);Fe._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){Mt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return g(this,fh)}set _isDraggable(e){var t;A(this,fh,e),(t=this.div)==null||t.classList.toggle("draggable",e)}get isEnterHandled(){return!0}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=g(this,L3)}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):x(this,Vl,G1).call(this),this.parent=e}focusin(e){this._focusEventsAllowed&&(g(this,Rl)?A(this,Rl,!1):this.parent.setSelected(this))}focusout(e){var r;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const t=e.relatedTarget;t!=null&&t.closest(`#${this.id}`)||(e.preventDefault(),(r=this.parent)!=null&&r.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,r,i){const[o,s]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(e+r)/o,this.y=(t+i)/s,this.fixAndSetPosition()}translate(e,t){x(this,hh,yv).call(this,this.parentDimensions,e,t)}translateInPage(e,t){g(this,ta)||A(this,ta,[this.x,this.y]),x(this,hh,yv).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){g(this,ta)||A(this,ta,[this.x,this.y]);const[r,i]=this.parentDimensions;if(this.x+=e/r,this.y+=t/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:d}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,d)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:s}=this;const[a,c]=this.getBaseTranslation();o+=a,s+=c,this.div.style.left=`${(100*o).toFixed(2)}%`,this.div.style.top=`${(100*s).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!g(this,ta)&&(g(this,ta)[0]!==this.x||g(this,ta)[1]!==this.y)}getBaseTranslation(){const[e,t]=this.parentDimensions,{_borderLineWidth:r}=Fe,i=r/e,o=r/t;switch(this.rotation){case 90:return[-i,o];case 180:return[i,o];case 270:return[i,-o];default:return[-i,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const[t,r]=this.pageDimensions;let{x:i,y:o,width:s,height:a}=this;if(s*=t,a*=r,i*=t,o*=r,this._mustFixPosition)switch(e){case 0:i=Math.max(0,Math.min(t-s,i)),o=Math.max(0,Math.min(r-a,o));break;case 90:i=Math.max(0,Math.min(t-a,i)),o=Math.min(r,Math.max(s,o));break;case 180:i=Math.min(t,Math.max(s,i)),o=Math.min(r,Math.max(a,o));break;case 270:i=Math.min(t,Math.max(a,i)),o=Math.max(0,Math.min(r-s,o))}this.x=i/=t,this.y=o/=r;const[c,u]=this.getBaseTranslation();i+=c,o+=u;const{style:d}=this.div;d.left=`${(100*i).toFixed(2)}%`,d.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(e,t){var r;return x(r=Fe,ph,bv).call(r,e,t,this.parentRotation)}pageTranslationToScreen(e,t){var r;return x(r=Fe,ph,bv).call(r,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,r]}=this,i=t*e,o=r*e;return Rn.isCSSRoundSupported?[Math.round(i),Math.round(o)]:[i,o]}setDims(e,t){const[r,i]=this.parentDimensions;this.div.style.width=`${(100*e/r).toFixed(2)}%`,g(this,Ll)||(this.div.style.height=`${(100*t/i).toFixed(2)}%`)}fixDims(){const{style:e}=this.div,{height:t,width:r}=e,i=r.endsWith("%"),o=!g(this,Ll)&&t.endsWith("%");if(i&&o)return;const[s,a]=this.parentDimensions;i||(e.width=`${(100*parseFloat(r)/s).toFixed(2)}%`),g(this,Ll)||o||(e.height=`${(100*parseFloat(t)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var e;(e=g(this,lt))==null||e.finish()}async addEditToolbar(){return this._editToolbar||g(this,$l)?this._editToolbar:(this._editToolbar=new O4(this),this.div.append(this._editToolbar.render()),g(this,lt)&&await this._editToolbar.addAltText(g(this,lt)),this._editToolbar)}removeEditToolbar(){var e;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(e=g(this,lt))==null||e.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){g(this,lt)||(lm.initialize(Fe._l10nPromise),A(this,lt,new lm(this)),g(this,_l)&&(g(this,lt).data=g(this,_l),A(this,_l,null)),await this.addEditToolbar())}get altTextData(){var e;return(e=g(this,lt))==null?void 0:e.data}set altTextData(e){g(this,lt)&&(g(this,lt).data=e)}get guessedAltText(){var e;return(e=g(this,lt))==null?void 0:e.guessedText}async setGuessedAltText(e){var t;await((t=g(this,lt))==null?void 0:t.setGuessedText(e))}serializeAltText(e){var t;return(t=g(this,lt))==null?void 0:t.serialize(e)}hasAltText(){return!!g(this,lt)&&!g(this,lt).isEmpty()}hasAltTextData(){var e;return((e=g(this,lt))==null?void 0:e.hasData())??!1}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=g(this,tu)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),x(this,wh,Sv).call(this);const[e,t]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*t/e).toFixed(2)}%`,this.div.style.maxHeight=`${(100*e/t).toFixed(2)}%`);const[r,i]=this.getInitialTranslation();return this.translate(r,i),am(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=Rn.platform;e.button!==0||e.ctrlKey&&t?e.preventDefault():(A(this,Rl,!0),this._isDraggable?x(this,$3,wN).call(this,e):x(this,bh,kv).call(this,e))}moveInDOM(){g(this,Fi)&&clearTimeout(g(this,Fi)),A(this,Fi,setTimeout(()=>{var e;A(this,Fi,null),(e=this.parent)==null||e.moveEditorInDOM(this)},0))}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t,r=this.rotation){const i=this.parentScale,[o,s]=this.pageDimensions,[a,c]=this.pageTranslation,u=e/i,d=t/i,f=this.x*o,h=this.y*s,p=this.width*o,m=this.height*s;switch(r){case 0:return[f+u+a,s-h-d-m+c,f+u+p+a,s-h-d+c];case 90:return[f+d+a,s-h+u+c,f+d+m+a,s-h+u+p+c];case 180:return[f-u-p+a,s-h+d+c,f-u+a,s-h+d+m+c];case 270:return[f-d-m+a,s-h-u-p+c,f-d+a,s-h-u+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[r,i,o,s]=e,a=o-r,c=s-i;switch(this.rotation){case 0:return[r,t-s,a,c];case 90:return[r,t-i,c,a];case 180:return[o,t-i,a,c];case 270:return[o,t-s,c,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){A(this,$l,!0)}disableEditMode(){A(this,$l,!1)}isInEditMode(){return g(this,$l)}shouldGetKeyboardEvents(){return g(this,Io)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){x(this,wh,Sv).call(this)}rotate(e){}serialize(e=!1,t=null){Mt("An editor must be serializable")}static deserialize(e,t,r){const i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r});i.rotation=e.rotation,A(i,_l,e.accessibilityData);const[o,s]=i.pageDimensions,[a,c,u,d]=i.getRectInCurrentCoords(e.rect,s);return i.x=a/o,i.y=c/s,i.width=u/o,i.height=d/s,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var e;if((e=g(this,ea))==null||e.abort(),A(this,ea,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),g(this,Fi)&&(clearTimeout(g(this,Fi)),A(this,Fi,null)),x(this,Vl,G1).call(this),this.removeEditToolbar(),g(this,_r)){for(const t of g(this,_r).values())clearTimeout(t);A(this,_r,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(x(this,B3,yN).call(this),g(this,nn).classList.remove("hidden"),am(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),A(this,Bl,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const t=g(this,nn).children;if(!g(this,ri)){A(this,ri,Array.from(t));const s=x(this,V3,vN).bind(this),a=x(this,F3,CN).bind(this),c=this._uiManager._signal;for(const u of g(this,ri)){const d=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",s,{signal:c}),u.addEventListener("blur",a,{signal:c}),u.addEventListener("focus",x(this,j3,kN).bind(this,d),{signal:c}),u.setAttribute("data-l10n-id",Fe._l10nResizer[d])}}const r=g(this,ri)[0];let i=0;for(const s of t){if(s===r)break;i++}const o=(360-this.rotation+this.parentRotation)%360/90*(g(this,ri).length/4);if(o!==i){if(o<i)for(let a=0;a<i-o;a++)g(this,nn).append(g(this,nn).firstChild);else if(o>i)for(let a=0;a<o-i;a++)g(this,nn).firstChild.before(g(this,nn).lastChild);let s=0;for(const a of t){const c=g(this,ri)[s++].getAttribute("data-resizer-name");a.setAttribute("data-l10n-id",Fe._l10nResizer[c])}}x(this,vh,Mv).call(this,0),A(this,Io,!0),g(this,nn).firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}_resizeWithKeyboard(e,t){g(this,Io)&&x(this,yh,Cv).call(this,g(this,uh),{movementX:e,movementY:t})}_stopResizingWithKeyboard(){x(this,Vl,G1).call(this),this.div.focus()}select(){var e,t,r;this.makeResizable(),(e=this.div)==null||e.classList.add("selectedEditor"),this._editToolbar?((t=this._editToolbar)==null||t.show(),(r=g(this,lt))==null||r.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{var i,o;(i=this.div)!=null&&i.classList.contains("selectedEditor")&&((o=this._editToolbar)==null||o.show())})}unselect(){var e,t,r,i,o;(e=g(this,nn))==null||e.classList.add("hidden"),(t=this.div)==null||t.classList.remove("selectedEditor"),(r=this.div)!=null&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(i=this._editToolbar)==null||i.hide(),(o=g(this,lt))==null||o.toggleAltTextBadge(!0)}updateParams(e,t){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return g(this,dh)}set isEditing(e){A(this,dh,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){A(this,Ll,!0);const r=e/t,{style:i}=this.div;i.aspectRatio=r,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,t=!1){if(t){g(this,_r)||A(this,_r,new Map);const{action:r}=e;let i=g(this,_r).get(r);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),g(this,_r).delete(r),g(this,_r).size===0&&A(this,_r,null)},Fe._telemetryTimeout),g(this,_r).set(r,i)}else e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),A(this,tu,!1)}disable(){this.div&&(this.div.tabIndex=-1),A(this,tu,!0)}renderAnnotationElement(e){let t=e.container.querySelector(".annotationContent");if(t){if(t.nodeName==="CANVAS"){const r=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),r.before(t)}}else t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);return t}resetAnnotationElement(e){const{firstChild:t}=e.container;t.nodeName==="DIV"&&t.classList.contains("annotationContent")&&t.remove()}};_l=new WeakMap,ri=new WeakMap,lt=new WeakMap,tu=new WeakMap,Ll=new WeakMap,nn=new WeakMap,Bl=new WeakMap,ea=new WeakMap,uh=new WeakMap,Rl=new WeakMap,ta=new WeakMap,dh=new WeakMap,$l=new WeakMap,Io=new WeakMap,Fi=new WeakMap,nu=new WeakMap,ru=new WeakMap,_r=new WeakMap,fh=new WeakMap,L3=new WeakMap,hh=new WeakSet,yv=function([e,t],r,i){[r,i]=this.screenToPageTranslation(r,i),this.x+=r/e,this.y+=i/t,this.fixAndSetPosition()},ph=new WeakSet,bv=function(e,t,r){switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}},mh=new WeakSet,wv=function(e){switch(e){case 90:{const[t,r]=this.pageDimensions;return[0,-t/r,r/t,0]}case 180:return[-1,0,0,-1];case 270:{const[t,r]=this.pageDimensions;return[0,t/r,-r/t,0]}default:return[1,0,0,1]}},B3=new WeakSet,yN=function(){if(g(this,nn))return;A(this,nn,document.createElement("div")),g(this,nn).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const r of e){const i=document.createElement("div");g(this,nn).append(i),i.classList.add("resizer",r),i.setAttribute("data-resizer-name",r),i.addEventListener("pointerdown",x(this,R3,bN).bind(this,r),{signal:t}),i.addEventListener("contextmenu",wr,{signal:t}),i.tabIndex=-1}this.div.prepend(g(this,nn))},R3=new WeakSet,bN=function(e,t){var m;t.preventDefault();const{isMac:r}=Rn.platform;if(t.button!==0||t.ctrlKey&&r)return;(m=g(this,lt))==null||m.toggle(!1);const i=this._isDraggable;this._isDraggable=!1;const o=new AbortController,s=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",x(this,yh,Cv).bind(this,e),{passive:!0,capture:!0,signal:s}),window.addEventListener("contextmenu",wr,{signal:s});const a=this.x,c=this.y,u=this.width,d=this.height,f=this.parent.div.style.cursor,h=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const p=()=>{var y;o.abort(),this.parent.togglePointerEvents(!0),(y=g(this,lt))==null||y.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=f,this.div.style.cursor=h,x(this,gh,vv).call(this,a,c,u,d)};window.addEventListener("pointerup",p,{signal:s}),window.addEventListener("blur",p,{signal:s})},gh=new WeakSet,vv=function(e,t,r,i){const o=this.x,s=this.y,a=this.width,c=this.height;o===e&&s===t&&a===r&&c===i||this.addCommands({cmd:()=>{this.width=a,this.height=c,this.x=o,this.y=s;const[u,d]=this.parentDimensions;this.setDims(u*a,d*c),this.fixAndSetPosition()},undo:()=>{this.width=r,this.height=i,this.x=e,this.y=t;const[u,d]=this.parentDimensions;this.setDims(u*r,d*i),this.fixAndSetPosition()},mustExec:!0})},yh=new WeakSet,Cv=function(e,t){const[r,i]=this.parentDimensions,o=this.x,s=this.y,a=this.width,c=this.height,u=Fe.MIN_SIZE/r,d=Fe.MIN_SIZE/i,f=R=>Math.round(1e4*R)/1e4,h=x(this,mh,wv).call(this,this.rotation),p=(R,q)=>[h[0]*R+h[2]*q,h[1]*R+h[3]*q],m=x(this,mh,wv).call(this,360-this.rotation);let y,b,w=!1,v=!1;switch(e){case"topLeft":w=!0,y=(R,q)=>[0,0],b=(R,q)=>[R,q];break;case"topMiddle":y=(R,q)=>[R/2,0],b=(R,q)=>[R/2,q];break;case"topRight":w=!0,y=(R,q)=>[R,0],b=(R,q)=>[0,q];break;case"middleRight":v=!0,y=(R,q)=>[R,q/2],b=(R,q)=>[0,q/2];break;case"bottomRight":w=!0,y=(R,q)=>[R,q],b=(R,q)=>[0,0];break;case"bottomMiddle":y=(R,q)=>[R/2,q],b=(R,q)=>[R/2,0];break;case"bottomLeft":w=!0,y=(R,q)=>[0,q],b=(R,q)=>[R,0];break;case"middleLeft":v=!0,y=(R,q)=>[0,q/2],b=(R,q)=>[R,q/2]}const k=y(a,c),C=b(a,c);let T=p(...C);const S=f(o+T[0]),E=f(s+T[1]);let O=1,I=1,[P,D]=this.screenToPageTranslation(t.movementX,t.movementY);[P,D]=(B=P/r,V=D/i,[m[0]*B+m[2]*V,m[1]*B+m[3]*V]);var B,V;if(w){const R=Math.hypot(a,c);O=I=Math.max(Math.min(Math.hypot(C[0]-k[0]-P,C[1]-k[1]-D)/R,1/a,1/c),u/a,d/c)}else v?O=Math.max(u,Math.min(1,Math.abs(C[0]-k[0]-P)))/a:I=Math.max(d,Math.min(1,Math.abs(C[1]-k[1]-D)))/c;const U=f(a*O),L=f(c*I);T=p(...b(U,L));const N=S-T[0],$=E-T[1];this.width=U,this.height=L,this.x=N,this.y=$,this.setDims(r*U,i*L),this.fixAndSetPosition()},bh=new WeakSet,kv=function(e){const{isMac:t}=Rn.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)},$3=new WeakSet,wN=function(e){const t=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();const r=new AbortController,i=this._uiManager.combinedSignal(r);if(t){this.div.classList.add("moving"),A(this,nu,e.clientX),A(this,ru,e.clientY);const s=a=>{const{clientX:c,clientY:u}=a,[d,f]=this.screenToPageTranslation(c-g(this,nu),u-g(this,ru));A(this,nu,c),A(this,ru,u),this._uiManager.dragSelectedEditors(d,f)};window.addEventListener("pointermove",s,{passive:!0,capture:!0,signal:i})}const o=()=>{r.abort(),t&&this.div.classList.remove("moving"),A(this,Rl,!1),this._uiManager.endDragSession()||x(this,bh,kv).call(this,e)};window.addEventListener("pointerup",o,{signal:i}),window.addEventListener("blur",o,{signal:i})},wh=new WeakSet,Sv=function(){if(g(this,ea)||!this.div)return;A(this,ea,new AbortController);const e=this._uiManager.combinedSignal(g(this,ea));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})},V3=new WeakSet,vN=function(e){Fe._resizerKeyboardManager.exec(this,e)},F3=new WeakSet,CN=function(e){var t;g(this,Io)&&((t=e.relatedTarget)==null?void 0:t.parentNode)!==g(this,nn)&&x(this,Vl,G1).call(this)},j3=new WeakSet,kN=function(e){A(this,uh,g(this,Io)?e:"")},vh=new WeakSet,Mv=function(e){if(g(this,ri))for(const t of g(this,ri))t.tabIndex=e},Vl=new WeakSet,G1=function(){if(A(this,Io,!1),x(this,vh,Mv).call(this,-1),g(this,Bl)){const{savedX:e,savedY:t,savedWidth:r,savedHeight:i}=g(this,Bl);x(this,gh,vv).call(this,e,t,r,i),A(this,Bl,null)}},M(Fe,ph),pe(Fe,"_l10nPromise",null),pe(Fe,"_l10nResizer",null),pe(Fe,"_borderLineWidth",-1),pe(Fe,"_colorManager",new N4),pe(Fe,"_zIndex",1),pe(Fe,"_telemetryTimeout",1e3);let ze=Fe;class JU extends ze{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const SM=3285377520,vr=4294901760,ps=65535;class MM{constructor(e){this.h1=e?4294967295&e:SM,this.h2=e?4294967295&e:SM}update(e){let t,r;if(typeof e=="string"){t=new Uint8Array(2*e.length),r=0;for(let y=0,b=e.length;y<b;y++){const w=e.charCodeAt(y);w<=255?t[r++]=w:(t[r++]=w>>>8,t[r++]=255&w)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice(),r=t.byteLength}const i=r>>2,o=r-4*i,s=new Uint32Array(t.buffer,0,i);let a=0,c=0,u=this.h1,d=this.h2;const f=3432918353,h=461845907,p=11601,m=13715;for(let y=0;y<i;y++)1&y?(a=s[y],a=a*f&vr|a*p&ps,a=a<<15|a>>>17,a=a*h&vr|a*m&ps,u^=a,u=u<<13|u>>>19,u=5*u+3864292196):(c=s[y],c=c*f&vr|c*p&ps,c=c<<15|c>>>17,c=c*h&vr|c*m&ps,d^=c,d=d<<13|d>>>19,d=5*d+3864292196);switch(a=0,o){case 3:a^=t[4*i+2]<<16;case 2:a^=t[4*i+1]<<8;case 1:a^=t[4*i],a=a*f&vr|a*p&ps,a=a<<15|a>>>17,a=a*h&vr|a*m&ps,1&i?u^=a:d^=a}this.h1=u,this.h2=d}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&vr|36045*e&ps,t=4283543511*t&vr|(2950163797*(t<<16|e>>>16)&vr)>>>16,e^=t>>>1,e=444984403*e&vr|60499*e&ps,t=3301882366*t&vr|(3120437893*(t<<16|e>>>16)&vr)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}const P4=Object.freeze({map:null,hash:"",transfer:void 0});class _4{constructor(){M(this,z3);M(this,Fl,!1);M(this,jl,null);M(this,Zt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const r=g(this,Zt).get(e);return r===void 0?t:Object.assign(t,r)}getRawValue(e){return g(this,Zt).get(e)}remove(e){if(g(this,Zt).delete(e),g(this,Zt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const t of g(this,Zt).values())if(t instanceof ze)return;this.onAnnotationEditor(null)}}setValue(e,t){const r=g(this,Zt).get(e);let i=!1;if(r!==void 0)for(const[o,s]of Object.entries(t))r[o]!==s&&(i=!0,r[o]=s);else i=!0,g(this,Zt).set(e,t);i&&x(this,z3,SN).call(this),t instanceof ze&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(t.constructor._type)}has(e){return g(this,Zt).has(e)}getAll(){return g(this,Zt).size>0?S4(g(this,Zt)):null}setAll(e){for(const[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return g(this,Zt).size}resetModified(){g(this,Fl)&&(A(this,Fl,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new EM(this)}get serializable(){if(g(this,Zt).size===0)return P4;const e=new Map,t=new MM,r=[],i=Object.create(null);let o=!1;for(const[s,a]of g(this,Zt)){const c=a instanceof ze?a.serialize(!1,i):a;c&&(e.set(s,c),t.update(`${s}:${JSON.stringify(c)}`),o||(o=!!c.bitmap))}if(o)for(const s of e.values())s.bitmap&&r.push(s.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:r}:P4}get editorStats(){let e=null;const t=new Map;for(const r of g(this,Zt).values()){if(!(r instanceof ze))continue;const i=r.telemetryFinalData;if(!i)continue;const{type:o}=i;t.has(o)||t.set(o,Object.getPrototypeOf(r).constructor),e||(e=Object.create(null));const s=e[o]||(e[o]=new Map);for(const[a,c]of Object.entries(i)){if(a==="type")continue;let u=s.get(a);u||(u=new Map,s.set(a,u));const d=u.get(c)??0;u.set(c,d+1)}}for(const[r,i]of t)e[r]=i.computeTelemetryFinalData(e[r]);return e}resetModifiedIds(){A(this,jl,null)}get modifiedIds(){if(g(this,jl))return g(this,jl);const e=[];for(const t of g(this,Zt).values())t instanceof ze&&t.annotationElementId&&t.serialize()&&e.push(t.annotationElementId);return A(this,jl,{ids:new Set(e),hash:e.join(",")})}}Fl=new WeakMap,jl=new WeakMap,Zt=new WeakMap,z3=new WeakSet,SN=function(){g(this,Fl)||(A(this,Fl,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class EM extends _4{constructor(t){super();M(this,Ch,void 0);const{map:r,hash:i,transfer:o}=t.serializable,s=structuredClone(r,o?{transfer:o}:null);A(this,Ch,{map:s,hash:i,transfer:o})}get print(){Mt("Should not call PrintAnnotationStorage.print")}get serializable(){return g(this,Ch)}get modifiedIds(){return Ie(this,"modifiedIds",{ids:new Set,hash:""})}}Ch=new WeakMap;class eZ{constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){M(this,iu,new Set);this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),g(this,iu).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,_inspectFont:t}){if(e&&!g(this,iu).has(e.loadedName))if(xt(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:r,src:i,style:o}=e,s=new FontFace(r,i,o);this.addNativeFontFace(s);try{await s.load(),g(this,iu).add(r),t==null||t(e)}catch{ke(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(s)}}else Mt("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const r=e.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(i){throw ke(`Failed to load font '${r.family}': '${i}'.`),e.disableFontFace=!0,i}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const i=this._queueLoadingCallback(r);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){var e;return Ie(this,"isFontLoadingAPISupported",!!((e=this._document)!=null&&e.fonts))}get isSyncFontLoadingSupported(){let e=!1;return(cn||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),Ie(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,r={done:!1,complete:function(){for(xt(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){const o=t.shift();setTimeout(o.callback,0)}},callback:e};return t.push(r),r}get _loadTestFont(){return Ie(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t){function r(b,w){return b.charCodeAt(w)<<24|b.charCodeAt(w+1)<<16|b.charCodeAt(w+2)<<8|255&b.charCodeAt(w+3)}function i(b,w,v,k){return b.substring(0,w)+k+b.substring(w+v)}let o,s;const a=this._document.createElement("canvas");a.width=1,a.height=1;const c=a.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=i(f,976,d.length,d);const h=1482184792;let p=r(f,16);for(o=0,s=d.length-3;o<s;o+=4)p=p-h+r(d,o)|0;o<d.length&&(p=p-h+r(d+"XXX",o)|0),f=i(f,16,4,function(w){return String.fromCharCode(w>>24&255,w>>16&255,w>>8&255,255&w)}(p));const m=`@font-face {font-family:"${d}";src:${`url(data:font/opentype;base64,${btoa(f)});`}}`;this.insertRule(m);const y=this._document.createElement("div");y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px";for(const b of[e.loadedName,d]){const w=this._document.createElement("span");w.textContent="Hi",w.style.fontFamily=b,y.append(w)}this._document.body.append(y),function b(w,v){if(++u>30){ke("Load test font never loaded."),v();return}c.font="30px "+w,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?v():setTimeout(b.bind(null,w,v))}(d,()=>{y.remove(),t.complete()})}}iu=new WeakMap;class tZ{constructor(e,{disableFontFace:t=!1,inspectFont:r=null}){this.compiledGlyphs=Object.create(null);for(const i in e)this[i]=e[i];this.disableFontFace=t===!0,this._inspectFont=r}createNativeFontFace(){var t;if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else e=new FontFace(this.loadedName,this.data,{});return(t=this._inspectFont)==null||t.call(this,this),e}createFontFaceRule(){var i;if(!this.data||this.disableFontFace)return null;const e=dM(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let r;if(this.cssFontInfo){let o=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(o+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${o}src:${t}}`}else r=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return(i=this._inspectFont)==null||i.call(this,this,t),r}getPathGenerator(e,t){if(this.compiledGlyphs[t]!==void 0)return this.compiledGlyphs[t];let r;try{r=e.get(this.loadedName+"_path_"+t)}catch(o){ke(`getPathGenerator - ignoring character: "${o}".`)}if(!Array.isArray(r)||r.length===0)return this.compiledGlyphs[t]=function(o,s){};const i=[];for(let o=0,s=r.length;o<s;)switch(r[o++]){case RU:{const[a,c,u,d,f,h]=r.slice(o,o+6);i.push(p=>p.bezierCurveTo(a,c,u,d,f,h)),o+=6}break;case $U:{const[a,c]=r.slice(o,o+2);i.push(u=>u.moveTo(a,c)),o+=2}break;case VU:{const[a,c]=r.slice(o,o+2);i.push(u=>u.lineTo(a,c)),o+=2}break;case FU:{const[a,c,u,d]=r.slice(o,o+4);i.push(f=>f.quadraticCurveTo(a,c,u,d)),o+=4}break;case jU:i.push(a=>a.restore());break;case zU:i.push(a=>a.save());break;case HU:xt(i.length===2,"Scale command is only valid at the third position.");break;case UU:{const[a,c,u,d,f,h]=r.slice(o,o+6);i.push(p=>p.transform(a,c,u,d,f,h)),o+=6}break;case ZU:{const[a,c]=r.slice(o,o+2);i.push(u=>u.translate(a,c)),o+=2}}return this.compiledGlyphs[t]=function(s,a){i[0](s),i[1](s),s.scale(a,-a);for(let c=2,u=i.length;c<u;c++)i[c](s)}}}if(cn){var L4=Promise.withResolvers(),d2=null;(async()=>{const n=await Promise.resolve().then(()=>Rf),e=await Promise.resolve().then(()=>Rf),t=await Promise.resolve().then(()=>Rf),r=await Promise.resolve().then(()=>Rf);let i,o;try{i=await Promise.resolve().then(()=>Rf)}catch{}try{o=await Promise.resolve().then(()=>Tfe)}catch{}return new Map(Object.entries({fs:n,http:e,https:t,url:r,canvas:i,path2d:o}))})().then(n=>{var e,t,r,i;if(d2=n,L4.resolve(),!globalThis.DOMMatrix){const o=(e=n.get("canvas"))==null?void 0:e.DOMMatrix;o?globalThis.DOMMatrix=o:ke("Cannot polyfill `DOMMatrix`, rendering may be broken.")}if(!globalThis.Path2D){const o=(t=n.get("canvas"))==null?void 0:t.CanvasRenderingContext2D,s=(r=n.get("path2d"))==null?void 0:r.applyPath2DToCanvasRenderingContext,a=(i=n.get("path2d"))==null?void 0:i.Path2D;o&&s&&a?(s(o),globalThis.Path2D=a):ke("Cannot polyfill `Path2D`, rendering may be broken.")}},n=>{ke(`loadPackages: ${n}`),d2=new Map,L4.resolve()})}class ms{static get promise(){return L4.promise}static get(e){return d2==null?void 0:d2.get(e)}}const AM=function(n){return ms.get("fs").promises.readFile(n).then(e=>new Uint8Array(e))},Ya="Fill",B4="Stroke",f2="Shading";function R4(n,e){if(!e)return;const t=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],t,r),n.clip(i)}class $4{getPattern(){Mt("Abstract method `getPattern` called.")}}class nZ extends $4{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;this._type==="axial"?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const r of this._colorStops)t.addColorStop(r[0],r[1]);return t}getPattern(e,t,r,i){let o;if(i===B4||i===Ya){const s=t.current.getClippedPathBoundingBox(i,ot(e))||[0,0,0,0],a=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,u=t.cachedCanvases.getCanvas("pattern",a,c,!0),d=u.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-s[0],-s[1]),r=le.transform(r,[1,0,0,1,s[0],s[1]]),d.transform(...t.baseTransform),this.matrix&&d.transform(...this.matrix),R4(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),o=e.createPattern(u.canvas,"no-repeat");const f=new DOMMatrix(r);o.setTransform(f)}else R4(e,this._bbox),o=this._createGradient(e);return o}}function V4(n,e,t,r,i,o,s,a){const c=e.coords,u=e.colors,d=n.data,f=4*n.width;let h;c[t+1]>c[r+1]&&(h=t,t=r,r=h,h=o,o=s,s=h),c[r+1]>c[i+1]&&(h=r,r=i,i=h,h=s,s=a,a=h),c[t+1]>c[r+1]&&(h=t,t=r,r=h,h=o,o=s,s=h);const p=(c[t]+e.offsetX)*e.scaleX,m=(c[t+1]+e.offsetY)*e.scaleY,y=(c[r]+e.offsetX)*e.scaleX,b=(c[r+1]+e.offsetY)*e.scaleY,w=(c[i]+e.offsetX)*e.scaleX,v=(c[i+1]+e.offsetY)*e.scaleY;if(m>=v)return;const k=u[o],C=u[o+1],T=u[o+2],S=u[s],E=u[s+1],O=u[s+2],I=u[a],P=u[a+1],D=u[a+2],B=Math.round(m),V=Math.round(v);let U,L,N,$,R,q,re,ue;for(let K=B;K<=V;K++){if(K<b){const J=K<m?0:(m-K)/(m-b);U=p-(p-y)*J,L=k-(k-S)*J,N=C-(C-E)*J,$=T-(T-O)*J}else{let J;J=K>v?1:b===v?0:(b-K)/(b-v),U=y-(y-w)*J,L=S-(S-I)*J,N=E-(E-P)*J,$=O-(O-D)*J}let H;H=K<m?0:K>v?1:(m-K)/(m-v),R=p-(p-w)*H,q=k-(k-I)*H,re=C-(C-P)*H,ue=T-(T-D)*H;const j=Math.round(Math.min(U,R)),F=Math.round(Math.max(U,R));let G=f*K+4*j;for(let J=j;J<=F;J++)H=(U-J)/(U-R),H<0?H=0:H>1&&(H=1),d[G++]=L-(L-q)*H|0,d[G++]=N-(N-re)*H|0,d[G++]=$-($-ue)*H|0,d[G++]=255}}function rZ(n,e,t){const r=e.coords,i=e.colors;let o,s;switch(e.type){case"lattice":const a=e.verticesPerRow,c=Math.floor(r.length/a)-1,u=a-1;for(o=0;o<c;o++){let d=o*a;for(let f=0;f<u;f++,d++)V4(n,t,r[d],r[d+1],r[d+a],i[d],i[d+1],i[d+a]),V4(n,t,r[d+a+1],r[d+1],r[d+a],i[d+a+1],i[d+1],i[d+a])}break;case"triangles":for(o=0,s=r.length;o<s;o+=3)V4(n,t,r[o],r[o+1],r[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class iZ extends $4{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,r){const i=Math.floor(this._bounds[0]),o=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-i,a=Math.ceil(this._bounds[3])-o,c=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),u=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),d=s/c,f=a/u,h={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-o,scaleX:1/d,scaleY:1/f},p=c+4,m=u+4,y=r.getCanvas("mesh",p,m,!1),b=y.context,w=b.createImageData(c,u);if(t){const v=w.data;for(let k=0,C=v.length;k<C;k+=4)v[k]=t[0],v[k+1]=t[1],v[k+2]=t[2],v[k+3]=255}for(const v of this._figures)rZ(w,v,h);return b.putImageData(w,2,2),{canvas:y.canvas,offsetX:i-2*d,offsetY:o-2*f,scaleX:d,scaleY:f}}getPattern(e,t,r,i){R4(e,this._bbox);let o;if(i===f2)o=le.singularValueDecompose2dScale(ot(e));else if(o=le.singularValueDecompose2dScale(t.baseTransform),this.matrix){const a=le.singularValueDecompose2dScale(this.matrix);o=[o[0]*a[0],o[1]*a[1]]}const s=this._createMeshCanvas(o,i===f2?null:this._background,t.cachedCanvases);return i!==f2&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}}class oZ extends $4{getPattern(){return"hotpink"}}const sZ=1,aZ=2,H3=class H3{constructor(e,t,r,i,o){this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=r,this.canvasGraphicsFactory=i,this.baseTransform=o}createPatternCanvas(e){const t=this.operatorList,r=this.bbox,i=this.xstep,o=this.ystep,s=this.paintType,a=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;nm("TilingType: "+a);const d=r[0],f=r[1],h=r[2],p=r[3],m=le.singularValueDecompose2dScale(this.matrix),y=le.singularValueDecompose2dScale(this.baseTransform),b=[m[0]*y[0],m[1]*y[1]],w=this.getSizeAndScale(i,this.ctx.canvas.width,b[0]),v=this.getSizeAndScale(o,this.ctx.canvas.height,b[1]),k=e.cachedCanvases.getCanvas("pattern",w.size,v.size,!0),C=k.context,T=u.createCanvasGraphics(C);T.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(T,s,c);let S=d,E=f,O=h,I=p;return d<0&&(S=0,O+=Math.abs(d)),f<0&&(E=0,I+=Math.abs(f)),C.translate(-w.scale*S,-v.scale*E),T.transform(w.scale,0,0,v.scale,0,0),C.save(),this.clipBbox(T,S,E,O,I),T.baseTransform=ot(T.ctx),T.executeOperatorList(t),T.endDrawing(),{canvas:k.canvas,scaleX:w.scale,scaleY:v.scale,offsetX:S,offsetY:E}}getSizeAndScale(e,t,r){e=Math.abs(e);const i=Math.max(H3.MAX_PATTERN_SIZE,t);let o=Math.ceil(e*r);return o>=i?o=i:r=o/e,{scale:r,size:o}}clipBbox(e,t,r,i,o){const s=i-t,a=o-r;e.ctx.rect(t,r,s,a),e.current.updateRectMinMax(ot(e.ctx),[t,r,i,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){const i=e.ctx,o=e.current;switch(t){case sZ:const s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case aZ:const a=le.makeHexColor(r[0],r[1],r[2]);i.fillStyle=a,i.strokeStyle=a,o.fillColor=a,o.strokeColor=a;break;default:throw new LU(`Unsupported paint type: ${t}`)}}getPattern(e,t,r,i){let o=r;i!==f2&&(o=le.transform(o,t.baseTransform),this.matrix&&(o=le.transform(o,this.matrix)));const s=this.createPatternCanvas(t);let a=new DOMMatrix(o);a=a.translate(s.offsetX,s.offsetY),a=a.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");return c.setTransform(a),c}};pe(H3,"MAX_PATTERN_SIZE",3e3);let F4=H3;function lZ({src:n,srcPos:e=0,dest:t,width:r,height:i,nonBlackColor:o=4294967295,inverseDecode:s=!1}){const a=Rn.isLittleEndian?4278190080:255,[c,u]=s?[o,a]:[a,o],d=r>>3,f=7&r,h=n.length;t=new Uint32Array(t.buffer);let p=0;for(let m=0;m<i;m++){for(const b=e+d;e<b;e++){const w=e<h?n[e]:255;t[p++]=128&w?u:c,t[p++]=64&w?u:c,t[p++]=32&w?u:c,t[p++]=16&w?u:c,t[p++]=8&w?u:c,t[p++]=4&w?u:c,t[p++]=2&w?u:c,t[p++]=1&w?u:c}if(f===0)continue;const y=e<h?n[e++]:255;for(let b=0;b<f;b++)t[p++]=y&1<<7-b?u:c}return{srcPos:e,destPos:p}}const $n=16;class cZ{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,t,r)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function cm(n,e,t,r,i,o,s,a,c,u){const[d,f,h,p,m,y]=ot(n);if(f===0&&h===0){const b=s*d+m,w=Math.round(b),v=a*p+y,k=Math.round(v),C=(s+c)*d+m,T=Math.abs(Math.round(C)-w)||1,S=(a+u)*p+y,E=Math.abs(Math.round(S)-k)||1;return n.setTransform(Math.sign(d),0,0,Math.sign(p),w,k),n.drawImage(e,t,r,i,o,0,0,T,E),n.setTransform(d,f,h,p,m,y),[T,E]}if(d===0&&p===0){const b=a*h+m,w=Math.round(b),v=s*f+y,k=Math.round(v),C=(a+u)*h+m,T=Math.abs(Math.round(C)-w)||1,S=(s+c)*f+y,E=Math.abs(Math.round(S)-k)||1;return n.setTransform(0,Math.sign(f),Math.sign(h),0,w,k),n.drawImage(e,t,r,i,o,0,0,E,T),n.setTransform(d,f,h,p,m,y),[E,T]}return n.drawImage(e,t,r,i,o,s,a,c,u),[Math.hypot(d,f)*c,Math.hypot(h,p)*u]}class TM{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=aM,this.textMatrixScale=1,this.fontMatrix=g4,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=Xp,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=le.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){const r=le.applyTransform(t,e),i=le.applyTransform(t.slice(2),e),o=le.applyTransform([t[0],t[3]],e),s=le.applyTransform([t[2],t[1]],e);this.minX=Math.min(this.minX,r[0],i[0],o[0],s[0]),this.minY=Math.min(this.minY,r[1],i[1],o[1],s[1]),this.maxX=Math.max(this.maxX,r[0],i[0],o[0],s[0]),this.maxY=Math.max(this.maxY,r[1],i[1],o[1],s[1])}updateScalingPathMinMax(e,t){le.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.minY=Math.min(this.minY,t[1]),this.maxX=Math.max(this.maxX,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,r,i,o,s,a,c,u,d){const f=le.bezierBoundingBox(t,r,i,o,s,a,c,u,d);d||this.updateRectMinMax(e,f)}getPathBoundingBox(e=Ya,t=null){const r=[this.minX,this.minY,this.maxX,this.maxY];if(e===B4){t||Mt("Stroke bounding box must include transform.");const i=le.singularValueDecompose2dScale(t),o=i[0]*this.lineWidth/2,s=i[1]*this.lineWidth/2;r[0]-=o,r[1]-=s,r[2]+=o,r[3]+=s}return r}updateClipFromPath(){const e=le.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=Ya,t=null){return le.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function xM(n,e){if(typeof ImageData<"u"&&e instanceof ImageData){n.putImageData(e,0,0);return}const t=e.height,r=e.width,i=t%$n,o=(t-i)/$n,s=i===0?o:o+1,a=n.createImageData(r,$n);let c,u=0;const d=e.data,f=a.data;let h,p,m,y;if(e.kind===Jp.GRAYSCALE_1BPP){const b=d.byteLength,w=new Uint32Array(f.buffer,0,f.byteLength>>2),v=w.length,k=r+7>>3,C=4294967295,T=Rn.isLittleEndian?4278190080:255;for(h=0;h<s;h++){for(m=h<o?$n:i,c=0,p=0;p<m;p++){const S=b-u;let E=0;const O=S>k?r:8*S-7,I=-8&O;let P=0,D=0;for(;E<I;E+=8)D=d[u++],w[c++]=128&D?C:T,w[c++]=64&D?C:T,w[c++]=32&D?C:T,w[c++]=16&D?C:T,w[c++]=8&D?C:T,w[c++]=4&D?C:T,w[c++]=2&D?C:T,w[c++]=1&D?C:T;for(;E<O;E++)P===0&&(D=d[u++],P=128),w[c++]=D&P?C:T,P>>=1}for(;c<v;)w[c++]=0;n.putImageData(a,0,h*$n)}}else if(e.kind===Jp.RGBA_32BPP){for(p=0,y=r*$n*4,h=0;h<o;h++)f.set(d.subarray(u,u+y)),u+=y,n.putImageData(a,0,p),p+=$n;h<s&&(y=r*i*4,f.set(d.subarray(u,u+y)),n.putImageData(a,0,p))}else{if(e.kind!==Jp.RGB_24BPP)throw new Error(`bad image kind: ${e.kind}`);for(m=$n,y=r*m,h=0;h<s;h++){for(h>=o&&(m=i,y=r*m),c=0,p=y;p--;)f[c++]=d[u++],f[c++]=d[u++],f[c++]=d[u++],f[c++]=255;n.putImageData(a,0,h*$n)}}}function IM(n,e){if(e.bitmap){n.drawImage(e.bitmap,0,0);return}const t=e.height,r=e.width,i=t%$n,o=(t-i)/$n,s=i===0?o:o+1,a=n.createImageData(r,$n);let c=0;const u=e.data,d=a.data;for(let f=0;f<s;f++){const h=f<o?$n:i;({srcPos:c}=lZ({src:u,srcPos:c,dest:d,width:r,height:h,nonBlackColor:0})),n.putImageData(a,0,f*$n)}}function h2(n,e){const t=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of t)n[r]!==void 0&&(e[r]=n[r]);n.setLineDash!==void 0&&(e.setLineDash(n.getLineDash()),e.lineDashOffset=n.lineDashOffset)}function um(n){if(n.strokeStyle=n.fillStyle="#000000",n.fillRule="nonzero",n.globalAlpha=1,n.lineWidth=1,n.lineCap="butt",n.lineJoin="miter",n.miterLimit=10,n.globalCompositeOperation="source-over",n.font="10px sans-serif",n.setLineDash!==void 0&&(n.setLineDash([]),n.lineDashOffset=0),!cn){const{filter:e}=n;e!=="none"&&e!==""&&(n.filter="none")}}function OM(n,e){if(e)return!0;const t=le.singularValueDecompose2dScale(n);t[0]=Math.fround(t[0]),t[1]=Math.fround(t[1]);const r=Math.fround((globalThis.devicePixelRatio||1)*hs.PDF_TO_CSS_UNITS);return t[0]<=r&&t[1]<=r}const uZ=["butt","round","square"],dZ=["miter","round","bevel"],fZ={},DM={},rv=class rv{constructor(e,t,r,i,o,{optionalContentConfig:s,markedContentStack:a=null},c,u){M(this,kh);M(this,Sh);this.ctx=e,this.current=new TM(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=i,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=a||[],this.optionalContentConfig=s,this.cachedCanvases=new cZ(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return typeof e=="string"?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:r=!1,background:i=null}){const o=this.ctx.canvas.width,s=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=a,r){const c=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...ot(this.compositeCtx))}this.ctx.save(),um(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=ot(this.ctx)}executeOperatorList(e,t,r,i){const o=e.argsArray,s=e.fnArray;let a=t||0;const c=o.length;if(c===a)return a;const u=c-a>10&&typeof r=="function",d=u?Date.now()+15:0;let f=0;const h=this.commonObjs,p=this.objs;let m;for(;;){if(i!==void 0&&a===i.nextBreakPoint)return i.breakIt(a,r),a;if(m=s[a],m!==qr.dependency)this[m].apply(this,o[a]);else for(const y of o[a]){const b=y.startsWith("g_")?h:p;if(!b.has(y))return b.get(y,r),a}if(a++,a===c)return a;if(u&&++f>10){if(Date.now()>d)return r(),a;f=0}}}endDrawing(){x(this,kh,Ev).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),x(this,Sh,Av).call(this)}_scaleImage(e,t){const r=e.width,i=e.height;let o,s,a=Math.max(Math.hypot(t[0],t[1]),1),c=Math.max(Math.hypot(t[2],t[3]),1),u=r,d=i,f="prescale1";for(;a>2&&u>1||c>2&&d>1;){let h=u,p=d;a>2&&u>1&&(h=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u/2),a/=u/h),c>2&&d>1&&(p=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,c/=d/p),o=this.cachedCanvases.getCanvas(f,h,p),s=o.context,s.clearRect(0,0,h,p),s.drawImage(e,0,0,u,d,0,0,h,p),e=o.canvas,u=h,d=p,f=f==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:u,paintHeight:d}}_createMaskCanvas(e){const t=this.ctx,{width:r,height:i}=e,o=this.current.fillColor,s=this.current.patternFill,a=ot(t);let c,u,d,f;if((e.bitmap||e.data)&&e.count>1){const O=e.bitmap||e.data.buffer;u=JSON.stringify(s?a:[a.slice(0,4),o]),c=this._cachedBitmapsMap.get(O),c||(c=new Map,this._cachedBitmapsMap.set(O,c));const I=c.get(u);if(I&&!s)return{canvas:I,offsetX:Math.round(Math.min(a[0],a[2])+a[4]),offsetY:Math.round(Math.min(a[1],a[3])+a[5])};d=I}d||(f=this.cachedCanvases.getCanvas("maskCanvas",r,i),IM(f.context,e));let h=le.transform(a,[1/r,0,0,-1/i,0,0]);h=le.transform(h,[1,0,0,1,0,-i]);const[p,m,y,b]=le.getAxialAlignedBoundingBox([0,0,r,i],h),w=Math.round(y-p)||1,v=Math.round(b-m)||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,v),C=k.context,T=p,S=m;C.translate(-T,-S),C.transform(...h),d||(d=this._scaleImage(f.canvas,co(C)),d=d.img,c&&s&&c.set(u,d)),C.imageSmoothingEnabled=OM(ot(C),e.interpolate),cm(C,d,0,0,d.width,d.height,0,0,r,i),C.globalCompositeOperation="source-in";const E=le.transform(co(C),[1,0,0,1,-T,-S]);return C.fillStyle=s?o.getPattern(t,this,E,Ya):o,C.fillRect(0,0,r,i),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(u,k.canvas)),{canvas:k.canvas,offsetX:Math.round(T),offsetY:Math.round(S)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=uZ[e]}setLineJoin(e){this.ctx.lineJoin=dZ[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const r=this.ctx;r.setLineDash!==void 0&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;const o=this.ctx;o.setTransform(...ot(this.suspendedCtx)),h2(this.suspendedCtx,o),function(a,c){if(a._removeMirroring)throw new Error("Context is already forwarding operations.");a.__originalSave=a.save,a.__originalRestore=a.restore,a.__originalRotate=a.rotate,a.__originalScale=a.scale,a.__originalTranslate=a.translate,a.__originalTransform=a.transform,a.__originalSetTransform=a.setTransform,a.__originalResetTransform=a.resetTransform,a.__originalClip=a.clip,a.__originalMoveTo=a.moveTo,a.__originalLineTo=a.lineTo,a.__originalBezierCurveTo=a.bezierCurveTo,a.__originalRect=a.rect,a.__originalClosePath=a.closePath,a.__originalBeginPath=a.beginPath,a._removeMirroring=()=>{a.save=a.__originalSave,a.restore=a.__originalRestore,a.rotate=a.__originalRotate,a.scale=a.__originalScale,a.translate=a.__originalTranslate,a.transform=a.__originalTransform,a.setTransform=a.__originalSetTransform,a.resetTransform=a.__originalResetTransform,a.clip=a.__originalClip,a.moveTo=a.__originalMoveTo,a.lineTo=a.__originalLineTo,a.bezierCurveTo=a.__originalBezierCurveTo,a.rect=a.__originalRect,a.closePath=a.__originalClosePath,a.beginPath=a.__originalBeginPath,delete a._removeMirroring},a.save=function(){c.save(),this.__originalSave()},a.restore=function(){c.restore(),this.__originalRestore()},a.translate=function(d,f){c.translate(d,f),this.__originalTranslate(d,f)},a.scale=function(d,f){c.scale(d,f),this.__originalScale(d,f)},a.transform=function(d,f,h,p,m,y){c.transform(d,f,h,p,m,y),this.__originalTransform(d,f,h,p,m,y)},a.setTransform=function(d,f,h,p,m,y){c.setTransform(d,f,h,p,m,y),this.__originalSetTransform(d,f,h,p,m,y)},a.resetTransform=function(){c.resetTransform(),this.__originalResetTransform()},a.rotate=function(d){c.rotate(d),this.__originalRotate(d)},a.clip=function(d){c.clip(d),this.__originalClip(d)},a.moveTo=function(u,d){c.moveTo(u,d),this.__originalMoveTo(u,d)},a.lineTo=function(u,d){c.lineTo(u,d),this.__originalLineTo(u,d)},a.bezierCurveTo=function(u,d,f,h,p,m){c.bezierCurveTo(u,d,f,h,p,m),this.__originalBezierCurveTo(u,d,f,h,p,m)},a.rect=function(u,d,f,h){c.rect(u,d,f,h),this.__originalRect(u,d,f,h)},a.closePath=function(){c.closePath(),this.__originalClosePath()},a.beginPath=function(){c.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),h2(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,t,r,i){const o=i[0],s=i[1],a=i[2]-o,c=i[3]-s;a!==0&&c!==0&&(this.genericComposeSMask(t.context,r,a,c,t.subtype,t.backdrop,t.transferMap,o,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}genericComposeSMask(e,t,r,i,o,s,a,c,u,d,f){let h=e.canvas,p=c-d,m=u-f;if(s){if(p<0||m<0||p+r>h.width||m+i>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",r,i),w=b.context;w.drawImage(h,-p,-m),s.some(v=>v!==0)&&(w.globalCompositeOperation="destination-atop",w.fillStyle=le.makeHexColor(...s),w.fillRect(0,0,r,i),w.globalCompositeOperation="source-over"),h=b.canvas,p=m=0}else if(s.some(b=>b!==0)){e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(p,m,r,i),e.clip(b),e.globalCompositeOperation="destination-atop",e.fillStyle=le.makeHexColor(...s),e.fillRect(p,m,r,i),e.restore()}}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),o==="Alpha"&&a?t.filter=this.filterFactory.addAlphaFilter(a):o==="Luminosity"&&(t.filter=this.filterFactory.addLuminosityFilter(a));const y=new Path2D;y.rect(c,u,r,i),t.clip(y),t.globalCompositeOperation="destination-in",t.drawImage(h,p,m,r,i,c,u,r,i),t.restore()}save(){this.inSMaskMode?(h2(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),h2(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,r,i,o,s){this.ctx.transform(e,t,r,i,o,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){const i=this.ctx,o=this.current;let s,a,c=o.x,u=o.y;const d=ot(i),f=d[0]===0&&d[3]===0||d[1]===0&&d[2]===0,h=f?r.slice(0):null;for(let p=0,m=0,y=e.length;p<y;p++)switch(0|e[p]){case qr.rectangle:c=t[m++],u=t[m++];const b=t[m++],w=t[m++],v=c+b,k=u+w;i.moveTo(c,u),b===0||w===0?i.lineTo(v,k):(i.lineTo(v,u),i.lineTo(v,k),i.lineTo(c,k)),f||o.updateRectMinMax(d,[c,u,v,k]),i.closePath();break;case qr.moveTo:c=t[m++],u=t[m++],i.moveTo(c,u),f||o.updatePathMinMax(d,c,u);break;case qr.lineTo:c=t[m++],u=t[m++],i.lineTo(c,u),f||o.updatePathMinMax(d,c,u);break;case qr.curveTo:s=c,a=u,c=t[m+4],u=t[m+5],i.bezierCurveTo(t[m],t[m+1],t[m+2],t[m+3],c,u),o.updateCurvePathMinMax(d,s,a,t[m],t[m+1],t[m+2],t[m+3],c,u,h),m+=6;break;case qr.curveTo2:s=c,a=u,i.bezierCurveTo(c,u,t[m],t[m+1],t[m+2],t[m+3]),o.updateCurvePathMinMax(d,s,a,c,u,t[m],t[m+1],t[m+2],t[m+3],h),c=t[m+2],u=t[m+3],m+=4;break;case qr.curveTo3:s=c,a=u,c=t[m+2],u=t[m+3],i.bezierCurveTo(t[m],t[m+1],c,u,c,u),o.updateCurvePathMinMax(d,s,a,t[m],t[m+1],c,u,c,u,h),m+=4;break;case qr.closePath:i.closePath()}f&&o.updateScalingPathMinMax(d,h),o.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(e=!0){const t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof r=="object"&&(r!=null&&r.getPattern)?(t.save(),t.strokeStyle=r.getPattern(t,this,co(t),B4),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e=!0){const t=this.ctx,r=this.current.fillColor;let i=!1;this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,co(t),Ya),i=!0);const o=this.current.getClippedPathBoundingBox();this.contentVisible&&o!==null&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(o)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=fZ}eoClip(){this.pendingClip=DM}beginText(){this.current.textMatrix=aM,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(e!==void 0){t.save(),t.beginPath();for(const r of e)t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var d;const r=this.commonObjs.get(e),i=this.current;if(!r)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=r.fontMatrix||g4,i.fontMatrix[0]!==0&&i.fontMatrix[3]!==0||ke("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=r,this.current.fontSize=t,r.isType3Font)return;const o=r.loadedName||"sans-serif",s=((d=r.systemFontInfo)==null?void 0:d.css)||`"${o}", ${r.fallbackName}`;let a="normal";r.black?a="900":r.bold&&(a="bold");const c=r.italic?"italic":"normal";let u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font=`${c} ${a} ${u}px ${s}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,i,o,s){this.current.textMatrix=[e,t,r,i,o,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,i){const o=this.ctx,s=this.current,a=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&lM,f=!!(c&lU),h=s.patternFill&&!a.missingFile;let p;(a.disableFontFace||f||h)&&(p=a.getPathGenerator(this.commonObjs,e)),a.disableFontFace||h?(o.save(),o.translate(t,r),o.beginPath(),p(o,u),i&&o.setTransform(...i),d!==Xp&&d!==a2||o.fill(),d!==w4&&d!==a2||o.stroke(),o.restore()):(d!==Xp&&d!==a2||o.fillText(e,t,r),d!==w4&&d!==a2||o.strokeText(e,t,r)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ot(o),x:t,y:r,fontSize:u,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let r=!1;for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){r=!0;break}return Ie(this,"isFontSubpixelAAEnabled",r)}showText(e){const t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);const i=t.fontSize;if(i===0)return;const o=this.ctx,s=t.fontSizeScale,a=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,f=e.length,h=r.vertical,p=h?1:-1,m=r.defaultVMetrics,y=i*t.fontMatrix[0],b=t.textRenderingMode===Xp&&!r.disableFontFace&&!t.patternFill;o.save(),o.transform(...t.textMatrix),o.translate(t.x,t.y+t.textRise),u>0?o.scale(d,-1):o.scale(d,1);let w;if(t.patternFill){o.save();const S=t.fillColor.getPattern(o,this,co(o),Ya);w=ot(o),o.restore(),o.fillStyle=S}let v=t.lineWidth;const k=t.textMatrixScale;if(k===0||v===0){const S=t.textRenderingMode&lM;S!==w4&&S!==a2||(v=this.getSinglePixelWidth())}else v/=k;if(s!==1&&(o.scale(s,s),v/=s),o.lineWidth=v,r.isInvalidPDFjsFont){const S=[];let E=0;for(const O of e)S.push(O.unicode),E+=O.width;o.fillText(S.join(""),0,0),t.x+=E*y*d,o.restore(),this.compose();return}let C,T=0;for(C=0;C<f;++C){const S=e[C];if(typeof S=="number"){T+=p*S*i/1e3;continue}let E=!1;const O=(S.isSpace?c:0)+a,I=S.fontChar,P=S.accent;let D,B,V=S.width;if(h){const U=S.vmetric||m,L=-(S.vmetric?U[1]:.5*V)*y,N=U[2]*y;V=U?-U[0]:V,D=L/s,B=(T+N)/s}else D=T/s,B=0;if(r.remeasure&&V>0){const U=1e3*o.measureText(I).width/i*s;if(V<U&&this.isFontSubpixelAAEnabled){const L=V/U;E=!0,o.save(),o.scale(L,1),D/=L}else V!==U&&(D+=(V-U)/2e3*i/s)}if(this.contentVisible&&(S.isInFont||r.missingFile)){if(b&&!P)o.fillText(I,D,B);else if(this.paintChar(I,D,B,w),P){const U=D+i*P.offset.x/s,L=B-i*P.offset.y/s;this.paintChar(P.fontChar,U,L,w)}}T+=h?V*y-O*u:V*y+O*u,E&&o.restore()}h?t.y-=T:t.x+=T*d,o.restore(),this.compose()}showType3Text(e){const t=this.ctx,r=this.current,i=r.font,o=r.fontSize,s=r.fontDirection,a=i.vertical?1:-1,c=r.charSpacing,u=r.wordSpacing,d=r.textHScale*s,f=r.fontMatrix||g4,h=e.length;let p,m,y,b;if(r.textRenderingMode!==aU&&o!==0){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...r.textMatrix),t.translate(r.x,r.y),t.scale(d,s),p=0;p<h;++p){if(m=e[p],typeof m=="number"){b=a*m*o/1e3,this.ctx.translate(b,0),r.x+=b*d;continue}const w=(m.isSpace?u:0)+c,v=i.charProcOperatorList[m.operatorListId];if(!v){ke(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),t.scale(o,o),t.transform(...f),this.executeOperatorList(v),this.restore()),y=le.applyTransform([m.width,0],f)[0]*o+w,t.translate(y,0),r.x+=y*d}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,r,i,o,s){this.ctx.rect(r,i,o-r,s-i),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if(e[0]==="TilingPattern"){const r=e[1],i=this.baseTransform||ot(this.ctx),o={createCanvasGraphics:s=>new rv(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new F4(e,r,this.ctx,o,i)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){this.ctx.strokeStyle=this.current.strokeColor=le.makeHexColor(e,t,r)}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent"}setFillRGBColor(e,t,r){this.ctx.fillStyle=this.current.fillColor=le.makeHexColor(e,t,r),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t=null){let r;return this.cachedPatterns.has(e)?r=this.cachedPatterns.get(e):(r=function(o){switch(o[0]){case"RadialAxial":return new nZ(o);case"Mesh":return new iZ(o);case"Dummy":return new oZ}throw new Error(`Unknown IR type: ${o[0]}`)}(this.getObject(e)),this.cachedPatterns.set(e,r)),t&&(r.matrix=t),r}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,co(t),f2);const i=co(t);if(i){const{width:o,height:s}=t.canvas,[a,c,u,d]=le.getAxialAlignedBoundingBox([0,0,o,s],i);this.ctx.fillRect(a,c,u-a,d-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Mt("Should not call beginInlineImage")}beginImageData(){Mt("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),e&&this.transform(...e),this.baseTransform=ot(this.ctx),t)){const r=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.current.updateRectMinMax(ot(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||nm("TODO: Support non-isolated groups."),e.knockout&&ke("Knockout groups not supported.");const r=ot(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let i=le.getAxialAlignedBoundingBox(e.bbox,ot(t));const o=[0,0,t.canvas.width,t.canvas.height];i=le.intersect(i,o)||[0,0,0,0];const s=Math.floor(i[0]),a=Math.floor(i[1]),c=Math.max(Math.ceil(i[2])-s,1),u=Math.max(Math.ceil(i[3])-a,1);this.current.startNewPathAndClipBox([0,0,c,u]);let d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(d,c,u),h=f.context;h.translate(-s,-a),h.transform(...r),e.smask?this.smaskStack.push({canvas:f.canvas,context:h,offsetX:s,offsetY:a,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,a),t.save()),h2(t,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=ot(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const o=le.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],i);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(e,t,r,i,o){if(x(this,kh,Ev).call(this),um(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),t){const s=t[2]-t[0],a=t[3]-t[1];if(o&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=a;const[c,u]=le.singularValueDecompose2dScale(ot(this.ctx)),{viewportScale:d}=this,f=Math.ceil(s*this.outputScaleX*d),h=Math.ceil(a*this.outputScaleY*d);this.annotationCanvas=this.canvasFactory.create(f,h);const{canvas:p,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-u,0,a*u),um(this.ctx)}else um(this.ctx),this.ctx.rect(t[0],t[1],s,a),this.ctx.clip(),this.endPath()}this.current=new TM(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),x(this,Sh,Av).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const r=this.ctx,i=this.processingType3;if(i&&(i.compiled===void 0&&(i.compiled=function(c){const{width:u,height:d}=c;if(u>1e3||d>1e3)return null;const f=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),h=u+1;let p,m,y,b=new Uint8Array(h*(d+1));const w=u+7&-8;let v=new Uint8Array(w*d),k=0;for(const E of c.data){let O=128;for(;O>0;)v[k++]=E&O?0:255,O>>=1}let C=0;for(k=0,v[k]!==0&&(b[0]=1,++C),m=1;m<u;m++)v[k]!==v[k+1]&&(b[m]=v[k]?2:1,++C),k++;for(v[k]!==0&&(b[m]=2,++C),p=1;p<d;p++){k=p*w,y=p*h,v[k-w]!==v[k]&&(b[y]=v[k]?1:8,++C);let E=(v[k]?4:0)+(v[k-w]?8:0);for(m=1;m<u;m++)E=(E>>2)+(v[k+1]?4:0)+(v[k-w+1]?8:0),f[E]&&(b[y+m]=f[E],++C),k++;if(v[k-w]!==v[k]&&(b[y+m]=v[k]?2:4,++C),C>1e3)return null}for(k=w*(d-1),y=p*h,v[k]!==0&&(b[y]=8,++C),m=1;m<u;m++)v[k]!==v[k+1]&&(b[y+m]=v[k]?4:8,++C),k++;if(v[k]!==0&&(b[y+m]=4,++C),C>1e3)return null;const T=new Int32Array([0,h,-1,0,-h,0,0,0,1]),S=new Path2D;for(p=0;C&&p<=d;p++){let E=p*h;const O=E+u;for(;E<O&&!b[E];)E++;if(E===O)continue;S.moveTo(E%h,p);const I=E;let P=b[E];do{const D=T[P];do E+=D;while(!b[E]);const B=b[E];B!==5&&B!==10?(P=B,b[E]=0):(P=B&51*P>>4,b[E]&=P>>2|P<<2),S.lineTo(E%h,E/h|0),b[E]||--C}while(I!==E);--p}return v=null,b=null,function(E){E.save(),E.scale(1/u,-1/d),E.translate(0,-d),E.fill(S),E.beginPath(),E.restore()}}(e)),i.compiled)){i.compiled(r);return}const o=this._createMaskCanvas(e),s=o.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(s,o.offsetX,o.offsetY),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,r=0,i=0,o,s){if(!this.contentVisible)return;e=this.getObject(e.data,e);const a=this.ctx;a.save();const c=ot(a);a.transform(t,r,i,o,0,0);const u=this._createMaskCanvas(e);a.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(let d=0,f=s.length;d<f;d+=2){const h=le.transform(c,[t,r,i,o,s[d],s[d+1]]),[p,m]=le.applyTransform([0,0],h);a.drawImage(u.canvas,p,m)}a.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,r=this.current.fillColor,i=this.current.patternFill;for(const o of e){const{data:s,width:a,height:c,transform:u}=o,d=this.cachedCanvases.getCanvas("maskCanvas",a,c),f=d.context;f.save(),IM(f,this.getObject(s,o)),f.globalCompositeOperation="source-in",f.fillStyle=i?r.getPattern(f,this,co(t),Ya):r,f.fillRect(0,0,a,c),f.restore(),t.save(),t.transform(...u),t.scale(1,-1),cm(t,d.canvas,0,0,a,c,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):ke("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,r,i){if(!this.contentVisible)return;const o=this.getObject(e);if(!o){ke("Dependent image isn't ready yet");return}const s=o.width,a=o.height,c=[];for(let u=0,d=i.length;u<d;u+=2)c.push({transform:[t,0,0,r,i[u],i[u+1]],x:0,y:0,w:s,h:a});this.paintInlineImageXObjectGroup(o,c)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:t,width:r,height:i}=e,o=this.cachedCanvases.getCanvas("inlineImage",r,i),s=o.context;return s.filter=this.current.transferMaps,s.drawImage(t,0,0),s.filter="none",o.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,r=e.height,i=this.ctx;if(this.save(),!cn){const{filter:a}=i;a!=="none"&&a!==""&&(i.filter="none")}i.scale(1/t,-1/r);let o;if(e.bitmap)o=this.applyTransferMapsToBitmap(e);else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)o=e;else{const a=this.cachedCanvases.getCanvas("inlineImage",t,r).context;xM(a,e),o=this.applyTransferMapsToCanvas(a)}const s=this._scaleImage(o,co(i));i.imageSmoothingEnabled=OM(ot(i),e.interpolate),cm(i,s.img,0,0,s.paintWidth,s.paintHeight,0,-r,t,r),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const r=this.ctx;let i;if(e.bitmap)i=e.bitmap;else{const o=e.width,s=e.height,a=this.cachedCanvases.getCanvas("inlineImage",o,s).context;xM(a,e),i=this.applyTransferMapsToCanvas(a)}for(const o of t)r.save(),r.transform(...o.transform),r.scale(1,-1),cm(r,i,o.x,o.y,o.w,o.h,0,-1,1,1),r.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const r=this.ctx;this.pendingClip&&(t||(this.pendingClip===DM?r.clip("evenodd"):r.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),r.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=ot(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(r,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:t,b:r,c:i,d:o}=this.ctx.getTransform();let s,a;if(r===0&&i===0){const c=Math.abs(t),u=Math.abs(o);if(c===u)if(e===0)s=a=1/c;else{const d=c*e;s=a=d<1?1/d:1}else if(e===0)s=1/c,a=1/u;else{const d=c*e,f=u*e;s=d<1?1/d:1,a=f<1?1/f:1}}else{const c=Math.abs(t*o-r*i),u=Math.hypot(t,r),d=Math.hypot(i,o);if(e===0)s=d/c,a=u/c;else{const f=e*c;s=d>f?d/f:1,a=u>f?u/f:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:r}=this.current,[i,o]=this.getScaleForStroking();if(t.lineWidth=r||1,i===1&&o===1){t.stroke();return}const s=t.getLineDash();if(e&&t.save(),t.scale(i,o),s.length>0){const a=Math.max(i,o);t.setLineDash(s.map(c=>c/a)),t.lineDashOffset/=a}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};kh=new WeakSet,Ev=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},Sh=new WeakSet,Av=function(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}};let tc=rv;for(const n in qr)tc.prototype[n]!==void 0&&(tc.prototype[qr[n]]=tc.prototype[n]);class uo{static get workerPort(){return g(this,Mh)}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");A(this,Mh,e)}static get workerSrc(){return g(this,Eh)}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");A(this,Eh,e)}}Mh=new WeakMap,Eh=new WeakMap,M(uo,Mh,null),M(uo,Eh,"");const NM=1,PM=2,_M=1,j4=2,LM=3,BM=4,RM=5,$M=6,dm=7,z4=8;function Xn(n){switch(n instanceof Error||typeof n=="object"&&n!==null||Mt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),n.name){case"AbortException":return new qa(n.message);case"MissingPDFException":return new Wa(n.message);case"PasswordException":return new C4(n.message,n.code);case"UnexpectedResponseException":return new rm(n.message,n.status);case"UnknownErrorException":return new k4(n.message,n.details);default:return new k4(n.message,n.toString())}}class p2{constructor(e,t,r){M(this,U3);M(this,Z3);M(this,ou);this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const o=i.data;if(o.targetName!==this.sourceName)return;if(o.stream){x(this,Z3,EN).call(this,o);return}if(o.callback){const a=o.callbackId,c=this.callbackCapabilities[a];if(!c)throw new Error(`Cannot resolve callback ${a}`);if(delete this.callbackCapabilities[a],o.callback===NM)c.resolve(o.data);else{if(o.callback!==PM)throw new Error("Unexpected callback case");c.reject(Xn(o.reason))}return}const s=this.actionHandler[o.action];if(!s)throw new Error(`Unknown action from worker: ${o.action}`);if(o.callbackId){const a=this.sourceName,c=o.sourceName;new Promise(function(u){u(s(o.data))}).then(function(u){r.postMessage({sourceName:a,targetName:c,callback:NM,callbackId:o.callbackId,data:u})},function(u){r.postMessage({sourceName:a,targetName:c,callback:PM,callbackId:o.callbackId,reason:Xn(u)})})}else o.streamId?x(this,U3,MN).call(this,o):s(o.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const i=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},r)}catch(s){o.reject(s)}return o.promise}sendWithStream(e,t,r,i){const o=this.streamId++,s=this.sourceName,a=this.targetName,c=this.comObj;return new ReadableStream({start:u=>{const d=Promise.withResolvers();return this.streamControllers[o]={controller:u,startCall:d,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:a,action:e,streamId:o,data:t,desiredSize:u.desiredSize},i),d.promise},pull:u=>{const d=Promise.withResolvers();return this.streamControllers[o].pullCall=d,c.postMessage({sourceName:s,targetName:a,stream:$M,streamId:o,desiredSize:u.desiredSize}),d.promise},cancel:u=>{xt(u instanceof Error,"cancel must have a valid reason");const d=Promise.withResolvers();return this.streamControllers[o].cancelCall=d,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:a,stream:_M,streamId:o,reason:Xn(u)}),d.promise}},r)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}U3=new WeakSet,MN=function(e){const t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,s=this,a=this.actionHandler[e.action],c={enqueue(u,d=1,f){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=d,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:r,targetName:i,stream:BM,streamId:t,chunk:u},f)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:LM,streamId:t}),delete s.streamSinks[t])},error(u){xt(u instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:RM,streamId:t,reason:Xn(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise(function(u){u(a(e.data,c))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:z4,streamId:t,success:!0})},function(u){o.postMessage({sourceName:r,targetName:i,stream:z4,streamId:t,reason:Xn(u)})})},Z3=new WeakSet,EN=function(e){const t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,s=this.streamControllers[t],a=this.streamSinks[t];switch(e.stream){case z4:e.success?s.startCall.resolve():s.startCall.reject(Xn(e.reason));break;case dm:e.success?s.pullCall.resolve():s.pullCall.reject(Xn(e.reason));break;case $M:if(!a){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,success:!0});break}a.desiredSize<=0&&e.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=e.desiredSize,new Promise(function(c){var u;c((u=a.onPull)==null?void 0:u.call(a))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,success:!0})},function(c){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,reason:Xn(c)})});break;case BM:if(xt(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case LM:if(xt(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),x(this,ou,r5).call(this,s,t);break;case RM:xt(s,"error should have stream controller"),s.controller.error(Xn(e.reason)),x(this,ou,r5).call(this,s,t);break;case j4:e.success?s.cancelCall.resolve():s.cancelCall.reject(Xn(e.reason)),x(this,ou,r5).call(this,s,t);break;case _M:if(!a)break;new Promise(function(c){var u;c((u=a.onCancel)==null?void 0:u.call(a,Xn(e.reason)))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:j4,streamId:t,success:!0})},function(c){o.postMessage({sourceName:r,targetName:i,stream:j4,streamId:t,reason:Xn(c)})}),a.sinkCapability.reject(Xn(e.reason)),a.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}},ou=new WeakSet,r5=async function(e,t){var r,i,o;await Promise.allSettled([(r=e.startCall)==null?void 0:r.promise,(i=e.pullCall)==null?void 0:i.promise,(o=e.cancelCall)==null?void 0:o.promise]),delete this.streamControllers[t]};class hZ{constructor({parsedData:e,rawData:t}){M(this,zl,void 0);M(this,Ah,void 0);A(this,zl,e),A(this,Ah,t)}getRaw(){return g(this,Ah)}get(e){return g(this,zl).get(e)??null}getAll(){return S4(g(this,zl))}has(e){return g(this,zl).has(e)}}zl=new WeakMap,Ah=new WeakMap;const gs=Symbol("INTERNAL");class pZ{constructor(e,{name:t,intent:r,usage:i}){M(this,Th,!1);M(this,xh,!1);M(this,Ih,!1);M(this,su,!0);A(this,Th,!!(e&b4)),A(this,xh,!!(e&Qp)),this.name=t,this.intent=r,this.usage=i}get visible(){if(g(this,Ih))return g(this,su);if(!g(this,su))return!1;const{print:e,view:t}=this.usage;return g(this,Th)?(t==null?void 0:t.viewState)!=="OFF":!g(this,xh)||(e==null?void 0:e.printState)!=="OFF"}_setVisible(e,t,r=!1){e!==gs&&Mt("Internal method `_setVisible` called."),A(this,Ih,r),A(this,su,t)}}Th=new WeakMap,xh=new WeakMap,Ih=new WeakMap,su=new WeakMap;class mZ{constructor(e,t=b4){M(this,Oh);M(this,na,null);M(this,Ke,new Map);M(this,au,null);M(this,lu,null);if(this.renderingIntent=t,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,A(this,lu,e.order);for(const r of e.groups)g(this,Ke).set(r.id,new pZ(t,r));if(e.baseState==="OFF")for(const r of g(this,Ke).values())r._setVisible(gs,!1);for(const r of e.on)g(this,Ke).get(r)._setVisible(gs,!0);for(const r of e.off)g(this,Ke).get(r)._setVisible(gs,!1);A(this,au,this.getHash())}}isVisible(e){if(g(this,Ke).size===0)return!0;if(!e)return nm("Optional content group not defined."),!0;if(e.type==="OCG")return g(this,Ke).has(e.id)?g(this,Ke).get(e.id).visible:(ke(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return x(this,Oh,Tv).call(this,e.expression);if(!e.policy||e.policy==="AnyOn"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(g(this,Ke).get(t).visible)return!0}return!1}if(e.policy==="AllOn"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(!g(this,Ke).get(t).visible)return!1}return!0}if(e.policy==="AnyOff"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(!g(this,Ke).get(t).visible)return!0}return!1}if(e.policy==="AllOff"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(g(this,Ke).get(t).visible)return!1}return!0}return ke(`Unknown optional content policy ${e.policy}.`),!0}return ke(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){const r=g(this,Ke).get(e);r?(r._setVisible(gs,!!t,!0),A(this,na,null)):ke(`Optional content group not found: ${e}`)}setOCGState({state:e,preserveRB:t}){let r;for(const i of e){switch(i){case"ON":case"OFF":case"Toggle":r=i;continue}const o=g(this,Ke).get(i);if(o)switch(r){case"ON":o._setVisible(gs,!0);break;case"OFF":o._setVisible(gs,!1);break;case"Toggle":o._setVisible(gs,!o.visible)}}A(this,na,null)}get hasInitialVisibility(){return g(this,au)===null||this.getHash()===g(this,au)}getOrder(){return g(this,Ke).size?g(this,lu)?g(this,lu).slice():[...g(this,Ke).keys()]:null}getGroups(){return g(this,Ke).size>0?S4(g(this,Ke)):null}getGroup(e){return g(this,Ke).get(e)||null}getHash(){if(g(this,na)!==null)return g(this,na);const e=new MM;for(const[t,r]of g(this,Ke))e.update(`${t}:${r.visible}`);return A(this,na,e.hexdigest())}}na=new WeakMap,Ke=new WeakMap,au=new WeakMap,lu=new WeakMap,Oh=new WeakSet,Tv=function(e){const t=e.length;if(t<2)return!0;const r=e[0];for(let i=1;i<t;i++){const o=e[i];let s;if(Array.isArray(o))s=x(this,Oh,Tv).call(this,o);else{if(!g(this,Ke).has(o))return ke(`Optional content group not found: ${o}`),!0;s=g(this,Ke).get(o).visible}switch(r){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return r==="And"};class gZ{constructor(e,{disableRange:t=!1,disableStream:r=!1}){xt(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:o,progressiveDone:s,contentDispositionFilename:a}=e;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=a,(o==null?void 0:o.length)>0){const c=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!r,this._isRangeSupported=!t,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((c,u)=>{this._onReceiveData({begin:c,chunk:u})}),e.addProgressListener((c,u)=>{this._onProgress({loaded:c,total:u})}),e.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:t}){const r=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;e===void 0?this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r):xt(this._rangeReaders.some(function(i){return i._begin!==e?!1:(i._enqueue(r),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}_onProgress(e){var t,r,i,o;e.total===void 0?(r=(t=this._rangeReaders[0])==null?void 0:t.onProgress)==null||r.call(t,{loaded:e.loaded}):(o=(i=this._fullRequestReader)==null?void 0:i.onProgress)==null||o.call(i,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;(e=this._fullRequestReader)==null||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){xt(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new yZ(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new bZ(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeReaders.slice(0))r.cancel(e);this._pdfDataRangeTransport.abort()}}class yZ{constructor(e,t,r=!1,i=null){this._stream=e,this._done=r||!1,this._filename=x4(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class bZ{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function H4({getResponseHeader:n,isHttp:e,rangeChunkSize:t,disableRange:r}){const i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(n("Content-Length"),10);return!Number.isInteger(o)||(i.suggestedLength=o,o<=2*t)||r||!e||n("Accept-Ranges")!=="bytes"||(n("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function U4(n){const e=n("Content-Disposition");if(e){let t=function(i){let o=!0,s=a("filename\\*","i").exec(i);if(s){s=s[1];let p=d(s);return p=unescape(p),p=f(p),p=h(p),u(p)}if(s=function(m){const y=[];let b;const w=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(b=w.exec(m))!==null;){let[,k,C,T]=b;if(k=parseInt(k,10),k in y){if(k===0)break}else y[k]=[C,T]}const v=[];for(let k=0;k<y.length&&k in y;++k){let[C,T]=y[k];T=d(T),C&&(T=unescape(T),k===0&&(T=f(T))),v.push(T)}return v.join("")}(i),s)return u(h(s));if(s=a("filename","i").exec(i),s){s=s[1];let p=d(s);return p=h(p),u(p)}function a(p,m){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',m)}function c(p,m){if(p){if(!/^[\x00-\xFF]+$/.test(m))return m;try{const y=new TextDecoder(p,{fatal:!0}),b=im(m);m=y.decode(b),o=!1}catch{}}return m}function u(p){return o&&/[\x80-\xff]/.test(p)&&(p=c("utf-8",p),o&&(p=c("iso-8859-1",p))),p}function d(p){if(p.startsWith('"')){const m=p.slice(1).split('\\"');for(let y=0;y<m.length;++y){const b=m[y].indexOf('"');b!==-1&&(m[y]=m[y].slice(0,b),m.length=y+1),m[y]=m[y].replaceAll(/\\(.)/g,"$1")}p=m.join('"')}return p}function f(p){const m=p.indexOf("'");return m===-1?p:c(p.slice(0,m),p.slice(m+1).replace(/^[^']*'/,""))}function h(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(m,y,b,w){if(b==="q"||b==="Q")return c(y,w=(w=w.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(v,k){return String.fromCharCode(parseInt(k,16))}));try{w=atob(w)}catch{}return c(y,w)})}return""}(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if(x4(t))return t}return null}function fm(n,e){return n===404||n===0&&e.startsWith("file:")?new Wa('Missing PDF "'+e+'".'):new rm(`Unexpected server response (${n}) while retrieving PDF "${e}".`,n)}function VM(n){return n===200||n===206}function FM(n,e,t){return{method:"GET",headers:n,signal:t.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function jM(n){const e=new Headers;for(const t in n){const r=n[t];r!==void 0&&e.append(t,r)}return e}function zM(n){return n instanceof Uint8Array?n.buffer:n instanceof ArrayBuffer?n:(ke(`getArrayBuffer - unexpected data format: ${n}`),new Uint8Array(n).buffer)}class HM{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return xt(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new wZ(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new vZ(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class wZ{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=jM(this._stream.httpHeaders);const r=t.url;fetch(r,FM(this._headers,this._withCredentials,this._abortController)).then(i=>{if(!VM(i.status))throw fm(i.status,r);this._reader=i.body.getReader(),this._headersCapability.resolve();const o=c=>i.headers.get(c),{allowRangeRequests:s,suggestedLength:a}=H4({getResponseHeader:o,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=U4(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new qa("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var r;await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,(r=this.onProgress)==null||r.call(this,{loaded:this._loaded,total:this._contentLength}),{value:zM(e),done:!1})}cancel(e){var t;(t=this._reader)==null||t.cancel(e),this._abortController.abort()}}class vZ{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController,this._headers=jM(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`);const o=i.url;fetch(o,FM(this._headers,this._withCredentials,this._abortController)).then(s=>{if(!VM(s.status))throw fm(s.status,o);this._readCapability.resolve(),this._reader=s.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var r;await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,(r=this.onProgress)==null||r.call(this,{loaded:this._loaded}),{value:zM(e),done:!1})}cancel(e){var t;(t=this._reader)==null||t.cancel(e),this._abortController.abort()}}class CZ{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){const i={begin:e,end:t};for(const o in r)i[o]=r[o];return this.request(i)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,r=this.currXhrId++,i=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const o in this.httpHeaders){const s=this.httpHeaders[o];s!==void 0&&t.setRequestHeader(o,s)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(o){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){var i;const r=this.pendingRequests[e];r&&((i=r.onProgress)==null||i.call(r,t))}onStateChange(e,t){var a,c,u;const r=this.pendingRequests[e];if(!r)return;const i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){(a=r.onError)==null||a.call(r,i.status);return}const o=i.status||200;if(!(o===200&&r.expectedStatus===206)&&o!==r.expectedStatus){(c=r.onError)==null||c.call(r,i.status);return}const s=function(f){const h=f.response;return typeof h!="string"?h:im(h).buffer}(i);if(o===206){const d=i.getResponseHeader("Content-Range"),f=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);r.onDone({begin:parseInt(f[1],10),chunk:s})}else s?r.onDone({begin:0,chunk:s}):(u=r.onError)==null||u.call(r,i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}class kZ{constructor(e){this._source=e,this._manager=new CZ(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return xt(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new SZ(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new MZ(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class SZ{constructor(e,t){this._manager=e;const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=s=>t.getResponseHeader(s),{allowRangeRequests:i,suggestedLength:o}=H4({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=U4(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=fm(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;(t=this.onProgress)==null||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class MZ{constructor(e,t,r){this._manager=e;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)==null||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=fm(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||((t=this.onProgress)==null||t.call(this,{loaded:e.loaded}))}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const EZ=/^[a-z][a-z0-9\-+.]+:/i;function UM(n,e,t){return n.protocol==="http:"?ms.get("http").request(n,{headers:e},t):ms.get("https").request(n,{headers:e},t)}class AZ{constructor(e){this.source=e,this.url=function(r){if(EZ.test(r))return new URL(r);const i=ms.get("url");return new URL(i.pathToFileURL(r))}(e.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return xt(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new IZ(this):new TZ(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=this.isFsUrl?new OZ(this,e,t):new xZ(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class ZM{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(t=this.onProgress)==null||t.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new qa("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class WM{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(t=this.onProgress)==null||t.call(this,{loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}}class TZ extends ZM{constructor(e){super(e),this._request=UM(this._url,e.httpHeaders,t=>{if(t.statusCode===404){const s=new Wa(`Missing PDF "${this._url}".`);this._storedError=s,this._headersCapability.reject(s);return}this._headersCapability.resolve(),this._setReadableStream(t);const r=s=>this._readableStream.headers[s.toLowerCase()],{allowRangeRequests:i,suggestedLength:o}=H4({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=o||this._contentLength,this._filename=U4(r)}),this._request.on("error",t=>{this._storedError=t,this._headersCapability.reject(t)}),this._request.end()}}class xZ extends WM{constructor(e,t,r){super(e),this._httpHeaders={};for(const i in e.httpHeaders){const o=e.httpHeaders[i];o!==void 0&&(this._httpHeaders[i]=o)}this._httpHeaders.Range=`bytes=${t}-${r-1}`,this._request=UM(this._url,this._httpHeaders,i=>{if(i.statusCode!==404)this._setReadableStream(i);else{const o=new Wa(`Missing PDF "${this._url}".`);this._storedError=o}}),this._request.on("error",i=>{this._storedError=i}),this._request.end()}}class IZ extends ZM{constructor(e){super(e);const t=ms.get("fs");t.promises.lstat(this._url).then(r=>{this._contentLength=r.size,this._setReadableStream(t.createReadStream(this._url)),this._headersCapability.resolve()},r=>{r.code==="ENOENT"&&(r=new Wa(`Missing PDF "${this._url}".`)),this._storedError=r,this._headersCapability.reject(r)})}}class OZ extends WM{constructor(e,t,r){super(e);const i=ms.get("fs");this._setReadableStream(i.createReadStream(this._url,{start:t,end:r-1}))}}const Jn=30,Wt=class Wt{constructor({textContentSource:e,container:t,viewport:r}){M(this,W3);M(this,q3);M(this,$h);M(this,ra,Promise.withResolvers());M(this,qn,null);M(this,Dh,!1);M(this,Nh,!!((YD=globalThis.FontInspector)!=null&&YD.enabled));M(this,Hl,null);M(this,Oo,null);M(this,Ph,0);M(this,_h,0);M(this,Ul,null);M(this,cu,null);M(this,uu,0);M(this,ia,0);M(this,du,Object.create(null));M(this,Lh,[]);M(this,fu,null);M(this,Zl,[]);M(this,Bh,new WeakMap);M(this,Rh,null);var c;if(e instanceof ReadableStream)A(this,fu,e);else{if(typeof e!="object")throw new Error('No "textContentSource" parameter specified.');A(this,fu,new ReadableStream({start(u){u.enqueue(e),u.close()}}))}A(this,qn,A(this,cu,t)),A(this,ia,r.scale*(globalThis.devicePixelRatio||1)),A(this,uu,r.rotation),A(this,Oo,{prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null});const{pageWidth:i,pageHeight:o,pageX:s,pageY:a}=r.rawDims;A(this,Rh,[1,0,0,-1,-s,a+o]),A(this,_h,i),A(this,Ph,o),x(c=Wt,K3,xN).call(c),Ka(t,r),g(this,ra).promise.catch(()=>{}).then(()=>{g(Wt,hu).delete(this),A(this,Oo,null),A(this,du,null)})}render(){const e=()=>{g(this,Ul).read().then(({value:t,done:r})=>{r?g(this,ra).resolve():(g(this,Hl)??A(this,Hl,t.lang),Object.assign(g(this,du),t.styles),x(this,W3,AN).call(this,t.items),e())},g(this,ra).reject)};return A(this,Ul,g(this,fu).getReader()),g(Wt,hu).add(this),e(),g(this,ra).promise}update({viewport:e,onBefore:t=null}){var o;const r=e.scale*(globalThis.devicePixelRatio||1),i=e.rotation;if(i!==g(this,uu)&&(t==null||t(),A(this,uu,i),Ka(g(this,cu),{rotation:i})),r!==g(this,ia)){t==null||t(),A(this,ia,r);const s={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:x(o=Wt,pu,i5).call(o,g(this,Hl))};for(const a of g(this,Zl))s.properties=g(this,Bh).get(a),s.div=a,x(this,$h,xv).call(this,s)}}cancel(){var t;const e=new qa("TextLayer task cancelled.");(t=g(this,Ul))==null||t.cancel(e).catch(()=>{}),A(this,Ul,null),g(this,ra).reject(e)}get textDivs(){return g(this,Zl)}get textContentItemsStr(){return g(this,Lh)}static cleanup(){if(!(g(this,hu).size>0)){g(this,Wl).clear();for(const{canvas:e}of g(this,ql).values())e.remove();g(this,ql).clear()}}};ra=new WeakMap,qn=new WeakMap,Dh=new WeakMap,Nh=new WeakMap,Hl=new WeakMap,Oo=new WeakMap,Ph=new WeakMap,_h=new WeakMap,Ul=new WeakMap,cu=new WeakMap,uu=new WeakMap,ia=new WeakMap,du=new WeakMap,Lh=new WeakMap,fu=new WeakMap,Zl=new WeakMap,Bh=new WeakMap,Rh=new WeakMap,Wl=new WeakMap,ql=new WeakMap,oa=new WeakMap,hu=new WeakMap,W3=new WeakSet,AN=function(e){var i,o;if(g(this,Dh))return;(o=g(this,Oo)).ctx??(o.ctx=x(i=Wt,pu,i5).call(i,g(this,Hl)));const t=g(this,Zl),r=g(this,Lh);for(const s of e){if(t.length>1e5){ke("Ignoring additional textDivs for performance reasons."),A(this,Dh,!0);return}if(s.str!==void 0)r.push(s.str),x(this,q3,TN).call(this,s);else if(s.type==="beginMarkedContentProps"||s.type==="beginMarkedContent"){const a=g(this,qn);A(this,qn,document.createElement("span")),g(this,qn).classList.add("markedContent"),s.id!==null&&g(this,qn).setAttribute("id",`${s.id}`),a.append(g(this,qn))}else s.type==="endMarkedContent"&&A(this,qn,g(this,qn).parentNode)}},q3=new WeakSet,TN=function(e){var y;const t=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};g(this,Zl).push(t);const i=le.transform(g(this,Rh),e.transform);let o=Math.atan2(i[1],i[0]);const s=g(this,du)[e.fontName];s.vertical&&(o+=Math.PI/2);const a=g(this,Nh)&&s.fontSubstitution||s.fontFamily,c=Math.hypot(i[2],i[3]),u=c*x(y=Wt,G3,IN).call(y,a,g(this,Hl));let d,f;o===0?(d=i[4],f=i[5]-u):(d=i[4]+u*Math.sin(o),f=i[5]-u*Math.cos(o));const h="calc(var(--scale-factor)*",p=t.style;g(this,qn)===g(this,cu)?(p.left=`${(100*d/g(this,_h)).toFixed(2)}%`,p.top=`${(100*f/g(this,Ph)).toFixed(2)}%`):(p.left=`${h}${d.toFixed(2)}px)`,p.top=`${h}${f.toFixed(2)}px)`),p.fontSize=`${h}${(g(Wt,oa)*c).toFixed(2)}px)`,p.fontFamily=a,r.fontSize=c,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,g(this,Nh)&&(t.dataset.fontName=s.fontSubstitutionLoadedName||e.fontName),o!==0&&(r.angle=o*(180/Math.PI));let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const b=Math.abs(e.transform[0]),w=Math.abs(e.transform[3]);b!==w&&Math.max(b,w)/Math.min(b,w)>1.5&&(m=!0)}if(m&&(r.canvasWidth=s.vertical?e.height:e.width),g(this,Bh).set(t,r),g(this,Oo).div=t,g(this,Oo).properties=r,x(this,$h,xv).call(this,g(this,Oo)),r.hasText&&g(this,qn).append(t),r.hasEOL){const b=document.createElement("br");b.setAttribute("role","presentation"),g(this,qn).append(b)}},$h=new WeakSet,xv=function(e){const{div:t,properties:r,ctx:i,prevFontSize:o,prevFontFamily:s}=e,{style:a}=t;let c="";if(g(Wt,oa)>1&&(c=`scale(${1/g(Wt,oa)})`),r.canvasWidth!==0&&r.hasText){const{fontFamily:u}=a,{canvasWidth:d,fontSize:f}=r;(o!==f||s!==u)&&(i.font=`${f*g(this,ia)}px ${u}`,e.prevFontSize=f,e.prevFontFamily=u);const{width:h}=i.measureText(t.textContent);h>0&&(c=`scaleX(${d*g(this,ia)/h}) ${c}`)}r.angle!==0&&(c=`rotate(${r.angle}deg) ${c}`),c.length>0&&(a.transform=c)},pu=new WeakSet,i5=function(e=null){let t=g(this,ql).get(e||(e=""));if(!t){const r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=e,document.body.append(r),t=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),g(this,ql).set(e,t)}return t},K3=new WeakSet,xN=function(){if(g(this,oa)!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),A(this,oa,e.getBoundingClientRect().height),e.remove()},G3=new WeakSet,IN=function(e,t){const r=g(this,Wl).get(e);if(r)return r;const i=x(this,pu,i5).call(this,t),o=i.font;i.canvas.width=i.canvas.height=Jn,i.font=`30px ${e}`;const s=i.measureText("");let a=s.fontBoundingBoxAscent,c=Math.abs(s.fontBoundingBoxDescent);if(a){const f=a/(a+c);return g(this,Wl).set(e,f),i.canvas.width=i.canvas.height=0,i.font=o,f}i.strokeStyle="red",i.clearRect(0,0,Jn,Jn),i.strokeText("g",0,0);let u=i.getImageData(0,0,Jn,Jn).data;c=0;for(let f=u.length-1-3;f>=0;f-=4)if(u[f]>0){c=Math.ceil(f/4/Jn);break}i.clearRect(0,0,Jn,Jn),i.strokeText("A",0,Jn),u=i.getImageData(0,0,Jn,Jn).data,a=0;for(let f=0,h=u.length;f<h;f+=4)if(u[f]>0){a=Jn-Math.floor(f/4/Jn);break}i.canvas.width=i.canvas.height=0,i.font=o;const d=a?a/(a+c):.8;return g(this,Wl).set(e,d),d},M(Wt,pu),M(Wt,K3),M(Wt,G3),M(Wt,Wl,new Map),M(Wt,ql,new Map),M(Wt,oa,null),M(Wt,hu,new Set);let m2=Wt;class g2{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function i(o){var c;if(!o)return;let s=null;const a=o.name;if(a==="#text")s=o.value;else{if(!g2.shouldBuildText(a))return;(c=o==null?void 0:o.attributes)!=null&&c.textContent?s=o.attributes.textContent:o.value&&(s=o.value)}if(s!==null&&t.push({str:s}),o.children)for(const u of o.children)i(u)}(e),r}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}const DZ=65536,NZ=cn?class extends mM{_createCanvas(e,t){return ms.get("canvas").createCanvas(e,t)}}:class extends mM{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}={}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){const r=this._document.createElement("canvas");return r.width=e,r.height=t,r}},PZ=cn?class extends gM{_fetchData(e,t){return AM(e).then(r=>({cMapData:r,compressionType:t}))}}:bM,_Z=cn?class extends pM{}:(QD=class extends pM{constructor({docId:t,ownerDocument:r=globalThis.document}={}){super();M(this,qt);M(this,sa);M(this,aa);M(this,mu);M(this,la);M(this,Q3);M(this,Vh);M(this,ca);M(this,Ql);M(this,Xl);M(this,Fh);M(this,Jl);M(this,Kl,void 0);M(this,Gl,void 0);M(this,ji,void 0);M(this,Do,void 0);M(this,hn,void 0);M(this,Y3,void 0);M(this,Yl,0);A(this,Do,t),A(this,hn,r)}addFilter(t){if(!t)return"none";let r=g(this,qt,gn).get(t);if(r)return r;const[i,o,s]=x(this,mu,o5).call(this,t),a=t.length===1?i:`${i}${o}${s}`;if(r=g(this,qt,gn).get(a),r)return g(this,qt,gn).set(t,r),r;const c=`g_${g(this,Do)}_transfer_map_${Gn(this,Yl)._++}`,u=x(this,la,fd).call(this,c);g(this,qt,gn).set(t,u),g(this,qt,gn).set(a,u);const d=x(this,ca,hd).call(this,c);return x(this,Xl,Q1).call(this,i,o,s,d),u}addHCMFilter(t,r){var m;const i=`${t}-${r}`,o="base";let s=g(this,sa,ud).get(o);if((s==null?void 0:s.key)===i||(s?((m=s.filter)==null||m.remove(),s.key=i,s.url="none",s.filter=null):(s={key:i,url:"none",filter:null},g(this,sa,ud).set(o,s)),!t||!r))return s.url;const a=x(this,Jl,X1).call(this,t);t=le.makeHexColor(...a);const c=x(this,Jl,X1).call(this,r);if(r=le.makeHexColor(...c),g(this,aa,dd).style.color="",t==="#000000"&&r==="#ffffff"||t===r)return s.url;const u=new Array(256);for(let y=0;y<=255;y++){const b=y/255;u[y]=b<=.03928?b/12.92:((b+.055)/1.055)**2.4}const d=u.join(","),f=`g_${g(this,Do)}_hcm_filter`,h=s.filter=x(this,ca,hd).call(this,f);x(this,Xl,Q1).call(this,d,d,d,h),x(this,Vh,Iv).call(this,h);const p=(y,b)=>{const w=a[y]/255,v=c[y]/255,k=new Array(b+1);for(let C=0;C<=b;C++)k[C]=w+C/b*(v-w);return k.join(",")};return x(this,Xl,Q1).call(this,p(0,5),p(1,5),p(2,5),h),s.url=x(this,la,fd).call(this,f),s.url}addAlphaFilter(t){let r=g(this,qt,gn).get(t);if(r)return r;const[i]=x(this,mu,o5).call(this,[t]),o=`alpha_${i}`;if(r=g(this,qt,gn).get(o),r)return g(this,qt,gn).set(t,r),r;const s=`g_${g(this,Do)}_alpha_map_${Gn(this,Yl)._++}`,a=x(this,la,fd).call(this,s);g(this,qt,gn).set(t,a),g(this,qt,gn).set(o,a);const c=x(this,ca,hd).call(this,s);return x(this,Fh,Ov).call(this,i,c),a}addLuminosityFilter(t){let r,i,o=g(this,qt,gn).get(t||"luminosity");if(o)return o;if(t?([r]=x(this,mu,o5).call(this,[t]),i=`luminosity_${r}`):i="luminosity",o=g(this,qt,gn).get(i),o)return g(this,qt,gn).set(t,o),o;const s=`g_${g(this,Do)}_luminosity_map_${Gn(this,Yl)._++}`,a=x(this,la,fd).call(this,s);g(this,qt,gn).set(t,a),g(this,qt,gn).set(i,a);const c=x(this,ca,hd).call(this,s);return x(this,Q3,ON).call(this,c),t&&x(this,Fh,Ov).call(this,r,c),a}addHighlightHCMFilter(t,r,i,o,s){var v;const a=`${r}-${i}-${o}-${s}`;let c=g(this,sa,ud).get(t);if((c==null?void 0:c.key)===a||(c?((v=c.filter)==null||v.remove(),c.key=a,c.url="none",c.filter=null):(c={key:a,url:"none",filter:null},g(this,sa,ud).set(t,c)),!r||!i))return c.url;const[u,d]=[r,i].map(x(this,Jl,X1).bind(this));let f=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),h=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[p,m]=[o,s].map(x(this,Jl,X1).bind(this));h<f&&([f,h,p,m]=[h,f,m,p]),g(this,aa,dd).style.color="";const y=(k,C,T)=>{const S=new Array(256),E=(h-f)/T,O=k/255,I=(C-k)/(255*T);let P=0;for(let D=0;D<=T;D++){const B=Math.round(f+D*E),V=O+D*I;for(let U=P;U<=B;U++)S[U]=V;P=B+1}for(let D=P;D<256;D++)S[D]=S[P-1];return S.join(",")},b=`g_${g(this,Do)}_hcm_${t}_filter`,w=c.filter=x(this,ca,hd).call(this,b);return x(this,Vh,Iv).call(this,w),x(this,Xl,Q1).call(this,y(p[0],m[0],5),y(p[1],m[1],5),y(p[2],m[2],5),w),c.url=x(this,la,fd).call(this,b),c.url}destroy(t=!1){(!t||g(this,sa,ud).size===0)&&(g(this,ji)&&(g(this,ji).parentNode.parentNode.remove(),A(this,ji,null)),g(this,Gl)&&(g(this,Gl).clear(),A(this,Gl,null)),A(this,Yl,0))}},Kl=new WeakMap,Gl=new WeakMap,ji=new WeakMap,Do=new WeakMap,hn=new WeakMap,Y3=new WeakMap,Yl=new WeakMap,qt=new WeakSet,gn=function(){return g(this,Gl)||A(this,Gl,new Map)},sa=new WeakSet,ud=function(){return g(this,Y3)||A(this,Y3,new Map)},aa=new WeakSet,dd=function(){if(!g(this,ji)){const t=g(this,hn).createElement("div"),{style:r}=t;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;const i=g(this,hn).createElementNS(lo,"svg");i.setAttribute("width",0),i.setAttribute("height",0),A(this,ji,g(this,hn).createElementNS(lo,"defs")),t.append(i),i.append(g(this,ji)),g(this,hn).body.append(t)}return g(this,ji)},mu=new WeakSet,o5=function(t){if(t.length===1){const u=t[0],d=new Array(256);for(let h=0;h<256;h++)d[h]=u[h]/255;const f=d.join(",");return[f,f,f]}const[r,i,o]=t,s=new Array(256),a=new Array(256),c=new Array(256);for(let u=0;u<256;u++)s[u]=r[u]/255,a[u]=i[u]/255,c[u]=o[u]/255;return[s.join(","),a.join(","),c.join(",")]},la=new WeakSet,fd=function(t){if(g(this,Kl)===void 0){A(this,Kl,"");const r=g(this,hn).URL;r!==g(this,hn).baseURI&&(sm(r)?ke('#createUrl: ignore "data:"-URL for performance reasons.'):A(this,Kl,r.split("#",1)[0]))}return`url(${g(this,Kl)}#${t})`},Q3=new WeakSet,ON=function(t){const r=g(this,hn).createElementNS(lo,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(r)},Vh=new WeakSet,Iv=function(t){const r=g(this,hn).createElementNS(lo,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(r)},ca=new WeakSet,hd=function(t){const r=g(this,hn).createElementNS(lo,"filter");return r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("id",t),g(this,aa,dd).append(r),r},Ql=new WeakSet,Y1=function(t,r,i){const o=g(this,hn).createElementNS(lo,r);o.setAttribute("type","discrete"),o.setAttribute("tableValues",i),t.append(o)},Xl=new WeakSet,Q1=function(t,r,i,o){const s=g(this,hn).createElementNS(lo,"feComponentTransfer");o.append(s),x(this,Ql,Y1).call(this,s,"feFuncR",t),x(this,Ql,Y1).call(this,s,"feFuncG",r),x(this,Ql,Y1).call(this,s,"feFuncB",i)},Fh=new WeakSet,Ov=function(t,r){const i=g(this,hn).createElementNS(lo,"feComponentTransfer");r.append(i),x(this,Ql,Y1).call(this,i,"feFuncA",t)},Jl=new WeakSet,X1=function(t){return g(this,aa,dd).style.color=t,I4(getComputedStyle(g(this,aa,dd)).getPropertyValue("color"))},QD),LZ=cn?class extends yM{_fetchData(e){return AM(e)}}:wM;function BZ(n={}){typeof n=="string"||n instanceof URL?n={url:n}:(n instanceof ArrayBuffer||ArrayBuffer.isView(n))&&(n={data:n});const e=new Z4,{docId:t}=e,r=n.url?function(F){if(F instanceof URL)return F.href;try{return new URL(F,window.location).href}catch{if(cn&&typeof F=="string")return F}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(n.url):null,i=n.data?function(F){if(cn&&typeof Buffer<"u"&&F instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(F instanceof Uint8Array&&F.byteLength===F.buffer.byteLength)return F;if(typeof F=="string")return im(F);if(F instanceof ArrayBuffer||ArrayBuffer.isView(F)||typeof F=="object"&&!isNaN(F==null?void 0:F.length))return new Uint8Array(F);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(n.data):null,o=n.httpHeaders||null,s=n.withCredentials===!0,a=n.password??null,c=n.range instanceof KM?n.range:null,u=Number.isInteger(n.rangeChunkSize)&&n.rangeChunkSize>0?n.rangeChunkSize:DZ;let d=n.worker instanceof nc?n.worker:null;const f=n.verbosity,h=typeof n.docBaseUrl!="string"||sm(n.docBaseUrl)?null:n.docBaseUrl,p=typeof n.cMapUrl=="string"?n.cMapUrl:null,m=n.cMapPacked!==!1,y=n.CMapReaderFactory||PZ,b=typeof n.standardFontDataUrl=="string"?n.standardFontDataUrl:null,w=n.StandardFontDataFactory||LZ,v=n.stopAtErrors!==!0,k=Number.isInteger(n.maxImageSize)&&n.maxImageSize>-1?n.maxImageSize:-1,C=n.isEvalSupported!==!1,T=typeof n.isOffscreenCanvasSupported=="boolean"?n.isOffscreenCanvasSupported:!cn,S=Number.isInteger(n.canvasMaxAreaInBytes)?n.canvasMaxAreaInBytes:-1,E=typeof n.disableFontFace=="boolean"?n.disableFontFace:cn,O=n.fontExtraProperties===!0,I=n.enableXfa===!0,P=n.ownerDocument||globalThis.document,D=n.disableRange===!0,B=n.disableStream===!0,V=n.disableAutoFetch===!0,U=n.pdfBug===!0,L=n.enableHWA===!0,N=c?c.length:n.length??NaN,$=typeof n.useSystemFonts=="boolean"?n.useSystemFonts:!cn&&!E,R=typeof n.useWorkerFetch=="boolean"?n.useWorkerFetch:y===bM&&w===wM&&p&&b&&c2(p,document.baseURI)&&c2(b,document.baseURI),q=n.canvasFactory||new NZ({ownerDocument:P,enableHWA:L}),re=n.filterFactory||new _Z({docId:t,ownerDocument:P});NU(f);const ue={canvasFactory:q,filterFactory:re};if(R||(ue.cMapReaderFactory=new y({baseUrl:p,isCompressed:m}),ue.standardFontDataFactory=new w({baseUrl:b})),!d){const j={verbosity:f,port:uo.workerPort};d=j.port?nc.fromPort(j):new nc(j),e._worker=d}const K={docId:t,apiVersion:"4.6.82",data:i,password:a,disableAutoFetch:V,rangeChunkSize:u,length:N,docBaseUrl:h,enableXfa:I,evaluatorOptions:{maxImageSize:k,disableFontFace:E,ignoreErrors:v,isEvalSupported:C,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:S,fontExtraProperties:O,useSystemFonts:$,cMapUrl:R?p:null,standardFontDataUrl:R?b:null}},H={disableFontFace:E,fontExtraProperties:O,ownerDocument:P,pdfBug:U,styleElement:null,loadingParams:{disableAutoFetch:V,enableXfa:I}};return d.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const j=d.messageHandler.sendWithPromise("GetDocRequest",K,i?[i.buffer]:null);let F;if(c)F=new gZ(c,{disableRange:D,disableStream:B});else if(!i){if(!r)throw new Error("getDocument - no `url` parameter provided.");F=(G=>cn?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&c2(G.url)?new HM(G):new AZ(G):c2(G.url)?new HM(G):new kZ(G))({url:r,length:N,httpHeaders:o,withCredentials:s,rangeChunkSize:u,disableRange:D,disableStream:B})}return j.then(G=>{if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const J=new p2(t,G,d.port),ae=new FZ(J,e,F,H,ue);e._transport=ae,J.send("Ready",null)})}).catch(e._capability.reject),e}function qM(n){return typeof n=="object"&&Number.isInteger(n==null?void 0:n.num)&&n.num>=0&&Number.isInteger(n==null?void 0:n.gen)&&n.gen>=0}const J3=class J3{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d"+Gn(J3,X3)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var e,t,r;this.destroyed=!0;try{(e=this._worker)!=null&&e.port&&(this._worker._pendingDestroy=!0),await((t=this._transport)==null?void 0:t.destroy())}catch(i){throw(r=this._worker)!=null&&r.port&&delete this._worker._pendingDestroy,i}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};X3=new WeakMap,M(J3,X3,0);let Z4=J3;class KM{constructor(e,t,r=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then(()=>{for(const r of this._progressListeners)r(e,t)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const t of this._progressiveReadListeners)t(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){Mt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class RZ{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Ie(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class $Z{constructor(e,t,r,i=!1){M(this,da);M(this,gu);M(this,ua,null);M(this,No,!1);this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=i?new vM:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new GM,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:o=!1}={}){return new l2({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:o})}getAnnotations({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Ie(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return((e=this._transport._htmlForXfa)==null?void 0:e.children[this._pageIndex])||null}render({canvasContext:e,viewport:t,intent:r="display",annotationMode:i=ds.ENABLE,transform:o=null,background:s=null,optionalContentConfigPromise:a=null,annotationCanvasMap:c=null,pageColors:u=null,printAnnotationStorage:d=null,isEditing:f=!1}){var C,T;(C=this._stats)==null||C.time("Overall");const h=this._transport.getRenderingIntent(r,i,d,f),{renderingIntent:p,cacheKey:m}=h;A(this,No,!1),x(this,gu,s5).call(this),a||(a=this._transport.getOptionalContentConfig(p));let y=this._intentStates.get(m);y||(y=Object.create(null),this._intentStates.set(m,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const b=!!(p&Qp);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(T=this._stats)==null||T.time("Page Request"),this._pumpOperatorList(h));const w=S=>{var E;y.renderTasks.delete(v),(this._maybeCleanupAfterRender||b)&&A(this,No,!0),x(this,da,pd).call(this,!b),S?(v.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):v.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(E=globalThis.Stats)!=null&&E.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},v=new W4({callback:w,params:{canvasContext:e,viewport:t,transform:o,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!b,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||(y.renderTasks=new Set)).add(v);const k=v.task;return Promise.all([y.displayReadyCapability.promise,a]).then(([S,E])=>{var O;if(this.destroyed)w();else{if((O=this._stats)==null||O.time("Rendering"),!(E.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");v.initializeGraphics({transparency:S,optionalContentConfig:E}),v.operatorListChanged()}}).catch(w),k}getOperatorList({intent:e="display",annotationMode:t=ds.ENABLE,printAnnotationStorage:r=null,isEditing:i=!1}={}){var c;const o=this._transport.getRenderingIntent(e,t,r,i,!0);let s,a=this._intentStates.get(o.cacheKey);return a||(a=Object.create(null),this._intentStates.set(o.cacheKey,a)),a.opListReadCapability||(s=Object.create(null),s.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(s))},a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||(a.renderTasks=new Set)).add(s),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(o)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:t===!0},{highWaterMark:100,size:r=>r.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(r=>g2.textContent(r));const t=this.streamTextContent(e);return new Promise(function(r,i){const o=t.getReader(),s={items:[],styles:Object.create(null),lang:null};(function a(){o.read().then(function({value:c,done:u}){u?r(s):(s.lang??(s.lang=c.lang),Object.assign(s.styles,c.styles),s.items.push(...c.items),a())},i)})()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const r of t.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),A(this,No,!1),x(this,gu,s5).call(this),Promise.all(e)}cleanup(e=!1){A(this,No,!0);const t=x(this,da,pd).call(this,!1);return e&&t&&this._stats&&(this._stats=new vM),t}_startRenderPage(e,t){var i,o;const r=this._intentStates.get(t);r&&((i=this._stats)==null||i.timeEnd("Page Request"),(o=r.displayReadyCapability)==null||o.resolve(e))}_renderPageChunk(e,t){for(let r=0,i=e.length;r<i;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const r of t.renderTasks)r.operatorListChanged();e.lastChunk&&x(this,da,pd).call(this,!0)}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:r,modifiedIds:i}){const{map:o,transfer:s}=r,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:o,modifiedIds:i},s).getReader(),c=this._intentStates.get(t);c.streamReader=a;const u=()=>{a.read().then(({value:d,done:f})=>{f?c.streamReader=null:this._transport.destroyed||(this._renderPageChunk(d,c),u())},d=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const f of c.renderTasks)f.operatorListChanged();x(this,da,pd).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(d);else{if(!c.opListReadCapability)throw d;c.opListReadCapability.reject(d)}}})};u()}_abortOperatorList({intentState:e,reason:t,force:r=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!r){if(e.renderTasks.size>0)return;if(t instanceof T4){let i=100;t.extraDelay>0&&t.extraDelay<1e3&&(i+=t.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},i);return}}if(e.streamReader.cancel(new qa(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[i,o]of this._intentStates)if(o===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}ua=new WeakMap,No=new WeakMap,da=new WeakSet,pd=function(e=!1){if(x(this,gu,s5).call(this),!g(this,No)||this.destroyed)return!1;if(e)return A(this,ua,setTimeout(()=>{A(this,ua,null),x(this,da,pd).call(this,!1)},5e3)),!1;for(const{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),A(this,No,!1),!0},gu=new WeakSet,s5=function(){g(this,ua)&&(clearTimeout(g(this,ua)),A(this,ua,null))};class VZ{constructor(){M(this,e0,new Set);M(this,ey,Promise.resolve())}postMessage(e,t){const r={data:structuredClone(e,t?{transfer:t}:null)};g(this,ey).then(()=>{for(const i of g(this,e0))i.call(this,r)})}addEventListener(e,t){g(this,e0).add(t)}removeEventListener(e,t){g(this,e0).delete(t)}terminate(){g(this,e0).clear()}}e0=new WeakMap,ey=new WeakMap;const tt=class tt{constructor({name:e=null,port:t=null,verbosity:r=PU()}={}){M(this,yu);var i;if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,t){if((i=g(tt,n0))!=null&&i.has(t))throw new Error("Cannot use more than one PDFWorker per port.");(g(tt,n0)||A(tt,n0,new WeakMap)).set(t,this),this._initializeFromPort(t)}else this._initialize()}get promise(){return cn?Promise.all([ms.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new p2("main","worker",e),this._messageHandler.on("ready",function(){}),x(this,yu,a5).call(this)}_initialize(){if(g(tt,t0)||g(tt,bu,l5)){this._setupFakeWorker();return}let{workerSrc:e}=tt;try{tt._isSameOrigin(window.location.href,e)||(e=tt._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),r=new p2("main","worker",t),i=()=>{o.abort(),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;t.addEventListener("error",()=>{this._webWorker||i()},{signal:o.signal}),r.on("test",a=>{o.abort(),!this.destroyed&&a?(this._messageHandler=r,this._port=t,this._webWorker=t,x(this,yu,a5).call(this)):i()}),r.on("ready",a=>{if(o.abort(),this.destroyed)i();else try{s()}catch{this._setupFakeWorker()}});const s=()=>{const a=new Uint8Array;r.send("test",a,[a.buffer])};s();return}catch{nm("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){g(tt,t0)||(ke("Setting up fake worker."),A(tt,t0,!0)),tt._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const t=new VZ;this._port=t;const r="fake"+Gn(tt,ty)._++,i=new p2(r+"_worker",r,t);e.setup(i,t),this._messageHandler=new p2(r,r+"_worker",t),x(this,yu,a5).call(this)}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(e=g(tt,n0))==null||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var r;if(!(e!=null&&e.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const t=(r=g(this,n0))==null?void 0:r.get(e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new tt(e)}static get workerSrc(){if(uo.workerSrc)return uo.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Ie(this,"_setupFakeWorkerGlobal",(async()=>g(this,bu,l5)?g(this,bu,l5):(await import(this.workerSrc)).WorkerMessageHandler)())}};ty=new WeakMap,t0=new WeakMap,n0=new WeakMap,yu=new WeakSet,a5=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},bu=new WeakSet,l5=function(){var e;try{return((e=globalThis.pdfjsWorker)==null?void 0:e.WorkerMessageHandler)||null}catch{return null}},M(tt,bu),M(tt,ty,0),M(tt,t0,!1),M(tt,n0,void 0),cn&&(A(tt,t0,!0),uo.workerSrc||(uo.workerSrc="./pdf.worker.mjs")),tt._isSameOrigin=(e,t)=>{let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const i=new URL(t,r);return r.origin===i.origin},tt._createCDNWrapper=e=>{const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};let nc=tt;class FZ{constructor(e,t,r,i,o){M(this,r0);M(this,Po,new Map);M(this,zi,new Map);M(this,wu,new Map);M(this,vu,new Map);M(this,Hi,null);this.messageHandler=e,this.loadingTask=t,this.commonObjs=new GM,this.fontLoader=new eZ({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return Ie(this,"annotationStorage",new _4)}getRenderingIntent(e,t=ds.ENABLE,r=null,i=!1,o=!1){let s=b4,a=P4;switch(e){case"any":s=eU;break;case"display":break;case"print":s=Qp;break;default:ke(`getRenderingIntent - invalid intent: ${e}`)}const c=s&Qp&&r instanceof EM?r:this.annotationStorage;switch(t){case ds.DISABLE:s+=rU;break;case ds.ENABLE:break;case ds.ENABLE_FORMS:s+=tU;break;case ds.ENABLE_STORAGE:s+=nU,a=c.serializable;break;default:ke(`getRenderingIntent - invalid annotationMode: ${t}`)}i&&(s+=iU),o&&(s+=oU);const{ids:u,hash:d}=c.modifiedIds;return{renderingIntent:s,cacheKey:[s,a.hash,d].join("_"),annotationStorageSerializable:a,modifiedIds:u}}destroy(){var r;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(r=g(this,Hi))==null||r.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const i of g(this,zi).values())e.push(i._destroy());g(this,zi).clear(),g(this,wu).clear(),g(this,vu).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{var i;this.commonObjs.clear(),this.fontLoader.clear(),g(this,Po).clear(),this.filterFactory.destroy(),m2.cleanup(),(i=this._networkStream)==null||i.cancelAllRequests(new qa("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(r,i)=>{xt(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},i.onPull=()=>{this._fullReader.read().then(function({value:o,done:s}){s?i.close():(xt(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o]))}).catch(o=>{i.error(o)})},i.onCancel=o=>{this._fullReader.cancel(o),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),e.on("ReaderHeadersReady",r=>{const i=Promise.withResolvers(),o=this._fullReader;return o.headersReady.then(()=>{var s;(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&((s=t.onProgress)==null||s.call(t,this._lastProgress)),o.onProgress=a=>{var c;(c=t.onProgress)==null||c.call(t,{loaded:a.loaded,total:a.total})}),i.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},i.reject),i.promise}),e.on("GetRangeReader",(r,i)=>{xt(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(r.begin,r.end);o?(i.onPull=()=>{o.read().then(function({value:s,done:a}){a?i.close():(xt(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s]))}).catch(s=>{i.error(s)})},i.onCancel=s=>{o.cancel(s),i.ready.catch(a=>{if(!this.destroyed)throw a})}):i.close()}),e.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,t._capability.resolve(new RZ(r,this))}),e.on("DocException",function(r){let i;switch(r.name){case"PasswordException":i=new C4(r.message,r.code);break;case"InvalidPDFException":i=new uM(r.message);break;case"MissingPDFException":i=new Wa(r.message);break;case"UnexpectedResponseException":i=new rm(r.message,r.status);break;case"UnknownErrorException":i=new k4(r.message,r.details);break;default:Mt("DocException - expected a valid Error.")}t._capability.reject(i)}),e.on("PasswordRequest",r=>{if(A(this,Hi,Promise.withResolvers()),t.onPassword){const i=o=>{o instanceof Error?g(this,Hi).reject(o):g(this,Hi).resolve({password:o})};try{t.onPassword(i,r.code)}catch(o){g(this,Hi).reject(o)}}else g(this,Hi).reject(new C4(r.message,r.code));return g(this,Hi).promise}),e.on("DataLoaded",r=>{var i;(i=t.onProgress)==null||i.call(t,{loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),e.on("StartRenderPage",r=>{this.destroyed||g(this,zi).get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),e.on("commonobj",([r,i,o])=>{var s;if(this.destroyed||this.commonObjs.has(r))return null;switch(i){case"Font":const{disableFontFace:a,fontExtraProperties:c,pdfBug:u}=this._params;if("error"in o){const p=o.error;ke(`Error during font loading: ${p}`),this.commonObjs.resolve(r,p);break}const d=u&&((s=globalThis.FontInspector)!=null&&s.enabled)?(p,m)=>globalThis.FontInspector.fontAdded(p,m):null,f=new tZ(o,{disableFontFace:a,inspectFont:d});this.fontLoader.bind(f).catch(()=>e.sendWithPromise("FontFallback",{id:r})).finally(()=>{!c&&f.data&&(f.data=null),this.commonObjs.resolve(r,f)});break;case"CopyLocalImage":const{imageRef:h}=o;xt(h,"The imageRef must be defined.");for(const p of g(this,zi).values())for(const[,m]of p.objs)if((m==null?void 0:m.ref)===h)return m.dataLen?(this.commonObjs.resolve(r,structuredClone(m)),m.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,o);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([r,i,o,s])=>{var c;if(this.destroyed)return;const a=g(this,zi).get(i);if(!a.objs.has(r))if(a._intentStates.size!==0)switch(o){case"Image":a.objs.resolve(r,s),(s==null?void 0:s.dataLen)>1e7&&(a._maybeCleanupAfterRender=!0);break;case"Pattern":a.objs.resolve(r,s);break;default:throw new Error(`Got unknown object type ${o}`)}else(c=s==null?void 0:s.bitmap)==null||c.close()}),e.on("DocProgress",r=>{var i;this.destroyed||((i=t.onProgress)==null||i.call(t,{loaded:r.loaded,total:r.total}))}),e.on("FetchBuiltInCMap",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(r):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),e.on("FetchStandardFontData",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(r):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var r;this.annotationStorage.size<=0&&ke("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:((r=this._fullReader)==null?void 0:r.filename)??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,r=g(this,wu).get(t);if(r)return r;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&g(this,vu).set(o.refStr,e);const s=new $Z(t,o,this,this._params.pdfBug);return g(this,zi).set(t,s),s});return g(this,wu).set(t,i),i}getPageIndex(e){return qM(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return x(this,r0,J1).call(this,"GetFieldObjects")}hasJSActions(){return x(this,r0,J1).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return x(this,r0,J1).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return x(this,r0,J1).call(this,"GetOptionalContentConfig").then(t=>new mZ(t,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=g(this,Po).get(e);if(t)return t;const r=this.messageHandler.sendWithPromise(e,null).then(i=>{var o,s;return{info:i[0],metadata:i[1]?new hZ(i[1]):null,contentDispositionFilename:((o=this._fullReader)==null?void 0:o.filename)??null,contentLength:((s=this._fullReader)==null?void 0:s.contentLength)??null}});return g(this,Po).set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const t of g(this,zi).values())if(!t.cleanup())throw new Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),g(this,Po).clear(),this.filterFactory.destroy(!0),m2.cleanup()}}cachedPageNumber(e){if(!qM(e))return null;const t=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return g(this,vu).get(t)??null}}Po=new WeakMap,zi=new WeakMap,wu=new WeakMap,vu=new WeakMap,Hi=new WeakMap,r0=new WeakSet,J1=function(e,t=null){const r=g(this,Po).get(e);if(r)return r;const i=this.messageHandler.sendWithPromise(e,t);return g(this,Po).set(e,i),i};const hm=Symbol("INITIAL_DATA");class GM{constructor(){M(this,jh);M(this,ii,Object.create(null))}get(e,t=null){if(t){const i=x(this,jh,Dv).call(this,e);return i.promise.then(()=>t(i.data)),null}const r=g(this,ii)[e];if(!r||r.data===hm)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return r.data}has(e){const t=g(this,ii)[e];return!!t&&t.data!==hm}resolve(e,t=null){const r=x(this,jh,Dv).call(this,e);r.data=t,r.resolve()}clear(){var e;for(const t in g(this,ii)){const{data:r}=g(this,ii)[t];(e=r==null?void 0:r.bitmap)==null||e.close()}A(this,ii,Object.create(null))}*[Symbol.iterator](){for(const e in g(this,ii)){const{data:t}=g(this,ii)[e];t!==hm&&(yield[e,t])}}}ii=new WeakMap,jh=new WeakSet,Dv=function(e){var t;return(t=g(this,ii))[e]||(t[e]={...Promise.withResolvers(),data:hm})};class jZ{constructor(e){M(this,fa,null);A(this,fa,e),this.onContinue=null}get promise(){return g(this,fa).capability.promise}cancel(e=0){g(this,fa).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=g(this,fa).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=g(this,fa);return e.form||e.canvas&&(t==null?void 0:t.size)>0}}fa=new WeakMap;const o0=class o0{constructor({callback:e,params:t,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:s,pageIndex:a,canvasFactory:c,filterFactory:u,useRequestAnimationFrame:d=!1,pdfBug:f=!1,pageColors:h=null}){M(this,ha,null);this.callback=e,this.params=t,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=f,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=d===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new jZ(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){var a,c;if(this.cancelled)return;if(this._canvas){if(g(o0,i0).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");g(o0,i0).add(this._canvas)}this._pdfBug&&((a=globalThis.StepperManager)!=null&&a.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:i,transform:o,background:s}=this.params;this.gfx=new tc(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,(c=this.graphicsReadyCallback)==null||c.call(this)}cancel(e=null,t=0){var r;this.running=!1,this.cancelled=!0,(r=this.gfx)==null||r.endDrawing(),g(this,ha)&&(window.cancelAnimationFrame(g(this,ha)),A(this,ha,null)),g(o0,i0).delete(this._canvas),this.callback(e||new T4(`Rendering cancelled, page ${this._pageIndex+1}`,t))}operatorListChanged(){var e;this.graphicsReady?((e=this.stepper)==null||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?A(this,ha,window.requestAnimationFrame(()=>{A(this,ha,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),g(o0,i0).delete(this._canvas),this.callback())))}};ha=new WeakMap,i0=new WeakMap,M(o0,i0,new WeakSet);let W4=o0;const zZ="4.6.82",HZ="9b541910f";Pe(670);function YM(n){return Math.floor(255*Math.max(0,Math.min(1,n))).toString(16).padStart(2,"0")}function y2(n){return Math.max(0,Math.min(255,255*n))}class QM{static CMYK_G([e,t,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=y2(e),e,e]}static G_HTML([e]){const t=YM(e);return`#${t}${t}${t}`}static RGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}static RGB_rgb(e){return e.map(y2)}static RGB_HTML(e){return`#${e.map(YM).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,r,i]){return[y2(1-Math.min(1,e+i)),y2(1-Math.min(1,r+i)),y2(1-Math.min(1,t+i))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,r]){const i=1-e,o=1-t,s=1-r;return["CMYK",i,o,s,Math.min(i,o,s)]}}class XM{static setupStorage(e,t,r,i,o){const s=i.getValue(t,{value:null});switch(r.name){case"textarea":if(s.value!==null&&(e.textContent=s.value),o==="print")break;e.addEventListener("input",a=>{i.setValue(t,{value:a.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(s.value===r.attributes.xfaOn?e.setAttribute("checked",!0):s.value===r.attributes.xfaOff&&e.removeAttribute("checked"),o==="print")break;e.addEventListener("change",a=>{i.setValue(t,{value:a.target.checked?a.target.getAttribute("xfaOn"):a.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&e.setAttribute("value",s.value),o==="print")break;e.addEventListener("input",a=>{i.setValue(t,{value:a.target.value})})}break;case"select":if(s.value!==null){e.setAttribute("value",s.value);for(const a of r.children)a.attributes.value===s.value?a.attributes.selected=!0:a.attributes.hasOwnProperty("selected")&&delete a.attributes.selected}e.addEventListener("input",a=>{const c=a.target.options,u=c.selectedIndex===-1?"":c[c.selectedIndex].value;i.setValue(t,{value:u})})}}static setAttributes({html:e,element:t,storage:r=null,intent:i,linkService:o}){const{attributes:s}=t,a=e instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${i}`);for(const[c,u]of Object.entries(s))if(u!=null)switch(c){case"class":u.length&&e.setAttribute(c,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!a||c!=="href"&&c!=="newWindow")&&e.setAttribute(c,u)}a&&o.addLinkAttributes(e,s.href,s.newWindow),r&&s.dataId&&this.setupStorage(e,s.dataId,t,r)}static render(e){var f,h;const t=e.annotationStorage,r=e.linkService,i=e.xfaHtml,o=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:o,linkService:r});const a=o!=="richText",c=e.div;if(c.append(s),e.viewport){const p=`matrix(${e.viewport.transform.join(",")})`;c.style.transform=p}a&&c.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const p=document.createTextNode(i.value);s.append(p),a&&g2.shouldBuildText(i.name)&&u.push(p)}return{textDivs:u}}const d=[[i,-1,s]];for(;d.length>0;){const[p,m,y]=d.at(-1);if(m+1===p.children.length){d.pop();continue}const b=p.children[++d.at(-1)[1]];if(b===null)continue;const{name:w}=b;if(w==="#text"){const k=document.createTextNode(b.value);u.push(k),y.append(k);continue}const v=(f=b==null?void 0:b.attributes)!=null&&f.xmlns?document.createElementNS(b.attributes.xmlns,w):document.createElement(w);if(y.append(v),b.attributes&&this.setAttributes({html:v,element:b,storage:t,intent:o,linkService:r}),((h=b.children)==null?void 0:h.length)>0)d.push([b,-1,v]);else if(b.value){const k=document.createTextNode(b.value);a&&g2.shouldBuildText(w)&&u.push(k),v.append(k)}}for(const p of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}const b2=1e3,Qa=new WeakSet;function fo(n){return{width:n[2]-n[0],height:n[3]-n[1]}}class UZ{static create(e){switch(e.data.annotationType){case uU:return new JM(e);case cU:return new ZZ(e);case EU:switch(e.data.fieldType){case"Tx":return new WZ(e);case"Btn":return e.data.radioButton?new eE(e):e.data.checkBox?new KZ(e):new GZ(e);case"Ch":return new YZ(e);case"Sig":return new qZ(e)}return new Xa(e);case cM:return new q4(e);case dU:return new tE(e);case fU:return new XZ(e);case hU:return new JZ(e);case pU:return new eW(e);case gU:return new nE(e);case kU:return new nW(e);case SU:return new rE(e);case mU:return new tW(e);case yU:return new rW(e);case bU:return new iW(e);case wU:return new oW(e);case vU:return new sW(e);case CU:return new iE(e);case MU:return new aW(e);default:return new bt(e)}}}const iv=class iv{constructor(e,{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}={}){M(this,zh);M(this,s0,null);M(this,Cu,!1);M(this,ku,null);this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(r)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:t,richText:r}){return!!(e!=null&&e.str||t!=null&&t.str||r!=null&&r.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return iv._hasPopupData(this.data)}updateEdited(e){var r;if(!this.container)return;g(this,s0)||A(this,s0,{rect:this.data.rect.slice(0)});const{rect:t}=e;t&&x(this,zh,Nv).call(this,t),(r=g(this,ku))==null||r.popup.updateEdited(e)}resetEdited(){var e;g(this,s0)&&(x(this,zh,Nv).call(this,g(this,s0).rect),(e=g(this,ku))==null||e.popup.resetEdited(),A(this,s0,null))}_createContainer(e){const{data:t,parent:{page:r,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id),this instanceof Xa||(o.tabIndex=b2);const{style:s}=o;if(s.zIndex=this.parent.zIndex++,t.popupRef&&o.setAttribute("aria-haspopup","dialog"),t.alternativeText&&(o.title=t.alternativeText),t.noRotate&&o.classList.add("norotate"),!t.rect||this instanceof q4){const{rotation:y}=t;return t.hasOwnCanvas||y===0||this.setRotation(y,o),o}const{width:a,height:c}=fo(t.rect);if(!e&&t.borderStyle.width>0){s.borderWidth=`${t.borderStyle.width}px`;const y=t.borderStyle.horizontalCornerRadius,b=t.borderStyle.verticalCornerRadius;if(y>0||b>0){const v=`calc(${y}px * var(--scale-factor)) / calc(${b}px * var(--scale-factor))`;s.borderRadius=v}else if(this instanceof eE){const v=`calc(${a}px * var(--scale-factor)) / calc(${c}px * var(--scale-factor))`;s.borderRadius=v}switch(t.borderStyle.style){case AU:s.borderStyle="solid";break;case TU:s.borderStyle="dashed";break;case xU:ke("Unimplemented border style: beveled");break;case IU:ke("Unimplemented border style: inset");break;case OU:s.borderBottomStyle="solid"}const w=t.borderColor||null;w?(A(this,Cu,!0),s.borderColor=le.makeHexColor(0|w[0],0|w[1],0|w[2])):s.borderWidth=0}const u=le.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]),{pageWidth:d,pageHeight:f,pageX:h,pageY:p}=i.rawDims;s.left=100*(u[0]-h)/d+"%",s.top=100*(u[1]-p)/f+"%";const{rotation:m}=t;return t.hasOwnCanvas||m===0?(s.width=100*a/d+"%",s.height=100*c/f+"%"):this.setRotation(m,o),o}setRotation(e,t=this.container){if(!this.data.rect)return;const{pageWidth:r,pageHeight:i}=this.parent.viewport.rawDims,{width:o,height:s}=fo(this.data.rect);let a,c;e%180==0?(a=100*o/r,c=100*s/i):(a=100*s/r,c=100*o/i),t.style.width=`${a}%`,t.style.height=`${c}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(t,r,i)=>{const o=i.detail[t],s=o[0],a=o.slice(1);i.target.style[r]=QM[`${s}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[r]:QM[`${s}_rgb`](a)})};return Ie(this,"_commonActions",{display:t=>{const{display:r}=t.detail,i=r%2==1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:r===1||r===2})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{const{hidden:r}=t.detail;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:r,noView:r})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:t=>{const r=t.detail.rotation;this.setRotation(r),this.annotationStorage.setValue(this.data.id,{rotation:r})}})}_dispatchEventFromSandbox(e,t){const r=this._commonActions;for(const i of Object.keys(t.detail)){const o=e[i]||r[i];o==null||o(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const r=this._commonActions;for(const[i,o]of Object.entries(t)){const s=r[i];s&&(s({detail:{[i]:o},target:e}),delete t[i])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,r,i,o]=this.data.rect.map(y=>Math.fround(y));if(e.length===8){const[y,b,w,v]=e.subarray(2,6);if(i===y&&o===b&&t===w&&r===v)return}const{style:s}=this.container;let a;if(g(this,Cu)){const{borderColor:y,borderWidth:b}=s;s.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${y}" stroke-width="${b}">`],this.container.classList.add("hasBorder")}const c=i-t,u=o-r,{svgFactory:d}=this,f=d.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0);const h=d.createElement("defs");f.append(h);const p=d.createElement("clipPath"),m=`clippath_${this.data.id}`;p.setAttribute("id",m),p.setAttribute("clipPathUnits","objectBoundingBox"),h.append(p);for(let y=2,b=e.length;y<b;y+=8){const w=e[y],v=e[y+1],k=e[y+2],C=e[y+3],T=d.createElement("rect"),S=(k-t)/c,E=(o-v)/u,O=(w-k)/c,I=(v-C)/u;T.setAttribute("x",S),T.setAttribute("y",E),T.setAttribute("width",O),T.setAttribute("height",I),p.append(T),a==null||a.push(`<rect vector-effect="non-scaling-stroke" x="${S}" y="${E}" width="${O}" height="${I}"/>`)}g(this,Cu)&&(a.push("</g></svg>')"),s.backgroundImage=a.join("")),this.container.append(f),this.container.style.clipPath=`url(#${m})`}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const r=A(this,ku,new q4({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(r.render())}render(){Mt("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const r=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:o,id:s,exportValues:a}of i){if(o===-1||s===t)continue;const c=typeof a=="string"?a:null,u=document.querySelector(`[data-element-id="${s}"]`);!u||Qa.has(u)?r.push({id:s,exportValue:c,domElement:u}):ke(`_getElementsByName - element not allowed: ${s}`)}return r}for(const i of document.getElementsByName(e)){const{exportValue:o}=i,s=i.getAttribute("data-element-id");s!==t&&Qa.has(i)&&r.push({id:s,exportValue:o,domElement:i})}return r}show(){var e;this.container&&(this.container.hidden=!1),(e=this.popup)==null||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),(e=this.popup)==null||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",()=>{var r;(r=this.linkService.eventBus)==null||r.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})})}};s0=new WeakMap,Cu=new WeakMap,ku=new WeakMap,zh=new WeakSet,Nv=function(e){const{container:{style:t},data:{rect:r,rotation:i},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:s,pageX:a,pageY:c}}}}=this;r==null||r.splice(0,4,...e);const{width:u,height:d}=fo(e);t.left=100*(e[0]-a)/o+"%",t.top=100*(s-e[3]+c)/s+"%",i===0?(t.width=100*u/o+"%",t.height=100*d/s+"%"):this.setRotation(i)};let bt=iv;class JM extends bt{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!(r!=null&&r.ignoreBorder),createQuadrilaterals:!0});M(this,_o);M(this,ny);M(this,ry);this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,i=document.createElement("a");i.setAttribute("data-element-id",t.id);let o=!1;return t.url?(r.addLinkAttributes(i,t.url,t.newWindow),o=!0):t.action?(this._bindNamedAction(i,t.action),o=!0):t.attachment?(x(this,ny,DN).call(this,i,t.attachment,t.attachmentDest),o=!0):t.setOCGState?(x(this,ry,NN).call(this,i,t.setOCGState),o=!0):t.dest?(this._bindLink(i,t.dest),o=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,t),o=!0),t.resetForm?(this._bindResetFormAction(i,t.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(i,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(i),this.container}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&x(this,_o,B0).call(this)}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),x(this,_o,B0).call(this)}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(r.actions)){const s=i.get(o);s&&(t[s]=()=>{var a;return(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:o}}),!1})}t.onclick||(t.onclick=()=>!1),x(this,_o,B0).call(this)}_bindResetFormAction(t,r){const i=t.onclick;i||(t.href=this.linkService.getAnchorUrl("")),x(this,_o,B0).call(this),this._fieldObjects?t.onclick=()=>{var f;i==null||i();const{fields:o,refs:s,include:a}=r,c=[];if(o.length!==0||s.length!==0){const h=new Set(s);for(const p of o){const m=this._fieldObjects[p]||[];for(const{id:y}of m)h.add(y)}for(const p of Object.values(this._fieldObjects))for(const m of p)h.has(m.id)===a&&c.push(m)}else for(const h of Object.values(this._fieldObjects))c.push(...h);const u=this.annotationStorage,d=[];for(const h of c){const{id:p}=h;switch(d.push(p),h.type){case"text":{const y=h.defaultValue||"";u.setValue(p,{value:y});break}case"checkbox":case"radiobutton":{const y=h.defaultValue===h.exportValues;u.setValue(p,{value:y});break}case"combobox":case"listbox":{const y=h.defaultValue||"";u.setValue(p,{value:y});break}default:continue}const m=document.querySelector(`[data-element-id="${p}"]`);m&&(Qa.has(m)?m.dispatchEvent(new Event("resetform")):ke(`_bindResetFormAction - element not allowed: ${p}`))}return this.enableScripting&&((f=this.linkService.eventBus)==null||f.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}})),!1}:(ke('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(t.onclick=()=>!1))}}_o=new WeakSet,B0=function(){this.container.setAttribute("data-internal-link","")},ny=new WeakSet,DN=function(t,r,i=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>{var o;return(o=this.downloadManager)==null||o.openOrDownloadData(r.content,r.filename,i),!1},x(this,_o,B0).call(this)},ry=new WeakSet,NN=function(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),x(this,_o,B0).call(this)};class ZZ extends bt{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class Xa extends bt{render(){return this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&(((t=e.previousSibling)==null?void 0:t.nodeName)==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return Rn.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,r,i,o){r.includes("mouse")?e.addEventListener(r,s=>{var a;(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):e.addEventListener(r,s=>{var a;if(r==="blur"){if(!t.focused||!s.relatedTarget)return;t.focused=!1}else if(r==="focus"){if(t.focused)return;t.focused=!0}o&&((a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(s)}}))})}_setEventListeners(e,t,r,i){var o,s,a;for(const[c,u]of r)(u==="Action"||(o=this.data.actions)!=null&&o[u])&&(u!=="Focus"&&u!=="Blur"||t||(t={focused:!1}),this._setEventListener(e,t,c,u,i),u!=="Focus"||(s=this.data.actions)!=null&&s.Blur?u!=="Blur"||(a=this.data.actions)!=null&&a.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=t===null?"transparent":le.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style;let s;const a=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-2),u=c/(Math.round(c/(y4*i))||1);s=Math.min(i,a(u/y4))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);s=Math.min(i,a(c/y4))}o.fontSize=`calc(${s}px * var(--scale-factor))`,o.color=le.makeHexColor(r[0],r[1],r[2]),this.data.textAlignment!==null&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class WZ extends Xa{constructor(e){super(e,{isRenderable:e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,i){const o=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=r),o.setValue(s.id,{[i]:r})}render(){var i,o;const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let r=null;if(this.renderForms){const s=e.getValue(t,{value:this.data.fieldValue});let a=s.value||"";const c=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;c&&a.length>c&&(a=a.slice(0,c));let u=s.formattedValue||((i=this.data.textContent)==null?void 0:i.join(`
119
+ `)}}this.thumbnailsStyle.innerHTML=t},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,t={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var i=this.sortedResponsiveOptions[r];parseInt(i.breakpoint,10)>=e&&(t=i)}this.d_numVisible!==t.numVisible&&(this.d_numVisible=t.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:d4,ChevronRightIcon:t2,ChevronUpIcon:YS,ChevronDownIcon:n2},directives:{ripple:Pn}};function i2(n){"@babel/helpers - typeof";return i2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i2(n)}function JS(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Yp(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?JS(Object(t),!0).forEach(function(r){MH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):JS(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function MH(n,e,t){return e=EH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EH(n){var e=AH(n,"string");return i2(e)=="symbol"?e:String(e)}function AH(n,e){if(i2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(i2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var TH=["disabled","aria-label"],xH=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],IH=["tabindex","aria-label","aria-current","onClick"],OH=["disabled","aria-label"];function DH(n,e,t,r,i,o){var s=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:n.cx("thumbnailWrapper")},n.ptm("thumbnailWrapper")),[l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailContainer")},n.ptm("thumbnailContainer")),[t.showThumbnailNavigators?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,class:n.cx("previousThumbnailButton"),disabled:o.isNavBackwardDisabled(),type:"button","aria-label":o.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(a){return o.navBackward(a)})},Yp(Yp({},t.prevButtonProps),n.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.previousthumbnailicon||(t.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),l.mergeProps({class:n.cx("previousThumbnailIcon")},n.ptm("previousThumbnailIcon")),null,16,["class"]))],16,TH)),[[s]]):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailItemsContainer"),style:{height:t.isVertical?t.contentHeight:""}},n.ptm("thumbnailItemsContainer")),[l.createElementVNode("div",l.mergeProps({ref:"itemsContainer",class:n.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(a){return o.onTransitionEnd(a)}),onTouchstart:e[2]||(e[2]=function(a){return o.onTouchStart(a)}),onTouchmove:e[3]||(e[3]=function(a){return o.onTouchMove(a)}),onTouchend:e[4]||(e[4]=function(a){return o.onTouchEnd(a)})},n.ptm("thumbnailItems")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.value,function(a,c){return l.openBlock(),l.createElementBlock("div",l.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:n.cx("thumbnailItem",{index:c,activeIndex:t.activeIndex}),role:"tab","data-p-active":t.activeIndex===c,"aria-selected":t.activeIndex===c,"aria-controls":t.containerId+"_item_"+c,onKeydown:function(d){return o.onThumbnailKeydown(d,c)}},n.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":t.activeIndex===c,"data-p-galleria-thumbnail-item-active":o.isItemActive(c),"data-p-galleria-thumbnail-item-start":o.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":o.lastItemActiveIndex()===c}),[l.createElementVNode("div",l.mergeProps({class:n.cx("thumbnailItemContent"),tabindex:t.activeIndex===c?"0":"-1","aria-label":o.ariaPageLabel(c+1),"aria-current":t.activeIndex===c?"page":void 0,onClick:function(d){return o.onItemClick(c)}},n.ptm("thumbnailItemContent")),[t.templates.thumbnail?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.thumbnail),{key:0,item:a},null,8,["item"])):l.createCommentVNode("",!0)],16,IH)],16,xH)}),128))],16)],16),t.showThumbnailNavigators?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:1,class:n.cx("nextThumbnailButton"),disabled:o.isNavForwardDisabled(),type:"button","aria-label":o.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(a){return o.navForward(a)})},Yp(Yp({},t.nextButtonProps),n.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.templates.nextthumbnailicon||(t.isVertical?"ChevronDownIcon":"ChevronRightIcon")),l.mergeProps({class:n.cx("nextThumbnailIcon")},n.ptm("nextThumbnailIcon")),null,16,["class"]))],16,OH)),[[s]]):l.createCommentVNode("",!0)],16)],16)}XS.render=DH;function o2(n){"@babel/helpers - typeof";return o2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o2(n)}function eM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function tM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?eM(Object(t),!0).forEach(function(r){NH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):eM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function NH(n,e,t){return e=PH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PH(n){var e=_H(n,"string");return o2(e)=="symbol"?e:String(e)}function _H(n,e){if(o2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(o2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var nM={name:"GalleriaContent",hostName:"Galleria",extends:we,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||zr(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||zr()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||zr()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:tM(tM({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var t=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=t},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,t){var r=["top","left","bottom","right"],i=r.find(function(o){return o===t});return i?"".concat(e,"-").concat(i):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:QS,GalleriaThumbnails:XS,TimesIcon:Za},directives:{ripple:Pn}};function s2(n){"@babel/helpers - typeof";return s2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s2(n)}function rM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function iM(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?rM(Object(t),!0).forEach(function(r){LH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):rM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function LH(n,e,t){return e=BH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function BH(n){var e=RH(n,"string");return s2(e)=="symbol"?e:String(e)}function RH(n,e){if(s2(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(s2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var $H=["id","aria-label","aria-roledescription"],VH=["aria-label"],FH=["aria-live"];function jH(n,e,t,r,i,o){var s=l.resolveComponent("GalleriaItem"),a=l.resolveComponent("GalleriaThumbnails"),c=l.resolveDirective("ripple");return n.$attrs.value&&n.$attrs.value.length>0?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,id:i.id,role:"region",class:[n.cx("root"),n.$attrs.containerClass],style:n.$attrs.containerStyle,"aria-label":n.$attrs.ariaLabel,"aria-roledescription":n.$attrs.ariaRoledescription},iM(iM({},n.$attrs.containerProps),o.getPTOptions("root"))),[n.$attrs.fullScreen?l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({key:0,autofocus:"",type:"button",class:n.cx("closeButton"),"aria-label":o.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return n.$emit("mask-hide")})},o.getPTOptions("closeButton")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.closeicon||"TimesIcon"),l.mergeProps({class:n.cx("closeIcon")},o.getPTOptions("closeIcon")),null,16,["class"]))],16,VH)),[[c]]):l.createCommentVNode("",!0),n.$attrs.templates&&n.$attrs.templates.header?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:n.cx("header")},o.getPTOptions("header")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.header)))],16)):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("content"),"aria-live":n.$attrs.autoPlay?"polite":"off"},o.getPTOptions("content")),[l.createVNode(s,{id:i.id,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return i.slideShowActive=u}),value:n.$attrs.value,circular:n.$attrs.circular,templates:n.$attrs.templates,showIndicators:n.$attrs.showIndicators,changeItemOnIndicatorHover:n.$attrs.changeItemOnIndicatorHover,showItemNavigators:n.$attrs.showItemNavigators,autoPlay:n.$attrs.autoPlay,onStartSlideshow:o.startSlideShow,onStopSlideshow:o.stopSlideShow,pt:n.pt,unstyled:n.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),n.$attrs.showThumbnails?(l.openBlock(),l.createBlock(a,{key:0,activeIndex:i.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return i.activeIndex=u}),slideShowActive:i.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return i.slideShowActive=u}),containerId:i.id,value:n.$attrs.value,templates:n.$attrs.templates,numVisible:i.numVisible,responsiveOptions:n.$attrs.responsiveOptions,circular:n.$attrs.circular,isVertical:o.isVertical(),contentHeight:n.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:n.$attrs.showThumbnailNavigators,prevButtonProps:n.$attrs.prevButtonProps,nextButtonProps:n.$attrs.nextButtonProps,onStopSlideshow:o.stopSlideShow,pt:n.pt,unstyled:n.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):l.createCommentVNode("",!0)],16,FH),n.$attrs.templates&&n.$attrs.templates.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:2,class:n.cx("footer")},o.getPTOptions("footer")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$attrs.templates.footer)))],16)):l.createCommentVNode("",!0)],16,$H)):l.createCommentVNode("",!0)}nM.render=jH;var oM={name:"Galleria",extends:cH,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&_.unblockBodyScroll(),this.mask=null,this.container&&(no.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){no.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),_.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&_.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){no.clear(e),this.containerVisible=!1,_.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:nM,Portal:Gp},directives:{focustrap:qS}},zH=["aria-modal"];function HH(n,e,t,r,i,o){var s=l.resolveComponent("GalleriaContent"),a=l.resolveComponent("Portal"),c=l.resolveDirective("focustrap");return n.fullScreen?(l.openBlock(),l.createBlock(a,{key:0},{default:l.withCtx(function(){return[i.containerVisible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:o.maskRef,class:[n.cx("mask"),n.maskClass],role:"dialog","aria-modal":n.fullScreen?"true":void 0},n.ptm("mask")),[l.createVNode(l.Transition,l.mergeProps({name:"p-galleria",onBeforeEnter:o.onBeforeEnter,onEnter:o.onEnter,onBeforeLeave:o.onBeforeLeave,onAfterLeave:o.onAfterLeave,appear:""},n.ptm("transition")),{default:l.withCtx(function(){return[n.visible?l.withDirectives((l.openBlock(),l.createBlock(s,l.mergeProps({key:0,ref:o.containerRef,onMaskHide:o.maskHide,templates:n.$slots,onActiveitemChange:o.onActiveItemChange,pt:n.pt,unstyled:n.unstyled},n.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):l.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,zH)):l.createCommentVNode("",!0)]}),_:1})):(l.openBlock(),l.createBlock(s,l.mergeProps({key:1,templates:n.$slots,onActiveitemChange:o.onActiveItemChange,pt:n.pt,unstyled:n.unstyled},n.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}oM.render=HH;const UH=l.defineComponent({name:"QMenu",props:{modelValue:{type:Boolean,default:!1},actions:{type:Array},dismissibleOverlay:{type:Boolean,default:!0},links:{type:Array,required:!0},linksBackground:{type:String,default:"bg-white"},overlay:{type:String,default:"black-transparent"}},emits:["click:link","click:action"],setup(){return l.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),l.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{}}}),ZH=n=>(l.pushScopeId("data-v-bd24b7a3"),n=n(),l.popScopeId(),n),WH=["value"],qH=ZH(()=>l.createElementVNode("div",{class:"overlay"},null,-1)),KH={class:"q-menu-content px-4 pb-10"},GH=["onClick"],YH={class:"actions"},QH=["onClick"];function XH(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["q-menu",n.overlay]),value:n.modelValue},[qH,l.createElementVNode("div",KH,[l.renderSlot(n.$slots,"links",{},()=>[l.createElementVNode("ul",{class:l.normalizeClass(["links rounded-[0.8125rem] mb-2",n.linksBackground])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.links,(s,a)=>(l.openBlock(),l.createElementBlock("li",{key:a},[l.createElementVNode("a",{class:l.normalizeClass(["px-4 py-[1.125rem] flex items-center justify-center cursor-pointer text-inkwell-00 text-md",s.classes]),onClick:c=>n.$emit("click:link",s)},l.toDisplayString(s.text),11,GH)]))),128))],2)],!0),l.renderSlot(n.$slots,"actions",{},()=>[l.createElementVNode("ul",YH,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.actions,(s,a)=>(l.openBlock(),l.createElementBlock("li",{key:a},[l.createElementVNode("a",{class:"bg-white px-4 py-[1.125rem] rounded-[0.8125rem] flex items-center justify-center cursor-pointer text-blue-20 text-md font-semibold",onClick:c=>n.$emit("click:action",s)},l.toDisplayString(s.text),9,QH)]))),128))])],!0)])],10,WH)}const m4=me(UH,[["render",XH],["__scopeId","data-v-bd24b7a3"]]);var JH={9306:(n,e,t)=>{var r=t(4901),i=t(6823),o=TypeError;n.exports=function(s){if(r(s))return s;throw new o(i(s)+" is not a function")}},3506:(n,e,t)=>{var r=t(3925),i=String,o=TypeError;n.exports=function(s){if(r(s))return s;throw new o("Can't set "+i(s)+" as a prototype")}},7080:(n,e,t)=>{var r=t(4402).has;n.exports=function(i){return r(i),i}},679:(n,e,t)=>{var r=t(1625),i=TypeError;n.exports=function(o,s){if(r(s,o))return o;throw new i("Incorrect invocation")}},8551:(n,e,t)=>{var r=t(34),i=String,o=TypeError;n.exports=function(s){if(r(s))return s;throw new o(i(s)+" is not an object")}},7811:n=>{n.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(n,e,t)=>{var r=t(4576),i=t(6706),o=t(2195),s=r.ArrayBuffer,a=r.TypeError;n.exports=s&&i(s.prototype,"byteLength","get")||function(c){if(o(c)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return c.byteLength}},3238:(n,e,t)=>{var r=t(4576),i=t(7476),o=t(7394),s=r.ArrayBuffer,a=s&&s.prototype,c=a&&i(a.slice);n.exports=function(u){if(o(u)!==0||!c)return!1;try{return c(u,0,0),!1}catch{return!0}}},5169:(n,e,t)=>{var r=t(3238),i=TypeError;n.exports=function(o){if(r(o))throw new i("ArrayBuffer is detached");return o}},5636:(n,e,t)=>{var r=t(4576),i=t(9504),o=t(6706),s=t(7696),a=t(5169),c=t(7394),u=t(4483),d=t(1548),f=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,m=Math.min,y=h.prototype,b=p.prototype,w=i(y.slice),v=o(y,"resizable","get"),k=o(y,"maxByteLength","get"),C=i(b.getInt8),T=i(b.setInt8);n.exports=(d||u)&&function(S,E,O){var I,P=c(S),D=E===void 0?P:s(E),B=!v||!v(S);if(a(S),d&&(S=f(S,{transfer:[S]}),P===D&&(O||B)))return S;if(P>=D&&(!O||B))I=w(S,0,D);else{var V=O&&!B&&k?{maxByteLength:k(S)}:void 0;I=new h(D,V);for(var U=new p(S),L=new p(I),N=m(D,P),$=0;$<N;$++)T(L,$,C(U,$))}return d||u(S),I}},4644:(n,e,t)=>{var r,i,o,s=t(7811),a=t(3724),c=t(4576),u=t(4901),d=t(34),f=t(9297),h=t(6955),p=t(6823),m=t(6699),y=t(6840),b=t(2106),w=t(1625),v=t(2787),k=t(2967),C=t(8227),T=t(3392),S=t(1181),E=S.enforce,O=S.get,I=c.Int8Array,P=I&&I.prototype,D=c.Uint8ClampedArray,B=D&&D.prototype,V=I&&v(I),U=P&&v(P),L=Object.prototype,N=c.TypeError,$=C("toStringTag"),R=T("TYPED_ARRAY_TAG"),q="TypedArrayConstructor",re=s&&!!k&&h(c.opera)!=="Opera",ce=!1,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},j=function(G){var J=v(G);if(d(J)){var ae=O(J);return ae&&f(ae,q)?ae[q]:j(J)}},F=function(G){if(!d(G))return!1;var J=h(G);return f(K,J)||f(H,J)};for(r in K)(o=(i=c[r])&&i.prototype)?E(o)[q]=i:re=!1;for(r in H)(o=(i=c[r])&&i.prototype)&&(E(o)[q]=i);if((!re||!u(V)||V===Function.prototype)&&(V=function(){throw new N("Incorrect invocation")},re))for(r in K)c[r]&&k(c[r],V);if((!re||!U||U===L)&&(U=V.prototype,re))for(r in K)c[r]&&k(c[r].prototype,U);if(re&&v(B)!==U&&k(B,U),a&&!f(U,$)){ce=!0,b(U,$,{configurable:!0,get:function(){return d(this)?this[R]:void 0}});for(r in K)c[r]&&m(c[r],R,r)}n.exports={NATIVE_ARRAY_BUFFER_VIEWS:re,TYPED_ARRAY_TAG:ce&&R,aTypedArray:function(G){if(F(G))return G;throw new N("Target is not a typed array")},aTypedArrayConstructor:function(G){if(u(G)&&(!k||w(V,G)))return G;throw new N(p(G)+" is not a typed array constructor")},exportTypedArrayMethod:function(G,J,ae,Oe){if(a){if(ae)for(var be in K){var Le=c[be];if(Le&&f(Le.prototype,G))try{delete Le.prototype[G]}catch{try{Le.prototype[G]=J}catch{}}}U[G]&&!ae||y(U,G,ae?J:re&&P[G]||J,Oe)}},exportTypedArrayStaticMethod:function(G,J,ae){var Oe,be;if(a){if(k){if(ae){for(Oe in K)if((be=c[Oe])&&f(be,G))try{delete be[G]}catch{}}if(V[G]&&!ae)return;try{return y(V,G,ae?J:re&&V[G]||J)}catch{}}for(Oe in K)!(be=c[Oe])||be[G]&&!ae||y(be,G,J)}},getTypedArrayConstructor:j,isView:function(J){if(!d(J))return!1;var ae=h(J);return ae==="DataView"||f(K,ae)||f(H,ae)},isTypedArray:F,TypedArray:V,TypedArrayPrototype:U}},5370:(n,e,t)=>{var r=t(6198);n.exports=function(i,o,s){for(var a=0,c=arguments.length>2?s:r(o),u=new i(c);c>a;)u[a]=o[a++];return u}},9617:(n,e,t)=>{var r=t(5397),i=t(5610),o=t(6198),s=function(a){return function(c,u,d){var f=r(c),h=o(f);if(h===0)return!a&&-1;var p,m=i(d,h);if(a&&u!=u){for(;h>m;)if((p=f[m++])!=p)return!0}else for(;h>m;m++)if((a||m in f)&&f[m]===u)return a||m||0;return!a&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},4527:(n,e,t)=>{var r=t(3724),i=t(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(c){return c instanceof TypeError}}();n.exports=a?function(c,u){if(i(c)&&!s(c,"length").writable)throw new o("Cannot set read only .length");return c.length=u}:function(c,u){return c.length=u}},7628:(n,e,t)=>{var r=t(6198);n.exports=function(i,o){for(var s=r(i),a=new o(s),c=0;c<s;c++)a[c]=i[s-c-1];return a}},9928:(n,e,t)=>{var r=t(6198),i=t(1291),o=RangeError;n.exports=function(s,a,c,u){var d=r(s),f=i(c),h=f<0?d+f:f;if(h>=d||h<0)throw new o("Incorrect index");for(var p=new a(d),m=0;m<d;m++)p[m]=m===h?u:s[m];return p}},6319:(n,e,t)=>{var r=t(8551),i=t(9539);n.exports=function(o,s,a,c){try{return c?s(r(a)[0],a[1]):s(a)}catch(u){i(o,"throw",u)}}},2195:(n,e,t)=>{var r=t(9504),i=r({}.toString),o=r("".slice);n.exports=function(s){return o(i(s),8,-1)}},6955:(n,e,t)=>{var r=t(2140),i=t(4901),o=t(2195),s=t(8227)("toStringTag"),a=Object,c=o(function(){return arguments}())==="Arguments";n.exports=r?o:function(u){var d,f,h;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(p,m){try{return p[m]}catch{}}(d=a(u),s))=="string"?f:c?o(d):(h=o(d))==="Object"&&i(d.callee)?"Arguments":h}},7740:(n,e,t)=>{var r=t(9297),i=t(5031),o=t(7347),s=t(4913);n.exports=function(a,c,u){for(var d=i(c),f=s.f,h=o.f,p=0;p<d.length;p++){var m=d[p];r(a,m)||u&&r(u,m)||f(a,m,h(c,m))}}},2211:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},2529:n=>{n.exports=function(e,t){return{value:e,done:t}}},6699:(n,e,t)=>{var r=t(3724),i=t(4913),o=t(6980);n.exports=r?function(s,a,c){return i.f(s,a,o(1,c))}:function(s,a,c){return s[a]=c,s}},6980:n=>{n.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:(n,e,t)=>{var r=t(3724),i=t(4913),o=t(6980);n.exports=function(s,a,c){r?i.f(s,a,o(0,c)):s[a]=c}},2106:(n,e,t)=>{var r=t(283),i=t(4913);n.exports=function(o,s,a){return a.get&&r(a.get,s,{getter:!0}),a.set&&r(a.set,s,{setter:!0}),i.f(o,s,a)}},6840:(n,e,t)=>{var r=t(4901),i=t(4913),o=t(283),s=t(9433);n.exports=function(a,c,u,d){d||(d={});var f=d.enumerable,h=d.name!==void 0?d.name:c;if(r(u)&&o(u,h,d),d.global)f?a[c]=u:s(c,u);else{try{d.unsafe?a[c]&&(f=!0):delete a[c]}catch{}f?a[c]=u:i.f(a,c,{value:u,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return a}},6279:(n,e,t)=>{var r=t(6840);n.exports=function(i,o,s){for(var a in o)r(i,a,o[a],s);return i}},9433:(n,e,t)=>{var r=t(4576),i=Object.defineProperty;n.exports=function(o,s){try{i(r,o,{value:s,configurable:!0,writable:!0})}catch{r[o]=s}return s}},3724:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483:(n,e,t)=>{var r,i,o,s,a=t(4576),c=t(9429),u=t(1548),d=a.structuredClone,f=a.ArrayBuffer,h=a.MessageChannel,p=!1;if(u)p=function(m){d(m,{transfer:[m]})};else if(f)try{h||(r=c("worker_threads"))&&(h=r.MessageChannel),h&&(i=new h,o=new f(2),s=function(m){i.port1.postMessage(null,[m])},o.byteLength===2&&(s(o),o.byteLength===0&&(p=s)))}catch{}n.exports=p},4055:(n,e,t)=>{var r=t(4576),i=t(34),o=r.document,s=i(o)&&i(o.createElement);n.exports=function(a){return s?o.createElement(a):{}}},6837:n=>{var e=TypeError;n.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},5002:n=>{n.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:n=>{n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193:(n,e,t)=>{var r=t(4215);n.exports=r==="NODE"},2839:(n,e,t)=>{var r=t(4576).navigator,i=r&&r.userAgent;n.exports=i?String(i):""},9519:(n,e,t)=>{var r,i,o=t(4576),s=t(2839),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,d=u&&u.v8;d&&(i=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),n.exports=i},4215:(n,e,t)=>{var r=t(4576),i=t(2839),o=t(2195),s=function(a){return i.slice(0,a.length)===a};n.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":o(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"},8574:(n,e,t)=>{var r=t(9504),i=Error,o=r("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);n.exports=function(u,d){if(c&&typeof u=="string"&&!i.prepareStackTrace)for(;d--;)u=o(u,a,"");return u}},6518:(n,e,t)=>{var r=t(4576),i=t(7347).f,o=t(6699),s=t(6840),a=t(9433),c=t(7740),u=t(2796);n.exports=function(d,f){var h,p,m,y,b,w=d.target,v=d.global,k=d.stat;if(h=v?r:k?r[w]||a(w,{}):r[w]&&r[w].prototype)for(p in f){if(y=f[p],m=d.dontCallGetSet?(b=i(h,p))&&b.value:h[p],!u(v?p:w+(k?".":"#")+p,d.forced)&&m!==void 0){if(typeof y==typeof m)continue;c(y,m)}(d.sham||m&&m.sham)&&o(y,"sham",!0),s(h,p,y,d)}}},9039:n=>{n.exports=function(e){try{return!!e()}catch{return!0}}},6080:(n,e,t)=>{var r=t(7476),i=t(9306),o=t(616),s=r(r.bind);n.exports=function(a,c){return i(a),c===void 0?a:o?s(a,c):function(){return a.apply(c,arguments)}}},616:(n,e,t)=>{var r=t(9039);n.exports=!r(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9565:(n,e,t)=>{var r=t(616),i=Function.prototype.call;n.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350:(n,e,t)=>{var r=t(3724),i=t(9297),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&(function(){}).name==="something",u=a&&(!r||r&&s(o,"name").configurable);n.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:(n,e,t)=>{var r=t(9504),i=t(9306);n.exports=function(o,s,a){try{return r(i(Object.getOwnPropertyDescriptor(o,s)[a]))}catch{}}},7476:(n,e,t)=>{var r=t(2195),i=t(9504);n.exports=function(o){if(r(o)==="Function")return i(o)}},9504:(n,e,t)=>{var r=t(616),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);n.exports=r?s:function(a){return function(){return o.apply(a,arguments)}}},9429:(n,e,t)=>{var r=t(4576),i=t(6193);n.exports=function(o){if(i){try{return r.process.getBuiltinModule(o)}catch{}try{return Function('return require("'+o+'")')()}catch{}}}},7751:(n,e,t)=>{var r=t(4576),i=t(4901);n.exports=function(o,s){return arguments.length<2?(a=r[o],i(a)?a:void 0):r[o]&&r[o][s];var a}},1767:n=>{n.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8646:(n,e,t)=>{var r=t(9565),i=t(8551),o=t(1767),s=t(851);n.exports=function(a,c){c&&typeof a=="string"||i(a);var u=s(a);return o(i(u!==void 0?r(u,a):a))}},851:(n,e,t)=>{var r=t(6955),i=t(5966),o=t(4117),s=t(6269),a=t(8227)("iterator");n.exports=function(c){if(!o(c))return i(c,a)||i(c,"@@iterator")||s[r(c)]}},81:(n,e,t)=>{var r=t(9565),i=t(9306),o=t(8551),s=t(6823),a=t(851),c=TypeError;n.exports=function(u,d){var f=arguments.length<2?a(u):d;if(i(f))return o(r(f,u));throw new c(s(u)+" is not iterable")}},5966:(n,e,t)=>{var r=t(9306),i=t(4117);n.exports=function(o,s){var a=o[s];return i(a)?void 0:r(a)}},3789:(n,e,t)=>{var r=t(9306),i=t(8551),o=t(9565),s=t(1291),a=t(1767),c="Invalid size",u=RangeError,d=TypeError,f=Math.max,h=function(p,m){this.set=p,this.size=f(m,0),this.has=r(p.has),this.keys=r(p.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(p){return o(this.has,this.set,p)}},n.exports=function(p){i(p);var m=+p.size;if(m!=m)throw new d(c);var y=s(m);if(y<0)throw new u(c);return new h(p,y)}},4576:function(n){var e=function(t){return t&&t.Math===Math&&t};n.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:(n,e,t)=>{var r=t(9504),i=t(8981),o=r({}.hasOwnProperty);n.exports=Object.hasOwn||function(a,c){return o(i(a),c)}},421:n=>{n.exports={}},397:(n,e,t)=>{var r=t(7751);n.exports=r("document","documentElement")},5917:(n,e,t)=>{var r=t(3724),i=t(9039),o=t(4055);n.exports=!r&&!i(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},7055:(n,e,t)=>{var r=t(9504),i=t(9039),o=t(2195),s=Object,a=r("".split);n.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return o(c)==="String"?a(c,""):s(c)}:s},3167:(n,e,t)=>{var r=t(4901),i=t(34),o=t(2967);n.exports=function(s,a,c){var u,d;return o&&r(u=a.constructor)&&u!==c&&i(d=u.prototype)&&d!==c.prototype&&o(s,d),s}},3706:(n,e,t)=>{var r=t(9504),i=t(4901),o=t(7629),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(a){return s(a)}),n.exports=o.inspectSource},1181:(n,e,t)=>{var r,i,o,s=t(8622),a=t(4576),c=t(34),u=t(6699),d=t(9297),f=t(7629),h=t(6119),p=t(421),m="Object already initialized",y=a.TypeError,b=a.WeakMap;if(s||f.state){var w=f.state||(f.state=new b);w.get=w.get,w.has=w.has,w.set=w.set,r=function(k,C){if(w.has(k))throw new y(m);return C.facade=k,w.set(k,C),C},i=function(k){return w.get(k)||{}},o=function(k){return w.has(k)}}else{var v=h("state");p[v]=!0,r=function(k,C){if(d(k,v))throw new y(m);return C.facade=k,u(k,v,C),C},i=function(k){return d(k,v)?k[v]:{}},o=function(k){return d(k,v)}}n.exports={set:r,get:i,has:o,enforce:function(k){return o(k)?i(k):r(k,{})},getterFor:function(k){return function(C){var T;if(!c(C)||(T=i(C)).type!==k)throw new y("Incompatible receiver, "+k+" required");return T}}}},4209:(n,e,t)=>{var r=t(8227),i=t(6269),o=r("iterator"),s=Array.prototype;n.exports=function(a){return a!==void 0&&(i.Array===a||s[o]===a)}},4376:(n,e,t)=>{var r=t(2195);n.exports=Array.isArray||function(o){return r(o)==="Array"}},1108:(n,e,t)=>{var r=t(6955);n.exports=function(i){var o=r(i);return o==="BigInt64Array"||o==="BigUint64Array"}},4901:n=>{var e=typeof document=="object"&&document.all;n.exports=e===void 0&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796:(n,e,t)=>{var r=t(9039),i=t(4901),o=/#|\.prototype\./,s=function(f,h){var p=c[a(f)];return p===d||p!==u&&(i(h)?r(h):!!h)},a=s.normalize=function(f){return String(f).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",d=s.POLYFILL="P";n.exports=s},4117:n=>{n.exports=function(e){return e==null}},34:(n,e,t)=>{var r=t(4901);n.exports=function(i){return typeof i=="object"?i!==null:r(i)}},3925:(n,e,t)=>{var r=t(34);n.exports=function(i){return r(i)||i===null}},6395:n=>{n.exports=!1},757:(n,e,t)=>{var r=t(7751),i=t(4901),o=t(1625),s=t(7040),a=Object;n.exports=s?function(c){return typeof c=="symbol"}:function(c){var u=r("Symbol");return i(u)&&o(u.prototype,a(c))}},507:(n,e,t)=>{var r=t(9565);n.exports=function(i,o,s){for(var a,c,u=s?i:i.iterator,d=i.next;!(a=r(d,u)).done;)if((c=o(a.value))!==void 0)return c}},2652:(n,e,t)=>{var r=t(6080),i=t(9565),o=t(8551),s=t(6823),a=t(4209),c=t(6198),u=t(1625),d=t(81),f=t(851),h=t(9539),p=TypeError,m=function(b,w){this.stopped=b,this.result=w},y=m.prototype;n.exports=function(b,w,v){var k,C,T,S,E,O,I,P=v&&v.that,D=!(!v||!v.AS_ENTRIES),B=!(!v||!v.IS_RECORD),V=!(!v||!v.IS_ITERATOR),U=!(!v||!v.INTERRUPTED),L=r(w,P),N=function(R){return k&&h(k,"normal",R),new m(!0,R)},$=function(R){return D?(o(R),U?L(R[0],R[1],N):L(R[0],R[1])):U?L(R,N):L(R)};if(B)k=b.iterator;else if(V)k=b;else{if(!(C=f(b)))throw new p(s(b)+" is not iterable");if(a(C)){for(T=0,S=c(b);S>T;T++)if((E=$(b[T]))&&u(y,E))return E;return new m(!1)}k=d(b,C)}for(O=B?b.next:k.next;!(I=i(O,k)).done;){try{E=$(I.value)}catch(R){h(k,"throw",R)}if(typeof E=="object"&&E&&u(y,E))return E}return new m(!1)}},9539:(n,e,t)=>{var r=t(9565),i=t(8551),o=t(5966);n.exports=function(s,a,c){var u,d;i(s);try{if(!(u=o(s,"return"))){if(a==="throw")throw c;return c}u=r(u,s)}catch(f){d=!0,u=f}if(a==="throw")throw c;if(d)throw u;return i(u),c}},9462:(n,e,t)=>{var r=t(9565),i=t(2360),o=t(6699),s=t(6279),a=t(8227),c=t(1181),u=t(5966),d=t(7657).IteratorPrototype,f=t(2529),h=t(9539),p=a("toStringTag"),m="IteratorHelper",y="WrapForValidIterator",b=c.set,w=function(C){var T=c.getterFor(C?y:m);return s(i(d),{next:function(){var E=T(this);if(C)return E.nextHandler();try{var O=E.done?void 0:E.nextHandler();return f(O,E.done)}catch(I){throw E.done=!0,I}},return:function(){var S=T(this),E=S.iterator;if(S.done=!0,C){var O=u(E,"return");return O?r(O,E):f(void 0,!0)}if(S.inner)try{h(S.inner.iterator,"normal")}catch(I){return h(E,"throw",I)}return h(E,"normal"),f(void 0,!0)}})},v=w(!0),k=w(!1);o(k,p,"Iterator Helper"),n.exports=function(C,T){var S=function(O,I){I?(I.iterator=O.iterator,I.next=O.next):I=O,I.type=T?y:m,I.nextHandler=C,I.counter=0,I.done=!1,b(this,I)};return S.prototype=T?v:k,S}},713:(n,e,t)=>{var r=t(9565),i=t(9306),o=t(8551),s=t(1767),a=t(9462),c=t(6319),u=a(function(){var d=this.iterator,f=o(r(this.next,d));if(!(this.done=!!f.done))return c(d,this.mapper,[f.value,this.counter++],!0)});n.exports=function(f){return o(this),i(f),new u(s(this),{mapper:f})}},7657:(n,e,t)=>{var r,i,o,s=t(9039),a=t(4901),c=t(34),u=t(2360),d=t(2787),f=t(6840),h=t(8227),p=t(6395),m=h("iterator"),y=!1;[].keys&&("next"in(o=[].keys())?(i=d(d(o)))!==Object.prototype&&(r=i):y=!0),!c(r)||s(function(){var b={};return r[m].call(b)!==b})?r={}:p&&(r=u(r)),a(r[m])||f(r,m,function(){return this}),n.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},6269:n=>{n.exports={}},6198:(n,e,t)=>{var r=t(8014);n.exports=function(i){return r(i.length)}},283:(n,e,t)=>{var r=t(9504),i=t(9039),o=t(4901),s=t(9297),a=t(3724),c=t(350).CONFIGURABLE,u=t(3706),d=t(1181),f=d.enforce,h=d.get,p=String,m=Object.defineProperty,y=r("".slice),b=r("".replace),w=r([].join),v=a&&!i(function(){return m(function(){},"length",{value:8}).length!==8}),k=String(String).split("String"),C=n.exports=function(T,S,E){y(p(S),0,7)==="Symbol("&&(S="["+b(p(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),E&&E.getter&&(S="get "+S),E&&E.setter&&(S="set "+S),(!s(T,"name")||c&&T.name!==S)&&(a?m(T,"name",{value:S,configurable:!0}):T.name=S),v&&E&&s(E,"arity")&&T.length!==E.arity&&m(T,"length",{value:E.arity});try{E&&s(E,"constructor")&&E.constructor?a&&m(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch{}var O=f(T);return s(O,"source")||(O.source=w(k,typeof S=="string"?S:"")),T};Function.prototype.toString=C(function(){return o(this)&&h(this).source||u(this)},"toString")},741:n=>{var e=Math.ceil,t=Math.floor;n.exports=Math.trunc||function(i){var o=+i;return(o>0?t:e)(o)}},6043:(n,e,t)=>{var r=t(9306),i=TypeError,o=function(s){var a,c;this.promise=new s(function(u,d){if(a!==void 0||c!==void 0)throw new i("Bad Promise constructor");a=u,c=d}),this.resolve=r(a),this.reject=r(c)};n.exports.f=function(s){return new o(s)}},2603:(n,e,t)=>{var r=t(655);n.exports=function(i,o){return i===void 0?arguments.length<2?"":o:r(i)}},4149:n=>{var e=RangeError;n.exports=function(t){if(t==t)return t;throw new e("NaN is not allowed")}},2360:(n,e,t)=>{var r,i=t(8551),o=t(6801),s=t(8727),a=t(421),c=t(397),u=t(4055),d=t(6119),f="prototype",h="script",p=d("IE_PROTO"),m=function(){},y=function(v){return"<"+h+">"+v+"</"+h+">"},b=function(v){v.write(y("")),v.close();var k=v.parentWindow.Object;return v=null,k},w=function(){try{r=new ActiveXObject("htmlfile")}catch{}w=typeof document<"u"?document.domain&&r?b(r):function(){var k,C=u("iframe"),T="java"+h+":";return C.style.display="none",c.appendChild(C),C.src=String(T),(k=C.contentWindow.document).open(),k.write(y("document.F=Object")),k.close(),k.F}():b(r);for(var v=s.length;v--;)delete w[f][s[v]];return w()};a[p]=!0,n.exports=Object.create||function(k,C){var T;return k!==null?(m[f]=i(k),T=new m,m[f]=null,T[p]=k):T=w(),C===void 0?T:o.f(T,C)}},6801:(n,e,t)=>{var r=t(3724),i=t(8686),o=t(4913),s=t(8551),a=t(5397),c=t(1072);e.f=r&&!i?Object.defineProperties:function(d,f){s(d);for(var h,p=a(f),m=c(f),y=m.length,b=0;y>b;)o.f(d,h=m[b++],p[h]);return d}},4913:(n,e,t)=>{var r=t(3724),i=t(5917),o=t(8686),s=t(8551),a=t(6969),c=TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?o?function(y,b,w){if(s(y),b=a(b),s(w),typeof y=="function"&&b==="prototype"&&"value"in w&&p in w&&!w[p]){var v=d(y,b);v&&v[p]&&(y[b]=w.value,w={configurable:h in w?w[h]:v[h],enumerable:f in w?w[f]:v[f],writable:!1})}return u(y,b,w)}:u:function(y,b,w){if(s(y),b=a(b),s(w),i)try{return u(y,b,w)}catch{}if("get"in w||"set"in w)throw new c("Accessors not supported");return"value"in w&&(y[b]=w.value),y}},7347:(n,e,t)=>{var r=t(3724),i=t(9565),o=t(8773),s=t(6980),a=t(5397),c=t(6969),u=t(9297),d=t(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(p,m){if(p=a(p),m=c(m),d)try{return f(p,m)}catch{}if(u(p,m))return s(!i(o.f,p,m),p[m])}},8480:(n,e,t)=>{var r=t(1828),i=t(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return r(s,i)}},3717:(n,e)=>{e.f=Object.getOwnPropertySymbols},2787:(n,e,t)=>{var r=t(9297),i=t(4901),o=t(8981),s=t(6119),a=t(2211),c=s("IE_PROTO"),u=Object,d=u.prototype;n.exports=a?u.getPrototypeOf:function(f){var h=o(f);if(r(h,c))return h[c];var p=h.constructor;return i(p)&&h instanceof p?p.prototype:h instanceof u?d:null}},1625:(n,e,t)=>{var r=t(9504);n.exports=r({}.isPrototypeOf)},1828:(n,e,t)=>{var r=t(9504),i=t(9297),o=t(5397),s=t(9617).indexOf,a=t(421),c=r([].push);n.exports=function(u,d){var f,h=o(u),p=0,m=[];for(f in h)!i(a,f)&&i(h,f)&&c(m,f);for(;d.length>p;)i(h,f=d[p++])&&(~s(m,f)||c(m,f));return m}},1072:(n,e,t)=>{var r=t(1828),i=t(8727);n.exports=Object.keys||function(s){return r(s,i)}},8773:(n,e)=>{var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!t.call({1:2},1);e.f=i?function(s){var a=r(this,s);return!!a&&a.enumerable}:t},2967:(n,e,t)=>{var r=t(6706),i=t(34),o=t(7750),s=t(3506);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,c=!1,u={};try{(a=r(Object.prototype,"__proto__","set"))(u,[]),c=u instanceof Array}catch{}return function(f,h){return o(f),s(h),i(f)&&(c?a(f,h):f.__proto__=h),f}}():void 0)},4270:(n,e,t)=>{var r=t(9565),i=t(4901),o=t(34),s=TypeError;n.exports=function(a,c){var u,d;if(c==="string"&&i(u=a.toString)&&!o(d=r(u,a))||i(u=a.valueOf)&&!o(d=r(u,a))||c!=="string"&&i(u=a.toString)&&!o(d=r(u,a)))return d;throw new s("Can't convert object to primitive value")}},5031:(n,e,t)=>{var r=t(7751),i=t(9504),o=t(8480),s=t(3717),a=t(8551),c=i([].concat);n.exports=r("Reflect","ownKeys")||function(d){var f=o.f(a(d)),h=s.f;return h?c(f,h(d)):f}},8235:(n,e,t)=>{var r=t(9504),i=t(9297),o=SyntaxError,s=parseInt,a=String.fromCharCode,c=r("".charAt),u=r("".slice),d=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
120
+ `,"\\r":"\r","\\t":" "},h=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;n.exports=function(m,y){for(var b=!0,w="";y<m.length;){var v=c(m,y);if(v==="\\"){var k=u(m,y,y+2);if(i(f,k))w+=f[k],y+=2;else{if(k!=="\\u")throw new o('Unknown escape sequence: "'+k+'"');var C=u(m,y+=2,y+4);if(!d(h,C))throw new o("Bad Unicode escape at: "+y);w+=a(s(C,16)),y+=4}}else{if(v==='"'){b=!1,y++;break}if(d(p,v))throw new o("Bad control character in string literal at: "+y);w+=v,y++}}if(b)throw new o("Unterminated string at: "+y);return{value:w,end:y}}},7750:(n,e,t)=>{var r=t(4117),i=TypeError;n.exports=function(o){if(r(o))throw new i("Can't call method on "+o);return o}},9286:(n,e,t)=>{var r=t(4402),i=t(8469),o=r.Set,s=r.add;n.exports=function(a){var c=new o;return i(a,function(u){s(c,u)}),c}},3440:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(9286),s=t(5170),a=t(3789),c=t(8469),u=t(507),d=i.has,f=i.remove;n.exports=function(p){var m=r(this),y=a(p),b=o(m);return s(m)<=y.size?c(m,function(w){y.includes(w)&&f(b,w)}):u(y.getIterator(),function(w){d(m,w)&&f(b,w)}),b}},4402:(n,e,t)=>{var r=t(9504),i=Set.prototype;n.exports={Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},8750:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(5170),s=t(3789),a=t(8469),c=t(507),u=i.Set,d=i.add,f=i.has;n.exports=function(p){var m=r(this),y=s(p),b=new u;return o(m)>y.size?c(y.getIterator(),function(w){f(m,w)&&d(b,w)}):a(m,function(w){y.includes(w)&&d(b,w)}),b}},4449:(n,e,t)=>{var r=t(7080),i=t(4402).has,o=t(5170),s=t(3789),a=t(8469),c=t(507),u=t(9539);n.exports=function(f){var h=r(this),p=s(f);if(o(h)<=p.size)return a(h,function(y){if(p.includes(y))return!1},!0)!==!1;var m=p.getIterator();return c(m,function(y){if(i(h,y))return u(m,"normal",!1)})!==!1}},3838:(n,e,t)=>{var r=t(7080),i=t(5170),o=t(8469),s=t(3789);n.exports=function(c){var u=r(this),d=s(c);return!(i(u)>d.size)&&o(u,function(f){if(!d.includes(f))return!1},!0)!==!1}},8527:(n,e,t)=>{var r=t(7080),i=t(4402).has,o=t(5170),s=t(3789),a=t(507),c=t(9539);n.exports=function(d){var f=r(this),h=s(d);if(o(f)<h.size)return!1;var p=h.getIterator();return a(p,function(m){if(!i(f,m))return c(p,"normal",!1)})!==!1}},8469:(n,e,t)=>{var r=t(9504),i=t(507),o=t(4402),s=o.Set,a=o.proto,c=r(a.forEach),u=r(a.keys),d=u(new s).next;n.exports=function(f,h,p){return p?i({iterator:u(f),next:d},h):c(f,h)}},4916:(n,e,t)=>{var r=t(7751),i=function(o){return{size:o,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};n.exports=function(o){var s=r("Set");try{new s()[o](i(0));try{return new s()[o](i(-1)),!1}catch{return!0}}catch{return!1}}},5170:(n,e,t)=>{var r=t(6706),i=t(4402);n.exports=r(i.proto,"size","get")||function(o){return o.size}},3650:(n,e,t)=>{var r=t(7080),i=t(4402),o=t(9286),s=t(3789),a=t(507),c=i.add,u=i.has,d=i.remove;n.exports=function(h){var p=r(this),m=s(h).getIterator(),y=o(p);return a(m,function(b){u(p,b)?d(y,b):c(y,b)}),y}},4204:(n,e,t)=>{var r=t(7080),i=t(4402).add,o=t(9286),s=t(3789),a=t(507);n.exports=function(u){var d=r(this),f=s(u).getIterator(),h=o(d);return a(f,function(p){i(h,p)}),h}},6119:(n,e,t)=>{var r=t(5745),i=t(3392),o=r("keys");n.exports=function(s){return o[s]||(o[s]=i(s))}},7629:(n,e,t)=>{var r=t(6395),i=t(4576),o=t(9433),s="__core-js_shared__",a=n.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(n,e,t)=>{var r=t(7629);n.exports=function(i,o){return r[i]||(r[i]=o||{})}},1548:(n,e,t)=>{var r=t(4576),i=t(9039),o=t(9519),s=t(4215),a=r.structuredClone;n.exports=!!a&&!i(function(){if(s==="DENO"&&o>92||s==="NODE"&&o>94||s==="BROWSER"&&o>97)return!1;var c=new ArrayBuffer(8),u=a(c,{transfer:[c]});return c.byteLength!==0||u.byteLength!==8})},4495:(n,e,t)=>{var r=t(9519),i=t(9039),o=t(4576).String;n.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:(n,e,t)=>{var r=t(1291),i=Math.max,o=Math.min;n.exports=function(s,a){var c=r(s);return c<0?i(c+a,0):o(c,a)}},5854:(n,e,t)=>{var r=t(2777),i=TypeError;n.exports=function(o){var s=r(o,"number");if(typeof s=="number")throw new i("Can't convert number to bigint");return BigInt(s)}},7696:(n,e,t)=>{var r=t(1291),i=t(8014),o=RangeError;n.exports=function(s){if(s===void 0)return 0;var a=r(s),c=i(a);if(a!==c)throw new o("Wrong length or index");return c}},5397:(n,e,t)=>{var r=t(7055),i=t(7750);n.exports=function(o){return r(i(o))}},1291:(n,e,t)=>{var r=t(741);n.exports=function(i){var o=+i;return o!=o||o===0?0:r(o)}},8014:(n,e,t)=>{var r=t(1291),i=Math.min;n.exports=function(o){var s=r(o);return s>0?i(s,9007199254740991):0}},8981:(n,e,t)=>{var r=t(7750),i=Object;n.exports=function(o){return i(r(o))}},9590:(n,e,t)=>{var r=t(1291),i=RangeError;n.exports=function(o){var s=r(o);if(s<0)throw new i("The argument can't be less than 0");return s}},2777:(n,e,t)=>{var r=t(9565),i=t(34),o=t(757),s=t(5966),a=t(4270),c=t(8227),u=TypeError,d=c("toPrimitive");n.exports=function(f,h){if(!i(f)||o(f))return f;var p,m=s(f,d);if(m){if(h===void 0&&(h="default"),p=r(m,f,h),!i(p)||o(p))return p;throw new u("Can't convert object to primitive value")}return h===void 0&&(h="number"),a(f,h)}},6969:(n,e,t)=>{var r=t(2777),i=t(757);n.exports=function(o){var s=r(o,"string");return i(s)?s:s+""}},2140:(n,e,t)=>{var r={};r[t(8227)("toStringTag")]="z",n.exports=String(r)==="[object z]"},655:(n,e,t)=>{var r=t(6955),i=String;n.exports=function(o){if(r(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(o)}},6823:n=>{var e=String;n.exports=function(t){try{return e(t)}catch{return"Object"}}},3392:(n,e,t)=>{var r=t(9504),i=0,o=Math.random(),s=r(1 .toString);n.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+s(++i+o,36)}},7040:(n,e,t)=>{var r=t(4495);n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:(n,e,t)=>{var r=t(3724),i=t(9039);n.exports=r&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812:n=>{var e=TypeError;n.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:(n,e,t)=>{var r=t(4576),i=t(4901),o=r.WeakMap;n.exports=i(o)&&/native code/.test(String(o))},8227:(n,e,t)=>{var r=t(4576),i=t(5745),o=t(9297),s=t(3392),a=t(4495),c=t(7040),u=r.Symbol,d=i("wks"),f=c?u.for||u:u&&u.withoutSetter||s;n.exports=function(h){return o(d,h)||(d[h]=a&&o(u,h)?u[h]:f("Symbol."+h)),d[h]}},6573:(n,e,t)=>{var r=t(3724),i=t(2106),o=t(3238),s=ArrayBuffer.prototype;r&&!("detached"in s)&&i(s,"detached",{configurable:!0,get:function(){return o(this)}})},7936:(n,e,t)=>{var r=t(6518),i=t(5636);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100:(n,e,t)=>{var r=t(6518),i=t(5636);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4114:(n,e,t)=>{var r=t(6518),i=t(8981),o=t(6198),s=t(4527),a=t(6837);r({target:"Array",proto:!0,arity:1,forced:t(9039)(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(c){return c instanceof TypeError}}()},{push:function(u){var d=i(this),f=o(d),h=arguments.length;a(f+h);for(var p=0;p<h;p++)d[f]=arguments[p],f++;return s(d,f),f}})},4628:(n,e,t)=>{var r=t(6518),i=t(6043);r({target:"Promise",stat:!0},{withResolvers:function(){var s=i.f(this);return{promise:s.promise,resolve:s.resolve,reject:s.reject}}})},7642:(n,e,t)=>{var r=t(6518),i=t(3440);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("difference")},{difference:i})},8004:(n,e,t)=>{var r=t(6518),i=t(9039),o=t(8750);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("intersection")||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"})},{intersection:o})},3853:(n,e,t)=>{var r=t(6518),i=t(4449);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isDisjointFrom")},{isDisjointFrom:i})},5876:(n,e,t)=>{var r=t(6518),i=t(3838);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isSubsetOf")},{isSubsetOf:i})},2475:(n,e,t)=>{var r=t(6518),i=t(8527);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("isSupersetOf")},{isSupersetOf:i})},5024:(n,e,t)=>{var r=t(6518),i=t(3650);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("symmetricDifference")},{symmetricDifference:i})},1698:(n,e,t)=>{var r=t(6518),i=t(4204);r({target:"Set",proto:!0,real:!0,forced:!t(4916)("union")},{union:i})},7467:(n,e,t)=>{var r=t(7628),i=t(4644),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",function(){return r(o(this),a(this))})},4732:(n,e,t)=>{var r=t(4644),i=t(9504),o=t(9306),s=t(5370),a=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=i(r.TypedArrayPrototype.sort);u("toSorted",function(h){h!==void 0&&o(h);var p=a(this),m=s(c(p),p);return d(m,h)})},9577:(n,e,t)=>{var r=t(9928),i=t(4644),o=t(1108),s=t(1291),a=t(5854),c=i.aTypedArray,u=i.getTypedArrayConstructor,d=i.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(h){return h===8}}();d("with",function(h,p){var m=c(this),y=s(h),b=o(m)?a(p):+p;return r(m,u(m),y,b)},!f)},8992:(n,e,t)=>{var r=t(6518),i=t(4576),o=t(679),s=t(8551),a=t(4901),c=t(2787),u=t(2106),d=t(4659),f=t(9039),h=t(9297),p=t(8227),m=t(7657).IteratorPrototype,y=t(3724),b=t(6395),w="constructor",v="Iterator",k=p("toStringTag"),C=TypeError,T=i[v],S=b||!a(T)||T.prototype!==m||!f(function(){T({})}),E=function(){if(o(this,m),c(this)===m)throw new C("Abstract class Iterator not directly constructable")},O=function(I,P){y?u(m,I,{configurable:!0,get:function(){return P},set:function(D){if(s(this),this===m)throw new C("You can't redefine this property");h(this,I)?this[I]=D:d(this,I,D)}}):m[I]=P};h(m,k)||O(k,v),!S&&h(m,w)&&m[w]!==Object||O(w,E),E.prototype=m,r({global:!0,constructor:!0,forced:S},{Iterator:E})},4743:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(8551),s=t(1767),a=t(4149),c=t(9590),u=t(9462),d=t(6395),f=u(function(){for(var h,p=this.iterator,m=this.next;this.remaining;)if(this.remaining--,h=o(i(m,p)),this.done=!!h.done)return;if(h=o(i(m,p)),!(this.done=!!h.done))return h.value});r({target:"Iterator",proto:!0,real:!0,forced:d},{drop:function(p){o(this);var m=c(a(+p));return new f(s(this),{remaining:m})}})},3215:(n,e,t)=>{var r=t(6518),i=t(2652),o=t(9306),s=t(8551),a=t(1767);r({target:"Iterator",proto:!0,real:!0},{every:function(u){s(this),o(u);var d=a(this),f=0;return!i(d,function(h,p){if(!u(h,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},4520:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(9306),s=t(8551),a=t(1767),c=t(9462),u=t(6319),d=t(6395),f=c(function(){for(var h,p,m=this.iterator,y=this.predicate,b=this.next;;){if(h=s(i(b,m)),this.done=!!h.done)return;if(p=h.value,u(m,y,[p,this.counter++],!0))return p}});r({target:"Iterator",proto:!0,real:!0,forced:d},{filter:function(p){return s(this),o(p),new f(a(this),{predicate:p})}})},670:(n,e,t)=>{var r=t(6518),i=t(9565),o=t(9306),s=t(8551),a=t(1767),c=t(8646),u=t(9462),d=t(9539),f=t(6395),h=u(function(){for(var p,m,y=this.iterator,b=this.mapper;;){if(m=this.inner)try{if(!(p=s(i(m.next,m.iterator))).done)return p.value;this.inner=null}catch(w){d(y,"throw",w)}if(p=s(i(this.next,y)),this.done=!!p.done)return;try{this.inner=c(b(p.value,this.counter++),!1)}catch(w){d(y,"throw",w)}}});r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(m){return s(this),o(m),new h(a(this),{mapper:m,inner:null})}})},1454:(n,e,t)=>{var r=t(6518),i=t(713);r({target:"Iterator",proto:!0,real:!0,forced:t(6395)},{map:i})},7550:(n,e,t)=>{var r=t(6518),i=t(2652),o=t(9306),s=t(8551),a=t(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(u){s(this),o(u);var d=a(this),f=0;return i(d,function(h,p){if(u(h,f++))return p()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8335:(n,e,t)=>{var r=t(6518),i=t(3724),o=t(4576),s=t(7751),a=t(9504),c=t(9565),u=t(4901),d=t(34),f=t(4376),h=t(9297),p=t(655),m=t(6198),y=t(4659),b=t(9039),w=t(8235),v=t(4495),k=o.JSON,C=o.Number,T=o.SyntaxError,S=k&&k.parse,E=s("Object","keys"),O=Object.getOwnPropertyDescriptor,I=a("".charAt),P=a("".slice),D=a(/./.exec),B=a([].push),V=/^\d$/,U=/^[1-9]$/,L=/^[\d-]$/,N=/^[\t\n\r ]$/,$=function(H,j,F,G){var J,ae,Oe,be,Le,pt=H[j],pn=G&&pt===G.value,$r=pn&&typeof G.source=="string"?{source:G.source}:{};if(d(pt)){var Kn=f(pt),mn=pn?G.nodes:Kn?[]:{};if(Kn)for(J=mn.length,Oe=m(pt),be=0;be<Oe;be++)R(pt,be,$(pt,""+be,F,be<J?mn[be]:void 0));else for(ae=E(pt),Oe=m(ae),be=0;be<Oe;be++)Le=ae[be],R(pt,Le,$(pt,Le,F,h(mn,Le)?mn[Le]:void 0))}return c(F,H,j,pt,$r)},R=function(H,j,F){if(i){var G=O(H,j);if(G&&!G.configurable)return}F===void 0?delete H[j]:y(H,j,F)},q=function(H,j,F,G){this.value=H,this.end=j,this.source=F,this.nodes=G},re=function(H,j){this.source=H,this.index=j};re.prototype={fork:function(H){return new re(this.source,H)},parse:function(){var H=this.source,j=this.skip(N,this.index),F=this.fork(j),G=I(H,j);if(D(L,G))return F.number();switch(G){case"{":return F.object();case"[":return F.array();case'"':return F.string();case"t":return F.keyword(!0);case"f":return F.keyword(!1);case"n":return F.keyword(null)}throw new T('Unexpected character: "'+G+'" at: '+j)},node:function(H,j,F,G,J){return new q(j,G,H?null:P(this.source,F,G),J)},object:function(){for(var H=this.source,j=this.index+1,F=!1,G={},J={};j<H.length;){if(j=this.until(['"',"}"],j),I(H,j)==="}"&&!F){j++;break}var ae=this.fork(j).string(),Oe=ae.value;j=ae.end,j=this.until([":"],j)+1,j=this.skip(N,j),ae=this.fork(j).parse(),y(J,Oe,ae),y(G,Oe,ae.value),j=this.until([",","}"],ae.end);var be=I(H,j);if(be===",")F=!0,j++;else if(be==="}"){j++;break}}return this.node(1,G,this.index,j,J)},array:function(){for(var H=this.source,j=this.index+1,F=!1,G=[],J=[];j<H.length;){if(j=this.skip(N,j),I(H,j)==="]"&&!F){j++;break}var ae=this.fork(j).parse();if(B(J,ae),B(G,ae.value),j=this.until([",","]"],ae.end),I(H,j)===",")F=!0,j++;else if(I(H,j)==="]"){j++;break}}return this.node(1,G,this.index,j,J)},string:function(){var H=this.index,j=w(this.source,this.index+1);return this.node(0,j.value,H,j.end)},number:function(){var H=this.source,j=this.index,F=j;if(I(H,F)==="-"&&F++,I(H,F)==="0")F++;else{if(!D(U,I(H,F)))throw new T("Failed to parse number at: "+F);F=this.skip(V,F+1)}if(I(H,F)==="."&&(F=this.skip(V,F+1)),(I(H,F)==="e"||I(H,F)==="E")&&(F++,I(H,F)!=="+"&&I(H,F)!=="-"||F++,F===(F=this.skip(V,F))))throw new T("Failed to parse number's exponent value at: "+F);return this.node(0,C(P(H,j,F)),j,F)},keyword:function(H){var j=""+H,F=this.index,G=F+j.length;if(P(this.source,F,G)!==j)throw new T("Failed to parse value at: "+F);return this.node(0,H,F,G)},skip:function(H,j){for(var F=this.source;j<F.length&&D(H,I(F,j));j++);return j},until:function(H,j){j=this.skip(N,j);for(var F=I(this.source,j),G=0;G<H.length;G++)if(H[G]===F)return j;throw new T('Unexpected character: "'+F+'" at: '+j)}};var ce=b(function(){var H,j="9007199254740993";return S(j,function(F,G,J){H=J.source}),H!==j}),K=v&&!b(function(){return 1/S("-0 ")!=-1/0});r({target:"JSON",stat:!0,forced:ce},{parse:function(j,F){return K&&!u(F)?S(j):function(G,J){G=p(G);var ae=new re(G,0),Oe=ae.parse(),be=Oe.value,Le=ae.skip(N,Oe.end);if(Le<G.length)throw new T('Unexpected extra character: "'+I(G,Le)+'" after the parsed data at: '+Le);return u(J)?$({"":be},"",J,Oe):be}(j,F)}})},4979:(n,e,t)=>{var r=t(6518),i=t(4576),o=t(7751),s=t(6980),a=t(4913).f,c=t(9297),u=t(679),d=t(3167),f=t(2603),h=t(5002),p=t(8574),m=t(3724),y=t(6395),b="DOMException",w=o("Error"),v=o(b),k=function(){u(this,C);var N=arguments.length,$=f(N<1?void 0:arguments[0]),R=f(N<2?void 0:arguments[1],"Error"),q=new v($,R),re=new w($);return re.name=b,a(q,"stack",s(1,p(re.stack,1))),d(q,this,k),q},C=k.prototype=v.prototype,T="stack"in new w(b),S="stack"in new v(1,2),E=v&&m&&Object.getOwnPropertyDescriptor(i,b),O=!(!E||E.writable&&E.configurable),I=T&&!O&&!S;r({global:!0,constructor:!0,forced:y||I},{DOMException:I?k:v});var P=o(b),D=P.prototype;if(D.constructor!==P){y||a(D,"constructor",s(1,P));for(var B in h)if(c(h,B)){var V=h[B],U=V.s;c(P,U)||a(P,U,s(6,V.c))}}},4603:(n,e,t)=>{var r=t(6840),i=t(9504),o=t(655),s=t(2812),a=URLSearchParams,c=a.prototype,u=i(c.append),d=i(c.delete),f=i(c.forEach),h=i([].push),p=new a("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(c,"delete",function(m){var y=arguments.length,b=y<2?void 0:arguments[1];if(y&&b===void 0)return d(this,m);var w=[];f(this,function(I,P){h(w,{key:P,value:I})}),s(y,1);for(var v,k=o(m),C=o(b),T=0,S=0,E=!1,O=w.length;T<O;)v=w[T++],E||v.key===k?(E=!0,d(this,v.key)):S++;for(;S<O;)(v=w[S++]).key===k&&v.value===C||u(this,v.key,v.value)},{enumerable:!0,unsafe:!0})},7566:(n,e,t)=>{var r=t(6840),i=t(9504),o=t(655),s=t(2812),a=URLSearchParams,c=a.prototype,u=i(c.getAll),d=i(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||r(c,"has",function(p){var m=arguments.length,y=m<2?void 0:arguments[1];if(m&&y===void 0)return d(this,p);var b=u(this,p);s(m,1);for(var w=o(y),v=0;v<b.length;)if(b[v++]===w)return!0;return!1},{enumerable:!0,unsafe:!0})},8721:(n,e,t)=>{var r=t(3724),i=t(9504),o=t(2106),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var u=0;return a(this,function(){u++}),u},configurable:!0,enumerable:!0})}},sM={};function Pe(n){var e=sM[n];if(e!==void 0)return e.exports;var t=sM[n]={exports:{}};return JH[n].call(t.exports,t,t.exports,Pe),t.exports}Pe.d=(n,e)=>{for(var t in e)Pe.o(e,t)&&!Pe.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},Pe.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var ye=globalThis.pdfjsLib={};Pe.d(ye,{AbortException:()=>qa,AnnotationEditorLayer:()=>X4,AnnotationEditorParamsType:()=>he,AnnotationEditorType:()=>Te,AnnotationEditorUIManager:()=>Ga,AnnotationLayer:()=>lW,AnnotationMode:()=>ds,CMapCompressionType:()=>v4,ColorPicker:()=>gm,DOMSVGFactory:()=>A4,DrawLayer:()=>J4,FeatureTest:()=>Rn,GlobalWorkerOptions:()=>uo,ImageKind:()=>Jp,InvalidPDFException:()=>uM,MissingPDFException:()=>Wa,OPS:()=>qr,PDFDataRangeTransport:()=>KM,PDFDateString:()=>kM,PDFWorker:()=>nc,PasswordResponses:()=>DU,PermissionFlag:()=>sU,PixelsPerInch:()=>hs,RenderingCancelledException:()=>T4,TextLayer:()=>m2,UnexpectedResponseException:()=>rm,Util:()=>le,VerbosityLevel:()=>em,XfaLayer:()=>XM,build:()=>HZ,createValidAbsoluteUrl:()=>_U,fetchData:()=>om,getDocument:()=>BZ,getFilenameFromUrl:()=>qU,getPdfFilenameFromUrl:()=>KU,getXfaPageViewport:()=>GU,isDataScheme:()=>sm,isPdfFile:()=>x4,noContextMenu:()=>wr,normalizeUnicode:()=>BU,setLayerDimensions:()=>Ka,shadow:()=>Ie,version:()=>zZ}),Pe(4114),Pe(6573),Pe(8100),Pe(7936),Pe(7467),Pe(4732),Pe(9577),Pe(4603),Pe(7566),Pe(8721);const cn=!(typeof process!="object"||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type!=="browser"),aM=[1,0,0,1,0,0],g4=[.001,0,0,.001,0,0],y4=1.35,eU=1,b4=2,Qp=4,tU=16,nU=32,rU=64,iU=128,oU=256,ds={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Te={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},he={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},sU={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Xp=0,w4=1,a2=2,aU=3,lM=3,lU=4,Jp={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},cU=1,uU=2,dU=3,fU=4,hU=5,pU=6,mU=7,gU=8,yU=9,bU=10,wU=11,vU=12,CU=13,kU=14,SU=15,cM=16,MU=17,EU=20,AU=1,TU=2,xU=3,IU=4,OU=5,em={ERRORS:0,WARNINGS:1,INFOS:5},v4={NONE:0,BINARY:1},qr={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},DU={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let tm=em.WARNINGS;function NU(n){Number.isInteger(n)&&(tm=n)}function PU(){return tm}function nm(n){tm>=em.INFOS&&console.log(`Info: ${n}`)}function ke(n){tm>=em.WARNINGS&&console.log(`Warning: ${n}`)}function Mt(n){throw new Error(n)}function xt(n,e){n||Mt(e)}function _U(n,e=null,t=null){if(!n)return null;try{if(t&&typeof n=="string"){if(t.addDefaultProtocol&&n.startsWith("www.")){const i=n.match(/\./g);(i==null?void 0:i.length)>=2&&(n=`http://${n}`)}if(t.tryConvertEncoding)try{n=function(o){return decodeURIComponent(escape(o))}(n)}catch{}}const r=e?new URL(n,e):new URL(n);if(function(o){switch(o==null?void 0:o.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch{}return null}function Ie(n,e,t,r=!1){return Object.defineProperty(n,e,{value:t,enumerable:!r,configurable:!0,writable:!1}),t}const fs=function(){function e(t,r){this.message=t,this.name=r}return e.prototype=new Error,e.constructor=e,e}();class C4 extends fs{constructor(e,t){super(e,"PasswordException"),this.code=t}}class k4 extends fs{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}class uM extends fs{constructor(e){super(e,"InvalidPDFException")}}class Wa extends fs{constructor(e){super(e,"MissingPDFException")}}class rm extends fs{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}}class LU extends fs{constructor(e){super(e,"FormatError")}}class qa extends fs{constructor(e){super(e,"AbortException")}}function dM(n){typeof n=="object"&&(n==null?void 0:n.length)!==void 0||Mt("Invalid argument for bytesToString");const e=n.length,t=8192;if(e<t)return String.fromCharCode.apply(null,n);const r=[];for(let i=0;i<e;i+=t){const o=Math.min(i+t,e),s=n.subarray(i,o);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function im(n){typeof n!="string"&&Mt("Invalid argument for stringToBytes");const e=n.length,t=new Uint8Array(e);for(let r=0;r<e;++r)t[r]=255&n.charCodeAt(r);return t}function S4(n){const e=Object.create(null);for(const[t,r]of n)e[t]=r;return e}class Rn{static get isLittleEndian(){return Ie(this,"isLittleEndian",function(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}())}static get isEvalSupported(){return Ie(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return Ie(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?Ie(this,"platform",{isMac:navigator.platform.includes("Mac")}):Ie(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var e,t;return Ie(this,"isCSSRoundSupported",(t=(e=globalThis.CSS)==null?void 0:e.supports)==null?void 0:t.call(e,"width: round(1.5px, 1px)"))}}const M4=Array.from(Array(256).keys(),n=>n.toString(16).padStart(2,"0"));class le{static makeHexColor(e,t,r){return`#${M4[e]}${M4[t]}${M4[r]}`}static scaleMinMax(e,t){let r;e[0]?(e[0]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[3],t[3]*=e[3]):(r=t[0],t[0]=t[1],t[1]=r,r=t[2],t[2]=t[3],t[3]=r,e[1]<0&&(r=t[1],t[1]=t[3],t[3]=r),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(r=t[0],t[0]=t[2],t[2]=r),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),o=this.applyTransform([e[0],e[3]],t),s=this.applyTransform([e[2],e[1]],t);return[Math.min(r[0],i[0],o[0],s[0]),Math.min(r[1],i[1],o[1],s[1]),Math.max(r[0],i[0],o[0],s[0]),Math.max(r[1],i[1],o[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],a=(r+s)/2,c=Math.sqrt((r+s)**2-4*(r*s-o*i))/2,u=a+c||1,d=a-c||1;return[Math.sqrt(u),Math.sqrt(d)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(r>i)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),s=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>s?null:[r,o,i,s]}static bezierBoundingBox(e,t,r,i,o,s,a,c,u){return u?(u[0]=Math.min(u[0],e,a),u[1]=Math.min(u[1],t,c),u[2]=Math.max(u[2],e,a),u[3]=Math.max(u[3],t,c)):u=[Math.min(e,a),Math.min(t,c),Math.max(e,a),Math.max(t,c)],x(this,Ff,lv).call(this,e,r,o,a,t,i,s,c,3*(3*(r-o)-e+a),6*(e-2*r+o),3*(r-e),u),x(this,Ff,lv).call(this,e,r,o,a,t,i,s,c,3*(3*(i-s)-t+c),6*(t-2*i+s),3*(i-t),u),u}}jc=new WeakSet,Qy=function(e,t,r,i,o,s,a,c,u,d){if(u<=0||u>=1)return;const f=1-u,h=u*u,p=h*u,m=f*(f*(f*e+3*u*t)+3*h*r)+p*i,y=f*(f*(f*o+3*u*s)+3*h*a)+p*c;d[0]=Math.min(d[0],m),d[1]=Math.min(d[1],y),d[2]=Math.max(d[2],m),d[3]=Math.max(d[3],y)},Ff=new WeakSet,lv=function(e,t,r,i,o,s,a,c,u,d,f,h){if(Math.abs(u)<1e-12){Math.abs(d)>=1e-12&&x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,-f/d,h);return}const p=d**2-4*f*u;if(p<0)return;const m=Math.sqrt(p),y=2*u;x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,(-d+m)/y,h),x(this,jc,Qy).call(this,e,t,r,i,o,s,a,c,(-d-m)/y,h)},M(le,jc),M(le,Ff);let E4=null,fM=null;function BU(n){return E4||(E4=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,fM=new Map([["ſt","ſt"]])),n.replaceAll(E4,(e,t,r)=>t?t.normalize("NFKC"):fM.get(r))}const hM="pdfjs_internal_id_",RU=0,$U=1,VU=2,FU=3,jU=4,zU=5,HU=6,UU=7,ZU=8;Pe(4628),Pe(7642),Pe(8004),Pe(3853),Pe(5876),Pe(2475),Pe(5024),Pe(1698),Pe(1454),Pe(4979),Pe(8992),Pe(4743),Pe(3215),Pe(7550),Pe(8335),Pe(4520);class pM{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,r,i,o){return"none"}destroy(e=!1){}}class mM{constructor({enableHWA:e=!1}={}){M(this,jf,!1);A(this,jf,e)}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const r=this._createCanvas(e,t);return{canvas:r,context:r.getContext("2d",{willReadFrequently:!g(this,jf)})}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){Mt("Abstract method `_createCanvas` called.")}}jf=new WeakMap;class gM{constructor({baseUrl:e=null,isCompressed:t=!0}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?v4.BINARY:v4.NONE;return this._fetchData(t,r).catch(i=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)})}_fetchData(e,t){Mt("Abstract method `_fetchData` called.")}}class yM{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch(r=>{throw new Error(`Unable to load font data at: ${t}`)})}_fetchData(e){Mt("Abstract method `_fetchData` called.")}}class WU{create(e,t,r=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),r||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){Mt("Abstract method `_createSVG` called.")}}const lo="http://www.w3.org/2000/svg",kl=class kl{};pe(kl,"CSS",96),pe(kl,"PDF",72),pe(kl,"PDF_TO_CSS_UNITS",kl.CSS/kl.PDF);let hs=kl;async function om(n,e="text"){if(c2(n,document.baseURI)){const t=await fetch(n);if(!t.ok)throw new Error(t.statusText);switch(e){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"json":return t.json()}return t.text()}return new Promise((t,r)=>{const i=new XMLHttpRequest;i.open("GET",n,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE)if(i.status!==200&&i.status!==0)r(new Error(i.statusText));else{switch(e){case"arraybuffer":case"blob":case"json":t(i.response);return}t(i.responseText)}},i.send(null)})}class bM extends gM{_fetchData(e,t){return om(e,this.isCompressed?"arraybuffer":"text").then(r=>({cMapData:r instanceof ArrayBuffer?new Uint8Array(r):im(r),compressionType:t}))}}class wM extends yM{_fetchData(e){return om(e,"arraybuffer").then(t=>new Uint8Array(t))}}class A4 extends WU{_createSVG(e){return document.createElementNS(lo,e)}}class l2{constructor({viewBox:e,scale:t,rotation:r,offsetX:i=0,offsetY:o=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=i,this.offsetY=o;const a=(e[2]+e[0])/2,c=(e[3]+e[1])/2;let u,d,f,h,p,m,y,b;switch((r%=360)<0&&(r+=360),r){case 180:u=-1,d=0,f=0,h=1;break;case 90:u=0,d=1,f=1,h=0;break;case 270:u=0,d=-1,f=-1,h=0;break;case 0:u=1,d=0,f=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(f=-f,h=-h),u===0?(p=Math.abs(c-e[1])*t+i,m=Math.abs(a-e[0])*t+o,y=(e[3]-e[1])*t,b=(e[2]-e[0])*t):(p=Math.abs(a-e[0])*t+i,m=Math.abs(c-e[1])*t+o,y=(e[2]-e[0])*t,b=(e[3]-e[1])*t),this.transform=[u*t,d*t,f*t,h*t,p-u*t*a-f*t*c,m-d*t*a-h*t*c],this.width=y,this.height=b}get rawDims(){const{viewBox:e}=this;return Ie(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:o=!1}={}){return new l2({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:o})}convertToViewportPoint(e,t){return le.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=le.applyTransform([e[0],e[1]],this.transform),r=le.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return le.applyInverseTransform([e,t],this.transform)}}class T4 extends fs{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}}function sm(n){const e=n.length;let t=0;for(;t<e&&n[t].trim()==="";)t++;return n.substring(t,t+5).toLowerCase()==="data:"}function x4(n){return typeof n=="string"&&/\.pdf$/i.test(n)}function qU(n){return[n]=n.split(/[#?]/,1),n.substring(n.lastIndexOf("/")+1)}function KU(n,e="document.pdf"){if(typeof n!="string")return e;if(sm(n))return ke('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const t=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(n);let i=t.exec(r[1])||t.exec(r[2])||t.exec(r[3]);if(i&&(i=i[0],i.includes("%")))try{i=t.exec(decodeURIComponent(i))[0]}catch{}return i||e}class vM{constructor(){pe(this,"started",Object.create(null));pe(this,"times",[])}time(e){e in this.started&&ke(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||ke(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:r}of this.times)t=Math.max(r.length,t);for(const{name:r,start:i,end:o}of this.times)e.push(`${r.padEnd(t)} ${o-i}ms
121
+ `);return e.join("")}}function c2(n,e){try{const{protocol:t}=e?new URL(n,e):new URL(n);return t==="http:"||t==="https:"}catch{return!1}}function wr(n){n.preventDefault()}let CM;class kM{static toDateObject(e){if(!e||typeof e!="string")return null;CM||(CM=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=CM.exec(e);if(!t)return null;const r=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let s=parseInt(t[4],10);s=s>=0&&s<=23?s:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;const u=t[7]||"Z";let d=parseInt(t[8],10);d=d>=0&&d<=23?d:0;let f=parseInt(t[9],10)||0;return f=f>=0&&f<=59?f:0,u==="-"?(s+=d,a+=f):u==="+"&&(s-=d,a-=f),new Date(Date.UTC(r,i,o,s,a,c))}}function GU(n,{scale:e=1,rotation:t=0}){const{width:r,height:i}=n.attributes.style,o=[0,0,parseInt(r),parseInt(i)];return new l2({viewBox:o,scale:e,rotation:t})}function I4(n){if(n.startsWith("#")){const e=parseInt(n.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}return n.startsWith("rgb(")?n.slice(4,-1).split(",").map(e=>parseInt(e)):n.startsWith("rgba(")?n.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(ke(`Not a valid color format: "${n}"`),[0,0,0])}function ot(n){const{a:e,b:t,c:r,d:i,e:o,f:s}=n.getTransform();return[e,t,r,i,o,s]}function co(n){const{a:e,b:t,c:r,d:i,e:o,f:s}=n.getTransform().invertSelf();return[e,t,r,i,o,s]}function Ka(n,e,t=!1,r=!0){if(e instanceof l2){const{pageWidth:i,pageHeight:o}=e.rawDims,{style:s}=n,a=Rn.isCSSRoundSupported,c=`var(--scale-factor) * ${i}px`,u=`var(--scale-factor) * ${o}px`,d=a?`round(${c}, 1px)`:`calc(${c})`,f=a?`round(${u}, 1px)`:`calc(${u})`;t&&e.rotation%180!=0?(s.width=f,s.height=d):(s.width=d,s.height=f)}r&&n.setAttribute("data-main-rotation",e.rotation)}const Mo=class Mo{constructor(e){M(this,p3);M(this,m3);M(this,zc);M(this,g3);M(this,Uf);M(this,Sl,null);M(this,Ml,null);M(this,Jr,void 0);M(this,El,null);M(this,zf,null);A(this,Jr,e),g(Mo,Hf)||A(Mo,Hf,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const e=A(this,Sl,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const t=g(this,Jr)._uiManager._signal;e.addEventListener("contextmenu",wr,{signal:t}),e.addEventListener("pointerdown",x(Mo,h3,JD),{signal:t});const r=A(this,El,document.createElement("div"));r.className="buttons",e.append(r);const i=g(this,Jr).toolbarPosition;if(i){const{style:o}=e,s=g(this,Jr)._uiManager.direction==="ltr"?1-i[0]:i[0];o.insetInlineEnd=100*s+"%",o.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return x(this,g3,nN).call(this),e}hide(){var e;g(this,Sl).classList.add("hidden"),(e=g(this,Ml))==null||e.hideDropdown()}show(){var e;g(this,Sl).classList.remove("hidden"),(e=g(this,zf))==null||e.shown()}async addAltText(e){const t=await e.render();x(this,zc,Xy).call(this,t),g(this,El).prepend(t,g(this,Uf,cv)),A(this,zf,e)}addColorPicker(e){A(this,Ml,e);const t=e.renderButton();x(this,zc,Xy).call(this,t),g(this,El).prepend(t,g(this,Uf,cv))}remove(){var e;g(this,Sl).remove(),(e=g(this,Ml))==null||e.destroy(),A(this,Ml,null)}};Sl=new WeakMap,Ml=new WeakMap,Jr=new WeakMap,El=new WeakMap,zf=new WeakMap,Hf=new WeakMap,h3=new WeakSet,JD=function(e){e.stopPropagation()},p3=new WeakSet,eN=function(e){g(this,Jr)._focusEventsAllowed=!1,e.preventDefault(),e.stopPropagation()},m3=new WeakSet,tN=function(e){g(this,Jr)._focusEventsAllowed=!0,e.preventDefault(),e.stopPropagation()},zc=new WeakSet,Xy=function(e){const t=g(this,Jr)._uiManager._signal;e.addEventListener("focusin",x(this,p3,eN).bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",x(this,m3,tN).bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",wr,{signal:t})},g3=new WeakSet,nN=function(){const{editorType:e,_uiManager:t}=g(this,Jr),r=document.createElement("button");r.className="delete",r.tabIndex=0,r.setAttribute("data-l10n-id",g(Mo,Hf)[e]),x(this,zc,Xy).call(this,r),r.addEventListener("click",i=>{t.delete()},{signal:t._signal}),g(this,El).append(r)},Uf=new WeakSet,cv=function(){const e=document.createElement("div");return e.className="divider",e},M(Mo,h3),M(Mo,Hf,null);let O4=Mo;class YU{constructor(e){M(this,y3);M(this,b3);M(this,w3);M(this,Zf,null);M(this,Al,null);M(this,Tl,void 0);A(this,Tl,e)}show(e,t,r){const[i,o]=x(this,b3,iN).call(this,t,r),{style:s}=g(this,Al)||A(this,Al,x(this,y3,rN).call(this));e.append(g(this,Al)),s.insetInlineEnd=100*i+"%",s.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){g(this,Al).remove()}}Zf=new WeakMap,Al=new WeakMap,Tl=new WeakMap,y3=new WeakSet,rN=function(){const e=A(this,Al,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar"),e.addEventListener("contextmenu",wr,{signal:g(this,Tl)._signal});const t=A(this,Zf,document.createElement("div"));return t.className="buttons",e.append(t),x(this,w3,oN).call(this),e},b3=new WeakSet,iN=function(e,t){let r=0,i=0;for(const o of e){const s=o.y+o.height;if(s<r)continue;const a=o.x+(t?o.width:0);s>r?(i=a,r=s):t?a>i&&(i=a):a<i&&(i=a)}return[t?1-i:i,r]},w3=new WeakSet,oN=function(){const e=document.createElement("button");e.className="highlightButton",e.tabIndex=0,e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const t=document.createElement("span");e.append(t),t.className="visuallyHidden",t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const r=g(this,Tl)._signal;e.addEventListener("contextmenu",wr,{signal:r}),e.addEventListener("click",()=>{g(this,Tl).highlightSelection("floating_button")},{signal:r}),g(this,Zf).append(e)};function am(n,e,t){for(const r of t)e.addEventListener(r,n[r].bind(n))}class QU{constructor(){M(this,v3,0)}get id(){return"pdfjs_internal_editor_"+Gn(this,v3)._++}}v3=new WeakMap;const nv=class nv{constructor(){M(this,qf);M(this,Wf,function(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const t=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(t);else for(let r=0;r<32;r++)t[r]=Math.floor(255*Math.random());return dM(t)}());M(this,C3,0);M(this,Nr,null)}static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',Ie(this,"_isSVGFittingCanvas",t.decode().then(()=>(e.drawImage(t,0,0,1,1,0,0,1,3),new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]===0)))}async getFromFile(e){const{lastModified:t,name:r,size:i,type:o}=e;return x(this,qf,uv).call(this,`${t}_${r}_${i}_${o}`,e)}async getFromUrl(e){return x(this,qf,uv).call(this,e,e)}async getFromId(e){g(this,Nr)||A(this,Nr,new Map);const t=g(this,Nr).get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=g(this,Nr).get(e);return t!=null&&t.isSvg?t.svgUrl:null}deleteId(e){g(this,Nr)||A(this,Nr,new Map);const t=g(this,Nr).get(e);t&&(t.refCounter-=1,t.refCounter===0&&(t.bitmap=null))}isValidId(e){return e.startsWith(`image_${g(this,Wf)}_`)}};Wf=new WeakMap,C3=new WeakMap,Nr=new WeakMap,qf=new WeakSet,uv=async function(e,t){g(this,Nr)||A(this,Nr,new Map);let r=g(this,Nr).get(e);if(r===null)return null;if(r!=null&&r.bitmap)return r.refCounter+=1,r;try{r||(r={bitmap:null,id:`image_${g(this,Wf)}_${Gn(this,C3)._++}`,refCounter:0,isSvg:!1});let i;if(typeof t=="string"?(r.url=t,i=await om(t,"blob")):i=r.file=t,i.type==="image/svg+xml"){const o=nv._isSVGFittingCanvas,s=new FileReader,a=new Image,c=new Promise((u,d)=>{a.onload=()=>{r.bitmap=a,r.isSvg=!0,u()},s.onload=async()=>{const f=r.svgUrl=s.result;a.src=await o?`${f}#svgView(preserveAspectRatio(none))`:f},a.onerror=s.onerror=d});s.readAsDataURL(i),await c}else r.bitmap=await createImageBitmap(i);r.refCounter=1}catch(i){console.error(i),r=null}return g(this,Nr).set(e,r),r&&g(this,Nr).set(r.id,r),r};let D4=nv,XU=(GD=class{constructor(e=128){M(this,jt,[]);M(this,qs,!1);M(this,Kf,void 0);M(this,zt,-1);A(this,Kf,e)}add({cmd:e,undo:t,post:r,mustExec:i,type:o=NaN,overwriteIfSameType:s=!1,keepUndo:a=!1}){if(i&&e(),g(this,qs))return;const c={cmd:e,undo:t,post:r,type:o};if(g(this,zt)===-1){g(this,jt).length>0&&(g(this,jt).length=0),A(this,zt,0),g(this,jt).push(c);return}if(s&&g(this,jt)[g(this,zt)].type===o){a&&(c.undo=g(this,jt)[g(this,zt)].undo),g(this,jt)[g(this,zt)]=c;return}const u=g(this,zt)+1;u===g(this,Kf)?g(this,jt).splice(0,1):(A(this,zt,u),u<g(this,jt).length&&g(this,jt).splice(u)),g(this,jt).push(c)}undo(){if(g(this,zt)===-1)return;A(this,qs,!0);const{undo:e,post:t}=g(this,jt)[g(this,zt)];e(),t==null||t(),A(this,qs,!1),A(this,zt,g(this,zt)-1)}redo(){if(g(this,zt)<g(this,jt).length-1){A(this,zt,g(this,zt)+1),A(this,qs,!0);const{cmd:e,post:t}=g(this,jt)[g(this,zt)];e(),t==null||t(),A(this,qs,!1)}}hasSomethingToUndo(){return g(this,zt)!==-1}hasSomethingToRedo(){return g(this,zt)<g(this,jt).length-1}destroy(){A(this,jt,null)}},jt=new WeakMap,qs=new WeakMap,Kf=new WeakMap,zt=new WeakMap,GD);class u2{constructor(e){M(this,k3);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=Rn.platform;for(const[r,i,o={}]of e)for(const s of r){const a=s.startsWith("mac+");t&&a?(this.callbacks.set(s.slice(4),{callback:i,options:o}),this.allKeys.add(s.split("+").at(-1))):!t&&!a&&(this.callbacks.set(s,{callback:i,options:o}),this.allKeys.add(s.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const r=this.callbacks.get(x(this,k3,sN).call(this,t));if(!r)return;const{callback:i,options:{bubbles:o=!1,args:s=[],checker:a=null}}=r;(!a||a(e,t))&&(i.bind(e,...s,t)(),o||(t.stopPropagation(),t.preventDefault()))}}k3=new WeakSet,sN=function(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t};const S3=class S3{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return function(r){const i=document.createElement("span");i.style.visibility="hidden",document.body.append(i);for(const o of r.keys()){i.style.color=o;const s=window.getComputedStyle(i).color;r.set(o,I4(s))}i.remove()}(e),Ie(this,"_colors",e)}convert(e){const t=I4(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[r,i]of this._colors)if(i.every((o,s)=>o===t[s]))return S3._colorsMapping.get(r);return t}getHexCode(e){const t=this._colors.get(e);return t?le.makeHexColor(...t):e}};pe(S3,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let N4=S3;const Qc=class Qc{constructor(e,t,r,i,o,s,a,c,u,d,f){M(this,Gc);M(this,ih);M(this,E3);M(this,A3);M(this,Yc);M(this,T3);M(this,x3);M(this,I3);M(this,oh);M(this,O3);M(this,sh);M(this,ah);M(this,D3);M(this,tn);M(this,Li);M(this,N3);M(this,P3);M(this,lh);M(this,_3);M(this,Nl);M(this,ch);M(this,Hc,new AbortController);M(this,ar,null);M(this,Ot,new Map);M(this,en,new Map);M(this,Uc,null);M(this,Eo,null);M(this,Zc,null);M(this,ei,new XU);M(this,Ks,null);M(this,Wc,0);M(this,xl,new Set);M(this,Di,null);M(this,ti,null);M(this,Il,new Set);M(this,Gf,!1);M(this,Yf,!1);M(this,qc,!1);M(this,Qf,null);M(this,Ni,null);M(this,Gs,null);M(this,Kc,null);M(this,Ys,!1);M(this,Pi,null);M(this,M3,new QU);M(this,Qs,!1);M(this,Xf,!1);M(this,Xs,null);M(this,Ol,null);M(this,Jf,null);M(this,eh,null);M(this,Ht,Te.NONE);M(this,He,new Set);M(this,Ao,null);M(this,Dl,null);M(this,th,null);M(this,nh,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1});M(this,Js,[0,0]);M(this,_i,null);M(this,To,null);M(this,rh,null);const h=this._signal=g(this,Hc).signal;A(this,To,e),A(this,rh,t),A(this,Uc,r),this._eventBus=i,i._on("editingaction",this.onEditingAction.bind(this),{signal:h}),i._on("pagechanging",this.onPageChanging.bind(this),{signal:h}),i._on("scalechanging",this.onScaleChanging.bind(this),{signal:h}),i._on("rotationchanging",this.onRotationChanging.bind(this),{signal:h}),i._on("setpreference",this.onSetPreference.bind(this),{signal:h}),i._on("switchannotationeditorparams",p=>this.updateParams(p.type,p.value),{signal:h}),x(this,T3,cN).call(this),x(this,D3,hN).call(this),x(this,oh,fv).call(this),A(this,Eo,o.annotationStorage),A(this,Qf,o.filterFactory),A(this,Dl,s),A(this,Kc,a||null),A(this,Gf,c),A(this,Yf,u),A(this,qc,d),A(this,eh,f||null),this.viewParameters={realScale:hs.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const e=Qc.prototype,t=s=>g(s,To).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),r=(s,{target:a})=>{if(a instanceof HTMLInputElement){const{type:c}=a;return c!=="text"&&c!=="number"}return!0},i=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return Ie(this,"_keyboardManager",new u2([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:a})=>!(a instanceof HTMLButtonElement)&&g(s,To).contains(a)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:a})=>!(a instanceof HTMLButtonElement)&&g(s,To).contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-o,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[o,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-o],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,o],checker:t}]]))}destroy(){var e,t,r;(e=g(this,Hc))==null||e.abort(),A(this,Hc,null),this._signal=null;for(const i of g(this,en).values())i.destroy();g(this,en).clear(),g(this,Ot).clear(),g(this,Il).clear(),A(this,ar,null),g(this,He).clear(),g(this,ei).destroy(),(t=g(this,Uc))==null||t.destroy(),(r=g(this,Pi))==null||r.hide(),A(this,Pi,null),g(this,Ni)&&(clearTimeout(g(this,Ni)),A(this,Ni,null)),g(this,_i)&&(clearTimeout(g(this,_i)),A(this,_i,null))}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return g(this,eh)}get useNewAltTextFlow(){return g(this,Yf)}get useNewAltTextWhenAddingImage(){return g(this,qc)}get hcmFilter(){return Ie(this,"hcmFilter",g(this,Dl)?g(this,Qf).addHCMFilter(g(this,Dl).foreground,g(this,Dl).background):"none")}get direction(){return Ie(this,"direction",getComputedStyle(g(this,To)).direction)}get highlightColors(){return Ie(this,"highlightColors",g(this,Kc)?new Map(g(this,Kc).split(",").map(e=>e.split("=").map(t=>t.trim()))):null)}get highlightColorNames(){return Ie(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setMainHighlightColorPicker(e){A(this,Jf,e)}editAltText(e,t=!1){var r;(r=g(this,Uc))==null||r.editAltText(this,e,t)}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){e==="enableNewAltTextWhenAddingImage"&&A(this,qc,t)}onPageChanging({pageNumber:e}){A(this,Wc,e-1)}focusMainContainer(){g(this,To).focus()}findParent(e,t){for(const r of g(this,en).values()){const{x:i,y:o,width:s,height:a}=r.div.getBoundingClientRect();if(e>=i&&e<=i+s&&t>=o&&t<=o+a)return r}return null}disableUserSelect(e=!1){g(this,rh).classList.toggle("noUserSelect",e)}addShouldRescale(e){g(this,Il).add(e)}removeShouldRescale(e){g(this,Il).delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*hs.PDF_TO_CSS_UNITS;for(const t of g(this,Il))t.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}highlightSelection(e=""){const t=document.getSelection();if(!t||t.isCollapsed)return;const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}=t,a=t.toString(),c=x(this,Gc,Jy).call(this,t).closest(".textLayer"),u=this.getSelectionBoxes(c);if(!u)return;t.empty();const d=x(this,ih,dv).call(this,c),f=g(this,Ht)===Te.NONE,h=()=>{d==null||d.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:u,anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s,text:a}),f&&this.showAllEditors("highlight",!0,!0)};f?this.switchToMode(Te.HIGHLIGHT,h):h()}addToAnnotationStorage(e){e.isEmpty()||!g(this,Eo)||g(this,Eo).has(e.id)||g(this,Eo).setValue(e.id,e)}blur(){if(this.isShiftKeyDown=!1,g(this,Ys)&&(A(this,Ys,!1),x(this,Yc,e5).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const t of g(this,He))if(t.div.contains(e)){A(this,Ol,[t,e]),t._focusEventsAllowed=!1;break}}focus(){if(!g(this,Ol))return;const[e,t]=g(this,Ol);A(this,Ol,null),t.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}addEditListeners(){x(this,oh,fv).call(this),x(this,sh,hv).call(this)}removeEditListeners(){x(this,O3,fN).call(this),x(this,ah,pv).call(this)}dragOver(e){for(const{type:t}of e.dataTransfer.items)for(const r of g(this,ti))if(r.isHandlingMimeForPasting(t)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const t of e.dataTransfer.items)for(const r of g(this,ti))if(r.isHandlingMimeForPasting(t.type)){r.paste(t,this.currentLayer),e.preventDefault();return}}copy(e){var r;if(e.preventDefault(),(r=g(this,ar))==null||r.commitOrRemove(),!this.hasSelection)return;const t=[];for(const i of g(this,He)){const o=i.serialize(!0);o&&t.push(o)}t.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const o of t.items)for(const s of g(this,ti))if(s.isHandlingMimeForPasting(o.type)){s.paste(o,this.currentLayer);return}let r=t.getData("application/pdfjs");if(!r)return;try{r=JSON.parse(r)}catch(o){ke(`paste: "${o.message}".`);return}if(!Array.isArray(r))return;this.unselectAll();const i=this.currentLayer;try{const o=[];for(const c of r){const u=i.deserialize(c);if(!u)return;o.push(u)}const s=()=>{for(const c of o)x(this,lh,mv).call(this,c);x(this,ch,gv).call(this,o)},a=()=>{for(const c of o)c.remove()};this.addCommands({cmd:s,undo:a,mustExec:!0})}catch(o){ke(`paste: "${o.message}".`)}}keydown(e){this.isShiftKeyDown||e.key!=="Shift"||(this.isShiftKeyDown=!0),g(this,Ht)===Te.NONE||this.isEditorHandlingKeyboard||Qc._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,g(this,Ys)&&(A(this,Ys,!1),x(this,Yc,e5).call(this,"main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu")}}setEditingState(e){e?(x(this,x3,uN).call(this),x(this,sh,hv).call(this),x(this,tn,On).call(this,{isEditing:g(this,Ht)!==Te.NONE,isEmpty:x(this,Nl,K1).call(this),hasSomethingToUndo:g(this,ei).hasSomethingToUndo(),hasSomethingToRedo:g(this,ei).hasSomethingToRedo(),hasSelectedEditor:!1})):(x(this,I3,dN).call(this),x(this,ah,pv).call(this),x(this,tn,On).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!g(this,ti)){A(this,ti,e);for(const t of g(this,ti))x(this,Li,Ia).call(this,t.defaultPropertiesToUpdate)}}getId(){return g(this,M3).id}get currentLayer(){return g(this,en).get(g(this,Wc))}getLayer(e){return g(this,en).get(e)}get currentPageIndex(){return g(this,Wc)}addLayer(e){g(this,en).set(e.pageIndex,e),g(this,Qs)?e.enable():e.disable()}removeLayer(e){g(this,en).delete(e.pageIndex)}updateMode(e,t=null,r=!1){if(g(this,Ht)!==e)if(A(this,Ht,e),e!==Te.NONE){this.setEditingState(!0),x(this,N3,pN).call(this),this.unselectAll();for(const i of g(this,en).values())i.updateMode(e);if(t||!r){if(t){for(const i of g(this,Ot).values())if(i.annotationElementId===t){this.setSelected(i),i.enterInEditMode();break}}}else this.addNewEditorFromKeyboard()}else this.setEditingState(!1),x(this,P3,mN).call(this)}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e!==g(this,Ht)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){var r;if(g(this,ti)){switch(e){case he.CREATE:this.currentLayer.addNewEditor();return;case he.HIGHLIGHT_DEFAULT_COLOR:(r=g(this,Jf))==null||r.updateColor(t);break;case he.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(g(this,th)||A(this,th,new Map)).set(e,t),this.showAllEditors("highlight",t)}for(const i of g(this,He))i.updateParams(e,t);for(const i of g(this,ti))i.updateDefaultParams(e,t)}}showAllEditors(e,t,r=!1){var i;for(const o of g(this,Ot).values())o.editorType===e&&o.show(t);(((i=g(this,th))==null?void 0:i.get(he.HIGHLIGHT_SHOW_ALL))??!0)!==t&&x(this,Li,Ia).call(this,[[he.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(g(this,Xf)!==e){A(this,Xf,e);for(const t of g(this,en).values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}getEditors(e){const t=[];for(const r of g(this,Ot).values())r.pageIndex===e&&t.push(r);return t}getEditor(e){return g(this,Ot).get(e)}addEditor(e){g(this,Ot).set(e.id,e)}removeEditor(e){var t;e.div.contains(document.activeElement)&&(g(this,Ni)&&clearTimeout(g(this,Ni)),A(this,Ni,setTimeout(()=>{this.focusMainContainer(),A(this,Ni,null)},0))),g(this,Ot).delete(e.id),this.unselect(e),e.annotationElementId&&g(this,xl).has(e.annotationElementId)||((t=g(this,Eo))==null||t.remove(e.id))}addDeletedAnnotationElement(e){g(this,xl).add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return g(this,xl).has(e)}removeDeletedAnnotationElement(e){g(this,xl).delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}setActiveEditor(e){g(this,ar)!==e&&(A(this,ar,e),e&&x(this,Li,Ia).call(this,e.propertiesToUpdate))}updateUI(e){g(this,_3,gN)===e&&x(this,Li,Ia).call(this,e.propertiesToUpdate)}toggleSelected(e){g(this,He).has(e)?(g(this,He).delete(e),e.unselect(),x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})):(g(this,He).add(e),e.select(),x(this,Li,Ia).call(this,e.propertiesToUpdate),x(this,tn,On).call(this,{hasSelectedEditor:!0}))}setSelected(e){for(const t of g(this,He))t!==e&&t.unselect();g(this,He).clear(),g(this,He).add(e),e.select(),x(this,Li,Ia).call(this,e.propertiesToUpdate),x(this,tn,On).call(this,{hasSelectedEditor:!0})}isSelected(e){return g(this,He).has(e)}get firstSelectedEditor(){return g(this,He).values().next().value}unselect(e){e.unselect(),g(this,He).delete(e),x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return g(this,He).size!==0}get isEnterHandled(){return g(this,He).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){g(this,ei).undo(),x(this,tn,On).call(this,{hasSomethingToUndo:g(this,ei).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:x(this,Nl,K1).call(this)})}redo(){g(this,ei).redo(),x(this,tn,On).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:g(this,ei).hasSomethingToRedo(),isEmpty:x(this,Nl,K1).call(this)})}addCommands(e){g(this,ei).add(e),x(this,tn,On).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:x(this,Nl,K1).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[...g(this,He)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)x(this,lh,mv).call(this,t)},mustExec:!0})}commitOrRemove(){var e;(e=g(this,ar))==null||e.commitOrRemove()}hasSomethingToControl(){return g(this,ar)||this.hasSelection}selectAll(){for(const e of g(this,He))e.commit();x(this,ch,gv).call(this,g(this,Ot).values())}unselectAll(){if(!(g(this,ar)&&(g(this,ar).commitOrRemove(),g(this,Ht)!==Te.NONE))&&this.hasSelection){for(const e of g(this,He))e.unselect();g(this,He).clear(),x(this,tn,On).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;g(this,Js)[0]+=e,g(this,Js)[1]+=t;const[i,o]=g(this,Js),s=[...g(this,He)];g(this,_i)&&clearTimeout(g(this,_i)),A(this,_i,setTimeout(()=>{A(this,_i,null),g(this,Js)[0]=g(this,Js)[1]=0,this.addCommands({cmd:()=>{for(const a of s)g(this,Ot).has(a.id)&&a.translateInPage(i,o)},undo:()=>{for(const a of s)g(this,Ot).has(a.id)&&a.translateInPage(-i,-o)},mustExec:!1})},1e3));for(const a of s)a.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),A(this,Di,new Map);for(const e of g(this,He))g(this,Di).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!g(this,Di))return!1;this.disableUserSelect(!1);const e=g(this,Di);A(this,Di,null);let t=!1;for(const[{x:i,y:o,pageIndex:s},a]of e)a.newX=i,a.newY=o,a.newPageIndex=s,t||(t=i!==a.savedX||o!==a.savedY||s!==a.savedPageIndex);if(!t)return!1;const r=(i,o,s,a)=>{if(g(this,Ot).has(i.id)){const c=g(this,en).get(a);c?i._setParentAndPosition(c,o,s):(i.pageIndex=a,i.x=o,i.y=s)}};return this.addCommands({cmd:()=>{for(const[i,{newX:o,newY:s,newPageIndex:a}]of e)r(i,o,s,a)},undo:()=>{for(const[i,{savedX:o,savedY:s,savedPageIndex:a}]of e)r(i,o,s,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(g(this,Di))for(const r of g(this,Di).keys())r.drag(e,t)}rebuild(e){if(e.parent===null){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){var e;return((e=this.getActive())==null?void 0:e.shouldGetKeyboardEvents())||g(this,He).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return g(this,ar)===e}getActive(){return g(this,ar)}getMode(){return g(this,Ht)}get imageManager(){return Ie(this,"imageManager",new D4)}getSelectionBoxes(e){if(!e)return null;const t=document.getSelection();for(let u=0,d=t.rangeCount;u<d;u++)if(!e.contains(t.getRangeAt(u).commonAncestorContainer))return null;const{x:r,y:i,width:o,height:s}=e.getBoundingClientRect();let a;switch(e.getAttribute("data-main-rotation")){case"90":a=(u,d,f,h)=>({x:(d-i)/s,y:1-(u+f-r)/o,width:h/s,height:f/o});break;case"180":a=(u,d,f,h)=>({x:1-(u+f-r)/o,y:1-(d+h-i)/s,width:f/o,height:h/s});break;case"270":a=(u,d,f,h)=>({x:1-(d+h-i)/s,y:(u-r)/o,width:h/s,height:f/o});break;default:a=(u,d,f,h)=>({x:(u-r)/o,y:(d-i)/s,width:f/o,height:h/s})}const c=[];for(let u=0,d=t.rangeCount;u<d;u++){const f=t.getRangeAt(u);if(!f.collapsed)for(const{x:h,y:p,width:m,height:y}of f.getClientRects())m!==0&&y!==0&&c.push(a(h,p,m,y))}return c.length===0?null:c}addChangedExistingAnnotation({annotationElementId:e,id:t}){(g(this,Zc)||A(this,Zc,new Map)).set(e,t)}removeChangedExistingAnnotation({annotationElementId:e}){var t;(t=g(this,Zc))==null||t.delete(e)}renderAnnotationElement(e){var i;const t=(i=g(this,Zc))==null?void 0:i.get(e.data.id);if(!t)return;const r=g(this,Eo).getRawValue(t);r&&(g(this,Ht)!==Te.NONE||r.hasBeenModified)&&r.renderAnnotationElement(e)}};Hc=new WeakMap,ar=new WeakMap,Ot=new WeakMap,en=new WeakMap,Uc=new WeakMap,Eo=new WeakMap,Zc=new WeakMap,ei=new WeakMap,Ks=new WeakMap,Wc=new WeakMap,xl=new WeakMap,Di=new WeakMap,ti=new WeakMap,Il=new WeakMap,Gf=new WeakMap,Yf=new WeakMap,qc=new WeakMap,Qf=new WeakMap,Ni=new WeakMap,Gs=new WeakMap,Kc=new WeakMap,Ys=new WeakMap,Pi=new WeakMap,M3=new WeakMap,Qs=new WeakMap,Xf=new WeakMap,Xs=new WeakMap,Ol=new WeakMap,Jf=new WeakMap,eh=new WeakMap,Ht=new WeakMap,He=new WeakMap,Ao=new WeakMap,Dl=new WeakMap,th=new WeakMap,nh=new WeakMap,Js=new WeakMap,_i=new WeakMap,To=new WeakMap,rh=new WeakMap,Gc=new WeakSet,Jy=function({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e},ih=new WeakSet,dv=function(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const r of g(this,en).values())if(r.hasTextLayer(e))return r;return null},E3=new WeakSet,aN=function(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=x(this,Gc,Jy).call(this,e).closest(".textLayer"),r=this.getSelectionBoxes(t);r&&(g(this,Pi)||A(this,Pi,new YU(this)),g(this,Pi).show(t,r,this.direction==="ltr"))},A3=new WeakSet,lN=function(){var i,o,s;const e=document.getSelection();if(!e||e.isCollapsed){g(this,Ao)&&((i=g(this,Pi))==null||i.hide(),A(this,Ao,null),x(this,tn,On).call(this,{hasSelectedText:!1}));return}const{anchorNode:t}=e;if(t===g(this,Ao))return;const r=x(this,Gc,Jy).call(this,e).closest(".textLayer");if(r){if((o=g(this,Pi))==null||o.hide(),A(this,Ao,t),x(this,tn,On).call(this,{hasSelectedText:!0}),(g(this,Ht)===Te.HIGHLIGHT||g(this,Ht)===Te.NONE)&&(g(this,Ht)===Te.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),A(this,Ys,this.isShiftKeyDown),!this.isShiftKeyDown)){const a=g(this,Ht)===Te.HIGHLIGHT?x(this,ih,dv).call(this,r):null;a==null||a.toggleDrawing();const c=new AbortController,u=this.combinedSignal(c),d=f=>{(f.type!=="pointerup"||f.button===0)&&(c.abort(),a==null||a.toggleDrawing(!0),f.type==="pointerup"&&x(this,Yc,e5).call(this,"main_toolbar"))};window.addEventListener("pointerup",d,{signal:u}),window.addEventListener("blur",d,{signal:u})}}else g(this,Ao)&&((s=g(this,Pi))==null||s.hide(),A(this,Ao,null),x(this,tn,On).call(this,{hasSelectedText:!1}))},Yc=new WeakSet,e5=function(e=""){g(this,Ht)===Te.HIGHLIGHT?this.highlightSelection(e):g(this,Gf)&&x(this,E3,aN).call(this)},T3=new WeakSet,cN=function(){document.addEventListener("selectionchange",x(this,A3,lN).bind(this),{signal:this._signal})},x3=new WeakSet,uN=function(){if(g(this,Gs))return;A(this,Gs,new AbortController);const e=this.combinedSignal(g(this,Gs));window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})},I3=new WeakSet,dN=function(){var e;(e=g(this,Gs))==null||e.abort(),A(this,Gs,null)},oh=new WeakSet,fv=function(){if(g(this,Xs))return;A(this,Xs,new AbortController);const e=this.combinedSignal(g(this,Xs));window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})},O3=new WeakSet,fN=function(){var e;(e=g(this,Xs))==null||e.abort(),A(this,Xs,null)},sh=new WeakSet,hv=function(){if(g(this,Ks))return;A(this,Ks,new AbortController);const e=this.combinedSignal(g(this,Ks));document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})},ah=new WeakSet,pv=function(){var e;(e=g(this,Ks))==null||e.abort(),A(this,Ks,null)},D3=new WeakSet,hN=function(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})},tn=new WeakSet,On=function(e){Object.entries(e).some(([t,r])=>g(this,nh)[t]!==r)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(g(this,nh),e)}),g(this,Ht)===Te.HIGHLIGHT&&e.hasSelectedEditor===!1&&x(this,Li,Ia).call(this,[[he.HIGHLIGHT_FREE,!0]]))},Li=new WeakSet,Ia=function(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})},N3=new WeakSet,pN=function(){if(!g(this,Qs)){A(this,Qs,!0);for(const e of g(this,en).values())e.enable();for(const e of g(this,Ot).values())e.enable()}},P3=new WeakSet,mN=function(){if(this.unselectAll(),g(this,Qs)){A(this,Qs,!1);for(const e of g(this,en).values())e.disable();for(const e of g(this,Ot).values())e.disable()}},lh=new WeakSet,mv=function(e){const t=g(this,en).get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))},_3=new WeakSet,gN=function(){let e=null;for(e of g(this,He));return e},Nl=new WeakSet,K1=function(){if(g(this,Ot).size===0)return!0;if(g(this,Ot).size===1)for(const e of g(this,Ot).values())return e.isEmpty();return!1},ch=new WeakSet,gv=function(e){for(const t of g(this,He))t.unselect();g(this,He).clear();for(const t of e)t.isEmpty()||(g(this,He).add(t),t.select());x(this,tn,On).call(this,{hasSelectedEditor:this.hasSelection})},pe(Qc,"TRANSLATE_SMALL",1),pe(Qc,"TRANSLATE_BIG",10);let Ga=Qc;const Pr=class Pr{constructor(e){M(this,Jc);M(this,eu);M(this,Ut,null);M(this,Bi,!1);M(this,ni,null);M(this,Ri,null);M(this,lr,null);M(this,Xc,!1);M(this,$i,null);M(this,Wn,null);M(this,xo,null);M(this,Pl,null);M(this,Vi,!1);A(this,Wn,e),A(this,Vi,e._uiManager.useNewAltTextFlow)}static initialize(e){Pr._l10nPromise||(Pr._l10nPromise=e)}async render(){const e=A(this,ni,document.createElement("button"));e.className="altText";let t;g(this,Vi)?(e.classList.add("new"),t=await Pr._l10nPromise.get("pdfjs-editor-new-alt-text-missing-button-label")):t=await Pr._l10nPromise.get("pdfjs-editor-alt-text-button-label"),e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0";const r=g(this,Wn)._uiManager._signal;e.addEventListener("contextmenu",wr,{signal:r}),e.addEventListener("pointerdown",o=>o.stopPropagation(),{signal:r});const i=o=>{o.preventDefault(),g(this,Wn)._uiManager.editAltText(g(this,Wn)),g(this,Vi)&&g(this,Wn)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:g(this,Jc,t5)}})};return e.addEventListener("click",i,{capture:!0,signal:r}),e.addEventListener("keydown",o=>{o.target===e&&o.key==="Enter"&&(A(this,Xc,!0),i(o))},{signal:r}),await x(this,eu,n5).call(this),e}finish(){g(this,ni)&&(g(this,ni).focus({focusVisible:g(this,Xc)}),A(this,Xc,!1))}isEmpty(){return g(this,Vi)?g(this,Ut)===null:!g(this,Ut)&&!g(this,Bi)}hasData(){return g(this,Vi)?g(this,Ut)!==null||!!g(this,xo):this.isEmpty()}get guessedText(){return g(this,xo)}async setGuessedText(e){g(this,Ut)===null&&(A(this,xo,e),A(this,Pl,await Pr._l10nPromise.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer")({generatedAltText:e})),x(this,eu,n5).call(this))}toggleAltTextBadge(e=!1){var t;if(g(this,Vi)&&!g(this,Ut)){if(!g(this,$i)){const r=A(this,$i,document.createElement("div"));r.className="noAltTextBadge",g(this,Wn).div.append(r)}g(this,$i).classList.toggle("hidden",!e)}else(t=g(this,$i))==null||t.remove(),A(this,$i,null)}serialize(e){let t=g(this,Ut);return e||g(this,xo)!==t||(t=g(this,Pl)),{altText:t,decorative:g(this,Bi),guessedText:g(this,xo),textWithDisclaimer:g(this,Pl)}}get data(){return{altText:g(this,Ut),decorative:g(this,Bi)}}set data({altText:e,decorative:t,guessedText:r,textWithDisclaimer:i,cancel:o=!1}){r&&(A(this,xo,r),A(this,Pl,i)),(g(this,Ut)!==e||g(this,Bi)!==t)&&(o||(A(this,Ut,e),A(this,Bi,t)),x(this,eu,n5).call(this))}toggle(e=!1){g(this,ni)&&(!e&&g(this,lr)&&(clearTimeout(g(this,lr)),A(this,lr,null)),g(this,ni).disabled=!e)}shown(){g(this,Wn)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:g(this,Jc,t5)}})}destroy(){var e,t;(e=g(this,ni))==null||e.remove(),A(this,ni,null),A(this,Ri,null),(t=g(this,$i))==null||t.remove(),A(this,$i,null)}};Ut=new WeakMap,Bi=new WeakMap,ni=new WeakMap,Ri=new WeakMap,lr=new WeakMap,Xc=new WeakMap,$i=new WeakMap,Wn=new WeakMap,xo=new WeakMap,Pl=new WeakMap,Vi=new WeakMap,Jc=new WeakSet,t5=function(){return(g(this,Ut)?"added":g(this,Ut)===null&&this.guessedText&&"review")||"missing"},eu=new WeakSet,n5=async function(){var i,o;const e=g(this,ni);if(!e)return;if(g(this,Vi)){const s=g(this,Jc,t5),a=s==="review"?"to-review":s;if(e.classList.toggle("done",!!g(this,Ut)),Pr._l10nPromise.get(`pdfjs-editor-new-alt-text-${a}-button-label`).then(c=>{e.setAttribute("aria-label",c);for(const u of e.childNodes)if(u.nodeType===Node.TEXT_NODE){u.textContent=c;break}}),!g(this,Ut)){(i=g(this,Ri))==null||i.remove();return}}else{if(!g(this,Ut)&&!g(this,Bi)){e.classList.remove("done"),(o=g(this,Ri))==null||o.remove();return}e.classList.add("done"),Pr._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(s=>{e.setAttribute("aria-label",s)})}let t=g(this,Ri);if(!t){A(this,Ri,t=document.createElement("span")),t.className="tooltip",t.setAttribute("role","tooltip");const s=t.id=`alt-text-tooltip-${g(this,Wn).id}`;e.setAttribute("aria-describedby",s);const a=100,c=g(this,Wn)._uiManager._signal;c.addEventListener("abort",()=>{clearTimeout(g(this,lr)),A(this,lr,null)},{once:!0}),e.addEventListener("mouseenter",()=>{A(this,lr,setTimeout(()=>{A(this,lr,null),g(this,Ri).classList.add("show"),g(this,Wn)._reportTelemetry({action:"alt_text_tooltip"})},a))},{signal:c}),e.addEventListener("mouseleave",()=>{var u;g(this,lr)&&(clearTimeout(g(this,lr)),A(this,lr,null)),(u=g(this,Ri))==null||u.classList.remove("show")},{signal:c})}t.innerText=g(this,Bi)?await Pr._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):g(this,Ut),t.parentNode||e.append(t);const r=g(this,Wn).getImageForAltText();r==null||r.setAttribute("aria-describedby",t.id)},pe(Pr,"_l10nPromise",null);let lm=Pr;const Fe=class Fe{constructor(e){M(this,hh);M(this,mh);M(this,B3);M(this,R3);M(this,gh);M(this,yh);M(this,bh);M(this,$3);M(this,wh);M(this,V3);M(this,F3);M(this,j3);M(this,vh);M(this,Vl);M(this,_l,null);M(this,ri,null);M(this,lt,null);M(this,tu,!1);M(this,Ll,!1);M(this,nn,null);M(this,Bl,null);M(this,ea,null);M(this,uh,"");M(this,Rl,!1);M(this,ta,null);M(this,dh,!1);M(this,$l,!1);M(this,Io,!1);M(this,Fi,null);M(this,nu,0);M(this,ru,0);M(this,_r,null);pe(this,"_editToolbar",null);pe(this,"_initialOptions",Object.create(null));pe(this,"_isVisible",!0);pe(this,"_uiManager",null);pe(this,"_focusEventsAllowed",!0);M(this,fh,!1);M(this,L3,Fe._zIndex++);this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:r,pageHeight:i,pageX:o,pageY:s}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[o,s];const[a,c]=this.parentDimensions;this.x=e.x/a,this.y=e.y/c,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const e=Fe.prototype._resizeWithKeyboard,t=Ga.TRANSLATE_SMALL,r=Ga.TRANSLATE_BIG;return Ie(this,"_resizerKeyboardManager",new u2([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-r,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[r,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-r]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,r]}],[["Escape","mac+Escape"],Fe.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return Ie(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new JU({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t,r){if(Fe._l10nResizer||(Fe._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),Fe._l10nPromise||(Fe._l10nPromise=new Map([...["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-new-alt-text-added-button-label","pdfjs-editor-new-alt-text-missing-button-label","pdfjs-editor-new-alt-text-to-review-button-label"].map(o=>[o,e.get(o)]),...["pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer"].map(o=>[o,e.get.bind(e,o)])])),r!=null&&r.strings)for(const o of r.strings)Fe._l10nPromise.set(o,e.get(o));if(Fe._borderLineWidth!==-1)return;const i=getComputedStyle(document.documentElement);Fe._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){Mt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return g(this,fh)}set _isDraggable(e){var t;A(this,fh,e),(t=this.div)==null||t.classList.toggle("draggable",e)}get isEnterHandled(){return!0}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=g(this,L3)}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):x(this,Vl,G1).call(this),this.parent=e}focusin(e){this._focusEventsAllowed&&(g(this,Rl)?A(this,Rl,!1):this.parent.setSelected(this))}focusout(e){var r;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const t=e.relatedTarget;t!=null&&t.closest(`#${this.id}`)||(e.preventDefault(),(r=this.parent)!=null&&r.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,r,i){const[o,s]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(e+r)/o,this.y=(t+i)/s,this.fixAndSetPosition()}translate(e,t){x(this,hh,yv).call(this,this.parentDimensions,e,t)}translateInPage(e,t){g(this,ta)||A(this,ta,[this.x,this.y]),x(this,hh,yv).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){g(this,ta)||A(this,ta,[this.x,this.y]);const[r,i]=this.parentDimensions;if(this.x+=e/r,this.y+=t/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:d}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,d)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:s}=this;const[a,c]=this.getBaseTranslation();o+=a,s+=c,this.div.style.left=`${(100*o).toFixed(2)}%`,this.div.style.top=`${(100*s).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!g(this,ta)&&(g(this,ta)[0]!==this.x||g(this,ta)[1]!==this.y)}getBaseTranslation(){const[e,t]=this.parentDimensions,{_borderLineWidth:r}=Fe,i=r/e,o=r/t;switch(this.rotation){case 90:return[-i,o];case 180:return[i,o];case 270:return[i,-o];default:return[-i,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const[t,r]=this.pageDimensions;let{x:i,y:o,width:s,height:a}=this;if(s*=t,a*=r,i*=t,o*=r,this._mustFixPosition)switch(e){case 0:i=Math.max(0,Math.min(t-s,i)),o=Math.max(0,Math.min(r-a,o));break;case 90:i=Math.max(0,Math.min(t-a,i)),o=Math.min(r,Math.max(s,o));break;case 180:i=Math.min(t,Math.max(s,i)),o=Math.min(r,Math.max(a,o));break;case 270:i=Math.min(t,Math.max(a,i)),o=Math.max(0,Math.min(r-s,o))}this.x=i/=t,this.y=o/=r;const[c,u]=this.getBaseTranslation();i+=c,o+=u;const{style:d}=this.div;d.left=`${(100*i).toFixed(2)}%`,d.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(e,t){var r;return x(r=Fe,ph,bv).call(r,e,t,this.parentRotation)}pageTranslationToScreen(e,t){var r;return x(r=Fe,ph,bv).call(r,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,r]}=this,i=t*e,o=r*e;return Rn.isCSSRoundSupported?[Math.round(i),Math.round(o)]:[i,o]}setDims(e,t){const[r,i]=this.parentDimensions;this.div.style.width=`${(100*e/r).toFixed(2)}%`,g(this,Ll)||(this.div.style.height=`${(100*t/i).toFixed(2)}%`)}fixDims(){const{style:e}=this.div,{height:t,width:r}=e,i=r.endsWith("%"),o=!g(this,Ll)&&t.endsWith("%");if(i&&o)return;const[s,a]=this.parentDimensions;i||(e.width=`${(100*parseFloat(r)/s).toFixed(2)}%`),g(this,Ll)||o||(e.height=`${(100*parseFloat(t)/a).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var e;(e=g(this,lt))==null||e.finish()}async addEditToolbar(){return this._editToolbar||g(this,$l)?this._editToolbar:(this._editToolbar=new O4(this),this.div.append(this._editToolbar.render()),g(this,lt)&&await this._editToolbar.addAltText(g(this,lt)),this._editToolbar)}removeEditToolbar(){var e;this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,(e=g(this,lt))==null||e.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){g(this,lt)||(lm.initialize(Fe._l10nPromise),A(this,lt,new lm(this)),g(this,_l)&&(g(this,lt).data=g(this,_l),A(this,_l,null)),await this.addEditToolbar())}get altTextData(){var e;return(e=g(this,lt))==null?void 0:e.data}set altTextData(e){g(this,lt)&&(g(this,lt).data=e)}get guessedAltText(){var e;return(e=g(this,lt))==null?void 0:e.guessedText}async setGuessedAltText(e){var t;await((t=g(this,lt))==null?void 0:t.setGuessedText(e))}serializeAltText(e){var t;return(t=g(this,lt))==null?void 0:t.serialize(e)}hasAltText(){return!!g(this,lt)&&!g(this,lt).isEmpty()}hasAltTextData(){var e;return((e=g(this,lt))==null?void 0:e.hasData())??!1}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=g(this,tu)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),x(this,wh,Sv).call(this);const[e,t]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*t/e).toFixed(2)}%`,this.div.style.maxHeight=`${(100*e/t).toFixed(2)}%`);const[r,i]=this.getInitialTranslation();return this.translate(r,i),am(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=Rn.platform;e.button!==0||e.ctrlKey&&t?e.preventDefault():(A(this,Rl,!0),this._isDraggable?x(this,$3,wN).call(this,e):x(this,bh,kv).call(this,e))}moveInDOM(){g(this,Fi)&&clearTimeout(g(this,Fi)),A(this,Fi,setTimeout(()=>{var e;A(this,Fi,null),(e=this.parent)==null||e.moveEditorInDOM(this)},0))}_setParentAndPosition(e,t,r){e.changeParent(this),this.x=t,this.y=r,this.fixAndSetPosition()}getRect(e,t,r=this.rotation){const i=this.parentScale,[o,s]=this.pageDimensions,[a,c]=this.pageTranslation,u=e/i,d=t/i,f=this.x*o,h=this.y*s,p=this.width*o,m=this.height*s;switch(r){case 0:return[f+u+a,s-h-d-m+c,f+u+p+a,s-h-d+c];case 90:return[f+d+a,s-h+u+c,f+d+m+a,s-h+u+p+c];case 180:return[f-u-p+a,s-h+d+c,f-u+a,s-h+d+m+c];case 270:return[f-d-m+a,s-h-u-p+c,f-d+a,s-h-u+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[r,i,o,s]=e,a=o-r,c=s-i;switch(this.rotation){case 0:return[r,t-s,a,c];case 90:return[r,t-i,c,a];case 180:return[o,t-i,a,c];case 270:return[o,t-s,c,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){A(this,$l,!0)}disableEditMode(){A(this,$l,!1)}isInEditMode(){return g(this,$l)}shouldGetKeyboardEvents(){return g(this,Io)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){x(this,wh,Sv).call(this)}rotate(e){}serialize(e=!1,t=null){Mt("An editor must be serializable")}static deserialize(e,t,r){const i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:r});i.rotation=e.rotation,A(i,_l,e.accessibilityData);const[o,s]=i.pageDimensions,[a,c,u,d]=i.getRectInCurrentCoords(e.rect,s);return i.x=a/o,i.y=c/s,i.width=u/o,i.height=d/s,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){var e;if((e=g(this,ea))==null||e.abort(),A(this,ea,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),g(this,Fi)&&(clearTimeout(g(this,Fi)),A(this,Fi,null)),x(this,Vl,G1).call(this),this.removeEditToolbar(),g(this,_r)){for(const t of g(this,_r).values())clearTimeout(t);A(this,_r,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(x(this,B3,yN).call(this),g(this,nn).classList.remove("hidden"),am(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),A(this,Bl,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const t=g(this,nn).children;if(!g(this,ri)){A(this,ri,Array.from(t));const s=x(this,V3,vN).bind(this),a=x(this,F3,CN).bind(this),c=this._uiManager._signal;for(const u of g(this,ri)){const d=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",s,{signal:c}),u.addEventListener("blur",a,{signal:c}),u.addEventListener("focus",x(this,j3,kN).bind(this,d),{signal:c}),u.setAttribute("data-l10n-id",Fe._l10nResizer[d])}}const r=g(this,ri)[0];let i=0;for(const s of t){if(s===r)break;i++}const o=(360-this.rotation+this.parentRotation)%360/90*(g(this,ri).length/4);if(o!==i){if(o<i)for(let a=0;a<i-o;a++)g(this,nn).append(g(this,nn).firstChild);else if(o>i)for(let a=0;a<o-i;a++)g(this,nn).firstChild.before(g(this,nn).lastChild);let s=0;for(const a of t){const c=g(this,ri)[s++].getAttribute("data-resizer-name");a.setAttribute("data-l10n-id",Fe._l10nResizer[c])}}x(this,vh,Mv).call(this,0),A(this,Io,!0),g(this,nn).firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}_resizeWithKeyboard(e,t){g(this,Io)&&x(this,yh,Cv).call(this,g(this,uh),{movementX:e,movementY:t})}_stopResizingWithKeyboard(){x(this,Vl,G1).call(this),this.div.focus()}select(){var e,t,r;this.makeResizable(),(e=this.div)==null||e.classList.add("selectedEditor"),this._editToolbar?((t=this._editToolbar)==null||t.show(),(r=g(this,lt))==null||r.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{var i,o;(i=this.div)!=null&&i.classList.contains("selectedEditor")&&((o=this._editToolbar)==null||o.show())})}unselect(){var e,t,r,i,o;(e=g(this,nn))==null||e.classList.add("hidden"),(t=this.div)==null||t.classList.remove("selectedEditor"),(r=this.div)!=null&&r.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(i=this._editToolbar)==null||i.hide(),(o=g(this,lt))==null||o.toggleAltTextBadge(!0)}updateParams(e,t){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return g(this,dh)}set isEditing(e){A(this,dh,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){A(this,Ll,!0);const r=e/t,{style:i}=this.div;i.aspectRatio=r,i.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,t=!1){if(t){g(this,_r)||A(this,_r,new Map);const{action:r}=e;let i=g(this,_r).get(r);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),g(this,_r).delete(r),g(this,_r).size===0&&A(this,_r,null)},Fe._telemetryTimeout),g(this,_r).set(r,i)}else e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),A(this,tu,!1)}disable(){this.div&&(this.div.tabIndex=-1),A(this,tu,!0)}renderAnnotationElement(e){let t=e.container.querySelector(".annotationContent");if(t){if(t.nodeName==="CANVAS"){const r=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),r.before(t)}}else t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);return t}resetAnnotationElement(e){const{firstChild:t}=e.container;t.nodeName==="DIV"&&t.classList.contains("annotationContent")&&t.remove()}};_l=new WeakMap,ri=new WeakMap,lt=new WeakMap,tu=new WeakMap,Ll=new WeakMap,nn=new WeakMap,Bl=new WeakMap,ea=new WeakMap,uh=new WeakMap,Rl=new WeakMap,ta=new WeakMap,dh=new WeakMap,$l=new WeakMap,Io=new WeakMap,Fi=new WeakMap,nu=new WeakMap,ru=new WeakMap,_r=new WeakMap,fh=new WeakMap,L3=new WeakMap,hh=new WeakSet,yv=function([e,t],r,i){[r,i]=this.screenToPageTranslation(r,i),this.x+=r/e,this.y+=i/t,this.fixAndSetPosition()},ph=new WeakSet,bv=function(e,t,r){switch(r){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}},mh=new WeakSet,wv=function(e){switch(e){case 90:{const[t,r]=this.pageDimensions;return[0,-t/r,r/t,0]}case 180:return[-1,0,0,-1];case 270:{const[t,r]=this.pageDimensions;return[0,t/r,-r/t,0]}default:return[1,0,0,1]}},B3=new WeakSet,yN=function(){if(g(this,nn))return;A(this,nn,document.createElement("div")),g(this,nn).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const r of e){const i=document.createElement("div");g(this,nn).append(i),i.classList.add("resizer",r),i.setAttribute("data-resizer-name",r),i.addEventListener("pointerdown",x(this,R3,bN).bind(this,r),{signal:t}),i.addEventListener("contextmenu",wr,{signal:t}),i.tabIndex=-1}this.div.prepend(g(this,nn))},R3=new WeakSet,bN=function(e,t){var m;t.preventDefault();const{isMac:r}=Rn.platform;if(t.button!==0||t.ctrlKey&&r)return;(m=g(this,lt))==null||m.toggle(!1);const i=this._isDraggable;this._isDraggable=!1;const o=new AbortController,s=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",x(this,yh,Cv).bind(this,e),{passive:!0,capture:!0,signal:s}),window.addEventListener("contextmenu",wr,{signal:s});const a=this.x,c=this.y,u=this.width,d=this.height,f=this.parent.div.style.cursor,h=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const p=()=>{var y;o.abort(),this.parent.togglePointerEvents(!0),(y=g(this,lt))==null||y.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=f,this.div.style.cursor=h,x(this,gh,vv).call(this,a,c,u,d)};window.addEventListener("pointerup",p,{signal:s}),window.addEventListener("blur",p,{signal:s})},gh=new WeakSet,vv=function(e,t,r,i){const o=this.x,s=this.y,a=this.width,c=this.height;o===e&&s===t&&a===r&&c===i||this.addCommands({cmd:()=>{this.width=a,this.height=c,this.x=o,this.y=s;const[u,d]=this.parentDimensions;this.setDims(u*a,d*c),this.fixAndSetPosition()},undo:()=>{this.width=r,this.height=i,this.x=e,this.y=t;const[u,d]=this.parentDimensions;this.setDims(u*r,d*i),this.fixAndSetPosition()},mustExec:!0})},yh=new WeakSet,Cv=function(e,t){const[r,i]=this.parentDimensions,o=this.x,s=this.y,a=this.width,c=this.height,u=Fe.MIN_SIZE/r,d=Fe.MIN_SIZE/i,f=R=>Math.round(1e4*R)/1e4,h=x(this,mh,wv).call(this,this.rotation),p=(R,q)=>[h[0]*R+h[2]*q,h[1]*R+h[3]*q],m=x(this,mh,wv).call(this,360-this.rotation);let y,b,w=!1,v=!1;switch(e){case"topLeft":w=!0,y=(R,q)=>[0,0],b=(R,q)=>[R,q];break;case"topMiddle":y=(R,q)=>[R/2,0],b=(R,q)=>[R/2,q];break;case"topRight":w=!0,y=(R,q)=>[R,0],b=(R,q)=>[0,q];break;case"middleRight":v=!0,y=(R,q)=>[R,q/2],b=(R,q)=>[0,q/2];break;case"bottomRight":w=!0,y=(R,q)=>[R,q],b=(R,q)=>[0,0];break;case"bottomMiddle":y=(R,q)=>[R/2,q],b=(R,q)=>[R/2,0];break;case"bottomLeft":w=!0,y=(R,q)=>[0,q],b=(R,q)=>[R,0];break;case"middleLeft":v=!0,y=(R,q)=>[0,q/2],b=(R,q)=>[R,q/2]}const k=y(a,c),C=b(a,c);let T=p(...C);const S=f(o+T[0]),E=f(s+T[1]);let O=1,I=1,[P,D]=this.screenToPageTranslation(t.movementX,t.movementY);[P,D]=(B=P/r,V=D/i,[m[0]*B+m[2]*V,m[1]*B+m[3]*V]);var B,V;if(w){const R=Math.hypot(a,c);O=I=Math.max(Math.min(Math.hypot(C[0]-k[0]-P,C[1]-k[1]-D)/R,1/a,1/c),u/a,d/c)}else v?O=Math.max(u,Math.min(1,Math.abs(C[0]-k[0]-P)))/a:I=Math.max(d,Math.min(1,Math.abs(C[1]-k[1]-D)))/c;const U=f(a*O),L=f(c*I);T=p(...b(U,L));const N=S-T[0],$=E-T[1];this.width=U,this.height=L,this.x=N,this.y=$,this.setDims(r*U,i*L),this.fixAndSetPosition()},bh=new WeakSet,kv=function(e){const{isMac:t}=Rn.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)},$3=new WeakSet,wN=function(e){const t=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();const r=new AbortController,i=this._uiManager.combinedSignal(r);if(t){this.div.classList.add("moving"),A(this,nu,e.clientX),A(this,ru,e.clientY);const s=a=>{const{clientX:c,clientY:u}=a,[d,f]=this.screenToPageTranslation(c-g(this,nu),u-g(this,ru));A(this,nu,c),A(this,ru,u),this._uiManager.dragSelectedEditors(d,f)};window.addEventListener("pointermove",s,{passive:!0,capture:!0,signal:i})}const o=()=>{r.abort(),t&&this.div.classList.remove("moving"),A(this,Rl,!1),this._uiManager.endDragSession()||x(this,bh,kv).call(this,e)};window.addEventListener("pointerup",o,{signal:i}),window.addEventListener("blur",o,{signal:i})},wh=new WeakSet,Sv=function(){if(g(this,ea)||!this.div)return;A(this,ea,new AbortController);const e=this._uiManager.combinedSignal(g(this,ea));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})},V3=new WeakSet,vN=function(e){Fe._resizerKeyboardManager.exec(this,e)},F3=new WeakSet,CN=function(e){var t;g(this,Io)&&((t=e.relatedTarget)==null?void 0:t.parentNode)!==g(this,nn)&&x(this,Vl,G1).call(this)},j3=new WeakSet,kN=function(e){A(this,uh,g(this,Io)?e:"")},vh=new WeakSet,Mv=function(e){if(g(this,ri))for(const t of g(this,ri))t.tabIndex=e},Vl=new WeakSet,G1=function(){if(A(this,Io,!1),x(this,vh,Mv).call(this,-1),g(this,Bl)){const{savedX:e,savedY:t,savedWidth:r,savedHeight:i}=g(this,Bl);x(this,gh,vv).call(this,e,t,r,i),A(this,Bl,null)}},M(Fe,ph),pe(Fe,"_l10nPromise",null),pe(Fe,"_l10nResizer",null),pe(Fe,"_borderLineWidth",-1),pe(Fe,"_colorManager",new N4),pe(Fe,"_zIndex",1),pe(Fe,"_telemetryTimeout",1e3);let ze=Fe;class JU extends ze{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const SM=3285377520,vr=4294901760,ps=65535;class MM{constructor(e){this.h1=e?4294967295&e:SM,this.h2=e?4294967295&e:SM}update(e){let t,r;if(typeof e=="string"){t=new Uint8Array(2*e.length),r=0;for(let y=0,b=e.length;y<b;y++){const w=e.charCodeAt(y);w<=255?t[r++]=w:(t[r++]=w>>>8,t[r++]=255&w)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice(),r=t.byteLength}const i=r>>2,o=r-4*i,s=new Uint32Array(t.buffer,0,i);let a=0,c=0,u=this.h1,d=this.h2;const f=3432918353,h=461845907,p=11601,m=13715;for(let y=0;y<i;y++)1&y?(a=s[y],a=a*f&vr|a*p&ps,a=a<<15|a>>>17,a=a*h&vr|a*m&ps,u^=a,u=u<<13|u>>>19,u=5*u+3864292196):(c=s[y],c=c*f&vr|c*p&ps,c=c<<15|c>>>17,c=c*h&vr|c*m&ps,d^=c,d=d<<13|d>>>19,d=5*d+3864292196);switch(a=0,o){case 3:a^=t[4*i+2]<<16;case 2:a^=t[4*i+1]<<8;case 1:a^=t[4*i],a=a*f&vr|a*p&ps,a=a<<15|a>>>17,a=a*h&vr|a*m&ps,1&i?u^=a:d^=a}this.h1=u,this.h2=d}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&vr|36045*e&ps,t=4283543511*t&vr|(2950163797*(t<<16|e>>>16)&vr)>>>16,e^=t>>>1,e=444984403*e&vr|60499*e&ps,t=3301882366*t&vr|(3120437893*(t<<16|e>>>16)&vr)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}const P4=Object.freeze({map:null,hash:"",transfer:void 0});class _4{constructor(){M(this,z3);M(this,Fl,!1);M(this,jl,null);M(this,Zt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const r=g(this,Zt).get(e);return r===void 0?t:Object.assign(t,r)}getRawValue(e){return g(this,Zt).get(e)}remove(e){if(g(this,Zt).delete(e),g(this,Zt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const t of g(this,Zt).values())if(t instanceof ze)return;this.onAnnotationEditor(null)}}setValue(e,t){const r=g(this,Zt).get(e);let i=!1;if(r!==void 0)for(const[o,s]of Object.entries(t))r[o]!==s&&(i=!0,r[o]=s);else i=!0,g(this,Zt).set(e,t);i&&x(this,z3,SN).call(this),t instanceof ze&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(t.constructor._type)}has(e){return g(this,Zt).has(e)}getAll(){return g(this,Zt).size>0?S4(g(this,Zt)):null}setAll(e){for(const[t,r]of Object.entries(e))this.setValue(t,r)}get size(){return g(this,Zt).size}resetModified(){g(this,Fl)&&(A(this,Fl,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new EM(this)}get serializable(){if(g(this,Zt).size===0)return P4;const e=new Map,t=new MM,r=[],i=Object.create(null);let o=!1;for(const[s,a]of g(this,Zt)){const c=a instanceof ze?a.serialize(!1,i):a;c&&(e.set(s,c),t.update(`${s}:${JSON.stringify(c)}`),o||(o=!!c.bitmap))}if(o)for(const s of e.values())s.bitmap&&r.push(s.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:r}:P4}get editorStats(){let e=null;const t=new Map;for(const r of g(this,Zt).values()){if(!(r instanceof ze))continue;const i=r.telemetryFinalData;if(!i)continue;const{type:o}=i;t.has(o)||t.set(o,Object.getPrototypeOf(r).constructor),e||(e=Object.create(null));const s=e[o]||(e[o]=new Map);for(const[a,c]of Object.entries(i)){if(a==="type")continue;let u=s.get(a);u||(u=new Map,s.set(a,u));const d=u.get(c)??0;u.set(c,d+1)}}for(const[r,i]of t)e[r]=i.computeTelemetryFinalData(e[r]);return e}resetModifiedIds(){A(this,jl,null)}get modifiedIds(){if(g(this,jl))return g(this,jl);const e=[];for(const t of g(this,Zt).values())t instanceof ze&&t.annotationElementId&&t.serialize()&&e.push(t.annotationElementId);return A(this,jl,{ids:new Set(e),hash:e.join(",")})}}Fl=new WeakMap,jl=new WeakMap,Zt=new WeakMap,z3=new WeakSet,SN=function(){g(this,Fl)||(A(this,Fl,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class EM extends _4{constructor(t){super();M(this,Ch,void 0);const{map:r,hash:i,transfer:o}=t.serializable,s=structuredClone(r,o?{transfer:o}:null);A(this,Ch,{map:s,hash:i,transfer:o})}get print(){Mt("Should not call PrintAnnotationStorage.print")}get serializable(){return g(this,Ch)}get modifiedIds(){return Ie(this,"modifiedIds",{ids:new Set,hash:""})}}Ch=new WeakMap;class eZ{constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){M(this,iu,new Set);this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),g(this,iu).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,_inspectFont:t}){if(e&&!g(this,iu).has(e.loadedName))if(xt(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:r,src:i,style:o}=e,s=new FontFace(r,i,o);this.addNativeFontFace(s);try{await s.load(),g(this,iu).add(r),t==null||t(e)}catch{ke(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(s)}}else Mt("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const r=e.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(i){throw ke(`Failed to load font '${r.family}': '${i}'.`),e.disableFontFace=!0,i}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const i=this._queueLoadingCallback(r);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){var e;return Ie(this,"isFontLoadingAPISupported",!!((e=this._document)!=null&&e.fonts))}get isSyncFontLoadingSupported(){let e=!1;return(cn||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),Ie(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,r={done:!1,complete:function(){for(xt(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.length>0&&t[0].done;){const o=t.shift();setTimeout(o.callback,0)}},callback:e};return t.push(r),r}get _loadTestFont(){return Ie(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t){function r(b,w){return b.charCodeAt(w)<<24|b.charCodeAt(w+1)<<16|b.charCodeAt(w+2)<<8|255&b.charCodeAt(w+3)}function i(b,w,v,k){return b.substring(0,w)+k+b.substring(w+v)}let o,s;const a=this._document.createElement("canvas");a.width=1,a.height=1;const c=a.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=i(f,976,d.length,d);const h=1482184792;let p=r(f,16);for(o=0,s=d.length-3;o<s;o+=4)p=p-h+r(d,o)|0;o<d.length&&(p=p-h+r(d+"XXX",o)|0),f=i(f,16,4,function(w){return String.fromCharCode(w>>24&255,w>>16&255,w>>8&255,255&w)}(p));const m=`@font-face {font-family:"${d}";src:${`url(data:font/opentype;base64,${btoa(f)});`}}`;this.insertRule(m);const y=this._document.createElement("div");y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px";for(const b of[e.loadedName,d]){const w=this._document.createElement("span");w.textContent="Hi",w.style.fontFamily=b,y.append(w)}this._document.body.append(y),function b(w,v){if(++u>30){ke("Load test font never loaded."),v();return}c.font="30px "+w,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?v():setTimeout(b.bind(null,w,v))}(d,()=>{y.remove(),t.complete()})}}iu=new WeakMap;class tZ{constructor(e,{disableFontFace:t=!1,inspectFont:r=null}){this.compiledGlyphs=Object.create(null);for(const i in e)this[i]=e[i];this.disableFontFace=t===!0,this._inspectFont=r}createNativeFontFace(){var t;if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else e=new FontFace(this.loadedName,this.data,{});return(t=this._inspectFont)==null||t.call(this,this),e}createFontFaceRule(){var i;if(!this.data||this.disableFontFace)return null;const e=dM(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let r;if(this.cssFontInfo){let o=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(o+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${o}src:${t}}`}else r=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return(i=this._inspectFont)==null||i.call(this,this,t),r}getPathGenerator(e,t){if(this.compiledGlyphs[t]!==void 0)return this.compiledGlyphs[t];let r;try{r=e.get(this.loadedName+"_path_"+t)}catch(o){ke(`getPathGenerator - ignoring character: "${o}".`)}if(!Array.isArray(r)||r.length===0)return this.compiledGlyphs[t]=function(o,s){};const i=[];for(let o=0,s=r.length;o<s;)switch(r[o++]){case RU:{const[a,c,u,d,f,h]=r.slice(o,o+6);i.push(p=>p.bezierCurveTo(a,c,u,d,f,h)),o+=6}break;case $U:{const[a,c]=r.slice(o,o+2);i.push(u=>u.moveTo(a,c)),o+=2}break;case VU:{const[a,c]=r.slice(o,o+2);i.push(u=>u.lineTo(a,c)),o+=2}break;case FU:{const[a,c,u,d]=r.slice(o,o+4);i.push(f=>f.quadraticCurveTo(a,c,u,d)),o+=4}break;case jU:i.push(a=>a.restore());break;case zU:i.push(a=>a.save());break;case HU:xt(i.length===2,"Scale command is only valid at the third position.");break;case UU:{const[a,c,u,d,f,h]=r.slice(o,o+6);i.push(p=>p.transform(a,c,u,d,f,h)),o+=6}break;case ZU:{const[a,c]=r.slice(o,o+2);i.push(u=>u.translate(a,c)),o+=2}}return this.compiledGlyphs[t]=function(s,a){i[0](s),i[1](s),s.scale(a,-a);for(let c=2,u=i.length;c<u;c++)i[c](s)}}}if(cn){var L4=Promise.withResolvers(),d2=null;(async()=>{const n=await Promise.resolve().then(()=>Rf),e=await Promise.resolve().then(()=>Rf),t=await Promise.resolve().then(()=>Rf),r=await Promise.resolve().then(()=>Rf);let i,o;try{i=await Promise.resolve().then(()=>Rf)}catch{}try{o=await Promise.resolve().then(()=>Tfe)}catch{}return new Map(Object.entries({fs:n,http:e,https:t,url:r,canvas:i,path2d:o}))})().then(n=>{var e,t,r,i;if(d2=n,L4.resolve(),!globalThis.DOMMatrix){const o=(e=n.get("canvas"))==null?void 0:e.DOMMatrix;o?globalThis.DOMMatrix=o:ke("Cannot polyfill `DOMMatrix`, rendering may be broken.")}if(!globalThis.Path2D){const o=(t=n.get("canvas"))==null?void 0:t.CanvasRenderingContext2D,s=(r=n.get("path2d"))==null?void 0:r.applyPath2DToCanvasRenderingContext,a=(i=n.get("path2d"))==null?void 0:i.Path2D;o&&s&&a?(s(o),globalThis.Path2D=a):ke("Cannot polyfill `Path2D`, rendering may be broken.")}},n=>{ke(`loadPackages: ${n}`),d2=new Map,L4.resolve()})}class ms{static get promise(){return L4.promise}static get(e){return d2==null?void 0:d2.get(e)}}const AM=function(n){return ms.get("fs").promises.readFile(n).then(e=>new Uint8Array(e))},Ya="Fill",B4="Stroke",f2="Shading";function R4(n,e){if(!e)return;const t=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],t,r),n.clip(i)}class $4{getPattern(){Mt("Abstract method `getPattern` called.")}}class nZ extends $4{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;this._type==="axial"?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const r of this._colorStops)t.addColorStop(r[0],r[1]);return t}getPattern(e,t,r,i){let o;if(i===B4||i===Ya){const s=t.current.getClippedPathBoundingBox(i,ot(e))||[0,0,0,0],a=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,u=t.cachedCanvases.getCanvas("pattern",a,c,!0),d=u.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-s[0],-s[1]),r=le.transform(r,[1,0,0,1,s[0],s[1]]),d.transform(...t.baseTransform),this.matrix&&d.transform(...this.matrix),R4(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),o=e.createPattern(u.canvas,"no-repeat");const f=new DOMMatrix(r);o.setTransform(f)}else R4(e,this._bbox),o=this._createGradient(e);return o}}function V4(n,e,t,r,i,o,s,a){const c=e.coords,u=e.colors,d=n.data,f=4*n.width;let h;c[t+1]>c[r+1]&&(h=t,t=r,r=h,h=o,o=s,s=h),c[r+1]>c[i+1]&&(h=r,r=i,i=h,h=s,s=a,a=h),c[t+1]>c[r+1]&&(h=t,t=r,r=h,h=o,o=s,s=h);const p=(c[t]+e.offsetX)*e.scaleX,m=(c[t+1]+e.offsetY)*e.scaleY,y=(c[r]+e.offsetX)*e.scaleX,b=(c[r+1]+e.offsetY)*e.scaleY,w=(c[i]+e.offsetX)*e.scaleX,v=(c[i+1]+e.offsetY)*e.scaleY;if(m>=v)return;const k=u[o],C=u[o+1],T=u[o+2],S=u[s],E=u[s+1],O=u[s+2],I=u[a],P=u[a+1],D=u[a+2],B=Math.round(m),V=Math.round(v);let U,L,N,$,R,q,re,ce;for(let K=B;K<=V;K++){if(K<b){const J=K<m?0:(m-K)/(m-b);U=p-(p-y)*J,L=k-(k-S)*J,N=C-(C-E)*J,$=T-(T-O)*J}else{let J;J=K>v?1:b===v?0:(b-K)/(b-v),U=y-(y-w)*J,L=S-(S-I)*J,N=E-(E-P)*J,$=O-(O-D)*J}let H;H=K<m?0:K>v?1:(m-K)/(m-v),R=p-(p-w)*H,q=k-(k-I)*H,re=C-(C-P)*H,ce=T-(T-D)*H;const j=Math.round(Math.min(U,R)),F=Math.round(Math.max(U,R));let G=f*K+4*j;for(let J=j;J<=F;J++)H=(U-J)/(U-R),H<0?H=0:H>1&&(H=1),d[G++]=L-(L-q)*H|0,d[G++]=N-(N-re)*H|0,d[G++]=$-($-ce)*H|0,d[G++]=255}}function rZ(n,e,t){const r=e.coords,i=e.colors;let o,s;switch(e.type){case"lattice":const a=e.verticesPerRow,c=Math.floor(r.length/a)-1,u=a-1;for(o=0;o<c;o++){let d=o*a;for(let f=0;f<u;f++,d++)V4(n,t,r[d],r[d+1],r[d+a],i[d],i[d+1],i[d+a]),V4(n,t,r[d+a+1],r[d+1],r[d+a],i[d+a+1],i[d+1],i[d+a])}break;case"triangles":for(o=0,s=r.length;o<s;o+=3)V4(n,t,r[o],r[o+1],r[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class iZ extends $4{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,r){const i=Math.floor(this._bounds[0]),o=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-i,a=Math.ceil(this._bounds[3])-o,c=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),u=Math.min(Math.ceil(Math.abs(a*e[1]*1.1)),3e3),d=s/c,f=a/u,h={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-o,scaleX:1/d,scaleY:1/f},p=c+4,m=u+4,y=r.getCanvas("mesh",p,m,!1),b=y.context,w=b.createImageData(c,u);if(t){const v=w.data;for(let k=0,C=v.length;k<C;k+=4)v[k]=t[0],v[k+1]=t[1],v[k+2]=t[2],v[k+3]=255}for(const v of this._figures)rZ(w,v,h);return b.putImageData(w,2,2),{canvas:y.canvas,offsetX:i-2*d,offsetY:o-2*f,scaleX:d,scaleY:f}}getPattern(e,t,r,i){R4(e,this._bbox);let o;if(i===f2)o=le.singularValueDecompose2dScale(ot(e));else if(o=le.singularValueDecompose2dScale(t.baseTransform),this.matrix){const a=le.singularValueDecompose2dScale(this.matrix);o=[o[0]*a[0],o[1]*a[1]]}const s=this._createMeshCanvas(o,i===f2?null:this._background,t.cachedCanvases);return i!==f2&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(s.offsetX,s.offsetY),e.scale(s.scaleX,s.scaleY),e.createPattern(s.canvas,"no-repeat")}}class oZ extends $4{getPattern(){return"hotpink"}}const sZ=1,aZ=2,H3=class H3{constructor(e,t,r,i,o){this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=r,this.canvasGraphicsFactory=i,this.baseTransform=o}createPatternCanvas(e){const t=this.operatorList,r=this.bbox,i=this.xstep,o=this.ystep,s=this.paintType,a=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;nm("TilingType: "+a);const d=r[0],f=r[1],h=r[2],p=r[3],m=le.singularValueDecompose2dScale(this.matrix),y=le.singularValueDecompose2dScale(this.baseTransform),b=[m[0]*y[0],m[1]*y[1]],w=this.getSizeAndScale(i,this.ctx.canvas.width,b[0]),v=this.getSizeAndScale(o,this.ctx.canvas.height,b[1]),k=e.cachedCanvases.getCanvas("pattern",w.size,v.size,!0),C=k.context,T=u.createCanvasGraphics(C);T.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(T,s,c);let S=d,E=f,O=h,I=p;return d<0&&(S=0,O+=Math.abs(d)),f<0&&(E=0,I+=Math.abs(f)),C.translate(-w.scale*S,-v.scale*E),T.transform(w.scale,0,0,v.scale,0,0),C.save(),this.clipBbox(T,S,E,O,I),T.baseTransform=ot(T.ctx),T.executeOperatorList(t),T.endDrawing(),{canvas:k.canvas,scaleX:w.scale,scaleY:v.scale,offsetX:S,offsetY:E}}getSizeAndScale(e,t,r){e=Math.abs(e);const i=Math.max(H3.MAX_PATTERN_SIZE,t);let o=Math.ceil(e*r);return o>=i?o=i:r=o/e,{scale:r,size:o}}clipBbox(e,t,r,i,o){const s=i-t,a=o-r;e.ctx.rect(t,r,s,a),e.current.updateRectMinMax(ot(e.ctx),[t,r,i,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){const i=e.ctx,o=e.current;switch(t){case sZ:const s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case aZ:const a=le.makeHexColor(r[0],r[1],r[2]);i.fillStyle=a,i.strokeStyle=a,o.fillColor=a,o.strokeColor=a;break;default:throw new LU(`Unsupported paint type: ${t}`)}}getPattern(e,t,r,i){let o=r;i!==f2&&(o=le.transform(o,t.baseTransform),this.matrix&&(o=le.transform(o,this.matrix)));const s=this.createPatternCanvas(t);let a=new DOMMatrix(o);a=a.translate(s.offsetX,s.offsetY),a=a.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");return c.setTransform(a),c}};pe(H3,"MAX_PATTERN_SIZE",3e3);let F4=H3;function lZ({src:n,srcPos:e=0,dest:t,width:r,height:i,nonBlackColor:o=4294967295,inverseDecode:s=!1}){const a=Rn.isLittleEndian?4278190080:255,[c,u]=s?[o,a]:[a,o],d=r>>3,f=7&r,h=n.length;t=new Uint32Array(t.buffer);let p=0;for(let m=0;m<i;m++){for(const b=e+d;e<b;e++){const w=e<h?n[e]:255;t[p++]=128&w?u:c,t[p++]=64&w?u:c,t[p++]=32&w?u:c,t[p++]=16&w?u:c,t[p++]=8&w?u:c,t[p++]=4&w?u:c,t[p++]=2&w?u:c,t[p++]=1&w?u:c}if(f===0)continue;const y=e<h?n[e++]:255;for(let b=0;b<f;b++)t[p++]=y&1<<7-b?u:c}return{srcPos:e,destPos:p}}const $n=16;class cZ{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,t,r)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function cm(n,e,t,r,i,o,s,a,c,u){const[d,f,h,p,m,y]=ot(n);if(f===0&&h===0){const b=s*d+m,w=Math.round(b),v=a*p+y,k=Math.round(v),C=(s+c)*d+m,T=Math.abs(Math.round(C)-w)||1,S=(a+u)*p+y,E=Math.abs(Math.round(S)-k)||1;return n.setTransform(Math.sign(d),0,0,Math.sign(p),w,k),n.drawImage(e,t,r,i,o,0,0,T,E),n.setTransform(d,f,h,p,m,y),[T,E]}if(d===0&&p===0){const b=a*h+m,w=Math.round(b),v=s*f+y,k=Math.round(v),C=(a+u)*h+m,T=Math.abs(Math.round(C)-w)||1,S=(s+c)*f+y,E=Math.abs(Math.round(S)-k)||1;return n.setTransform(0,Math.sign(f),Math.sign(h),0,w,k),n.drawImage(e,t,r,i,o,0,0,E,T),n.setTransform(d,f,h,p,m,y),[E,T]}return n.drawImage(e,t,r,i,o,s,a,c,u),[Math.hypot(d,f)*c,Math.hypot(h,p)*u]}class TM{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=aM,this.textMatrixScale=1,this.fontMatrix=g4,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=Xp,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,r){[t,r]=le.applyTransform([t,r],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(e,t){const r=le.applyTransform(t,e),i=le.applyTransform(t.slice(2),e),o=le.applyTransform([t[0],t[3]],e),s=le.applyTransform([t[2],t[1]],e);this.minX=Math.min(this.minX,r[0],i[0],o[0],s[0]),this.minY=Math.min(this.minY,r[1],i[1],o[1],s[1]),this.maxX=Math.max(this.maxX,r[0],i[0],o[0],s[0]),this.maxY=Math.max(this.maxY,r[1],i[1],o[1],s[1])}updateScalingPathMinMax(e,t){le.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.minY=Math.min(this.minY,t[1]),this.maxX=Math.max(this.maxX,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,r,i,o,s,a,c,u,d){const f=le.bezierBoundingBox(t,r,i,o,s,a,c,u,d);d||this.updateRectMinMax(e,f)}getPathBoundingBox(e=Ya,t=null){const r=[this.minX,this.minY,this.maxX,this.maxY];if(e===B4){t||Mt("Stroke bounding box must include transform.");const i=le.singularValueDecompose2dScale(t),o=i[0]*this.lineWidth/2,s=i[1]*this.lineWidth/2;r[0]-=o,r[1]-=s,r[2]+=o,r[3]+=s}return r}updateClipFromPath(){const e=le.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=Ya,t=null){return le.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function xM(n,e){if(typeof ImageData<"u"&&e instanceof ImageData){n.putImageData(e,0,0);return}const t=e.height,r=e.width,i=t%$n,o=(t-i)/$n,s=i===0?o:o+1,a=n.createImageData(r,$n);let c,u=0;const d=e.data,f=a.data;let h,p,m,y;if(e.kind===Jp.GRAYSCALE_1BPP){const b=d.byteLength,w=new Uint32Array(f.buffer,0,f.byteLength>>2),v=w.length,k=r+7>>3,C=4294967295,T=Rn.isLittleEndian?4278190080:255;for(h=0;h<s;h++){for(m=h<o?$n:i,c=0,p=0;p<m;p++){const S=b-u;let E=0;const O=S>k?r:8*S-7,I=-8&O;let P=0,D=0;for(;E<I;E+=8)D=d[u++],w[c++]=128&D?C:T,w[c++]=64&D?C:T,w[c++]=32&D?C:T,w[c++]=16&D?C:T,w[c++]=8&D?C:T,w[c++]=4&D?C:T,w[c++]=2&D?C:T,w[c++]=1&D?C:T;for(;E<O;E++)P===0&&(D=d[u++],P=128),w[c++]=D&P?C:T,P>>=1}for(;c<v;)w[c++]=0;n.putImageData(a,0,h*$n)}}else if(e.kind===Jp.RGBA_32BPP){for(p=0,y=r*$n*4,h=0;h<o;h++)f.set(d.subarray(u,u+y)),u+=y,n.putImageData(a,0,p),p+=$n;h<s&&(y=r*i*4,f.set(d.subarray(u,u+y)),n.putImageData(a,0,p))}else{if(e.kind!==Jp.RGB_24BPP)throw new Error(`bad image kind: ${e.kind}`);for(m=$n,y=r*m,h=0;h<s;h++){for(h>=o&&(m=i,y=r*m),c=0,p=y;p--;)f[c++]=d[u++],f[c++]=d[u++],f[c++]=d[u++],f[c++]=255;n.putImageData(a,0,h*$n)}}}function IM(n,e){if(e.bitmap){n.drawImage(e.bitmap,0,0);return}const t=e.height,r=e.width,i=t%$n,o=(t-i)/$n,s=i===0?o:o+1,a=n.createImageData(r,$n);let c=0;const u=e.data,d=a.data;for(let f=0;f<s;f++){const h=f<o?$n:i;({srcPos:c}=lZ({src:u,srcPos:c,dest:d,width:r,height:h,nonBlackColor:0})),n.putImageData(a,0,f*$n)}}function h2(n,e){const t=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of t)n[r]!==void 0&&(e[r]=n[r]);n.setLineDash!==void 0&&(e.setLineDash(n.getLineDash()),e.lineDashOffset=n.lineDashOffset)}function um(n){if(n.strokeStyle=n.fillStyle="#000000",n.fillRule="nonzero",n.globalAlpha=1,n.lineWidth=1,n.lineCap="butt",n.lineJoin="miter",n.miterLimit=10,n.globalCompositeOperation="source-over",n.font="10px sans-serif",n.setLineDash!==void 0&&(n.setLineDash([]),n.lineDashOffset=0),!cn){const{filter:e}=n;e!=="none"&&e!==""&&(n.filter="none")}}function OM(n,e){if(e)return!0;const t=le.singularValueDecompose2dScale(n);t[0]=Math.fround(t[0]),t[1]=Math.fround(t[1]);const r=Math.fround((globalThis.devicePixelRatio||1)*hs.PDF_TO_CSS_UNITS);return t[0]<=r&&t[1]<=r}const uZ=["butt","round","square"],dZ=["miter","round","bevel"],fZ={},DM={},rv=class rv{constructor(e,t,r,i,o,{optionalContentConfig:s,markedContentStack:a=null},c,u){M(this,kh);M(this,Sh);this.ctx=e,this.current=new TM(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=i,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=a||[],this.optionalContentConfig=s,this.cachedCanvases=new cZ(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return typeof e=="string"?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:r=!1,background:i=null}){const o=this.ctx.canvas.width,s=this.ctx.canvas.height,a=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=a,r){const c=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...ot(this.compositeCtx))}this.ctx.save(),um(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=ot(this.ctx)}executeOperatorList(e,t,r,i){const o=e.argsArray,s=e.fnArray;let a=t||0;const c=o.length;if(c===a)return a;const u=c-a>10&&typeof r=="function",d=u?Date.now()+15:0;let f=0;const h=this.commonObjs,p=this.objs;let m;for(;;){if(i!==void 0&&a===i.nextBreakPoint)return i.breakIt(a,r),a;if(m=s[a],m!==qr.dependency)this[m].apply(this,o[a]);else for(const y of o[a]){const b=y.startsWith("g_")?h:p;if(!b.has(y))return b.get(y,r),a}if(a++,a===c)return a;if(u&&++f>10){if(Date.now()>d)return r(),a;f=0}}}endDrawing(){x(this,kh,Ev).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),x(this,Sh,Av).call(this)}_scaleImage(e,t){const r=e.width,i=e.height;let o,s,a=Math.max(Math.hypot(t[0],t[1]),1),c=Math.max(Math.hypot(t[2],t[3]),1),u=r,d=i,f="prescale1";for(;a>2&&u>1||c>2&&d>1;){let h=u,p=d;a>2&&u>1&&(h=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u/2),a/=u/h),c>2&&d>1&&(p=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,c/=d/p),o=this.cachedCanvases.getCanvas(f,h,p),s=o.context,s.clearRect(0,0,h,p),s.drawImage(e,0,0,u,d,0,0,h,p),e=o.canvas,u=h,d=p,f=f==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:u,paintHeight:d}}_createMaskCanvas(e){const t=this.ctx,{width:r,height:i}=e,o=this.current.fillColor,s=this.current.patternFill,a=ot(t);let c,u,d,f;if((e.bitmap||e.data)&&e.count>1){const O=e.bitmap||e.data.buffer;u=JSON.stringify(s?a:[a.slice(0,4),o]),c=this._cachedBitmapsMap.get(O),c||(c=new Map,this._cachedBitmapsMap.set(O,c));const I=c.get(u);if(I&&!s)return{canvas:I,offsetX:Math.round(Math.min(a[0],a[2])+a[4]),offsetY:Math.round(Math.min(a[1],a[3])+a[5])};d=I}d||(f=this.cachedCanvases.getCanvas("maskCanvas",r,i),IM(f.context,e));let h=le.transform(a,[1/r,0,0,-1/i,0,0]);h=le.transform(h,[1,0,0,1,0,-i]);const[p,m,y,b]=le.getAxialAlignedBoundingBox([0,0,r,i],h),w=Math.round(y-p)||1,v=Math.round(b-m)||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,v),C=k.context,T=p,S=m;C.translate(-T,-S),C.transform(...h),d||(d=this._scaleImage(f.canvas,co(C)),d=d.img,c&&s&&c.set(u,d)),C.imageSmoothingEnabled=OM(ot(C),e.interpolate),cm(C,d,0,0,d.width,d.height,0,0,r,i),C.globalCompositeOperation="source-in";const E=le.transform(co(C),[1,0,0,1,-T,-S]);return C.fillStyle=s?o.getPattern(t,this,E,Ya):o,C.fillRect(0,0,r,i),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(u,k.canvas)),{canvas:k.canvas,offsetX:Math.round(T),offsetY:Math.round(S)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=uZ[e]}setLineJoin(e){this.ctx.lineJoin=dZ[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const r=this.ctx;r.setLineDash!==void 0&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r[0],r[1]);break;case"CA":this.current.strokeAlpha=r;break;case"ca":this.current.fillAlpha=r,this.ctx.globalAlpha=r;break;case"BM":this.ctx.globalCompositeOperation=r;break;case"SMask":this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;const o=this.ctx;o.setTransform(...ot(this.suspendedCtx)),h2(this.suspendedCtx,o),function(a,c){if(a._removeMirroring)throw new Error("Context is already forwarding operations.");a.__originalSave=a.save,a.__originalRestore=a.restore,a.__originalRotate=a.rotate,a.__originalScale=a.scale,a.__originalTranslate=a.translate,a.__originalTransform=a.transform,a.__originalSetTransform=a.setTransform,a.__originalResetTransform=a.resetTransform,a.__originalClip=a.clip,a.__originalMoveTo=a.moveTo,a.__originalLineTo=a.lineTo,a.__originalBezierCurveTo=a.bezierCurveTo,a.__originalRect=a.rect,a.__originalClosePath=a.closePath,a.__originalBeginPath=a.beginPath,a._removeMirroring=()=>{a.save=a.__originalSave,a.restore=a.__originalRestore,a.rotate=a.__originalRotate,a.scale=a.__originalScale,a.translate=a.__originalTranslate,a.transform=a.__originalTransform,a.setTransform=a.__originalSetTransform,a.resetTransform=a.__originalResetTransform,a.clip=a.__originalClip,a.moveTo=a.__originalMoveTo,a.lineTo=a.__originalLineTo,a.bezierCurveTo=a.__originalBezierCurveTo,a.rect=a.__originalRect,a.closePath=a.__originalClosePath,a.beginPath=a.__originalBeginPath,delete a._removeMirroring},a.save=function(){c.save(),this.__originalSave()},a.restore=function(){c.restore(),this.__originalRestore()},a.translate=function(d,f){c.translate(d,f),this.__originalTranslate(d,f)},a.scale=function(d,f){c.scale(d,f),this.__originalScale(d,f)},a.transform=function(d,f,h,p,m,y){c.transform(d,f,h,p,m,y),this.__originalTransform(d,f,h,p,m,y)},a.setTransform=function(d,f,h,p,m,y){c.setTransform(d,f,h,p,m,y),this.__originalSetTransform(d,f,h,p,m,y)},a.resetTransform=function(){c.resetTransform(),this.__originalResetTransform()},a.rotate=function(d){c.rotate(d),this.__originalRotate(d)},a.clip=function(d){c.clip(d),this.__originalClip(d)},a.moveTo=function(u,d){c.moveTo(u,d),this.__originalMoveTo(u,d)},a.lineTo=function(u,d){c.lineTo(u,d),this.__originalLineTo(u,d)},a.bezierCurveTo=function(u,d,f,h,p,m){c.bezierCurveTo(u,d,f,h,p,m),this.__originalBezierCurveTo(u,d,f,h,p,m)},a.rect=function(u,d,f,h){c.rect(u,d,f,h),this.__originalRect(u,d,f,h)},a.closePath=function(){c.closePath(),this.__originalClosePath()},a.beginPath=function(){c.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),h2(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,t,r,i){const o=i[0],s=i[1],a=i[2]-o,c=i[3]-s;a!==0&&c!==0&&(this.genericComposeSMask(t.context,r,a,c,t.subtype,t.backdrop,t.transferMap,o,s,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}genericComposeSMask(e,t,r,i,o,s,a,c,u,d,f){let h=e.canvas,p=c-d,m=u-f;if(s){if(p<0||m<0||p+r>h.width||m+i>h.height){const b=this.cachedCanvases.getCanvas("maskExtension",r,i),w=b.context;w.drawImage(h,-p,-m),s.some(v=>v!==0)&&(w.globalCompositeOperation="destination-atop",w.fillStyle=le.makeHexColor(...s),w.fillRect(0,0,r,i),w.globalCompositeOperation="source-over"),h=b.canvas,p=m=0}else if(s.some(b=>b!==0)){e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(p,m,r,i),e.clip(b),e.globalCompositeOperation="destination-atop",e.fillStyle=le.makeHexColor(...s),e.fillRect(p,m,r,i),e.restore()}}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),o==="Alpha"&&a?t.filter=this.filterFactory.addAlphaFilter(a):o==="Luminosity"&&(t.filter=this.filterFactory.addLuminosityFilter(a));const y=new Path2D;y.rect(c,u,r,i),t.clip(y),t.globalCompositeOperation="destination-in",t.drawImage(h,p,m,r,i,c,u,r,i),t.restore()}save(){this.inSMaskMode?(h2(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),h2(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,r,i,o,s){this.ctx.transform(e,t,r,i,o,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,r){const i=this.ctx,o=this.current;let s,a,c=o.x,u=o.y;const d=ot(i),f=d[0]===0&&d[3]===0||d[1]===0&&d[2]===0,h=f?r.slice(0):null;for(let p=0,m=0,y=e.length;p<y;p++)switch(0|e[p]){case qr.rectangle:c=t[m++],u=t[m++];const b=t[m++],w=t[m++],v=c+b,k=u+w;i.moveTo(c,u),b===0||w===0?i.lineTo(v,k):(i.lineTo(v,u),i.lineTo(v,k),i.lineTo(c,k)),f||o.updateRectMinMax(d,[c,u,v,k]),i.closePath();break;case qr.moveTo:c=t[m++],u=t[m++],i.moveTo(c,u),f||o.updatePathMinMax(d,c,u);break;case qr.lineTo:c=t[m++],u=t[m++],i.lineTo(c,u),f||o.updatePathMinMax(d,c,u);break;case qr.curveTo:s=c,a=u,c=t[m+4],u=t[m+5],i.bezierCurveTo(t[m],t[m+1],t[m+2],t[m+3],c,u),o.updateCurvePathMinMax(d,s,a,t[m],t[m+1],t[m+2],t[m+3],c,u,h),m+=6;break;case qr.curveTo2:s=c,a=u,i.bezierCurveTo(c,u,t[m],t[m+1],t[m+2],t[m+3]),o.updateCurvePathMinMax(d,s,a,c,u,t[m],t[m+1],t[m+2],t[m+3],h),c=t[m+2],u=t[m+3],m+=4;break;case qr.curveTo3:s=c,a=u,c=t[m+2],u=t[m+3],i.bezierCurveTo(t[m],t[m+1],c,u,c,u),o.updateCurvePathMinMax(d,s,a,t[m],t[m+1],c,u,c,u,h),m+=4;break;case qr.closePath:i.closePath()}f&&o.updateScalingPathMinMax(d,h),o.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(e=!0){const t=this.ctx,r=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof r=="object"&&(r!=null&&r.getPattern)?(t.save(),t.strokeStyle=r.getPattern(t,this,co(t),B4),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e=!0){const t=this.ctx,r=this.current.fillColor;let i=!1;this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,co(t),Ya),i=!0);const o=this.current.getClippedPathBoundingBox();this.contentVisible&&o!==null&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(o)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=fZ}eoClip(){this.pendingClip=DM}beginText(){this.current.textMatrix=aM,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(e!==void 0){t.save(),t.beginPath();for(const r of e)t.setTransform(...r.transform),t.translate(r.x,r.y),r.addToPath(t,r.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var d;const r=this.commonObjs.get(e),i=this.current;if(!r)throw new Error(`Can't find font for ${e}`);if(i.fontMatrix=r.fontMatrix||g4,i.fontMatrix[0]!==0&&i.fontMatrix[3]!==0||ke("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=r,this.current.fontSize=t,r.isType3Font)return;const o=r.loadedName||"sans-serif",s=((d=r.systemFontInfo)==null?void 0:d.css)||`"${o}", ${r.fallbackName}`;let a="normal";r.black?a="900":r.bold&&(a="bold");const c=r.italic?"italic":"normal";let u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font=`${c} ${a} ${u}px ${s}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,i,o,s){this.current.textMatrix=[e,t,r,i,o,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,i){const o=this.ctx,s=this.current,a=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&lM,f=!!(c&lU),h=s.patternFill&&!a.missingFile;let p;(a.disableFontFace||f||h)&&(p=a.getPathGenerator(this.commonObjs,e)),a.disableFontFace||h?(o.save(),o.translate(t,r),o.beginPath(),p(o,u),i&&o.setTransform(...i),d!==Xp&&d!==a2||o.fill(),d!==w4&&d!==a2||o.stroke(),o.restore()):(d!==Xp&&d!==a2||o.fillText(e,t,r),d!==w4&&d!==a2||o.strokeText(e,t,r)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ot(o),x:t,y:r,fontSize:u,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let r=!1;for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){r=!0;break}return Ie(this,"isFontSubpixelAAEnabled",r)}showText(e){const t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);const i=t.fontSize;if(i===0)return;const o=this.ctx,s=t.fontSizeScale,a=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,f=e.length,h=r.vertical,p=h?1:-1,m=r.defaultVMetrics,y=i*t.fontMatrix[0],b=t.textRenderingMode===Xp&&!r.disableFontFace&&!t.patternFill;o.save(),o.transform(...t.textMatrix),o.translate(t.x,t.y+t.textRise),u>0?o.scale(d,-1):o.scale(d,1);let w;if(t.patternFill){o.save();const S=t.fillColor.getPattern(o,this,co(o),Ya);w=ot(o),o.restore(),o.fillStyle=S}let v=t.lineWidth;const k=t.textMatrixScale;if(k===0||v===0){const S=t.textRenderingMode&lM;S!==w4&&S!==a2||(v=this.getSinglePixelWidth())}else v/=k;if(s!==1&&(o.scale(s,s),v/=s),o.lineWidth=v,r.isInvalidPDFjsFont){const S=[];let E=0;for(const O of e)S.push(O.unicode),E+=O.width;o.fillText(S.join(""),0,0),t.x+=E*y*d,o.restore(),this.compose();return}let C,T=0;for(C=0;C<f;++C){const S=e[C];if(typeof S=="number"){T+=p*S*i/1e3;continue}let E=!1;const O=(S.isSpace?c:0)+a,I=S.fontChar,P=S.accent;let D,B,V=S.width;if(h){const U=S.vmetric||m,L=-(S.vmetric?U[1]:.5*V)*y,N=U[2]*y;V=U?-U[0]:V,D=L/s,B=(T+N)/s}else D=T/s,B=0;if(r.remeasure&&V>0){const U=1e3*o.measureText(I).width/i*s;if(V<U&&this.isFontSubpixelAAEnabled){const L=V/U;E=!0,o.save(),o.scale(L,1),D/=L}else V!==U&&(D+=(V-U)/2e3*i/s)}if(this.contentVisible&&(S.isInFont||r.missingFile)){if(b&&!P)o.fillText(I,D,B);else if(this.paintChar(I,D,B,w),P){const U=D+i*P.offset.x/s,L=B-i*P.offset.y/s;this.paintChar(P.fontChar,U,L,w)}}T+=h?V*y-O*u:V*y+O*u,E&&o.restore()}h?t.y-=T:t.x+=T*d,o.restore(),this.compose()}showType3Text(e){const t=this.ctx,r=this.current,i=r.font,o=r.fontSize,s=r.fontDirection,a=i.vertical?1:-1,c=r.charSpacing,u=r.wordSpacing,d=r.textHScale*s,f=r.fontMatrix||g4,h=e.length;let p,m,y,b;if(r.textRenderingMode!==aU&&o!==0){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...r.textMatrix),t.translate(r.x,r.y),t.scale(d,s),p=0;p<h;++p){if(m=e[p],typeof m=="number"){b=a*m*o/1e3,this.ctx.translate(b,0),r.x+=b*d;continue}const w=(m.isSpace?u:0)+c,v=i.charProcOperatorList[m.operatorListId];if(!v){ke(`Type3 character "${m.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=m,this.save(),t.scale(o,o),t.transform(...f),this.executeOperatorList(v),this.restore()),y=le.applyTransform([m.width,0],f)[0]*o+w,t.translate(y,0),r.x+=y*d}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,r,i,o,s){this.ctx.rect(r,i,o-r,s-i),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if(e[0]==="TilingPattern"){const r=e[1],i=this.baseTransform||ot(this.ctx),o={createCanvasGraphics:s=>new rv(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new F4(e,r,this.ctx,o,i)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){this.ctx.strokeStyle=this.current.strokeColor=le.makeHexColor(e,t,r)}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent"}setFillRGBColor(e,t,r){this.ctx.fillStyle=this.current.fillColor=le.makeHexColor(e,t,r),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t=null){let r;return this.cachedPatterns.has(e)?r=this.cachedPatterns.get(e):(r=function(o){switch(o[0]){case"RadialAxial":return new nZ(o);case"Mesh":return new iZ(o);case"Dummy":return new oZ}throw new Error(`Unknown IR type: ${o[0]}`)}(this.getObject(e)),this.cachedPatterns.set(e,r)),t&&(r.matrix=t),r}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const r=this._getPattern(e);t.fillStyle=r.getPattern(t,this,co(t),f2);const i=co(t);if(i){const{width:o,height:s}=t.canvas,[a,c,u,d]=le.getAxialAlignedBoundingBox([0,0,o,s],i);this.ctx.fillRect(a,c,u-a,d-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Mt("Should not call beginInlineImage")}beginImageData(){Mt("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),e&&this.transform(...e),this.baseTransform=ot(this.ctx),t)){const r=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.current.updateRectMinMax(ot(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||nm("TODO: Support non-isolated groups."),e.knockout&&ke("Knockout groups not supported.");const r=ot(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let i=le.getAxialAlignedBoundingBox(e.bbox,ot(t));const o=[0,0,t.canvas.width,t.canvas.height];i=le.intersect(i,o)||[0,0,0,0];const s=Math.floor(i[0]),a=Math.floor(i[1]),c=Math.max(Math.ceil(i[2])-s,1),u=Math.max(Math.ceil(i[3])-a,1);this.current.startNewPathAndClipBox([0,0,c,u]);let d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(d,c,u),h=f.context;h.translate(-s,-a),h.transform(...r),e.smask?this.smaskStack.push({canvas:f.canvas,context:h,offsetX:s,offsetY:a,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,a),t.save()),h2(t,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const i=ot(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...i);const o=le.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],i);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(e,t,r,i,o){if(x(this,kh,Ev).call(this),um(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),t){const s=t[2]-t[0],a=t[3]-t[1];if(o&&this.annotationCanvasMap){(r=r.slice())[4]-=t[0],r[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=s,t[3]=a;const[c,u]=le.singularValueDecompose2dScale(ot(this.ctx)),{viewportScale:d}=this,f=Math.ceil(s*this.outputScaleX*d),h=Math.ceil(a*this.outputScaleY*d);this.annotationCanvas=this.canvasFactory.create(f,h);const{canvas:p,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(e,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(c,0,0,-u,0,a*u),um(this.ctx)}else um(this.ctx),this.ctx.rect(t[0],t[1],s,a),this.ctx.clip(),this.endPath()}this.current=new TM(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),x(this,Sh,Av).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const r=this.ctx,i=this.processingType3;if(i&&(i.compiled===void 0&&(i.compiled=function(c){const{width:u,height:d}=c;if(u>1e3||d>1e3)return null;const f=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),h=u+1;let p,m,y,b=new Uint8Array(h*(d+1));const w=u+7&-8;let v=new Uint8Array(w*d),k=0;for(const E of c.data){let O=128;for(;O>0;)v[k++]=E&O?0:255,O>>=1}let C=0;for(k=0,v[k]!==0&&(b[0]=1,++C),m=1;m<u;m++)v[k]!==v[k+1]&&(b[m]=v[k]?2:1,++C),k++;for(v[k]!==0&&(b[m]=2,++C),p=1;p<d;p++){k=p*w,y=p*h,v[k-w]!==v[k]&&(b[y]=v[k]?1:8,++C);let E=(v[k]?4:0)+(v[k-w]?8:0);for(m=1;m<u;m++)E=(E>>2)+(v[k+1]?4:0)+(v[k-w+1]?8:0),f[E]&&(b[y+m]=f[E],++C),k++;if(v[k-w]!==v[k]&&(b[y+m]=v[k]?2:4,++C),C>1e3)return null}for(k=w*(d-1),y=p*h,v[k]!==0&&(b[y]=8,++C),m=1;m<u;m++)v[k]!==v[k+1]&&(b[y+m]=v[k]?4:8,++C),k++;if(v[k]!==0&&(b[y+m]=4,++C),C>1e3)return null;const T=new Int32Array([0,h,-1,0,-h,0,0,0,1]),S=new Path2D;for(p=0;C&&p<=d;p++){let E=p*h;const O=E+u;for(;E<O&&!b[E];)E++;if(E===O)continue;S.moveTo(E%h,p);const I=E;let P=b[E];do{const D=T[P];do E+=D;while(!b[E]);const B=b[E];B!==5&&B!==10?(P=B,b[E]=0):(P=B&51*P>>4,b[E]&=P>>2|P<<2),S.lineTo(E%h,E/h|0),b[E]||--C}while(I!==E);--p}return v=null,b=null,function(E){E.save(),E.scale(1/u,-1/d),E.translate(0,-d),E.fill(S),E.beginPath(),E.restore()}}(e)),i.compiled)){i.compiled(r);return}const o=this._createMaskCanvas(e),s=o.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(s,o.offsetX,o.offsetY),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,r=0,i=0,o,s){if(!this.contentVisible)return;e=this.getObject(e.data,e);const a=this.ctx;a.save();const c=ot(a);a.transform(t,r,i,o,0,0);const u=this._createMaskCanvas(e);a.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(let d=0,f=s.length;d<f;d+=2){const h=le.transform(c,[t,r,i,o,s[d],s[d+1]]),[p,m]=le.applyTransform([0,0],h);a.drawImage(u.canvas,p,m)}a.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,r=this.current.fillColor,i=this.current.patternFill;for(const o of e){const{data:s,width:a,height:c,transform:u}=o,d=this.cachedCanvases.getCanvas("maskCanvas",a,c),f=d.context;f.save(),IM(f,this.getObject(s,o)),f.globalCompositeOperation="source-in",f.fillStyle=i?r.getPattern(f,this,co(t),Ya):r,f.fillRect(0,0,a,c),f.restore(),t.save(),t.transform(...u),t.scale(1,-1),cm(t,d.canvas,0,0,a,c,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):ke("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,r,i){if(!this.contentVisible)return;const o=this.getObject(e);if(!o){ke("Dependent image isn't ready yet");return}const s=o.width,a=o.height,c=[];for(let u=0,d=i.length;u<d;u+=2)c.push({transform:[t,0,0,r,i[u],i[u+1]],x:0,y:0,w:s,h:a});this.paintInlineImageXObjectGroup(o,c)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:t,width:r,height:i}=e,o=this.cachedCanvases.getCanvas("inlineImage",r,i),s=o.context;return s.filter=this.current.transferMaps,s.drawImage(t,0,0),s.filter="none",o.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,r=e.height,i=this.ctx;if(this.save(),!cn){const{filter:a}=i;a!=="none"&&a!==""&&(i.filter="none")}i.scale(1/t,-1/r);let o;if(e.bitmap)o=this.applyTransferMapsToBitmap(e);else if(typeof HTMLElement=="function"&&e instanceof HTMLElement||!e.data)o=e;else{const a=this.cachedCanvases.getCanvas("inlineImage",t,r).context;xM(a,e),o=this.applyTransferMapsToCanvas(a)}const s=this._scaleImage(o,co(i));i.imageSmoothingEnabled=OM(ot(i),e.interpolate),cm(i,s.img,0,0,s.paintWidth,s.paintHeight,0,-r,t,r),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const r=this.ctx;let i;if(e.bitmap)i=e.bitmap;else{const o=e.width,s=e.height,a=this.cachedCanvases.getCanvas("inlineImage",o,s).context;xM(a,e),i=this.applyTransferMapsToCanvas(a)}for(const o of t)r.save(),r.transform(...o.transform),r.scale(1,-1),cm(r,i,o.x,o.y,o.w,o.h,0,-1,1,1),r.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){e==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const r=this.ctx;this.pendingClip&&(t||(this.pendingClip===DM?r.clip("evenodd"):r.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),r.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=ot(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(r,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:t,b:r,c:i,d:o}=this.ctx.getTransform();let s,a;if(r===0&&i===0){const c=Math.abs(t),u=Math.abs(o);if(c===u)if(e===0)s=a=1/c;else{const d=c*e;s=a=d<1?1/d:1}else if(e===0)s=1/c,a=1/u;else{const d=c*e,f=u*e;s=d<1?1/d:1,a=f<1?1/f:1}}else{const c=Math.abs(t*o-r*i),u=Math.hypot(t,r),d=Math.hypot(i,o);if(e===0)s=d/c,a=u/c;else{const f=e*c;s=d>f?d/f:1,a=u>f?u/f:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:r}=this.current,[i,o]=this.getScaleForStroking();if(t.lineWidth=r||1,i===1&&o===1){t.stroke();return}const s=t.getLineDash();if(e&&t.save(),t.scale(i,o),s.length>0){const a=Math.max(i,o);t.setLineDash(s.map(c=>c/a)),t.lineDashOffset/=a}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};kh=new WeakSet,Ev=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},Sh=new WeakSet,Av=function(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}};let tc=rv;for(const n in qr)tc.prototype[n]!==void 0&&(tc.prototype[qr[n]]=tc.prototype[n]);class uo{static get workerPort(){return g(this,Mh)}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");A(this,Mh,e)}static get workerSrc(){return g(this,Eh)}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");A(this,Eh,e)}}Mh=new WeakMap,Eh=new WeakMap,M(uo,Mh,null),M(uo,Eh,"");const NM=1,PM=2,_M=1,j4=2,LM=3,BM=4,RM=5,$M=6,dm=7,z4=8;function Xn(n){switch(n instanceof Error||typeof n=="object"&&n!==null||Mt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),n.name){case"AbortException":return new qa(n.message);case"MissingPDFException":return new Wa(n.message);case"PasswordException":return new C4(n.message,n.code);case"UnexpectedResponseException":return new rm(n.message,n.status);case"UnknownErrorException":return new k4(n.message,n.details);default:return new k4(n.message,n.toString())}}class p2{constructor(e,t,r){M(this,U3);M(this,Z3);M(this,ou);this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=i=>{const o=i.data;if(o.targetName!==this.sourceName)return;if(o.stream){x(this,Z3,EN).call(this,o);return}if(o.callback){const a=o.callbackId,c=this.callbackCapabilities[a];if(!c)throw new Error(`Cannot resolve callback ${a}`);if(delete this.callbackCapabilities[a],o.callback===NM)c.resolve(o.data);else{if(o.callback!==PM)throw new Error("Unexpected callback case");c.reject(Xn(o.reason))}return}const s=this.actionHandler[o.action];if(!s)throw new Error(`Unknown action from worker: ${o.action}`);if(o.callbackId){const a=this.sourceName,c=o.sourceName;new Promise(function(u){u(s(o.data))}).then(function(u){r.postMessage({sourceName:a,targetName:c,callback:NM,callbackId:o.callbackId,data:u})},function(u){r.postMessage({sourceName:a,targetName:c,callback:PM,callbackId:o.callbackId,reason:Xn(u)})})}else o.streamId?x(this,U3,MN).call(this,o):s(o.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=t}send(e,t,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const i=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},r)}catch(s){o.reject(s)}return o.promise}sendWithStream(e,t,r,i){const o=this.streamId++,s=this.sourceName,a=this.targetName,c=this.comObj;return new ReadableStream({start:u=>{const d=Promise.withResolvers();return this.streamControllers[o]={controller:u,startCall:d,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:a,action:e,streamId:o,data:t,desiredSize:u.desiredSize},i),d.promise},pull:u=>{const d=Promise.withResolvers();return this.streamControllers[o].pullCall=d,c.postMessage({sourceName:s,targetName:a,stream:$M,streamId:o,desiredSize:u.desiredSize}),d.promise},cancel:u=>{xt(u instanceof Error,"cancel must have a valid reason");const d=Promise.withResolvers();return this.streamControllers[o].cancelCall=d,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:a,stream:_M,streamId:o,reason:Xn(u)}),d.promise}},r)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}U3=new WeakSet,MN=function(e){const t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,s=this,a=this.actionHandler[e.action],c={enqueue(u,d=1,f){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=d,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:r,targetName:i,stream:BM,streamId:t,chunk:u},f)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:LM,streamId:t}),delete s.streamSinks[t])},error(u){xt(u instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:r,targetName:i,stream:RM,streamId:t,reason:Xn(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise(function(u){u(a(e.data,c))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:z4,streamId:t,success:!0})},function(u){o.postMessage({sourceName:r,targetName:i,stream:z4,streamId:t,reason:Xn(u)})})},Z3=new WeakSet,EN=function(e){const t=e.streamId,r=this.sourceName,i=e.sourceName,o=this.comObj,s=this.streamControllers[t],a=this.streamSinks[t];switch(e.stream){case z4:e.success?s.startCall.resolve():s.startCall.reject(Xn(e.reason));break;case dm:e.success?s.pullCall.resolve():s.pullCall.reject(Xn(e.reason));break;case $M:if(!a){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,success:!0});break}a.desiredSize<=0&&e.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=e.desiredSize,new Promise(function(c){var u;c((u=a.onPull)==null?void 0:u.call(a))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,success:!0})},function(c){o.postMessage({sourceName:r,targetName:i,stream:dm,streamId:t,reason:Xn(c)})});break;case BM:if(xt(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case LM:if(xt(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),x(this,ou,r5).call(this,s,t);break;case RM:xt(s,"error should have stream controller"),s.controller.error(Xn(e.reason)),x(this,ou,r5).call(this,s,t);break;case j4:e.success?s.cancelCall.resolve():s.cancelCall.reject(Xn(e.reason)),x(this,ou,r5).call(this,s,t);break;case _M:if(!a)break;new Promise(function(c){var u;c((u=a.onCancel)==null?void 0:u.call(a,Xn(e.reason)))}).then(function(){o.postMessage({sourceName:r,targetName:i,stream:j4,streamId:t,success:!0})},function(c){o.postMessage({sourceName:r,targetName:i,stream:j4,streamId:t,reason:Xn(c)})}),a.sinkCapability.reject(Xn(e.reason)),a.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}},ou=new WeakSet,r5=async function(e,t){var r,i,o;await Promise.allSettled([(r=e.startCall)==null?void 0:r.promise,(i=e.pullCall)==null?void 0:i.promise,(o=e.cancelCall)==null?void 0:o.promise]),delete this.streamControllers[t]};class hZ{constructor({parsedData:e,rawData:t}){M(this,zl,void 0);M(this,Ah,void 0);A(this,zl,e),A(this,Ah,t)}getRaw(){return g(this,Ah)}get(e){return g(this,zl).get(e)??null}getAll(){return S4(g(this,zl))}has(e){return g(this,zl).has(e)}}zl=new WeakMap,Ah=new WeakMap;const gs=Symbol("INTERNAL");class pZ{constructor(e,{name:t,intent:r,usage:i}){M(this,Th,!1);M(this,xh,!1);M(this,Ih,!1);M(this,su,!0);A(this,Th,!!(e&b4)),A(this,xh,!!(e&Qp)),this.name=t,this.intent=r,this.usage=i}get visible(){if(g(this,Ih))return g(this,su);if(!g(this,su))return!1;const{print:e,view:t}=this.usage;return g(this,Th)?(t==null?void 0:t.viewState)!=="OFF":!g(this,xh)||(e==null?void 0:e.printState)!=="OFF"}_setVisible(e,t,r=!1){e!==gs&&Mt("Internal method `_setVisible` called."),A(this,Ih,r),A(this,su,t)}}Th=new WeakMap,xh=new WeakMap,Ih=new WeakMap,su=new WeakMap;class mZ{constructor(e,t=b4){M(this,Oh);M(this,na,null);M(this,Ke,new Map);M(this,au,null);M(this,lu,null);if(this.renderingIntent=t,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,A(this,lu,e.order);for(const r of e.groups)g(this,Ke).set(r.id,new pZ(t,r));if(e.baseState==="OFF")for(const r of g(this,Ke).values())r._setVisible(gs,!1);for(const r of e.on)g(this,Ke).get(r)._setVisible(gs,!0);for(const r of e.off)g(this,Ke).get(r)._setVisible(gs,!1);A(this,au,this.getHash())}}isVisible(e){if(g(this,Ke).size===0)return!0;if(!e)return nm("Optional content group not defined."),!0;if(e.type==="OCG")return g(this,Ke).has(e.id)?g(this,Ke).get(e.id).visible:(ke(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return x(this,Oh,Tv).call(this,e.expression);if(!e.policy||e.policy==="AnyOn"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(g(this,Ke).get(t).visible)return!0}return!1}if(e.policy==="AllOn"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(!g(this,Ke).get(t).visible)return!1}return!0}if(e.policy==="AnyOff"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(!g(this,Ke).get(t).visible)return!0}return!1}if(e.policy==="AllOff"){for(const t of e.ids){if(!g(this,Ke).has(t))return ke(`Optional content group not found: ${t}`),!0;if(g(this,Ke).get(t).visible)return!1}return!0}return ke(`Unknown optional content policy ${e.policy}.`),!0}return ke(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){const r=g(this,Ke).get(e);r?(r._setVisible(gs,!!t,!0),A(this,na,null)):ke(`Optional content group not found: ${e}`)}setOCGState({state:e,preserveRB:t}){let r;for(const i of e){switch(i){case"ON":case"OFF":case"Toggle":r=i;continue}const o=g(this,Ke).get(i);if(o)switch(r){case"ON":o._setVisible(gs,!0);break;case"OFF":o._setVisible(gs,!1);break;case"Toggle":o._setVisible(gs,!o.visible)}}A(this,na,null)}get hasInitialVisibility(){return g(this,au)===null||this.getHash()===g(this,au)}getOrder(){return g(this,Ke).size?g(this,lu)?g(this,lu).slice():[...g(this,Ke).keys()]:null}getGroups(){return g(this,Ke).size>0?S4(g(this,Ke)):null}getGroup(e){return g(this,Ke).get(e)||null}getHash(){if(g(this,na)!==null)return g(this,na);const e=new MM;for(const[t,r]of g(this,Ke))e.update(`${t}:${r.visible}`);return A(this,na,e.hexdigest())}}na=new WeakMap,Ke=new WeakMap,au=new WeakMap,lu=new WeakMap,Oh=new WeakSet,Tv=function(e){const t=e.length;if(t<2)return!0;const r=e[0];for(let i=1;i<t;i++){const o=e[i];let s;if(Array.isArray(o))s=x(this,Oh,Tv).call(this,o);else{if(!g(this,Ke).has(o))return ke(`Optional content group not found: ${o}`),!0;s=g(this,Ke).get(o).visible}switch(r){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return r==="And"};class gZ{constructor(e,{disableRange:t=!1,disableStream:r=!1}){xt(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:o,progressiveDone:s,contentDispositionFilename:a}=e;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=a,(o==null?void 0:o.length)>0){const c=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!r,this._isRangeSupported=!t,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((c,u)=>{this._onReceiveData({begin:c,chunk:u})}),e.addProgressListener((c,u)=>{this._onProgress({loaded:c,total:u})}),e.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:t}){const r=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;e===void 0?this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r):xt(this._rangeReaders.some(function(i){return i._begin!==e?!1:(i._enqueue(r),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}_onProgress(e){var t,r,i,o;e.total===void 0?(r=(t=this._rangeReaders[0])==null?void 0:t.onProgress)==null||r.call(t,{loaded:e.loaded}):(o=(i=this._fullRequestReader)==null?void 0:i.onProgress)==null||o.call(i,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;(e=this._fullRequestReader)==null||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){xt(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new yZ(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new bZ(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeReaders.slice(0))r.cancel(e);this._pdfDataRangeTransport.abort()}}class yZ{constructor(e,t,r=!1,i=null){this._stream=e,this._done=r||!1,this._filename=x4(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class bZ{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function H4({getResponseHeader:n,isHttp:e,rangeChunkSize:t,disableRange:r}){const i={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(n("Content-Length"),10);return!Number.isInteger(o)||(i.suggestedLength=o,o<=2*t)||r||!e||n("Accept-Ranges")!=="bytes"||(n("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function U4(n){const e=n("Content-Disposition");if(e){let t=function(i){let o=!0,s=a("filename\\*","i").exec(i);if(s){s=s[1];let p=d(s);return p=unescape(p),p=f(p),p=h(p),u(p)}if(s=function(m){const y=[];let b;const w=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(b=w.exec(m))!==null;){let[,k,C,T]=b;if(k=parseInt(k,10),k in y){if(k===0)break}else y[k]=[C,T]}const v=[];for(let k=0;k<y.length&&k in y;++k){let[C,T]=y[k];T=d(T),C&&(T=unescape(T),k===0&&(T=f(T))),v.push(T)}return v.join("")}(i),s)return u(h(s));if(s=a("filename","i").exec(i),s){s=s[1];let p=d(s);return p=h(p),u(p)}function a(p,m){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',m)}function c(p,m){if(p){if(!/^[\x00-\xFF]+$/.test(m))return m;try{const y=new TextDecoder(p,{fatal:!0}),b=im(m);m=y.decode(b),o=!1}catch{}}return m}function u(p){return o&&/[\x80-\xff]/.test(p)&&(p=c("utf-8",p),o&&(p=c("iso-8859-1",p))),p}function d(p){if(p.startsWith('"')){const m=p.slice(1).split('\\"');for(let y=0;y<m.length;++y){const b=m[y].indexOf('"');b!==-1&&(m[y]=m[y].slice(0,b),m.length=y+1),m[y]=m[y].replaceAll(/\\(.)/g,"$1")}p=m.join('"')}return p}function f(p){const m=p.indexOf("'");return m===-1?p:c(p.slice(0,m),p.slice(m+1).replace(/^[^']*'/,""))}function h(p){return!p.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(p)?p:p.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(m,y,b,w){if(b==="q"||b==="Q")return c(y,w=(w=w.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(v,k){return String.fromCharCode(parseInt(k,16))}));try{w=atob(w)}catch{}return c(y,w)})}return""}(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if(x4(t))return t}return null}function fm(n,e){return n===404||n===0&&e.startsWith("file:")?new Wa('Missing PDF "'+e+'".'):new rm(`Unexpected server response (${n}) while retrieving PDF "${e}".`,n)}function VM(n){return n===200||n===206}function FM(n,e,t){return{method:"GET",headers:n,signal:t.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function jM(n){const e=new Headers;for(const t in n){const r=n[t];r!==void 0&&e.append(t,r)}return e}function zM(n){return n instanceof Uint8Array?n.buffer:n instanceof ArrayBuffer?n:(ke(`getArrayBuffer - unexpected data format: ${n}`),new Uint8Array(n).buffer)}class HM{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return xt(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new wZ(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=new vZ(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class wZ{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=jM(this._stream.httpHeaders);const r=t.url;fetch(r,FM(this._headers,this._withCredentials,this._abortController)).then(i=>{if(!VM(i.status))throw fm(i.status,r);this._reader=i.body.getReader(),this._headersCapability.resolve();const o=c=>i.headers.get(c),{allowRangeRequests:s,suggestedLength:a}=H4({getResponseHeader:o,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=a||this._contentLength,this._filename=U4(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new qa("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var r;await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,(r=this.onProgress)==null||r.call(this,{loaded:this._loaded,total:this._contentLength}),{value:zM(e),done:!1})}cancel(e){var t;(t=this._reader)==null||t.cancel(e),this._abortController.abort()}}class vZ{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController,this._headers=jM(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`);const o=i.url;fetch(o,FM(this._headers,this._withCredentials,this._abortController)).then(s=>{if(!VM(s.status))throw fm(s.status,o);this._readCapability.resolve(),this._reader=s.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var r;await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,(r=this.onProgress)==null||r.call(this,{loaded:this._loaded}),{value:zM(e),done:!1})}cancel(e){var t;(t=this._reader)==null||t.cancel(e),this._abortController.abort()}}class CZ{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){const i={begin:e,end:t};for(const o in r)i[o]=r[o];return this.request(i)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,r=this.currXhrId++,i=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const o in this.httpHeaders){const s=this.httpHeaders[o];s!==void 0&&t.setRequestHeader(o,s)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(o){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){var i;const r=this.pendingRequests[e];r&&((i=r.onProgress)==null||i.call(r,t))}onStateChange(e,t){var a,c,u;const r=this.pendingRequests[e];if(!r)return;const i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){(a=r.onError)==null||a.call(r,i.status);return}const o=i.status||200;if(!(o===200&&r.expectedStatus===206)&&o!==r.expectedStatus){(c=r.onError)==null||c.call(r,i.status);return}const s=function(f){const h=f.response;return typeof h!="string"?h:im(h).buffer}(i);if(o===206){const d=i.getResponseHeader("Content-Range"),f=/bytes (\d+)-(\d+)\/(\d+)/.exec(d);r.onDone({begin:parseInt(f[1],10),chunk:s})}else s?r.onDone({begin:0,chunk:s}):(u=r.onError)==null||u.call(r,i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}class kZ{constructor(e){this._source=e,this._manager=new CZ(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return xt(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new SZ(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new MZ(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class SZ{constructor(e,t){this._manager=e;const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=s=>t.getResponseHeader(s),{allowRangeRequests:i,suggestedLength:o}=H4({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=U4(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=fm(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;(t=this.onProgress)==null||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class MZ{constructor(e,t,r){this._manager=e;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)==null||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=fm(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||((t=this.onProgress)==null||t.call(this,{loaded:e.loaded}))}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const t=this._queuedChunk;return this._queuedChunk=null,{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const EZ=/^[a-z][a-z0-9\-+.]+:/i;function UM(n,e,t){return n.protocol==="http:"?ms.get("http").request(n,{headers:e},t):ms.get("https").request(n,{headers:e},t)}class AZ{constructor(e){this.source=e,this.url=function(r){if(EZ.test(r))return new URL(r);const i=ms.get("url");return new URL(i.pathToFileURL(r))}(e.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e;return((e=this._fullRequestReader)==null?void 0:e._loaded)??0}getFullReader(){return xt(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new IZ(this):new TZ(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const r=this.isFsUrl?new OZ(this,e,t):new xZ(this,e,t);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){var t;(t=this._fullRequestReader)==null||t.cancel(e);for(const r of this._rangeRequestReaders.slice(0))r.cancel(e)}}class ZM{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(t=this.onProgress)==null||t.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new qa("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class WM{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var t;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,(t=this.onProgress)==null||t.call(this,{loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}}class TZ extends ZM{constructor(e){super(e),this._request=UM(this._url,e.httpHeaders,t=>{if(t.statusCode===404){const s=new Wa(`Missing PDF "${this._url}".`);this._storedError=s,this._headersCapability.reject(s);return}this._headersCapability.resolve(),this._setReadableStream(t);const r=s=>this._readableStream.headers[s.toLowerCase()],{allowRangeRequests:i,suggestedLength:o}=H4({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=o||this._contentLength,this._filename=U4(r)}),this._request.on("error",t=>{this._storedError=t,this._headersCapability.reject(t)}),this._request.end()}}class xZ extends WM{constructor(e,t,r){super(e),this._httpHeaders={};for(const i in e.httpHeaders){const o=e.httpHeaders[i];o!==void 0&&(this._httpHeaders[i]=o)}this._httpHeaders.Range=`bytes=${t}-${r-1}`,this._request=UM(this._url,this._httpHeaders,i=>{if(i.statusCode!==404)this._setReadableStream(i);else{const o=new Wa(`Missing PDF "${this._url}".`);this._storedError=o}}),this._request.on("error",i=>{this._storedError=i}),this._request.end()}}class IZ extends ZM{constructor(e){super(e);const t=ms.get("fs");t.promises.lstat(this._url).then(r=>{this._contentLength=r.size,this._setReadableStream(t.createReadStream(this._url)),this._headersCapability.resolve()},r=>{r.code==="ENOENT"&&(r=new Wa(`Missing PDF "${this._url}".`)),this._storedError=r,this._headersCapability.reject(r)})}}class OZ extends WM{constructor(e,t,r){super(e);const i=ms.get("fs");this._setReadableStream(i.createReadStream(this._url,{start:t,end:r-1}))}}const Jn=30,Wt=class Wt{constructor({textContentSource:e,container:t,viewport:r}){M(this,W3);M(this,q3);M(this,$h);M(this,ra,Promise.withResolvers());M(this,qn,null);M(this,Dh,!1);M(this,Nh,!!((YD=globalThis.FontInspector)!=null&&YD.enabled));M(this,Hl,null);M(this,Oo,null);M(this,Ph,0);M(this,_h,0);M(this,Ul,null);M(this,cu,null);M(this,uu,0);M(this,ia,0);M(this,du,Object.create(null));M(this,Lh,[]);M(this,fu,null);M(this,Zl,[]);M(this,Bh,new WeakMap);M(this,Rh,null);var c;if(e instanceof ReadableStream)A(this,fu,e);else{if(typeof e!="object")throw new Error('No "textContentSource" parameter specified.');A(this,fu,new ReadableStream({start(u){u.enqueue(e),u.close()}}))}A(this,qn,A(this,cu,t)),A(this,ia,r.scale*(globalThis.devicePixelRatio||1)),A(this,uu,r.rotation),A(this,Oo,{prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null});const{pageWidth:i,pageHeight:o,pageX:s,pageY:a}=r.rawDims;A(this,Rh,[1,0,0,-1,-s,a+o]),A(this,_h,i),A(this,Ph,o),x(c=Wt,K3,xN).call(c),Ka(t,r),g(this,ra).promise.catch(()=>{}).then(()=>{g(Wt,hu).delete(this),A(this,Oo,null),A(this,du,null)})}render(){const e=()=>{g(this,Ul).read().then(({value:t,done:r})=>{r?g(this,ra).resolve():(g(this,Hl)??A(this,Hl,t.lang),Object.assign(g(this,du),t.styles),x(this,W3,AN).call(this,t.items),e())},g(this,ra).reject)};return A(this,Ul,g(this,fu).getReader()),g(Wt,hu).add(this),e(),g(this,ra).promise}update({viewport:e,onBefore:t=null}){var o;const r=e.scale*(globalThis.devicePixelRatio||1),i=e.rotation;if(i!==g(this,uu)&&(t==null||t(),A(this,uu,i),Ka(g(this,cu),{rotation:i})),r!==g(this,ia)){t==null||t(),A(this,ia,r);const s={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:x(o=Wt,pu,i5).call(o,g(this,Hl))};for(const a of g(this,Zl))s.properties=g(this,Bh).get(a),s.div=a,x(this,$h,xv).call(this,s)}}cancel(){var t;const e=new qa("TextLayer task cancelled.");(t=g(this,Ul))==null||t.cancel(e).catch(()=>{}),A(this,Ul,null),g(this,ra).reject(e)}get textDivs(){return g(this,Zl)}get textContentItemsStr(){return g(this,Lh)}static cleanup(){if(!(g(this,hu).size>0)){g(this,Wl).clear();for(const{canvas:e}of g(this,ql).values())e.remove();g(this,ql).clear()}}};ra=new WeakMap,qn=new WeakMap,Dh=new WeakMap,Nh=new WeakMap,Hl=new WeakMap,Oo=new WeakMap,Ph=new WeakMap,_h=new WeakMap,Ul=new WeakMap,cu=new WeakMap,uu=new WeakMap,ia=new WeakMap,du=new WeakMap,Lh=new WeakMap,fu=new WeakMap,Zl=new WeakMap,Bh=new WeakMap,Rh=new WeakMap,Wl=new WeakMap,ql=new WeakMap,oa=new WeakMap,hu=new WeakMap,W3=new WeakSet,AN=function(e){var i,o;if(g(this,Dh))return;(o=g(this,Oo)).ctx??(o.ctx=x(i=Wt,pu,i5).call(i,g(this,Hl)));const t=g(this,Zl),r=g(this,Lh);for(const s of e){if(t.length>1e5){ke("Ignoring additional textDivs for performance reasons."),A(this,Dh,!0);return}if(s.str!==void 0)r.push(s.str),x(this,q3,TN).call(this,s);else if(s.type==="beginMarkedContentProps"||s.type==="beginMarkedContent"){const a=g(this,qn);A(this,qn,document.createElement("span")),g(this,qn).classList.add("markedContent"),s.id!==null&&g(this,qn).setAttribute("id",`${s.id}`),a.append(g(this,qn))}else s.type==="endMarkedContent"&&A(this,qn,g(this,qn).parentNode)}},q3=new WeakSet,TN=function(e){var y;const t=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};g(this,Zl).push(t);const i=le.transform(g(this,Rh),e.transform);let o=Math.atan2(i[1],i[0]);const s=g(this,du)[e.fontName];s.vertical&&(o+=Math.PI/2);const a=g(this,Nh)&&s.fontSubstitution||s.fontFamily,c=Math.hypot(i[2],i[3]),u=c*x(y=Wt,G3,IN).call(y,a,g(this,Hl));let d,f;o===0?(d=i[4],f=i[5]-u):(d=i[4]+u*Math.sin(o),f=i[5]-u*Math.cos(o));const h="calc(var(--scale-factor)*",p=t.style;g(this,qn)===g(this,cu)?(p.left=`${(100*d/g(this,_h)).toFixed(2)}%`,p.top=`${(100*f/g(this,Ph)).toFixed(2)}%`):(p.left=`${h}${d.toFixed(2)}px)`,p.top=`${h}${f.toFixed(2)}px)`),p.fontSize=`${h}${(g(Wt,oa)*c).toFixed(2)}px)`,p.fontFamily=a,r.fontSize=c,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,g(this,Nh)&&(t.dataset.fontName=s.fontSubstitutionLoadedName||e.fontName),o!==0&&(r.angle=o*(180/Math.PI));let m=!1;if(e.str.length>1)m=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const b=Math.abs(e.transform[0]),w=Math.abs(e.transform[3]);b!==w&&Math.max(b,w)/Math.min(b,w)>1.5&&(m=!0)}if(m&&(r.canvasWidth=s.vertical?e.height:e.width),g(this,Bh).set(t,r),g(this,Oo).div=t,g(this,Oo).properties=r,x(this,$h,xv).call(this,g(this,Oo)),r.hasText&&g(this,qn).append(t),r.hasEOL){const b=document.createElement("br");b.setAttribute("role","presentation"),g(this,qn).append(b)}},$h=new WeakSet,xv=function(e){const{div:t,properties:r,ctx:i,prevFontSize:o,prevFontFamily:s}=e,{style:a}=t;let c="";if(g(Wt,oa)>1&&(c=`scale(${1/g(Wt,oa)})`),r.canvasWidth!==0&&r.hasText){const{fontFamily:u}=a,{canvasWidth:d,fontSize:f}=r;(o!==f||s!==u)&&(i.font=`${f*g(this,ia)}px ${u}`,e.prevFontSize=f,e.prevFontFamily=u);const{width:h}=i.measureText(t.textContent);h>0&&(c=`scaleX(${d*g(this,ia)/h}) ${c}`)}r.angle!==0&&(c=`rotate(${r.angle}deg) ${c}`),c.length>0&&(a.transform=c)},pu=new WeakSet,i5=function(e=null){let t=g(this,ql).get(e||(e=""));if(!t){const r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=e,document.body.append(r),t=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),g(this,ql).set(e,t)}return t},K3=new WeakSet,xN=function(){if(g(this,oa)!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),A(this,oa,e.getBoundingClientRect().height),e.remove()},G3=new WeakSet,IN=function(e,t){const r=g(this,Wl).get(e);if(r)return r;const i=x(this,pu,i5).call(this,t),o=i.font;i.canvas.width=i.canvas.height=Jn,i.font=`30px ${e}`;const s=i.measureText("");let a=s.fontBoundingBoxAscent,c=Math.abs(s.fontBoundingBoxDescent);if(a){const f=a/(a+c);return g(this,Wl).set(e,f),i.canvas.width=i.canvas.height=0,i.font=o,f}i.strokeStyle="red",i.clearRect(0,0,Jn,Jn),i.strokeText("g",0,0);let u=i.getImageData(0,0,Jn,Jn).data;c=0;for(let f=u.length-1-3;f>=0;f-=4)if(u[f]>0){c=Math.ceil(f/4/Jn);break}i.clearRect(0,0,Jn,Jn),i.strokeText("A",0,Jn),u=i.getImageData(0,0,Jn,Jn).data,a=0;for(let f=0,h=u.length;f<h;f+=4)if(u[f]>0){a=Jn-Math.floor(f/4/Jn);break}i.canvas.width=i.canvas.height=0,i.font=o;const d=a?a/(a+c):.8;return g(this,Wl).set(e,d),d},M(Wt,pu),M(Wt,K3),M(Wt,G3),M(Wt,Wl,new Map),M(Wt,ql,new Map),M(Wt,oa,null),M(Wt,hu,new Set);let m2=Wt;class g2{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function i(o){var c;if(!o)return;let s=null;const a=o.name;if(a==="#text")s=o.value;else{if(!g2.shouldBuildText(a))return;(c=o==null?void 0:o.attributes)!=null&&c.textContent?s=o.attributes.textContent:o.value&&(s=o.value)}if(s!==null&&t.push({str:s}),o.children)for(const u of o.children)i(u)}(e),r}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}const DZ=65536,NZ=cn?class extends mM{_createCanvas(e,t){return ms.get("canvas").createCanvas(e,t)}}:class extends mM{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}={}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){const r=this._document.createElement("canvas");return r.width=e,r.height=t,r}},PZ=cn?class extends gM{_fetchData(e,t){return AM(e).then(r=>({cMapData:r,compressionType:t}))}}:bM,_Z=cn?class extends pM{}:(QD=class extends pM{constructor({docId:t,ownerDocument:r=globalThis.document}={}){super();M(this,qt);M(this,sa);M(this,aa);M(this,mu);M(this,la);M(this,Q3);M(this,Vh);M(this,ca);M(this,Ql);M(this,Xl);M(this,Fh);M(this,Jl);M(this,Kl,void 0);M(this,Gl,void 0);M(this,ji,void 0);M(this,Do,void 0);M(this,hn,void 0);M(this,Y3,void 0);M(this,Yl,0);A(this,Do,t),A(this,hn,r)}addFilter(t){if(!t)return"none";let r=g(this,qt,gn).get(t);if(r)return r;const[i,o,s]=x(this,mu,o5).call(this,t),a=t.length===1?i:`${i}${o}${s}`;if(r=g(this,qt,gn).get(a),r)return g(this,qt,gn).set(t,r),r;const c=`g_${g(this,Do)}_transfer_map_${Gn(this,Yl)._++}`,u=x(this,la,fd).call(this,c);g(this,qt,gn).set(t,u),g(this,qt,gn).set(a,u);const d=x(this,ca,hd).call(this,c);return x(this,Xl,Q1).call(this,i,o,s,d),u}addHCMFilter(t,r){var m;const i=`${t}-${r}`,o="base";let s=g(this,sa,ud).get(o);if((s==null?void 0:s.key)===i||(s?((m=s.filter)==null||m.remove(),s.key=i,s.url="none",s.filter=null):(s={key:i,url:"none",filter:null},g(this,sa,ud).set(o,s)),!t||!r))return s.url;const a=x(this,Jl,X1).call(this,t);t=le.makeHexColor(...a);const c=x(this,Jl,X1).call(this,r);if(r=le.makeHexColor(...c),g(this,aa,dd).style.color="",t==="#000000"&&r==="#ffffff"||t===r)return s.url;const u=new Array(256);for(let y=0;y<=255;y++){const b=y/255;u[y]=b<=.03928?b/12.92:((b+.055)/1.055)**2.4}const d=u.join(","),f=`g_${g(this,Do)}_hcm_filter`,h=s.filter=x(this,ca,hd).call(this,f);x(this,Xl,Q1).call(this,d,d,d,h),x(this,Vh,Iv).call(this,h);const p=(y,b)=>{const w=a[y]/255,v=c[y]/255,k=new Array(b+1);for(let C=0;C<=b;C++)k[C]=w+C/b*(v-w);return k.join(",")};return x(this,Xl,Q1).call(this,p(0,5),p(1,5),p(2,5),h),s.url=x(this,la,fd).call(this,f),s.url}addAlphaFilter(t){let r=g(this,qt,gn).get(t);if(r)return r;const[i]=x(this,mu,o5).call(this,[t]),o=`alpha_${i}`;if(r=g(this,qt,gn).get(o),r)return g(this,qt,gn).set(t,r),r;const s=`g_${g(this,Do)}_alpha_map_${Gn(this,Yl)._++}`,a=x(this,la,fd).call(this,s);g(this,qt,gn).set(t,a),g(this,qt,gn).set(o,a);const c=x(this,ca,hd).call(this,s);return x(this,Fh,Ov).call(this,i,c),a}addLuminosityFilter(t){let r,i,o=g(this,qt,gn).get(t||"luminosity");if(o)return o;if(t?([r]=x(this,mu,o5).call(this,[t]),i=`luminosity_${r}`):i="luminosity",o=g(this,qt,gn).get(i),o)return g(this,qt,gn).set(t,o),o;const s=`g_${g(this,Do)}_luminosity_map_${Gn(this,Yl)._++}`,a=x(this,la,fd).call(this,s);g(this,qt,gn).set(t,a),g(this,qt,gn).set(i,a);const c=x(this,ca,hd).call(this,s);return x(this,Q3,ON).call(this,c),t&&x(this,Fh,Ov).call(this,r,c),a}addHighlightHCMFilter(t,r,i,o,s){var v;const a=`${r}-${i}-${o}-${s}`;let c=g(this,sa,ud).get(t);if((c==null?void 0:c.key)===a||(c?((v=c.filter)==null||v.remove(),c.key=a,c.url="none",c.filter=null):(c={key:a,url:"none",filter:null},g(this,sa,ud).set(t,c)),!r||!i))return c.url;const[u,d]=[r,i].map(x(this,Jl,X1).bind(this));let f=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),h=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[p,m]=[o,s].map(x(this,Jl,X1).bind(this));h<f&&([f,h,p,m]=[h,f,m,p]),g(this,aa,dd).style.color="";const y=(k,C,T)=>{const S=new Array(256),E=(h-f)/T,O=k/255,I=(C-k)/(255*T);let P=0;for(let D=0;D<=T;D++){const B=Math.round(f+D*E),V=O+D*I;for(let U=P;U<=B;U++)S[U]=V;P=B+1}for(let D=P;D<256;D++)S[D]=S[P-1];return S.join(",")},b=`g_${g(this,Do)}_hcm_${t}_filter`,w=c.filter=x(this,ca,hd).call(this,b);return x(this,Vh,Iv).call(this,w),x(this,Xl,Q1).call(this,y(p[0],m[0],5),y(p[1],m[1],5),y(p[2],m[2],5),w),c.url=x(this,la,fd).call(this,b),c.url}destroy(t=!1){(!t||g(this,sa,ud).size===0)&&(g(this,ji)&&(g(this,ji).parentNode.parentNode.remove(),A(this,ji,null)),g(this,Gl)&&(g(this,Gl).clear(),A(this,Gl,null)),A(this,Yl,0))}},Kl=new WeakMap,Gl=new WeakMap,ji=new WeakMap,Do=new WeakMap,hn=new WeakMap,Y3=new WeakMap,Yl=new WeakMap,qt=new WeakSet,gn=function(){return g(this,Gl)||A(this,Gl,new Map)},sa=new WeakSet,ud=function(){return g(this,Y3)||A(this,Y3,new Map)},aa=new WeakSet,dd=function(){if(!g(this,ji)){const t=g(this,hn).createElement("div"),{style:r}=t;r.visibility="hidden",r.contain="strict",r.width=r.height=0,r.position="absolute",r.top=r.left=0,r.zIndex=-1;const i=g(this,hn).createElementNS(lo,"svg");i.setAttribute("width",0),i.setAttribute("height",0),A(this,ji,g(this,hn).createElementNS(lo,"defs")),t.append(i),i.append(g(this,ji)),g(this,hn).body.append(t)}return g(this,ji)},mu=new WeakSet,o5=function(t){if(t.length===1){const u=t[0],d=new Array(256);for(let h=0;h<256;h++)d[h]=u[h]/255;const f=d.join(",");return[f,f,f]}const[r,i,o]=t,s=new Array(256),a=new Array(256),c=new Array(256);for(let u=0;u<256;u++)s[u]=r[u]/255,a[u]=i[u]/255,c[u]=o[u]/255;return[s.join(","),a.join(","),c.join(",")]},la=new WeakSet,fd=function(t){if(g(this,Kl)===void 0){A(this,Kl,"");const r=g(this,hn).URL;r!==g(this,hn).baseURI&&(sm(r)?ke('#createUrl: ignore "data:"-URL for performance reasons.'):A(this,Kl,r.split("#",1)[0]))}return`url(${g(this,Kl)}#${t})`},Q3=new WeakSet,ON=function(t){const r=g(this,hn).createElementNS(lo,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(r)},Vh=new WeakSet,Iv=function(t){const r=g(this,hn).createElementNS(lo,"feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(r)},ca=new WeakSet,hd=function(t){const r=g(this,hn).createElementNS(lo,"filter");return r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("id",t),g(this,aa,dd).append(r),r},Ql=new WeakSet,Y1=function(t,r,i){const o=g(this,hn).createElementNS(lo,r);o.setAttribute("type","discrete"),o.setAttribute("tableValues",i),t.append(o)},Xl=new WeakSet,Q1=function(t,r,i,o){const s=g(this,hn).createElementNS(lo,"feComponentTransfer");o.append(s),x(this,Ql,Y1).call(this,s,"feFuncR",t),x(this,Ql,Y1).call(this,s,"feFuncG",r),x(this,Ql,Y1).call(this,s,"feFuncB",i)},Fh=new WeakSet,Ov=function(t,r){const i=g(this,hn).createElementNS(lo,"feComponentTransfer");r.append(i),x(this,Ql,Y1).call(this,i,"feFuncA",t)},Jl=new WeakSet,X1=function(t){return g(this,aa,dd).style.color=t,I4(getComputedStyle(g(this,aa,dd)).getPropertyValue("color"))},QD),LZ=cn?class extends yM{_fetchData(e){return AM(e)}}:wM;function BZ(n={}){typeof n=="string"||n instanceof URL?n={url:n}:(n instanceof ArrayBuffer||ArrayBuffer.isView(n))&&(n={data:n});const e=new Z4,{docId:t}=e,r=n.url?function(F){if(F instanceof URL)return F.href;try{return new URL(F,window.location).href}catch{if(cn&&typeof F=="string")return F}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(n.url):null,i=n.data?function(F){if(cn&&typeof Buffer<"u"&&F instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(F instanceof Uint8Array&&F.byteLength===F.buffer.byteLength)return F;if(typeof F=="string")return im(F);if(F instanceof ArrayBuffer||ArrayBuffer.isView(F)||typeof F=="object"&&!isNaN(F==null?void 0:F.length))return new Uint8Array(F);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(n.data):null,o=n.httpHeaders||null,s=n.withCredentials===!0,a=n.password??null,c=n.range instanceof KM?n.range:null,u=Number.isInteger(n.rangeChunkSize)&&n.rangeChunkSize>0?n.rangeChunkSize:DZ;let d=n.worker instanceof nc?n.worker:null;const f=n.verbosity,h=typeof n.docBaseUrl!="string"||sm(n.docBaseUrl)?null:n.docBaseUrl,p=typeof n.cMapUrl=="string"?n.cMapUrl:null,m=n.cMapPacked!==!1,y=n.CMapReaderFactory||PZ,b=typeof n.standardFontDataUrl=="string"?n.standardFontDataUrl:null,w=n.StandardFontDataFactory||LZ,v=n.stopAtErrors!==!0,k=Number.isInteger(n.maxImageSize)&&n.maxImageSize>-1?n.maxImageSize:-1,C=n.isEvalSupported!==!1,T=typeof n.isOffscreenCanvasSupported=="boolean"?n.isOffscreenCanvasSupported:!cn,S=Number.isInteger(n.canvasMaxAreaInBytes)?n.canvasMaxAreaInBytes:-1,E=typeof n.disableFontFace=="boolean"?n.disableFontFace:cn,O=n.fontExtraProperties===!0,I=n.enableXfa===!0,P=n.ownerDocument||globalThis.document,D=n.disableRange===!0,B=n.disableStream===!0,V=n.disableAutoFetch===!0,U=n.pdfBug===!0,L=n.enableHWA===!0,N=c?c.length:n.length??NaN,$=typeof n.useSystemFonts=="boolean"?n.useSystemFonts:!cn&&!E,R=typeof n.useWorkerFetch=="boolean"?n.useWorkerFetch:y===bM&&w===wM&&p&&b&&c2(p,document.baseURI)&&c2(b,document.baseURI),q=n.canvasFactory||new NZ({ownerDocument:P,enableHWA:L}),re=n.filterFactory||new _Z({docId:t,ownerDocument:P});NU(f);const ce={canvasFactory:q,filterFactory:re};if(R||(ce.cMapReaderFactory=new y({baseUrl:p,isCompressed:m}),ce.standardFontDataFactory=new w({baseUrl:b})),!d){const j={verbosity:f,port:uo.workerPort};d=j.port?nc.fromPort(j):new nc(j),e._worker=d}const K={docId:t,apiVersion:"4.6.82",data:i,password:a,disableAutoFetch:V,rangeChunkSize:u,length:N,docBaseUrl:h,enableXfa:I,evaluatorOptions:{maxImageSize:k,disableFontFace:E,ignoreErrors:v,isEvalSupported:C,isOffscreenCanvasSupported:T,canvasMaxAreaInBytes:S,fontExtraProperties:O,useSystemFonts:$,cMapUrl:R?p:null,standardFontDataUrl:R?b:null}},H={disableFontFace:E,fontExtraProperties:O,ownerDocument:P,pdfBug:U,styleElement:null,loadingParams:{disableAutoFetch:V,enableXfa:I}};return d.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const j=d.messageHandler.sendWithPromise("GetDocRequest",K,i?[i.buffer]:null);let F;if(c)F=new gZ(c,{disableRange:D,disableStream:B});else if(!i){if(!r)throw new Error("getDocument - no `url` parameter provided.");F=(G=>cn?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&c2(G.url)?new HM(G):new AZ(G):c2(G.url)?new HM(G):new kZ(G))({url:r,length:N,httpHeaders:o,withCredentials:s,rangeChunkSize:u,disableRange:D,disableStream:B})}return j.then(G=>{if(e.destroyed)throw new Error("Loading aborted");if(d.destroyed)throw new Error("Worker was destroyed");const J=new p2(t,G,d.port),ae=new FZ(J,e,F,H,ce);e._transport=ae,J.send("Ready",null)})}).catch(e._capability.reject),e}function qM(n){return typeof n=="object"&&Number.isInteger(n==null?void 0:n.num)&&n.num>=0&&Number.isInteger(n==null?void 0:n.gen)&&n.gen>=0}const J3=class J3{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d"+Gn(J3,X3)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var e,t,r;this.destroyed=!0;try{(e=this._worker)!=null&&e.port&&(this._worker._pendingDestroy=!0),await((t=this._transport)==null?void 0:t.destroy())}catch(i){throw(r=this._worker)!=null&&r.port&&delete this._worker._pendingDestroy,i}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};X3=new WeakMap,M(J3,X3,0);let Z4=J3;class KM{constructor(e,t,r=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then(()=>{for(const r of this._progressListeners)r(e,t)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const t of this._progressiveReadListeners)t(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){Mt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class RZ{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Ie(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class $Z{constructor(e,t,r,i=!1){M(this,da);M(this,gu);M(this,ua,null);M(this,No,!1);this._pageIndex=e,this._pageInfo=t,this._transport=r,this._stats=i?new vM:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new GM,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:o=!1}={}){return new l2({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:i,dontFlip:o})}getAnnotations({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Ie(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return((e=this._transport._htmlForXfa)==null?void 0:e.children[this._pageIndex])||null}render({canvasContext:e,viewport:t,intent:r="display",annotationMode:i=ds.ENABLE,transform:o=null,background:s=null,optionalContentConfigPromise:a=null,annotationCanvasMap:c=null,pageColors:u=null,printAnnotationStorage:d=null,isEditing:f=!1}){var C,T;(C=this._stats)==null||C.time("Overall");const h=this._transport.getRenderingIntent(r,i,d,f),{renderingIntent:p,cacheKey:m}=h;A(this,No,!1),x(this,gu,s5).call(this),a||(a=this._transport.getOptionalContentConfig(p));let y=this._intentStates.get(m);y||(y=Object.create(null),this._intentStates.set(m,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const b=!!(p&Qp);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(T=this._stats)==null||T.time("Page Request"),this._pumpOperatorList(h));const w=S=>{var E;y.renderTasks.delete(v),(this._maybeCleanupAfterRender||b)&&A(this,No,!0),x(this,da,pd).call(this,!b),S?(v.capability.reject(S),this._abortOperatorList({intentState:y,reason:S instanceof Error?S:new Error(S)})):v.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(E=globalThis.Stats)!=null&&E.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},v=new W4({callback:w,params:{canvasContext:e,viewport:t,transform:o,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!b,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||(y.renderTasks=new Set)).add(v);const k=v.task;return Promise.all([y.displayReadyCapability.promise,a]).then(([S,E])=>{var O;if(this.destroyed)w();else{if((O=this._stats)==null||O.time("Rendering"),!(E.renderingIntent&p))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");v.initializeGraphics({transparency:S,optionalContentConfig:E}),v.operatorListChanged()}}).catch(w),k}getOperatorList({intent:e="display",annotationMode:t=ds.ENABLE,printAnnotationStorage:r=null,isEditing:i=!1}={}){var c;const o=this._transport.getRenderingIntent(e,t,r,i,!0);let s,a=this._intentStates.get(o.cacheKey);return a||(a=Object.create(null),this._intentStates.set(o.cacheKey,a)),a.opListReadCapability||(s=Object.create(null),s.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(s))},a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||(a.renderTasks=new Set)).add(s),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(o)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:t===!0},{highWaterMark:100,size:r=>r.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(r=>g2.textContent(r));const t=this.streamTextContent(e);return new Promise(function(r,i){const o=t.getReader(),s={items:[],styles:Object.create(null),lang:null};(function a(){o.read().then(function({value:c,done:u}){u?r(s):(s.lang??(s.lang=c.lang),Object.assign(s.styles,c.styles),s.items.push(...c.items),a())},i)})()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const r of t.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),A(this,No,!1),x(this,gu,s5).call(this),Promise.all(e)}cleanup(e=!1){A(this,No,!0);const t=x(this,da,pd).call(this,!1);return e&&t&&this._stats&&(this._stats=new vM),t}_startRenderPage(e,t){var i,o;const r=this._intentStates.get(t);r&&((i=this._stats)==null||i.timeEnd("Page Request"),(o=r.displayReadyCapability)==null||o.resolve(e))}_renderPageChunk(e,t){for(let r=0,i=e.length;r<i;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const r of t.renderTasks)r.operatorListChanged();e.lastChunk&&x(this,da,pd).call(this,!0)}_pumpOperatorList({renderingIntent:e,cacheKey:t,annotationStorageSerializable:r,modifiedIds:i}){const{map:o,transfer:s}=r,a=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:t,annotationStorage:o,modifiedIds:i},s).getReader(),c=this._intentStates.get(t);c.streamReader=a;const u=()=>{a.read().then(({value:d,done:f})=>{f?c.streamReader=null:this._transport.destroyed||(this._renderPageChunk(d,c),u())},d=>{if(c.streamReader=null,!this._transport.destroyed){if(c.operatorList){c.operatorList.lastChunk=!0;for(const f of c.renderTasks)f.operatorListChanged();x(this,da,pd).call(this,!0)}if(c.displayReadyCapability)c.displayReadyCapability.reject(d);else{if(!c.opListReadCapability)throw d;c.opListReadCapability.reject(d)}}})};u()}_abortOperatorList({intentState:e,reason:t,force:r=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!r){if(e.renderTasks.size>0)return;if(t instanceof T4){let i=100;t.extraDelay>0&&t.extraDelay<1e3&&(i+=t.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},i);return}}if(e.streamReader.cancel(new qa(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[i,o]of this._intentStates)if(o===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}ua=new WeakMap,No=new WeakMap,da=new WeakSet,pd=function(e=!1){if(x(this,gu,s5).call(this),!g(this,No)||this.destroyed)return!1;if(e)return A(this,ua,setTimeout(()=>{A(this,ua,null),x(this,da,pd).call(this,!1)},5e3)),!1;for(const{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),A(this,No,!1),!0},gu=new WeakSet,s5=function(){g(this,ua)&&(clearTimeout(g(this,ua)),A(this,ua,null))};class VZ{constructor(){M(this,e0,new Set);M(this,ey,Promise.resolve())}postMessage(e,t){const r={data:structuredClone(e,t?{transfer:t}:null)};g(this,ey).then(()=>{for(const i of g(this,e0))i.call(this,r)})}addEventListener(e,t){g(this,e0).add(t)}removeEventListener(e,t){g(this,e0).delete(t)}terminate(){g(this,e0).clear()}}e0=new WeakMap,ey=new WeakMap;const tt=class tt{constructor({name:e=null,port:t=null,verbosity:r=PU()}={}){M(this,yu);var i;if(this.name=e,this.destroyed=!1,this.verbosity=r,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,t){if((i=g(tt,n0))!=null&&i.has(t))throw new Error("Cannot use more than one PDFWorker per port.");(g(tt,n0)||A(tt,n0,new WeakMap)).set(t,this),this._initializeFromPort(t)}else this._initialize()}get promise(){return cn?Promise.all([ms.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new p2("main","worker",e),this._messageHandler.on("ready",function(){}),x(this,yu,a5).call(this)}_initialize(){if(g(tt,t0)||g(tt,bu,l5)){this._setupFakeWorker();return}let{workerSrc:e}=tt;try{tt._isSameOrigin(window.location.href,e)||(e=tt._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),r=new p2("main","worker",t),i=()=>{o.abort(),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;t.addEventListener("error",()=>{this._webWorker||i()},{signal:o.signal}),r.on("test",a=>{o.abort(),!this.destroyed&&a?(this._messageHandler=r,this._port=t,this._webWorker=t,x(this,yu,a5).call(this)):i()}),r.on("ready",a=>{if(o.abort(),this.destroyed)i();else try{s()}catch{this._setupFakeWorker()}});const s=()=>{const a=new Uint8Array;r.send("test",a,[a.buffer])};s();return}catch{nm("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){g(tt,t0)||(ke("Setting up fake worker."),A(tt,t0,!0)),tt._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const t=new VZ;this._port=t;const r="fake"+Gn(tt,ty)._++,i=new p2(r+"_worker",r,t);e.setup(i,t),this._messageHandler=new p2(r,r+"_worker",t),x(this,yu,a5).call(this)}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(e=g(tt,n0))==null||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var r;if(!(e!=null&&e.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const t=(r=g(this,n0))==null?void 0:r.get(e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new tt(e)}static get workerSrc(){if(uo.workerSrc)return uo.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Ie(this,"_setupFakeWorkerGlobal",(async()=>g(this,bu,l5)?g(this,bu,l5):(await import(this.workerSrc)).WorkerMessageHandler)())}};ty=new WeakMap,t0=new WeakMap,n0=new WeakMap,yu=new WeakSet,a5=function(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})},bu=new WeakSet,l5=function(){var e;try{return((e=globalThis.pdfjsWorker)==null?void 0:e.WorkerMessageHandler)||null}catch{return null}},M(tt,bu),M(tt,ty,0),M(tt,t0,!1),M(tt,n0,void 0),cn&&(A(tt,t0,!0),uo.workerSrc||(uo.workerSrc="./pdf.worker.mjs")),tt._isSameOrigin=(e,t)=>{let r;try{if(r=new URL(e),!r.origin||r.origin==="null")return!1}catch{return!1}const i=new URL(t,r);return r.origin===i.origin},tt._createCDNWrapper=e=>{const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};let nc=tt;class FZ{constructor(e,t,r,i,o){M(this,r0);M(this,Po,new Map);M(this,zi,new Map);M(this,wu,new Map);M(this,vu,new Map);M(this,Hi,null);this.messageHandler=e,this.loadingTask=t,this.commonObjs=new GM,this.fontLoader=new eZ({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return Ie(this,"annotationStorage",new _4)}getRenderingIntent(e,t=ds.ENABLE,r=null,i=!1,o=!1){let s=b4,a=P4;switch(e){case"any":s=eU;break;case"display":break;case"print":s=Qp;break;default:ke(`getRenderingIntent - invalid intent: ${e}`)}const c=s&Qp&&r instanceof EM?r:this.annotationStorage;switch(t){case ds.DISABLE:s+=rU;break;case ds.ENABLE:break;case ds.ENABLE_FORMS:s+=tU;break;case ds.ENABLE_STORAGE:s+=nU,a=c.serializable;break;default:ke(`getRenderingIntent - invalid annotationMode: ${t}`)}i&&(s+=iU),o&&(s+=oU);const{ids:u,hash:d}=c.modifiedIds;return{renderingIntent:s,cacheKey:[s,a.hash,d].join("_"),annotationStorageSerializable:a,modifiedIds:u}}destroy(){var r;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(r=g(this,Hi))==null||r.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const i of g(this,zi).values())e.push(i._destroy());g(this,zi).clear(),g(this,wu).clear(),g(this,vu).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{var i;this.commonObjs.clear(),this.fontLoader.clear(),g(this,Po).clear(),this.filterFactory.destroy(),m2.cleanup(),(i=this._networkStream)==null||i.cancelAllRequests(new qa("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(r,i)=>{xt(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},i.onPull=()=>{this._fullReader.read().then(function({value:o,done:s}){s?i.close():(xt(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(o),1,[o]))}).catch(o=>{i.error(o)})},i.onCancel=o=>{this._fullReader.cancel(o),i.ready.catch(s=>{if(!this.destroyed)throw s})}}),e.on("ReaderHeadersReady",r=>{const i=Promise.withResolvers(),o=this._fullReader;return o.headersReady.then(()=>{var s;(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&((s=t.onProgress)==null||s.call(t,this._lastProgress)),o.onProgress=a=>{var c;(c=t.onProgress)==null||c.call(t,{loaded:a.loaded,total:a.total})}),i.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},i.reject),i.promise}),e.on("GetRangeReader",(r,i)=>{xt(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const o=this._networkStream.getRangeReader(r.begin,r.end);o?(i.onPull=()=>{o.read().then(function({value:s,done:a}){a?i.close():(xt(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s]))}).catch(s=>{i.error(s)})},i.onCancel=s=>{o.cancel(s),i.ready.catch(a=>{if(!this.destroyed)throw a})}):i.close()}),e.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,t._capability.resolve(new RZ(r,this))}),e.on("DocException",function(r){let i;switch(r.name){case"PasswordException":i=new C4(r.message,r.code);break;case"InvalidPDFException":i=new uM(r.message);break;case"MissingPDFException":i=new Wa(r.message);break;case"UnexpectedResponseException":i=new rm(r.message,r.status);break;case"UnknownErrorException":i=new k4(r.message,r.details);break;default:Mt("DocException - expected a valid Error.")}t._capability.reject(i)}),e.on("PasswordRequest",r=>{if(A(this,Hi,Promise.withResolvers()),t.onPassword){const i=o=>{o instanceof Error?g(this,Hi).reject(o):g(this,Hi).resolve({password:o})};try{t.onPassword(i,r.code)}catch(o){g(this,Hi).reject(o)}}else g(this,Hi).reject(new C4(r.message,r.code));return g(this,Hi).promise}),e.on("DataLoaded",r=>{var i;(i=t.onProgress)==null||i.call(t,{loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),e.on("StartRenderPage",r=>{this.destroyed||g(this,zi).get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),e.on("commonobj",([r,i,o])=>{var s;if(this.destroyed||this.commonObjs.has(r))return null;switch(i){case"Font":const{disableFontFace:a,fontExtraProperties:c,pdfBug:u}=this._params;if("error"in o){const p=o.error;ke(`Error during font loading: ${p}`),this.commonObjs.resolve(r,p);break}const d=u&&((s=globalThis.FontInspector)!=null&&s.enabled)?(p,m)=>globalThis.FontInspector.fontAdded(p,m):null,f=new tZ(o,{disableFontFace:a,inspectFont:d});this.fontLoader.bind(f).catch(()=>e.sendWithPromise("FontFallback",{id:r})).finally(()=>{!c&&f.data&&(f.data=null),this.commonObjs.resolve(r,f)});break;case"CopyLocalImage":const{imageRef:h}=o;xt(h,"The imageRef must be defined.");for(const p of g(this,zi).values())for(const[,m]of p.objs)if((m==null?void 0:m.ref)===h)return m.dataLen?(this.commonObjs.resolve(r,structuredClone(m)),m.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,o);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([r,i,o,s])=>{var c;if(this.destroyed)return;const a=g(this,zi).get(i);if(!a.objs.has(r))if(a._intentStates.size!==0)switch(o){case"Image":a.objs.resolve(r,s),(s==null?void 0:s.dataLen)>1e7&&(a._maybeCleanupAfterRender=!0);break;case"Pattern":a.objs.resolve(r,s);break;default:throw new Error(`Got unknown object type ${o}`)}else(c=s==null?void 0:s.bitmap)==null||c.close()}),e.on("DocProgress",r=>{var i;this.destroyed||((i=t.onProgress)==null||i.call(t,{loaded:r.loaded,total:r.total}))}),e.on("FetchBuiltInCMap",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(r):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),e.on("FetchStandardFontData",r=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(r):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var r;this.annotationStorage.size<=0&&ke("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:((r=this._fullReader)==null?void 0:r.filename)??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,r=g(this,wu).get(t);if(r)return r;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&g(this,vu).set(o.refStr,e);const s=new $Z(t,o,this,this._params.pdfBug);return g(this,zi).set(t,s),s});return g(this,wu).set(t,i),i}getPageIndex(e){return qM(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return x(this,r0,J1).call(this,"GetFieldObjects")}hasJSActions(){return x(this,r0,J1).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return x(this,r0,J1).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return x(this,r0,J1).call(this,"GetOptionalContentConfig").then(t=>new mZ(t,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=g(this,Po).get(e);if(t)return t;const r=this.messageHandler.sendWithPromise(e,null).then(i=>{var o,s;return{info:i[0],metadata:i[1]?new hZ(i[1]):null,contentDispositionFilename:((o=this._fullReader)==null?void 0:o.filename)??null,contentLength:((s=this._fullReader)==null?void 0:s.contentLength)??null}});return g(this,Po).set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const t of g(this,zi).values())if(!t.cleanup())throw new Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),g(this,Po).clear(),this.filterFactory.destroy(!0),m2.cleanup()}}cachedPageNumber(e){if(!qM(e))return null;const t=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return g(this,vu).get(t)??null}}Po=new WeakMap,zi=new WeakMap,wu=new WeakMap,vu=new WeakMap,Hi=new WeakMap,r0=new WeakSet,J1=function(e,t=null){const r=g(this,Po).get(e);if(r)return r;const i=this.messageHandler.sendWithPromise(e,t);return g(this,Po).set(e,i),i};const hm=Symbol("INITIAL_DATA");class GM{constructor(){M(this,jh);M(this,ii,Object.create(null))}get(e,t=null){if(t){const i=x(this,jh,Dv).call(this,e);return i.promise.then(()=>t(i.data)),null}const r=g(this,ii)[e];if(!r||r.data===hm)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return r.data}has(e){const t=g(this,ii)[e];return!!t&&t.data!==hm}resolve(e,t=null){const r=x(this,jh,Dv).call(this,e);r.data=t,r.resolve()}clear(){var e;for(const t in g(this,ii)){const{data:r}=g(this,ii)[t];(e=r==null?void 0:r.bitmap)==null||e.close()}A(this,ii,Object.create(null))}*[Symbol.iterator](){for(const e in g(this,ii)){const{data:t}=g(this,ii)[e];t!==hm&&(yield[e,t])}}}ii=new WeakMap,jh=new WeakSet,Dv=function(e){var t;return(t=g(this,ii))[e]||(t[e]={...Promise.withResolvers(),data:hm})};class jZ{constructor(e){M(this,fa,null);A(this,fa,e),this.onContinue=null}get promise(){return g(this,fa).capability.promise}cancel(e=0){g(this,fa).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=g(this,fa).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=g(this,fa);return e.form||e.canvas&&(t==null?void 0:t.size)>0}}fa=new WeakMap;const o0=class o0{constructor({callback:e,params:t,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:s,pageIndex:a,canvasFactory:c,filterFactory:u,useRequestAnimationFrame:d=!1,pdfBug:f=!1,pageColors:h=null}){M(this,ha,null);this.callback=e,this.params=t,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=f,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=d===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new jZ(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){var a,c;if(this.cancelled)return;if(this._canvas){if(g(o0,i0).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");g(o0,i0).add(this._canvas)}this._pdfBug&&((a=globalThis.StepperManager)!=null&&a.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:r,viewport:i,transform:o,background:s}=this.params;this.gfx=new tc(r,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:i,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,(c=this.graphicsReadyCallback)==null||c.call(this)}cancel(e=null,t=0){var r;this.running=!1,this.cancelled=!0,(r=this.gfx)==null||r.endDrawing(),g(this,ha)&&(window.cancelAnimationFrame(g(this,ha)),A(this,ha,null)),g(o0,i0).delete(this._canvas),this.callback(e||new T4(`Rendering cancelled, page ${this._pageIndex+1}`,t))}operatorListChanged(){var e;this.graphicsReady?((e=this.stepper)==null||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?A(this,ha,window.requestAnimationFrame(()=>{A(this,ha,null),this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),g(o0,i0).delete(this._canvas),this.callback())))}};ha=new WeakMap,i0=new WeakMap,M(o0,i0,new WeakSet);let W4=o0;const zZ="4.6.82",HZ="9b541910f";Pe(670);function YM(n){return Math.floor(255*Math.max(0,Math.min(1,n))).toString(16).padStart(2,"0")}function y2(n){return Math.max(0,Math.min(255,255*n))}class QM{static CMYK_G([e,t,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=y2(e),e,e]}static G_HTML([e]){const t=YM(e);return`#${t}${t}${t}`}static RGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}static RGB_rgb(e){return e.map(y2)}static RGB_HTML(e){return`#${e.map(YM).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,r,i]){return[y2(1-Math.min(1,e+i)),y2(1-Math.min(1,r+i)),y2(1-Math.min(1,t+i))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,r]){const i=1-e,o=1-t,s=1-r;return["CMYK",i,o,s,Math.min(i,o,s)]}}class XM{static setupStorage(e,t,r,i,o){const s=i.getValue(t,{value:null});switch(r.name){case"textarea":if(s.value!==null&&(e.textContent=s.value),o==="print")break;e.addEventListener("input",a=>{i.setValue(t,{value:a.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(s.value===r.attributes.xfaOn?e.setAttribute("checked",!0):s.value===r.attributes.xfaOff&&e.removeAttribute("checked"),o==="print")break;e.addEventListener("change",a=>{i.setValue(t,{value:a.target.checked?a.target.getAttribute("xfaOn"):a.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&e.setAttribute("value",s.value),o==="print")break;e.addEventListener("input",a=>{i.setValue(t,{value:a.target.value})})}break;case"select":if(s.value!==null){e.setAttribute("value",s.value);for(const a of r.children)a.attributes.value===s.value?a.attributes.selected=!0:a.attributes.hasOwnProperty("selected")&&delete a.attributes.selected}e.addEventListener("input",a=>{const c=a.target.options,u=c.selectedIndex===-1?"":c[c.selectedIndex].value;i.setValue(t,{value:u})})}}static setAttributes({html:e,element:t,storage:r=null,intent:i,linkService:o}){const{attributes:s}=t,a=e instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${i}`);for(const[c,u]of Object.entries(s))if(u!=null)switch(c){case"class":u.length&&e.setAttribute(c,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!a||c!=="href"&&c!=="newWindow")&&e.setAttribute(c,u)}a&&o.addLinkAttributes(e,s.href,s.newWindow),r&&s.dataId&&this.setupStorage(e,s.dataId,t,r)}static render(e){var f,h;const t=e.annotationStorage,r=e.linkService,i=e.xfaHtml,o=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:o,linkService:r});const a=o!=="richText",c=e.div;if(c.append(s),e.viewport){const p=`matrix(${e.viewport.transform.join(",")})`;c.style.transform=p}a&&c.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const p=document.createTextNode(i.value);s.append(p),a&&g2.shouldBuildText(i.name)&&u.push(p)}return{textDivs:u}}const d=[[i,-1,s]];for(;d.length>0;){const[p,m,y]=d.at(-1);if(m+1===p.children.length){d.pop();continue}const b=p.children[++d.at(-1)[1]];if(b===null)continue;const{name:w}=b;if(w==="#text"){const k=document.createTextNode(b.value);u.push(k),y.append(k);continue}const v=(f=b==null?void 0:b.attributes)!=null&&f.xmlns?document.createElementNS(b.attributes.xmlns,w):document.createElement(w);if(y.append(v),b.attributes&&this.setAttributes({html:v,element:b,storage:t,intent:o,linkService:r}),((h=b.children)==null?void 0:h.length)>0)d.push([b,-1,v]);else if(b.value){const k=document.createTextNode(b.value);a&&g2.shouldBuildText(w)&&u.push(k),v.append(k)}}for(const p of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}const b2=1e3,Qa=new WeakSet;function fo(n){return{width:n[2]-n[0],height:n[3]-n[1]}}class UZ{static create(e){switch(e.data.annotationType){case uU:return new JM(e);case cU:return new ZZ(e);case EU:switch(e.data.fieldType){case"Tx":return new WZ(e);case"Btn":return e.data.radioButton?new eE(e):e.data.checkBox?new KZ(e):new GZ(e);case"Ch":return new YZ(e);case"Sig":return new qZ(e)}return new Xa(e);case cM:return new q4(e);case dU:return new tE(e);case fU:return new XZ(e);case hU:return new JZ(e);case pU:return new eW(e);case gU:return new nE(e);case kU:return new nW(e);case SU:return new rE(e);case mU:return new tW(e);case yU:return new rW(e);case bU:return new iW(e);case wU:return new oW(e);case vU:return new sW(e);case CU:return new iE(e);case MU:return new aW(e);default:return new bt(e)}}}const iv=class iv{constructor(e,{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}={}){M(this,zh);M(this,s0,null);M(this,Cu,!1);M(this,ku,null);this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(r)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:t,richText:r}){return!!(e!=null&&e.str||t!=null&&t.str||r!=null&&r.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return iv._hasPopupData(this.data)}updateEdited(e){var r;if(!this.container)return;g(this,s0)||A(this,s0,{rect:this.data.rect.slice(0)});const{rect:t}=e;t&&x(this,zh,Nv).call(this,t),(r=g(this,ku))==null||r.popup.updateEdited(e)}resetEdited(){var e;g(this,s0)&&(x(this,zh,Nv).call(this,g(this,s0).rect),(e=g(this,ku))==null||e.popup.resetEdited(),A(this,s0,null))}_createContainer(e){const{data:t,parent:{page:r,viewport:i}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id),this instanceof Xa||(o.tabIndex=b2);const{style:s}=o;if(s.zIndex=this.parent.zIndex++,t.popupRef&&o.setAttribute("aria-haspopup","dialog"),t.alternativeText&&(o.title=t.alternativeText),t.noRotate&&o.classList.add("norotate"),!t.rect||this instanceof q4){const{rotation:y}=t;return t.hasOwnCanvas||y===0||this.setRotation(y,o),o}const{width:a,height:c}=fo(t.rect);if(!e&&t.borderStyle.width>0){s.borderWidth=`${t.borderStyle.width}px`;const y=t.borderStyle.horizontalCornerRadius,b=t.borderStyle.verticalCornerRadius;if(y>0||b>0){const v=`calc(${y}px * var(--scale-factor)) / calc(${b}px * var(--scale-factor))`;s.borderRadius=v}else if(this instanceof eE){const v=`calc(${a}px * var(--scale-factor)) / calc(${c}px * var(--scale-factor))`;s.borderRadius=v}switch(t.borderStyle.style){case AU:s.borderStyle="solid";break;case TU:s.borderStyle="dashed";break;case xU:ke("Unimplemented border style: beveled");break;case IU:ke("Unimplemented border style: inset");break;case OU:s.borderBottomStyle="solid"}const w=t.borderColor||null;w?(A(this,Cu,!0),s.borderColor=le.makeHexColor(0|w[0],0|w[1],0|w[2])):s.borderWidth=0}const u=le.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]),{pageWidth:d,pageHeight:f,pageX:h,pageY:p}=i.rawDims;s.left=100*(u[0]-h)/d+"%",s.top=100*(u[1]-p)/f+"%";const{rotation:m}=t;return t.hasOwnCanvas||m===0?(s.width=100*a/d+"%",s.height=100*c/f+"%"):this.setRotation(m,o),o}setRotation(e,t=this.container){if(!this.data.rect)return;const{pageWidth:r,pageHeight:i}=this.parent.viewport.rawDims,{width:o,height:s}=fo(this.data.rect);let a,c;e%180==0?(a=100*o/r,c=100*s/i):(a=100*s/r,c=100*o/i),t.style.width=`${a}%`,t.style.height=`${c}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(t,r,i)=>{const o=i.detail[t],s=o[0],a=o.slice(1);i.target.style[r]=QM[`${s}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[r]:QM[`${s}_rgb`](a)})};return Ie(this,"_commonActions",{display:t=>{const{display:r}=t.detail,i=r%2==1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:r===1||r===2})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{const{hidden:r}=t.detail;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:r,noView:r})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:t=>{const r=t.detail.rotation;this.setRotation(r),this.annotationStorage.setValue(this.data.id,{rotation:r})}})}_dispatchEventFromSandbox(e,t){const r=this._commonActions;for(const i of Object.keys(t.detail)){const o=e[i]||r[i];o==null||o(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const r=this._commonActions;for(const[i,o]of Object.entries(t)){const s=r[i];s&&(s({detail:{[i]:o},target:e}),delete t[i])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,r,i,o]=this.data.rect.map(y=>Math.fround(y));if(e.length===8){const[y,b,w,v]=e.subarray(2,6);if(i===y&&o===b&&t===w&&r===v)return}const{style:s}=this.container;let a;if(g(this,Cu)){const{borderColor:y,borderWidth:b}=s;s.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${y}" stroke-width="${b}">`],this.container.classList.add("hasBorder")}const c=i-t,u=o-r,{svgFactory:d}=this,f=d.createElement("svg");f.classList.add("quadrilateralsContainer"),f.setAttribute("width",0),f.setAttribute("height",0);const h=d.createElement("defs");f.append(h);const p=d.createElement("clipPath"),m=`clippath_${this.data.id}`;p.setAttribute("id",m),p.setAttribute("clipPathUnits","objectBoundingBox"),h.append(p);for(let y=2,b=e.length;y<b;y+=8){const w=e[y],v=e[y+1],k=e[y+2],C=e[y+3],T=d.createElement("rect"),S=(k-t)/c,E=(o-v)/u,O=(w-k)/c,I=(v-C)/u;T.setAttribute("x",S),T.setAttribute("y",E),T.setAttribute("width",O),T.setAttribute("height",I),p.append(T),a==null||a.push(`<rect vector-effect="non-scaling-stroke" x="${S}" y="${E}" width="${O}" height="${I}"/>`)}g(this,Cu)&&(a.push("</g></svg>')"),s.backgroundImage=a.join("")),this.container.append(f),this.container.style.clipPath=`url(#${m})`}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const r=A(this,ku,new q4({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(r.render())}render(){Mt("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const r=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:o,id:s,exportValues:a}of i){if(o===-1||s===t)continue;const c=typeof a=="string"?a:null,u=document.querySelector(`[data-element-id="${s}"]`);!u||Qa.has(u)?r.push({id:s,exportValue:c,domElement:u}):ke(`_getElementsByName - element not allowed: ${s}`)}return r}for(const i of document.getElementsByName(e)){const{exportValue:o}=i,s=i.getAttribute("data-element-id");s!==t&&Qa.has(i)&&r.push({id:s,exportValue:o,domElement:i})}return r}show(){var e;this.container&&(this.container.hidden=!1),(e=this.popup)==null||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),(e=this.popup)==null||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",()=>{var r;(r=this.linkService.eventBus)==null||r.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})})}};s0=new WeakMap,Cu=new WeakMap,ku=new WeakMap,zh=new WeakSet,Nv=function(e){const{container:{style:t},data:{rect:r,rotation:i},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:s,pageX:a,pageY:c}}}}=this;r==null||r.splice(0,4,...e);const{width:u,height:d}=fo(e);t.left=100*(e[0]-a)/o+"%",t.top=100*(s-e[3]+c)/s+"%",i===0?(t.width=100*u/o+"%",t.height=100*d/s+"%"):this.setRotation(i)};let bt=iv;class JM extends bt{constructor(t,r=null){super(t,{isRenderable:!0,ignoreBorder:!!(r!=null&&r.ignoreBorder),createQuadrilaterals:!0});M(this,_o);M(this,ny);M(this,ry);this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:r}=this,i=document.createElement("a");i.setAttribute("data-element-id",t.id);let o=!1;return t.url?(r.addLinkAttributes(i,t.url,t.newWindow),o=!0):t.action?(this._bindNamedAction(i,t.action),o=!0):t.attachment?(x(this,ny,DN).call(this,i,t.attachment,t.attachmentDest),o=!0):t.setOCGState?(x(this,ry,NN).call(this,i,t.setOCGState),o=!0):t.dest?(this._bindLink(i,t.dest),o=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,t),o=!0),t.resetForm?(this._bindResetFormAction(i,t.resetForm),o=!0):this.isTooltipOnly&&!o&&(this._bindLink(i,""),o=!0)),this.container.classList.add("linkAnnotation"),o&&this.container.append(i),this.container}_bindLink(t,r){t.href=this.linkService.getDestinationHash(r),t.onclick=()=>(r&&this.linkService.goToDestination(r),!1),(r||r==="")&&x(this,_o,B0).call(this)}_bindNamedAction(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(r),!1),x(this,_o,B0).call(this)}_bindJSAction(t,r){t.href=this.linkService.getAnchorUrl("");const i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(r.actions)){const s=i.get(o);s&&(t[s]=()=>{var a;return(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:r.id,name:o}}),!1})}t.onclick||(t.onclick=()=>!1),x(this,_o,B0).call(this)}_bindResetFormAction(t,r){const i=t.onclick;i||(t.href=this.linkService.getAnchorUrl("")),x(this,_o,B0).call(this),this._fieldObjects?t.onclick=()=>{var f;i==null||i();const{fields:o,refs:s,include:a}=r,c=[];if(o.length!==0||s.length!==0){const h=new Set(s);for(const p of o){const m=this._fieldObjects[p]||[];for(const{id:y}of m)h.add(y)}for(const p of Object.values(this._fieldObjects))for(const m of p)h.has(m.id)===a&&c.push(m)}else for(const h of Object.values(this._fieldObjects))c.push(...h);const u=this.annotationStorage,d=[];for(const h of c){const{id:p}=h;switch(d.push(p),h.type){case"text":{const y=h.defaultValue||"";u.setValue(p,{value:y});break}case"checkbox":case"radiobutton":{const y=h.defaultValue===h.exportValues;u.setValue(p,{value:y});break}case"combobox":case"listbox":{const y=h.defaultValue||"";u.setValue(p,{value:y});break}default:continue}const m=document.querySelector(`[data-element-id="${p}"]`);m&&(Qa.has(m)?m.dispatchEvent(new Event("resetform")):ke(`_bindResetFormAction - element not allowed: ${p}`))}return this.enableScripting&&((f=this.linkService.eventBus)==null||f.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}})),!1}:(ke('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(t.onclick=()=>!1))}}_o=new WeakSet,B0=function(){this.container.setAttribute("data-internal-link","")},ny=new WeakSet,DN=function(t,r,i=null){t.href=this.linkService.getAnchorUrl(""),r.description&&(t.title=r.description),t.onclick=()=>{var o;return(o=this.downloadManager)==null||o.openOrDownloadData(r.content,r.filename,i),!1},x(this,_o,B0).call(this)},ry=new WeakSet,NN=function(t,r){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(r),!1),x(this,_o,B0).call(this)};class ZZ extends bt{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class Xa extends bt{render(){return this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&(((t=e.previousSibling)==null?void 0:t.nodeName)==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return Rn.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,r,i,o){r.includes("mouse")?e.addEventListener(r,s=>{var a;(a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):e.addEventListener(r,s=>{var a;if(r==="blur"){if(!t.focused||!s.relatedTarget)return;t.focused=!1}else if(r==="focus"){if(t.focused)return;t.focused=!0}o&&((a=this.linkService.eventBus)==null||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:o(s)}}))})}_setEventListeners(e,t,r,i){var o,s,a;for(const[c,u]of r)(u==="Action"||(o=this.data.actions)!=null&&o[u])&&(u!=="Focus"&&u!=="Blur"||t||(t={focused:!1}),this._setEventListener(e,t,c,u,i),u!=="Focus"||(s=this.data.actions)!=null&&s.Blur?u!=="Blur"||(a=this.data.actions)!=null&&a.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=t===null?"transparent":le.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style;let s;const a=c=>Math.round(10*c)/10;if(this.data.multiLine){const c=Math.abs(this.data.rect[3]-this.data.rect[1]-2),u=c/(Math.round(c/(y4*i))||1);s=Math.min(i,a(u/y4))}else{const c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);s=Math.min(i,a(c/y4))}o.fontSize=`calc(${s}px * var(--scale-factor))`,o.color=le.makeHexColor(r[0],r[1],r[2]),this.data.textAlignment!==null&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class WZ extends Xa{constructor(e){super(e,{isRenderable:e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,i){const o=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=r),o.setValue(s.id,{[i]:r})}render(){var i,o;const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let r=null;if(this.renderForms){const s=e.getValue(t,{value:this.data.fieldValue});let a=s.value||"";const c=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;c&&a.length>c&&(a=a.slice(0,c));let u=s.formattedValue||((i=this.data.textContent)==null?void 0:i.join(`
122
122
  `))||null;u&&this.data.comb&&(u=u.replaceAll(/\s+/g,""));const d={userValue:a,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=u??a,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type="text",r.setAttribute("value",u??a),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),Qa.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=b2,this._setRequired(r,this.data.required),c&&(r.maxLength=c),r.addEventListener("input",h=>{e.setValue(t,{value:h.target.value}),this.setPropertyOnSiblings(r,"value",h.target.value,"value"),d.formattedValue=null}),r.addEventListener("resetform",h=>{const p=this.data.defaultFieldValue??"";r.value=d.userValue=p,d.formattedValue=null});let f=h=>{const{formattedValue:p}=d;p!=null&&(h.target.value=p),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",p=>{var y;if(d.focused)return;const{target:m}=p;d.userValue&&(m.value=d.userValue),d.lastCommittedValue=m.value,d.commitKey=1,(y=this.data.actions)!=null&&y.Focus||(d.focused=!0)}),r.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const m={value(y){d.userValue=y.detail.value??"",e.setValue(t,{value:d.userValue.toString()}),y.target.value=d.userValue},formattedValue(y){const{formattedValue:b}=y.detail;d.formattedValue=b,b!=null&&y.target!==document.activeElement&&(y.target.value=b),e.setValue(t,{formattedValue:b})},selRange(y){y.target.setSelectionRange(...y.detail.selRange)},charLimit:y=>{var k;const{charLimit:b}=y.detail,{target:w}=y;if(b===0){w.removeAttribute("maxLength");return}w.setAttribute("maxLength",b);let v=d.userValue;v&&!(v.length<=b)&&(v=v.slice(0,b),w.value=d.userValue=v,e.setValue(t,{value:v}),(k=this.linkService.eventBus)==null||k.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:w.selectionStart,selEnd:w.selectionEnd}}))}};this._dispatchEventFromSandbox(m,p)}),r.addEventListener("keydown",p=>{var b;d.commitKey=1;let m=-1;if(p.key==="Escape"?m=0:p.key!=="Enter"||this.data.multiLine?p.key==="Tab"&&(d.commitKey=3):m=2,m===-1)return;const{value:y}=p.target;d.lastCommittedValue!==y&&(d.lastCommittedValue=y,d.userValue=y,(b=this.linkService.eventBus)==null||b.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:y,willCommit:!0,commitKey:m,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const h=f;f=null,r.addEventListener("blur",p=>{var y,b;if(!d.focused||!p.relatedTarget)return;(y=this.data.actions)!=null&&y.Blur||(d.focused=!1);const{value:m}=p.target;d.userValue=m,d.lastCommittedValue!==m&&((b=this.linkService.eventBus)==null||b.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:m,willCommit:!0,commitKey:d.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),h(p)}),(o=this.data.actions)!=null&&o.Keystroke&&r.addEventListener("beforeinput",p=>{var T;d.lastCommittedValue=null;const{data:m,target:y}=p,{value:b,selectionStart:w,selectionEnd:v}=y;let k=w,C=v;switch(p.inputType){case"deleteWordBackward":{const S=b.substring(0,w).match(/\w*[^\w]*$/);S&&(k-=S[0].length);break}case"deleteWordForward":{const S=b.substring(w).match(/^[^\w]*\w*/);S&&(C+=S[0].length);break}case"deleteContentBackward":w===v&&(k-=1);break;case"deleteContentForward":w===v&&(C+=1)}p.preventDefault(),(T=this.linkService.eventBus)==null||T.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:b,change:m||"",willCommit:!1,selStart:k,selEnd:C}})}),this._setEventListeners(r,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(f&&r.addEventListener("blur",f),this.data.comb){const h=(this.data.rect[2]-this.data.rect[0])/c;r.classList.add("comb"),r.style.letterSpacing=`calc(${h}px * var(--scale-factor) - 1ch)`}}else r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell",this.data.hasOwnCanvas&&(r.hidden=!0);return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class qZ extends Xa{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class KZ extends Xa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,r=t.id;let i=e.getValue(r,{value:t.exportValue===t.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",e.setValue(r,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return Qa.add(o),o.setAttribute("data-element-id",r),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=t.fieldName,i&&o.setAttribute("checked",!0),o.setAttribute("exportValue",t.exportValue),o.tabIndex=b2,o.addEventListener("change",s=>{const{name:a,checked:c}=s.target;for(const u of this._getElementsByName(a,r)){const d=c&&u.exportValue===t.exportValue;u.domElement&&(u.domElement.checked=d),e.setValue(u.id,{value:d})}e.setValue(r,{value:c})}),o.addEventListener("resetform",s=>{const a=t.defaultFieldValue||"Off";s.target.checked=a===t.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",s=>{const a={value(c){c.target.checked=c.detail.value!=="Off",e.setValue(r,{value:c.target.checked})}};this._dispatchEventFromSandbox(a,s)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class eE extends Xa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,r=t.id;let i=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value;if(typeof i=="string"&&(i=i!==t.buttonValue,e.setValue(r,{value:i})),i)for(const s of this._getElementsByName(t.fieldName,r))e.setValue(s.id,{value:!1});const o=document.createElement("input");if(Qa.add(o),o.setAttribute("data-element-id",r),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=t.fieldName,i&&o.setAttribute("checked",!0),o.tabIndex=b2,o.addEventListener("change",s=>{const{name:a,checked:c}=s.target;for(const u of this._getElementsByName(a,r))e.setValue(u.id,{value:!1});e.setValue(r,{value:c})}),o.addEventListener("resetform",s=>{const a=t.defaultFieldValue;s.target.checked=a!=null&&a===t.buttonValue}),this.enableScripting&&this.hasJSActions){const s=t.buttonValue;o.addEventListener("updatefromsandbox",a=>{const c={value:u=>{const d=s===u.detail.value;for(const f of this._getElementsByName(u.target.name)){const h=d&&f.id===r;f.domElement&&(f.domElement.checked=h),e.setValue(f.id,{value:h})}}};this._dispatchEventFromSandbox(c,a)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class GZ extends JM{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",r=>{this._dispatchEventFromSandbox({},r)})),e}}class YZ extends Xa{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,r=e.getValue(t,{value:this.data.fieldValue}),i=document.createElement("select");Qa.add(i),i.setAttribute("data-element-id",t),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=b2;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",d=>{const f=this.data.defaultFieldValue;for(const h of i.options)h.selected=h.value===f});for(const d of this.data.options){const f=document.createElement("option");f.textContent=d.displayValue,f.value=d.exportValue,r.value.includes(d.exportValue)&&(f.setAttribute("selected",!0),o=!1),i.append(f)}let s=null;if(o){const d=document.createElement("option");d.value=" ",d.setAttribute("hidden",!0),d.setAttribute("selected",!0),i.prepend(d),s=()=>{d.remove(),i.removeEventListener("input",s),s=null},i.addEventListener("input",s)}const a=d=>{const f=d?"value":"textContent",{options:h,multiple:p}=i;return p?Array.prototype.filter.call(h,m=>m.selected).map(m=>m[f]):h.selectedIndex===-1?null:h[h.selectedIndex][f]};let c=a(!1);const u=d=>{const f=d.target.options;return Array.prototype.map.call(f,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",d=>{const f={value(h){s==null||s();const p=h.detail.value,m=new Set(Array.isArray(p)?p:[p]);for(const y of i.options)y.selected=m.has(y.value);e.setValue(t,{value:a(!0)}),c=a(!1)},multipleSelection(h){i.multiple=!0},remove(h){const p=i.options,m=h.detail.remove;p[m].selected=!1,i.remove(m),p.length>0&&Array.prototype.findIndex.call(p,y=>y.selected)===-1&&(p[0].selected=!0),e.setValue(t,{value:a(!0),items:u(h)}),c=a(!1)},clear(h){for(;i.length!==0;)i.remove(0);e.setValue(t,{value:null,items:[]}),c=a(!1)},insert(h){const{index:p,displayValue:m,exportValue:y}=h.detail.insert,b=i.children[p],w=document.createElement("option");w.textContent=m,w.value=y,b?b.before(w):i.append(w),e.setValue(t,{value:a(!0),items:u(h)}),c=a(!1)},items(h){const{items:p}=h.detail;for(;i.length!==0;)i.remove(0);for(const m of p){const{displayValue:y,exportValue:b}=m,w=document.createElement("option");w.textContent=y,w.value=b,i.append(w)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(t,{value:a(!0),items:u(h)}),c=a(!1)},indices(h){const p=new Set(h.detail.indices);for(const m of h.target.options)m.selected=p.has(m.index);e.setValue(t,{value:a(!0)}),c=a(!1)},editable(h){h.target.disabled=!h.detail.editable}};this._dispatchEventFromSandbox(f,d)}),i.addEventListener("input",d=>{var p;const f=a(!0),h=a(!1);e.setValue(t,{value:f}),d.preventDefault(),(p=this.linkService.eventBus)==null||p.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:c,change:h,changeEx:f,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],d=>d.target.value)):i.addEventListener("input",function(d){e.setValue(t,{value:a(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class q4 extends bt{constructor(e){const{data:t,elements:r}=e;super(e,{isRenderable:bt._hasPopupData(t)}),this.elements=r,this.popup=null}render(){this.container.classList.add("popupAnnotation");const e=this.popup=new QZ({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(const r of this.elements)r.popup=e,t.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",t.map(r=>`${hM}${r}`).join(",")),this.container}}class QZ{constructor({container:e,color:t,elements:r,titleObj:i,modificationDate:o,contentsObj:s,richText:a,parent:c,rect:u,parentRect:d,open:f}){M(this,Tu);M(this,qh);M(this,sy);M(this,ay);M(this,ly);M(this,cy);M(this,xu);M(this,Iu);M(this,Kh);M(this,Su,x(this,ly,LN).bind(this));M(this,iy,x(this,Kh,_v).bind(this));M(this,oy,x(this,Iu,d5).bind(this));M(this,Mu,x(this,xu,u5).bind(this));M(this,a0,null);M(this,ht,null);M(this,Lo,null);M(this,Eu,null);M(this,Hh,null);M(this,Uh,null);M(this,Au,null);M(this,Bo,!1);M(this,oi,null);M(this,Ro,null);M(this,Zh,null);M(this,$o,null);M(this,Wh,null);M(this,l0,null);M(this,c0,!1);var h;A(this,ht,e),A(this,Wh,i),A(this,Lo,s),A(this,$o,a),A(this,Uh,c),A(this,a0,t),A(this,Zh,u),A(this,Au,d),A(this,Hh,r),A(this,Eu,kM.toDateObject(o)),this.trigger=r.flatMap(p=>p.getElementsToTriggerPopup());for(const p of this.trigger)p.addEventListener("click",g(this,Mu)),p.addEventListener("mouseenter",g(this,oy)),p.addEventListener("mouseleave",g(this,iy)),p.classList.add("popupTriggerArea");for(const p of r)(h=p.container)==null||h.addEventListener("keydown",g(this,Su));g(this,ht).hidden=!0,f&&x(this,xu,u5).call(this)}render(){if(g(this,oi))return;const e=A(this,oi,document.createElement("div"));if(e.className="popup",g(this,a0)){const o=e.style.outlineColor=le.makeHexColor(...g(this,a0));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?e.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:e.style.backgroundColor=le.makeHexColor(...g(this,a0).map(a=>Math.floor(.7*(255-a)+a)))}const t=document.createElement("span");t.className="header";const r=document.createElement("h1");if(t.append(r),{dir:r.dir,str:r.textContent}=g(this,Wh),e.append(t),g(this,Eu)){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:g(this,Eu).valueOf()})),t.append(o)}const i=g(this,Tu,c5);if(i)XM.render({xfaHtml:i,intent:"richText",div:e}),e.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(g(this,Lo));e.append(o)}g(this,ht).append(e)}_formatContents({str:e,dir:t}){const r=document.createElement("p");r.classList.add("popupContent"),r.dir=t;const i=e.split(/(?:\r\n?|\n)/);for(let o=0,s=i.length;o<s;++o){const a=i[o];r.append(document.createTextNode(a)),o<s-1&&r.append(document.createElement("br"))}return r}updateEdited({rect:e,popupContent:t}){var r;g(this,l0)||A(this,l0,{contentsObj:g(this,Lo),richText:g(this,$o)}),e&&A(this,Ro,null),t&&(A(this,$o,x(this,ay,_N).call(this,t)),A(this,Lo,null)),(r=g(this,oi))==null||r.remove(),A(this,oi,null)}resetEdited(){var e;g(this,l0)&&({contentsObj:Gn(this,Lo)._,richText:Gn(this,$o)._}=g(this,l0),A(this,l0,null),(e=g(this,oi))==null||e.remove(),A(this,oi,null),A(this,Ro,null))}forceHide(){A(this,c0,this.isVisible),g(this,c0)&&(g(this,ht).hidden=!0)}maybeShow(){g(this,c0)&&(g(this,oi)||x(this,Iu,d5).call(this),A(this,c0,!1),g(this,ht).hidden=!1)}get isVisible(){return g(this,ht).hidden===!1}}Su=new WeakMap,iy=new WeakMap,oy=new WeakMap,Mu=new WeakMap,a0=new WeakMap,ht=new WeakMap,Lo=new WeakMap,Eu=new WeakMap,Hh=new WeakMap,Uh=new WeakMap,Au=new WeakMap,Bo=new WeakMap,oi=new WeakMap,Ro=new WeakMap,Zh=new WeakMap,$o=new WeakMap,Wh=new WeakMap,l0=new WeakMap,c0=new WeakMap,Tu=new WeakSet,c5=function(){const e=g(this,$o),t=g(this,Lo);return!(e!=null&&e.str)||t!=null&&t.str&&t.str!==e.str?null:g(this,$o).html||null},qh=new WeakSet,Pv=function(){var e,t,r;return((r=(t=(e=g(this,Tu,c5))==null?void 0:e.attributes)==null?void 0:t.style)==null?void 0:r.fontSize)||0},sy=new WeakSet,PN=function(){var e,t,r;return((r=(t=(e=g(this,Tu,c5))==null?void 0:e.attributes)==null?void 0:t.style)==null?void 0:r.color)||null},ay=new WeakSet,_N=function(e){const t=[],r={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},i={style:{color:g(this,sy,PN),fontSize:g(this,qh,Pv)?`calc(${g(this,qh,Pv)}px * var(--scale-factor))`:""}};for(const o of e.split(`
123
123
  `))t.push({name:"span",value:o,attributes:i});return r},ly=new WeakSet,LN=function(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&g(this,Bo))&&x(this,xu,u5).call(this)},cy=new WeakSet,BN=function(){if(g(this,Ro)!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:r,pageX:i,pageY:o}}}=g(this,Uh);let s=!!g(this,Au),a=s?g(this,Au):g(this,Zh);for(const p of g(this,Hh))if(!a||le.intersect(p.data.rect,a)!==null){a=p.data.rect,s=!0;break}const c=le.normalizeRect([a[0],e[3]-a[1]+e[1],a[2],e[3]-a[3]+e[1]]),u=s?a[2]-a[0]+5:0,d=c[0]+u,f=c[1];A(this,Ro,[100*(d-i)/t,100*(f-o)/r]);const{style:h}=g(this,ht);h.left=`${g(this,Ro)[0]}%`,h.top=`${g(this,Ro)[1]}%`},xu=new WeakSet,u5=function(){A(this,Bo,!g(this,Bo)),g(this,Bo)?(x(this,Iu,d5).call(this),g(this,ht).addEventListener("click",g(this,Mu)),g(this,ht).addEventListener("keydown",g(this,Su))):(x(this,Kh,_v).call(this),g(this,ht).removeEventListener("click",g(this,Mu)),g(this,ht).removeEventListener("keydown",g(this,Su)))},Iu=new WeakSet,d5=function(){g(this,oi)||this.render(),this.isVisible?g(this,Bo)&&g(this,ht).classList.add("focused"):(x(this,cy,BN).call(this),g(this,ht).hidden=!1,g(this,ht).style.zIndex=parseInt(g(this,ht).style.zIndex)+1e3)},Kh=new WeakSet,_v=function(){g(this,ht).classList.remove("focused"),!g(this,Bo)&&this.isVisible&&(g(this,ht).hidden=!0,g(this,ht).style.zIndex=parseInt(g(this,ht).style.zIndex)-1e3)};class tE extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Te.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const t of this.textContent){const r=document.createElement("span");r.textContent=t,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class XZ extends bt{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0});M(this,Gh,null)}render(){this.container.classList.add("lineAnnotation");const t=this.data,{width:r,height:i}=fo(t.rect),o=this.svgFactory.create(r,i,!0),s=A(this,Gh,this.svgFactory.createElement("svg:line"));return s.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),s.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),s.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),s.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),s.setAttribute("stroke-width",t.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),o.append(s),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return g(this,Gh)}addHighlightArea(){this.container.classList.add("highlightArea")}}Gh=new WeakMap;class JZ extends bt{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0});M(this,Yh,null)}render(){this.container.classList.add("squareAnnotation");const t=this.data,{width:r,height:i}=fo(t.rect),o=this.svgFactory.create(r,i,!0),s=t.borderStyle.width,a=A(this,Yh,this.svgFactory.createElement("svg:rect"));return a.setAttribute("x",s/2),a.setAttribute("y",s/2),a.setAttribute("width",r-s),a.setAttribute("height",i-s),a.setAttribute("stroke-width",s||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),o.append(a),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return g(this,Yh)}addHighlightArea(){this.container.classList.add("highlightArea")}}Yh=new WeakMap;class eW extends bt{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0});M(this,Qh,null)}render(){this.container.classList.add("circleAnnotation");const t=this.data,{width:r,height:i}=fo(t.rect),o=this.svgFactory.create(r,i,!0),s=t.borderStyle.width,a=A(this,Qh,this.svgFactory.createElement("svg:ellipse"));return a.setAttribute("cx",r/2),a.setAttribute("cy",i/2),a.setAttribute("rx",r/2-s/2),a.setAttribute("ry",i/2-s/2),a.setAttribute("stroke-width",s||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),o.append(a),this.container.append(o),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return g(this,Qh)}addHighlightArea(){this.container.classList.add("highlightArea")}}Qh=new WeakMap;class nE extends bt{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0});M(this,Xh,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,vertices:r,borderStyle:i,popupRef:o}}=this;if(!r)return this.container;const{width:s,height:a}=fo(t),c=this.svgFactory.create(s,a,!0);let u=[];for(let f=0,h=r.length;f<h;f+=2){const p=r[f]-t[0],m=t[3]-r[f+1];u.push(`${p},${m}`)}u=u.join(" ");const d=A(this,Xh,this.svgFactory.createElement(this.svgElementName));return d.setAttribute("points",u),d.setAttribute("stroke-width",i.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),c.append(d),this.container.append(c),!o&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return g(this,Xh)}addHighlightArea(){this.container.classList.add("highlightArea")}}Xh=new WeakMap;class tW extends nE{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class nW extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class rE extends bt{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0});M(this,Jh,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=Te.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,inkLists:r,borderStyle:i,popupRef:o}}=this,{width:s,height:a}=fo(t),c=this.svgFactory.create(s,a,!0);for(const u of r){let d=[];for(let h=0,p=u.length;h<p;h+=2){const m=u[h]-t[0],y=t[3]-u[h+1];d.push(`${m},${y}`)}d=d.join(" ");const f=this.svgFactory.createElement(this.svgElementName);g(this,Jh).push(f),f.setAttribute("points",d),f.setAttribute("stroke-width",i.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","transparent"),!o&&this.hasPopupData&&this._createPopup(),c.append(f)}return this.container.append(c),this.container}getElementsToTriggerPopup(){return g(this,Jh)}addHighlightArea(){this.container.classList.add("highlightArea")}}Jh=new WeakMap;class rW extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class iW extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class oW extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class sW extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class iE extends bt{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class aW extends bt{constructor(t){var i;super(t,{isRenderable:!0});M(this,t1);M(this,e1,null);const{file:r}=this.data;this.filename=r.filename,this.content=r.content,(i=this.linkService.eventBus)==null||i.dispatch("fileattachmentannotation",{source:this,...r})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:t,data:r}=this;let i;r.hasAppearance||r.fillAlpha===0?i=document.createElement("div"):(i=document.createElement("img"),i.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name)?"paperclip":"pushpin"}.svg`,r.fillAlpha&&r.fillAlpha<1&&(i.style=`filter: opacity(${Math.round(100*r.fillAlpha)}%);`)),i.addEventListener("dblclick",x(this,t1,Lv).bind(this)),A(this,e1,i);const{isMac:o}=Rn.platform;return t.addEventListener("keydown",s=>{s.key==="Enter"&&(o?s.metaKey:s.ctrlKey)&&x(this,t1,Lv).call(this)}),!r.popupRef&&this.hasPopupData?this._createPopup():i.classList.add("popupTriggerArea"),t.append(i),t}getElementsToTriggerPopup(){return g(this,e1)}addHighlightArea(){this.container.classList.add("highlightArea")}}e1=new WeakMap,t1=new WeakSet,Lv=function(){var t;(t=this.downloadManager)==null||t.openOrDownloadData(this.content,this.filename)};class lW{constructor({div:e,accessibilityManager:t,annotationCanvasMap:r,annotationEditorUIManager:i,page:o,viewport:s}){M(this,uy);M(this,r1);M(this,n1,null);M(this,u0,null);M(this,d0,new Map);this.div=e,A(this,n1,t),A(this,u0,r),this.page=o,this.viewport=s,this.zIndex=0,this._annotationEditorUIManager=i}hasEditableAnnotations(){return g(this,d0).size>0}async render(e){var s;const{annotations:t}=e,r=this.div;Ka(r,this.viewport);const i=new Map,o={data:null,layer:r,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new A4,annotationStorage:e.annotationStorage||new _4,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const a of t){if(a.noHTML)continue;const c=a.annotationType===cM;if(c){const f=i.get(a.id);if(!f)continue;o.elements=f}else{const{width:f,height:h}=fo(a.rect);if(f<=0||h<=0)continue}o.data=a;const u=UZ.create(o);if(!u.isRenderable)continue;if(!c&&a.popupRef){const f=i.get(a.popupRef);f?f.push(u):i.set(a.popupRef,[u])}const d=u.render();a.hidden&&(d.style.visibility="hidden"),x(this,uy,RN).call(this,d,a.id),u._isEditable&&(g(this,d0).set(u.data.id,u),(s=this._annotationEditorUIManager)==null||s.renderAnnotationElement(u))}x(this,r1,Bv).call(this)}update({viewport:e}){const t=this.div;this.viewport=e,Ka(t,{rotation:e.rotation}),x(this,r1,Bv).call(this),t.hidden=!1}getEditableAnnotations(){return Array.from(g(this,d0).values())}getEditableAnnotation(e){return g(this,d0).get(e)}}n1=new WeakMap,u0=new WeakMap,d0=new WeakMap,uy=new WeakSet,RN=function(e,t){var i;const r=e.firstChild||e;r.id=`${hM}${t}`,this.div.append(e),(i=g(this,n1))==null||i.moveElementInDOM(this.div,e,r,!1)},r1=new WeakSet,Bv=function(){if(!g(this,u0))return;const e=this.div;for(const[t,r]of g(this,u0)){const i=e.querySelector(`[data-annotation-id="${t}"]`);if(!i)continue;r.className="annotationContent";const{firstChild:o}=i;o?o.nodeName==="CANVAS"?o.replaceWith(r):o.classList.contains("annotationContent")?o.after(r):o.before(r):i.append(r)}g(this,u0).clear()};const pm=/\r\n?|\n/g,Qe=class Qe extends ze{constructor(t){super({...t,name:"freeTextEditor"});M(this,dy);M(this,fy);M(this,hy);M(this,Du);M(this,Pu);M(this,py);M(this,my);M(this,si,void 0);M(this,cr,"");M(this,i1,`${this.id}-editor`);M(this,f0,null);M(this,ur,void 0);M(this,Ou,null);A(this,si,t.color||Qe._defaultColor||ze._defaultLineColor),A(this,ur,t.fontSize||Qe._defaultFontSize)}static get _keyboardManager(){const t=Qe.prototype,r=s=>s.isEmpty(),i=Ga.TRANSLATE_SMALL,o=Ga.TRANSLATE_BIG;return Ie(this,"_keyboardManager",new u2([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:r}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-o,0],checker:r}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[i,0],checker:r}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[o,0],checker:r}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:r}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-o],checker:r}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,i],checker:r}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,o],checker:r}]]))}static initialize(t,r){ze.initialize(t,r,{strings:["pdfjs-free-text-default-content"]});const i=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(i.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,r){switch(t){case he.FREETEXT_SIZE:Qe._defaultFontSize=r;break;case he.FREETEXT_COLOR:Qe._defaultColor=r}}updateParams(t,r){switch(t){case he.FREETEXT_SIZE:x(this,dy,$N).call(this,r);break;case he.FREETEXT_COLOR:x(this,fy,VN).call(this,r)}}static get defaultPropertiesToUpdate(){return[[he.FREETEXT_SIZE,Qe._defaultFontSize],[he.FREETEXT_COLOR,Qe._defaultColor||ze._defaultLineColor]]}get propertiesToUpdate(){return[[he.FREETEXT_SIZE,g(this,ur)],[he.FREETEXT_COLOR,g(this,si)]]}_translateEmpty(t,r){this._uiManager.translateSelectedEditors(t,r,!0)}getInitialTranslation(){const t=this.parentScale;return[-Qe._internalPadding*t,-(Qe._internalPadding+g(this,ur))*t]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(Te.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),A(this,f0,new AbortController);const t=this._uiManager.combinedSignal(g(this,f0));this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:t}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:t}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:t}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:t}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:t})}disableEditMode(){var t;this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",g(this,i1)),this._isDraggable=!0,(t=g(this,f0))==null||t.abort(),A(this,f0,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var t;this.width||(this.enableEditMode(),this.editorDiv.focus(),(t=this._initialOptions)!=null&&t.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const t=g(this,cr),r=A(this,cr,x(this,hy,FN).call(this).trimEnd());if(t===r)return;const i=o=>{A(this,cr,o),o?(x(this,Pu,p5).call(this),this._uiManager.rebuild(this),x(this,Du,f5).call(this)):this.remove()};this.addCommands({cmd:()=>{i(r)},undo:()=>{i(t)},mustExec:!1}),x(this,Du,f5).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&t.key==="Enter"&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){Qe._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let t,r;this.width&&(t=this.x,r=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",g(this,i1)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),ze._l10nPromise.get("pdfjs-free-text-default-content").then(o=>{var s;return(s=this.editorDiv)==null?void 0:s.setAttribute("default-content",o)}),this.editorDiv.contentEditable=!0;const{style:i}=this.editorDiv;if(i.fontSize=`calc(${g(this,ur)}px * var(--scale-factor))`,i.color=g(this,si),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),am(this,this.div,["dblclick","keydown"]),this.width){const[o,s]=this.parentDimensions;if(this.annotationElementId){const{position:a}=g(this,Ou);let[c,u]=this.getInitialTranslation();[c,u]=this.pageTranslationToScreen(c,u);const[d,f]=this.pageDimensions,[h,p]=this.pageTranslation;let m,y;switch(this.rotation){case 0:m=t+(a[0]-h)/d,y=r+this.height-(a[1]-p)/f;break;case 90:m=t+(a[0]-h)/d,y=r-(a[1]-p)/f,[c,u]=[u,-c];break;case 180:m=t-this.width+(a[0]-h)/d,y=r-(a[1]-p)/f,[c,u]=[-c,-u];break;case 270:m=t+(a[0]-h-this.height*f)/d,y=r+(a[1]-p-this.width*d)/f,[c,u]=[-u,c]}this.setAt(m*o,y*s,c,u)}else this.setAt(t*o,r*s,this.width*o,this.height*s);x(this,Pu,p5).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(t){var m,y,b;const r=t.clipboardData||window.clipboardData,{types:i}=r;if(i.length===1&&i[0]==="text/plain")return;t.preventDefault();const o=x(m=Qe,o1,Rv).call(m,r.getData("text")||"").replaceAll(pm,`
124
124
  `);if(!o)return;const s=window.getSelection();if(!s.rangeCount)return;this.editorDiv.normalize(),s.deleteFromDocument();const a=s.getRangeAt(0);if(!o.includes(`
@@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
128
128
  `),position:m,pageIndex:y-1,rect:d.slice(0),rotation:f,id:h,deleted:!1}}const s=super.deserialize(t,r,i);return A(s,ur,t.fontSize),A(s,si,le.makeHexColor(...t.color)),A(s,cr,x(a=Qe,o1,Rv).call(a,t.value)),s.annotationElementId=t.id||null,A(s,Ou,o),s}serialize(t=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const r=Qe._internalPadding*this.parentScale,i=this.getRect(r,r),o=ze._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:g(this,si)),s={annotationType:Te.FREETEXT,color:o,fontSize:g(this,ur),value:x(this,py,jN).call(this),pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return t?s:this.annotationElementId&&!x(this,my,zN).call(this,s)?null:(s.id=this.annotationElementId,s)}renderAnnotationElement(t){const r=super.renderAnnotationElement(t);if(this.deleted)return r;const{style:i}=r;i.fontSize=`calc(${g(this,ur)}px * var(--scale-factor))`,i.color=g(this,si),r.replaceChildren();for(const s of g(this,cr).split(`
129
129
  `)){const a=document.createElement("div");a.append(s?document.createTextNode(s):document.createElement("br")),r.append(a)}const o=Qe._internalPadding*this.parentScale;return t.updateEdited({rect:this.getRect(o,o),popupContent:g(this,cr)}),r}resetAnnotationElement(t){super.resetAnnotationElement(t),t.resetEdited()}};si=new WeakMap,cr=new WeakMap,i1=new WeakMap,f0=new WeakMap,ur=new WeakMap,Ou=new WeakMap,dy=new WeakSet,$N=function(t){const r=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-g(this,ur))*this.parentScale),A(this,ur,o),x(this,Du,f5).call(this)},i=g(this,ur);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},fy=new WeakSet,VN=function(t){const r=o=>{A(this,si,this.editorDiv.style.color=o)},i=g(this,si);this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},hy=new WeakSet,FN=function(){var r;const t=[];this.editorDiv.normalize();for(const i of this.editorDiv.childNodes)t.push(x(r=Qe,Nu,h5).call(r,i));return t.join(`
130
130
  `)},Du=new WeakSet,f5=function(){const[t,r]=this.parentDimensions;let i;if(this.isAttachedToDOM)i=this.div.getBoundingClientRect();else{const{currentLayer:o,div:s}=this,a=s.style.display,c=s.classList.contains("hidden");s.classList.remove("hidden"),s.style.display="hidden",o.div.append(this.div),i=s.getBoundingClientRect(),s.remove(),s.style.display=a,s.classList.toggle("hidden",c)}this.rotation%180==this.parentRotation%180?(this.width=i.width/t,this.height=i.height/r):(this.width=i.height/t,this.height=i.width/r),this.fixAndSetPosition()},Nu=new WeakSet,h5=function(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(pm,"")},Pu=new WeakSet,p5=function(){if(this.editorDiv.replaceChildren(),g(this,cr))for(const t of g(this,cr).split(`
131
- `)){const r=document.createElement("div");r.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(r)}},py=new WeakSet,jN=function(){return g(this,cr).replaceAll(" "," ")},o1=new WeakSet,Rv=function(t){return t.replaceAll(" "," ")},my=new WeakSet,zN=function(t){const{value:r,fontSize:i,color:o,pageIndex:s}=g(this,Ou);return this._hasBeenMoved||t.value!==r||t.fontSize!==i||t.color.some((a,c)=>a!==o[c])||t.pageIndex!==s},M(Qe,Nu),M(Qe,o1),pe(Qe,"_freeTextDefaultContent",""),pe(Qe,"_internalPadding",0),pe(Qe,"_defaultColor",null),pe(Qe,"_defaultFontSize",10),pe(Qe,"_type","freetext"),pe(Qe,"_editorType",Te.FREETEXT);let K4=Qe;class oE{constructor(e,t=0,r=0,i=!0){M(this,gy);M(this,_u);M(this,yy);M(this,by);M(this,a1);M(this,s1,void 0);M(this,pa,[]);M(this,ai,[]);let o=1/0,s=-1/0,a=1/0,c=-1/0;const u=10**-4;for(const{x:b,y:w,width:v,height:k}of e){const C=Math.floor((b-t)/u)*u,T=Math.ceil((b+v+t)/u)*u,S=Math.floor((w-t)/u)*u,E=Math.ceil((w+k+t)/u)*u,O=[C,S,E,!0],I=[T,S,E,!1];g(this,pa).push(O,I),o=Math.min(o,C),s=Math.max(s,T),a=Math.min(a,S),c=Math.max(c,E)}const d=s-o+2*r,f=c-a+2*r,h=o-r,p=a-r,m=g(this,pa).at(i?-1:-2),y=[m[0],m[2]];for(const b of g(this,pa)){const[w,v,k]=b;b[0]=(w-h)/d,b[1]=(v-p)/f,b[2]=(k-p)/f}A(this,s1,{x:h,y:p,width:d,height:f,lastPoint:y})}getOutlines(){g(this,pa).sort((t,r)=>t[0]-r[0]||t[1]-r[1]||t[2]-r[2]);const e=[];for(const t of g(this,pa))t[3]?(e.push(...x(this,a1,$v).call(this,t)),x(this,yy,UN).call(this,t)):(x(this,by,ZN).call(this,t),e.push(...x(this,a1,$v).call(this,t)));return x(this,gy,HN).call(this,e)}}s1=new WeakMap,pa=new WeakMap,ai=new WeakMap,gy=new WeakSet,HN=function(e){const t=[],r=new Set;for(const s of e){const[a,c,u]=s;t.push([a,c,s],[a,u,s])}t.sort((s,a)=>s[1]-a[1]||s[0]-a[0]);for(let s=0,a=t.length;s<a;s+=2){const c=t[s][2],u=t[s+1][2];c.push(u),u.push(c),r.add(c),r.add(u)}const i=[];let o;for(;r.size>0;){const s=r.values().next().value;let[a,c,u,d,f]=s;r.delete(s);let h=a,p=c;for(o=[a,u],i.push(o);;){let m;if(r.has(d))m=d;else{if(!r.has(f))break;m=f}r.delete(m),[a,c,u,d,f]=m,h!==a&&(o.push(h,p,a,p===c?c:u),h=a),p=p===c?u:c}o.push(h,p)}return new cW(i,g(this,s1))},_u=new WeakSet,m5=function(e){const t=g(this,ai);let r=0,i=t.length-1;for(;r<=i;){const o=r+i>>1,s=t[o][0];if(s===e)return o;s<e?r=o+1:i=o-1}return i+1},yy=new WeakSet,UN=function([,e,t]){const r=x(this,_u,m5).call(this,e);g(this,ai).splice(r,0,[e,t])},by=new WeakSet,ZN=function([,e,t]){const r=x(this,_u,m5).call(this,e);for(let i=r;i<g(this,ai).length;i++){const[o,s]=g(this,ai)[i];if(o!==e)break;if(o===e&&s===t){g(this,ai).splice(i,1);return}}for(let i=r-1;i>=0;i--){const[o,s]=g(this,ai)[i];if(o!==e)break;if(o===e&&s===t){g(this,ai).splice(i,1);return}}},a1=new WeakSet,$v=function(e){const[t,r,i]=e,o=[[t,r,i]],s=x(this,_u,m5).call(this,i);for(let a=0;a<s;a++){const[c,u]=g(this,ai)[a];for(let d=0,f=o.length;d<f;d++){const[,h,p]=o[d];if(!(u<=h||p<=c))if(h>=c)if(p>u)o[d][1]=u;else{if(f===1)return[];o.splice(d,1),d--,f--}else o[d][2]=c,p>u&&o.push([t,u,p])}}return o};class sE{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(e,t){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof G4}}class cW extends sE{constructor(t,r){super();M(this,l1,void 0);M(this,Lu,void 0);A(this,Lu,t),A(this,l1,r)}toSVGPath(){const t=[];for(const r of g(this,Lu)){let[i,o]=r;t.push(`M${i} ${o}`);for(let s=2;s<r.length;s+=2){const a=r[s],c=r[s+1];a===i?(t.push(`V${c}`),o=c):c===o&&(t.push(`H${a}`),i=a)}t.push("Z")}return t.join(" ")}serialize([t,r,i,o],s){const a=[],c=i-t,u=o-r;for(const d of g(this,Lu)){const f=new Array(d.length);for(let h=0;h<d.length;h+=2)f[h]=t+d[h]*c,f[h+1]=o-d[h+1]*u;a.push(f)}return a}get box(){return g(this,l1)}}l1=new WeakMap,Lu=new WeakMap;const Fo=class Fo{constructor({x:e,y:t},r,i,o,s,a=0){M(this,f1);M(this,Ui,void 0);M(this,Vo,[]);M(this,Bu,void 0);M(this,Ru,void 0);M(this,Zi,[]);M(this,xe,new Float64Array(18));M(this,h0,void 0);M(this,p0,void 0);M(this,c1,void 0);M(this,u1,void 0);M(this,$u,void 0);M(this,Vu,void 0);M(this,ma,[]);A(this,Ui,r),A(this,Vu,o*i),A(this,Ru,s),g(this,xe).set([NaN,NaN,NaN,NaN,e,t],6),A(this,Bu,a),A(this,u1,g(Fo,d1)*i),A(this,c1,g(Fo,vy)*i),A(this,$u,i),g(this,ma).push(e,t)}get free(){return!0}isEmpty(){return isNaN(g(this,xe)[8])}add({x:e,y:t}){var E;A(this,h0,e),A(this,p0,t);const[r,i,o,s]=g(this,Ui);let[a,c,u,d]=g(this,xe).subarray(8,12);const f=e-u,h=t-d,p=Math.hypot(f,h);if(p<g(this,c1))return!1;const m=p-g(this,u1),y=m/p,b=y*f,w=y*h;let v=a,k=c;a=u,c=d,u+=b,d+=w,(E=g(this,ma))==null||E.push(e,t);const C=b/m,T=-w/m*g(this,Vu),S=C*g(this,Vu);return g(this,xe).set(g(this,xe).subarray(2,8),0),g(this,xe).set([u+T,d+S],4),g(this,xe).set(g(this,xe).subarray(14,18),12),g(this,xe).set([u-T,d-S],16),isNaN(g(this,xe)[6])?(g(this,Zi).length===0&&(g(this,xe).set([a+T,c+S],2),g(this,Zi).push(NaN,NaN,NaN,NaN,(a+T-r)/o,(c+S-i)/s),g(this,xe).set([a-T,c-S],14),g(this,Vo).push(NaN,NaN,NaN,NaN,(a-T-r)/o,(c-S-i)/s)),g(this,xe).set([v,k,a,c,u,d],6),!this.isEmpty()):(g(this,xe).set([v,k,a,c,u,d],6),Math.abs(Math.atan2(k-c,v-a)-Math.atan2(w,b))<Math.PI/2?([a,c,u,d]=g(this,xe).subarray(2,6),g(this,Zi).push(NaN,NaN,NaN,NaN,((a+u)/2-r)/o,((c+d)/2-i)/s),[a,c,v,k]=g(this,xe).subarray(14,18),g(this,Vo).push(NaN,NaN,NaN,NaN,((v+a)/2-r)/o,((k+c)/2-i)/s),!0):([v,k,a,c,u,d]=g(this,xe).subarray(0,6),g(this,Zi).push(((v+5*a)/6-r)/o,((k+5*c)/6-i)/s,((5*a+u)/6-r)/o,((5*c+d)/6-i)/s,((a+u)/2-r)/o,((c+d)/2-i)/s),[u,d,a,c,v,k]=g(this,xe).subarray(12,18),g(this,Vo).push(((v+5*a)/6-r)/o,((k+5*c)/6-i)/s,((5*a+u)/6-r)/o,((5*c+d)/6-i)/s,((a+u)/2-r)/o,((c+d)/2-i)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const e=g(this,Zi),t=g(this,Vo),r=g(this,xe).subarray(4,6),i=g(this,xe).subarray(16,18),[o,s,a,c]=g(this,Ui),[u,d,f,h]=x(this,f1,Vv).call(this);if(isNaN(g(this,xe)[6])&&!this.isEmpty())return`M${(g(this,xe)[2]-o)/a} ${(g(this,xe)[3]-s)/c} L${(g(this,xe)[4]-o)/a} ${(g(this,xe)[5]-s)/c} L${u} ${d} L${f} ${h} L${(g(this,xe)[16]-o)/a} ${(g(this,xe)[17]-s)/c} L${(g(this,xe)[14]-o)/a} ${(g(this,xe)[15]-s)/c} Z`;const p=[];p.push(`M${e[4]} ${e[5]}`);for(let m=6;m<e.length;m+=6)isNaN(e[m])?p.push(`L${e[m+4]} ${e[m+5]}`):p.push(`C${e[m]} ${e[m+1]} ${e[m+2]} ${e[m+3]} ${e[m+4]} ${e[m+5]}`);p.push(`L${(r[0]-o)/a} ${(r[1]-s)/c} L${u} ${d} L${f} ${h} L${(i[0]-o)/a} ${(i[1]-s)/c}`);for(let m=t.length-6;m>=6;m-=6)isNaN(t[m])?p.push(`L${t[m+4]} ${t[m+5]}`):p.push(`C${t[m]} ${t[m+1]} ${t[m+2]} ${t[m+3]} ${t[m+4]} ${t[m+5]}`);return p.push(`L${t[4]} ${t[5]} Z`),p.join(" ")}getOutlines(){var w;const e=g(this,Zi),t=g(this,Vo),r=g(this,xe),i=r.subarray(4,6),o=r.subarray(16,18),[s,a,c,u]=g(this,Ui),d=new Float64Array((((w=g(this,ma))==null?void 0:w.length)??0)+2);for(let v=0,k=d.length-2;v<k;v+=2)d[v]=(g(this,ma)[v]-s)/c,d[v+1]=(g(this,ma)[v+1]-a)/u;d[d.length-2]=(g(this,h0)-s)/c,d[d.length-1]=(g(this,p0)-a)/u;const[f,h,p,m]=x(this,f1,Vv).call(this);if(isNaN(r[6])&&!this.isEmpty()){const v=new Float64Array(36);return v.set([NaN,NaN,NaN,NaN,(r[2]-s)/c,(r[3]-a)/u,NaN,NaN,NaN,NaN,(r[4]-s)/c,(r[5]-a)/u,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,p,m,NaN,NaN,NaN,NaN,(r[16]-s)/c,(r[17]-a)/u,NaN,NaN,NaN,NaN,(r[14]-s)/c,(r[15]-a)/u],0),new G4(v,d,g(this,Ui),g(this,$u),g(this,Bu),g(this,Ru))}const y=new Float64Array(g(this,Zi).length+24+g(this,Vo).length);let b=e.length;for(let v=0;v<b;v+=2)isNaN(e[v])?y[v]=y[v+1]=NaN:(y[v]=e[v],y[v+1]=e[v+1]);y.set([NaN,NaN,NaN,NaN,(i[0]-s)/c,(i[1]-a)/u,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,p,m,NaN,NaN,NaN,NaN,(o[0]-s)/c,(o[1]-a)/u],b),b+=24;for(let v=t.length-6;v>=6;v-=6)for(let k=0;k<6;k+=2)isNaN(t[v+k])?(y[b]=y[b+1]=NaN,b+=2):(y[b]=t[v+k],y[b+1]=t[v+k+1],b+=2);return y.set([NaN,NaN,NaN,NaN,t[4],t[5]],b),new G4(y,d,g(this,Ui),g(this,$u),g(this,Bu),g(this,Ru))}};Ui=new WeakMap,Vo=new WeakMap,Bu=new WeakMap,Ru=new WeakMap,Zi=new WeakMap,xe=new WeakMap,h0=new WeakMap,p0=new WeakMap,c1=new WeakMap,u1=new WeakMap,$u=new WeakMap,Vu=new WeakMap,ma=new WeakMap,d1=new WeakMap,wy=new WeakMap,vy=new WeakMap,f1=new WeakSet,Vv=function(){const e=g(this,xe).subarray(4,6),t=g(this,xe).subarray(16,18),[r,i,o,s]=g(this,Ui);return[(g(this,h0)+(e[0]-t[0])/2-r)/o,(g(this,p0)+(e[1]-t[1])/2-i)/s,(g(this,h0)+(t[0]-e[0])/2-r)/o,(g(this,p0)+(t[1]-e[1])/2-i)/s]},M(Fo,d1,8),M(Fo,wy,2),M(Fo,vy,g(Fo,d1)+g(Fo,wy));let mm=Fo;class G4 extends sE{constructor(t,r,i,o,s,a){super();M(this,g0);M(this,y0);M(this,Cy);M(this,Fu,void 0);M(this,m0,null);M(this,jo,void 0);M(this,h1,void 0);M(this,dr,void 0);M(this,p1,void 0);M(this,wt,void 0);A(this,wt,t),A(this,dr,r),A(this,Fu,i),A(this,p1,o),A(this,jo,s),A(this,h1,a),x(this,Cy,WN).call(this,a);const{x:c,y:u,width:d,height:f}=g(this,m0);for(let h=0,p=t.length;h<p;h+=2)t[h]=(t[h]-c)/d,t[h+1]=(t[h+1]-u)/f;for(let h=0,p=r.length;h<p;h+=2)r[h]=(r[h]-c)/d,r[h+1]=(r[h+1]-u)/f}toSVGPath(){const t=[`M${g(this,wt)[4]} ${g(this,wt)[5]}`];for(let r=6,i=g(this,wt).length;r<i;r+=6)isNaN(g(this,wt)[r])?t.push(`L${g(this,wt)[r+4]} ${g(this,wt)[r+5]}`):t.push(`C${g(this,wt)[r]} ${g(this,wt)[r+1]} ${g(this,wt)[r+2]} ${g(this,wt)[r+3]} ${g(this,wt)[r+4]} ${g(this,wt)[r+5]}`);return t.push("Z"),t.join(" ")}serialize([t,r,i,o],s){const a=i-t,c=o-r;let u,d;switch(s){case 0:u=x(this,g0,ep).call(this,g(this,wt),t,o,a,-c),d=x(this,g0,ep).call(this,g(this,dr),t,o,a,-c);break;case 90:u=x(this,y0,tp).call(this,g(this,wt),t,r,a,c),d=x(this,y0,tp).call(this,g(this,dr),t,r,a,c);break;case 180:u=x(this,g0,ep).call(this,g(this,wt),i,r,-a,c),d=x(this,g0,ep).call(this,g(this,dr),i,r,-a,c);break;case 270:u=x(this,y0,tp).call(this,g(this,wt),i,o,-a,-c),d=x(this,y0,tp).call(this,g(this,dr),i,o,-a,-c)}return{outline:Array.from(u),points:[Array.from(d)]}}get box(){return g(this,m0)}getNewOutline(t,r){const{x:i,y:o,width:s,height:a}=g(this,m0),[c,u,d,f]=g(this,Fu),h=s*d,p=a*f,m=i*d+c,y=o*f+u,b=new mm({x:g(this,dr)[0]*h+m,y:g(this,dr)[1]*p+y},g(this,Fu),g(this,p1),t,g(this,h1),r??g(this,jo));for(let w=2;w<g(this,dr).length;w+=2)b.add({x:g(this,dr)[w]*h+m,y:g(this,dr)[w+1]*p+y});return b.getOutlines()}}Fu=new WeakMap,m0=new WeakMap,jo=new WeakMap,h1=new WeakMap,dr=new WeakMap,p1=new WeakMap,wt=new WeakMap,g0=new WeakSet,ep=function(t,r,i,o,s){const a=new Float64Array(t.length);for(let c=0,u=t.length;c<u;c+=2)a[c]=r+t[c]*o,a[c+1]=i+t[c+1]*s;return a},y0=new WeakSet,tp=function(t,r,i,o,s){const a=new Float64Array(t.length);for(let c=0,u=t.length;c<u;c+=2)a[c]=r+t[c+1]*o,a[c+1]=i+t[c]*s;return a},Cy=new WeakSet,WN=function(t){const r=g(this,wt);let i=r[4],o=r[5],s=i,a=o,c=i,u=o,d=i,f=o;const h=t?Math.max:Math.min;for(let w=6,v=r.length;w<v;w+=6){if(isNaN(r[w]))s=Math.min(s,r[w+4]),a=Math.min(a,r[w+5]),c=Math.max(c,r[w+4]),u=Math.max(u,r[w+5]),f<r[w+5]?(d=r[w+4],f=r[w+5]):f===r[w+5]&&(d=h(d,r[w+4]));else{const k=le.bezierBoundingBox(i,o,...r.slice(w,w+6));s=Math.min(s,k[0]),a=Math.min(a,k[1]),c=Math.max(c,k[2]),u=Math.max(u,k[3]),f<k[3]?(d=k[2],f=k[3]):f===k[3]&&(d=h(d,k[2]))}i=r[w+4],o=r[w+5]}const p=s-g(this,jo),m=a-g(this,jo),y=c-s+2*g(this,jo),b=u-a+2*g(this,jo);A(this,m0,{x:p,y:m,width:y,height:b,lastPoint:[d,f]})};const Ho=class Ho{constructor({editor:e=null,uiManager:t=null}){M(this,v1);M(this,C1);M(this,ky);M(this,zo);M(this,Sy);M(this,Wi);M(this,m1,x(this,ky,qN).bind(this));M(this,g1,x(this,Sy,KN).bind(this));M(this,li,null);M(this,b0,null);M(this,ju,void 0);M(this,Dt,null);M(this,y1,!1);M(this,zu,!1);M(this,b1,null);M(this,w1,void 0);M(this,ci,null);M(this,Hu,void 0);var r;e?(A(this,zu,!1),A(this,Hu,he.HIGHLIGHT_COLOR),A(this,b1,e)):(A(this,zu,!0),A(this,Hu,he.HIGHLIGHT_DEFAULT_COLOR)),A(this,ci,(e==null?void 0:e._uiManager)||t),A(this,w1,g(this,ci)._eventBus),A(this,ju,(e==null?void 0:e.color)||((r=g(this,ci))==null?void 0:r.highlightColors.values().next().value)||"#FFFF98")}static get _keyboardManager(){return Ie(this,"_keyboardManager",new u2([[["Escape","mac+Escape"],Ho.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],Ho.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],Ho.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],Ho.prototype._moveToPrevious],[["Home","mac+Home"],Ho.prototype._moveToBeginning],[["End","mac+End"],Ho.prototype._moveToEnd]]))}renderButton(){const e=A(this,li,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const t=g(this,ci)._signal;e.addEventListener("click",x(this,zo,R0).bind(this),{signal:t}),e.addEventListener("keydown",g(this,m1),{signal:t});const r=A(this,b0,document.createElement("span"));return r.className="swatch",r.setAttribute("aria-hidden",!0),r.style.backgroundColor=g(this,ju),e.append(r),e}renderMainDropdown(){const e=A(this,Dt,x(this,v1,Fv).call(this));return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}_colorSelectFromKeyboard(e){if(e.target===g(this,li)){x(this,zo,R0).call(this,e);return}const t=e.target.getAttribute("data-color");t&&x(this,C1,jv).call(this,t,e)}_moveToNext(e){var t,r;g(this,Wi,Oa)?e.target!==g(this,li)?(t=e.target.nextSibling)==null||t.focus():(r=g(this,Dt).firstChild)==null||r.focus():x(this,zo,R0).call(this,e)}_moveToPrevious(e){var t,r;e.target!==((t=g(this,Dt))==null?void 0:t.firstChild)&&e.target!==g(this,li)?(g(this,Wi,Oa)||x(this,zo,R0).call(this,e),(r=e.target.previousSibling)==null||r.focus()):g(this,Wi,Oa)&&this._hideDropdownFromKeyboard()}_moveToBeginning(e){var t;g(this,Wi,Oa)?(t=g(this,Dt).firstChild)==null||t.focus():x(this,zo,R0).call(this,e)}_moveToEnd(e){var t;g(this,Wi,Oa)?(t=g(this,Dt).lastChild)==null||t.focus():x(this,zo,R0).call(this,e)}hideDropdown(){var e;(e=g(this,Dt))==null||e.classList.add("hidden"),window.removeEventListener("pointerdown",g(this,g1))}_hideDropdownFromKeyboard(){var e;g(this,zu)||(g(this,Wi,Oa)?(this.hideDropdown(),g(this,li).focus({preventScroll:!0,focusVisible:g(this,y1)})):(e=g(this,b1))==null||e.unselect())}updateColor(e){if(g(this,b0)&&(g(this,b0).style.backgroundColor=e),!g(this,Dt))return;const t=g(this,ci).highlightColors.values();for(const r of g(this,Dt).children)r.setAttribute("aria-selected",t.next().value===e)}destroy(){var e,t;(e=g(this,li))==null||e.remove(),A(this,li,null),A(this,b0,null),(t=g(this,Dt))==null||t.remove(),A(this,Dt,null)}};m1=new WeakMap,g1=new WeakMap,li=new WeakMap,b0=new WeakMap,ju=new WeakMap,Dt=new WeakMap,y1=new WeakMap,zu=new WeakMap,b1=new WeakMap,w1=new WeakMap,ci=new WeakMap,Hu=new WeakMap,v1=new WeakSet,Fv=function(){const e=document.createElement("div"),t=g(this,ci)._signal;e.addEventListener("contextmenu",wr,{signal:t}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[r,i]of g(this,ci).highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",i),o.title=r,o.setAttribute("data-l10n-id",`pdfjs-editor-colorpicker-${r}`);const s=document.createElement("span");o.append(s),s.className="swatch",s.style.backgroundColor=i,o.setAttribute("aria-selected",i===g(this,ju)),o.addEventListener("click",x(this,C1,jv).bind(this,i),{signal:t}),e.append(o)}return e.addEventListener("keydown",g(this,m1),{signal:t}),e},C1=new WeakSet,jv=function(e,t){t.stopPropagation(),g(this,w1).dispatch("switchannotationeditorparams",{source:this,type:g(this,Hu),value:e})},ky=new WeakSet,qN=function(e){Ho._keyboardManager.exec(this,e)},zo=new WeakSet,R0=function(e){if(g(this,Wi,Oa)){this.hideDropdown();return}if(A(this,y1,e.detail===0),window.addEventListener("pointerdown",g(this,g1),{signal:g(this,ci)._signal}),g(this,Dt)){g(this,Dt).classList.remove("hidden");return}const t=A(this,Dt,x(this,v1,Fv).call(this));g(this,li).append(t)},Sy=new WeakSet,KN=function(e){var t;(t=g(this,Dt))!=null&&t.contains(e.target)||this.hideDropdown()},Wi=new WeakSet,Oa=function(){return g(this,Dt)&&!g(this,Dt).classList.contains("hidden")};let gm=Ho;const _e=class _e extends ze{constructor(t){super({...t,name:"highlightEditor"});M(this,A1);M(this,T1);M(this,My);M(this,Ey);M(this,Ay);M(this,x1);M(this,k0);M(this,Ty);M(this,Ku);M(this,S0);M(this,xy);M(this,Iy);M(this,Uu,null);M(this,k1,0);M(this,ga,void 0);M(this,w0,null);M(this,Zu,null);M(this,Lr,null);M(this,S1,null);M(this,M1,0);M(this,v0,null);M(this,ui,null);M(this,An,null);M(this,fr,!1);M(this,Wu,null);M(this,C0,void 0);M(this,Nt,null);M(this,qu,"");M(this,qi,void 0);M(this,E1,"");this.color=t.color||_e._defaultColor,A(this,qi,t.thickness||_e._defaultThickness),A(this,C0,t.opacity||_e._defaultOpacity),A(this,ga,t.boxes||null),A(this,E1,t.methodOfCreation||""),A(this,qu,t.text||""),this._isDraggable=!1,t.highlightId>-1?(A(this,fr,!0),x(this,T1,Hv).call(this,t),x(this,k0,np).call(this)):(A(this,Uu,t.anchorNode),A(this,k1,t.anchorOffset),A(this,S1,t.focusNode),A(this,M1,t.focusOffset),x(this,A1,zv).call(this),x(this,k0,np).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const t=_e.prototype;return Ie(this,"_keyboardManager",new u2([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:g(this,fr)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:g(this,qi),methodOfCreation:g(this,E1)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}static initialize(t,r){var i;ze.initialize(t,r),_e._defaultColor||(_e._defaultColor=((i=r.highlightColors)==null?void 0:i.values().next().value)||"#fff066")}static updateDefaultParams(t,r){switch(t){case he.HIGHLIGHT_DEFAULT_COLOR:_e._defaultColor=r;break;case he.HIGHLIGHT_THICKNESS:_e._defaultThickness=r}}translateInPage(t,r){}get toolbarPosition(){return g(this,Wu)}updateParams(t,r){switch(t){case he.HIGHLIGHT_COLOR:x(this,My,GN).call(this,r);break;case he.HIGHLIGHT_THICKNESS:x(this,Ey,YN).call(this,r)}}static get defaultPropertiesToUpdate(){return[[he.HIGHLIGHT_DEFAULT_COLOR,_e._defaultColor],[he.HIGHLIGHT_THICKNESS,_e._defaultThickness]]}get propertiesToUpdate(){return[[he.HIGHLIGHT_COLOR,this.color||_e._defaultColor],[he.HIGHLIGHT_THICKNESS,g(this,qi)||_e._defaultThickness],[he.HIGHLIGHT_FREE,g(this,fr)]]}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.highlightColors&&(A(this,Zu,new gm({editor:this})),t.addColorPicker(g(this,Zu))),t):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(x(this,S0,rp).call(this))}getBaseTranslation(){return[0,0]}getRect(t,r){return super.getRect(t,r,x(this,S0,rp).call(this))}onceAdded(){this.parent.addUndoableEditor(this),this.div.focus()}remove(){x(this,x1,Uv).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(x(this,k0,np).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var i;let r=!1;this.parent&&!t?x(this,x1,Uv).call(this):t&&(x(this,k0,np).call(this,t),r=!this.parent&&((i=this.div)==null?void 0:i.classList.contains("selectedEditor"))),super.setParent(t),this.show(this._isVisible),r&&this.select()}rotate(t){var o,s,a;const{drawLayer:r}=this.parent;let i;g(this,fr)?(t=(t-this.rotation+360)%360,i=x(o=_e,ya,md).call(o,g(this,ui).box,t)):i=x(s=_e,ya,md).call(s,this,t),r.rotate(g(this,An),t),r.rotate(g(this,Nt),t),r.updateBox(g(this,An),i),r.updateBox(g(this,Nt),x(a=_e,ya,md).call(a,g(this,Lr).box,t))}render(){if(this.div)return this.div;const t=super.render();g(this,qu)&&(t.setAttribute("aria-label",g(this,qu)),t.setAttribute("role","mark")),g(this,fr)?t.classList.add("free"):this.div.addEventListener("keydown",x(this,Ty,XN).bind(this),{signal:this._uiManager._signal});const r=A(this,v0,document.createElement("div"));t.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",r.style.clipPath=g(this,w0);const[i,o]=this.parentDimensions;return this.setDims(this.width*i,this.height*o),am(this,g(this,v0),["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){this.parent.drawLayer.addClass(g(this,Nt),"hovered")}pointerleave(){this.parent.drawLayer.removeClass(g(this,Nt),"hovered")}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:x(this,Ku,g5).call(this,!0);break;case 1:case 3:x(this,Ku,g5).call(this,!1)}}select(){var t,r;super.select(),g(this,Nt)&&((t=this.parent)==null||t.drawLayer.removeClass(g(this,Nt),"hovered"),(r=this.parent)==null||r.drawLayer.addClass(g(this,Nt),"selected"))}unselect(){var t;super.unselect(),g(this,Nt)&&((t=this.parent)==null||t.drawLayer.removeClass(g(this,Nt),"selected"),g(this,fr)||x(this,Ku,g5).call(this,!1))}get _mustFixPosition(){return!g(this,fr)}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.show(g(this,An),t),this.parent.drawLayer.show(g(this,Nt),t))}static startHighlighting(t,r,{target:i,x:o,y:s}){const{x:a,y:c,width:u,height:d}=i.getBoundingClientRect(),f=new AbortController,h=t.combinedSignal(f),p=m=>{f.abort(),x(this,Dy,nP).call(this,t,m)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",m=>{m.preventDefault(),m.stopPropagation()},{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",wr,{signal:h}),i.addEventListener("pointermove",x(this,Oy,tP).bind(this,t),{signal:h}),this._freeHighlight=new mm({x:o,y:s},[a,c,u,d],t.scale,this._defaultThickness/2,r,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0)}static deserialize(t,r,i){var y;const o=super.deserialize(t,r,i),{rect:[s,a,c,u],color:d,quadPoints:f}=t;o.color=le.makeHexColor(...d),A(o,C0,t.opacity);const[h,p]=o.pageDimensions;o.width=(c-s)/h,o.height=(u-a)/p;const m=A(o,ga,[]);for(let b=0;b<f.length;b+=8)m.push({x:(f[4]-c)/h,y:(u-(1-f[b+5]))/p,width:(f[b+2]-f[b])/h,height:(f[b+5]-f[b+1])/p});return x(y=o,A1,zv).call(y),o}serialize(t=!1){if(this.isEmpty()||t)return null;const r=this.getRect(0,0),i=ze._colorManager.convert(this.color);return{annotationType:Te.HIGHLIGHT,color:i,opacity:g(this,C0),thickness:g(this,qi),quadPoints:x(this,xy,JN).call(this),outlines:x(this,Iy,eP).call(this,r),pageIndex:this.pageIndex,rect:r,rotation:x(this,S0,rp).call(this),structTreeParentId:this._structTreeParentId}}static canCreateNewEmptyEditor(){return!1}};Uu=new WeakMap,k1=new WeakMap,ga=new WeakMap,w0=new WeakMap,Zu=new WeakMap,Lr=new WeakMap,S1=new WeakMap,M1=new WeakMap,v0=new WeakMap,ui=new WeakMap,An=new WeakMap,fr=new WeakMap,Wu=new WeakMap,C0=new WeakMap,Nt=new WeakMap,qu=new WeakMap,qi=new WeakMap,E1=new WeakMap,A1=new WeakSet,zv=function(){const t=new oE(g(this,ga),.001);A(this,ui,t.getOutlines()),{x:this.x,y:this.y,width:this.width,height:this.height}=g(this,ui).box;const r=new oE(g(this,ga),.0025,.001,this._uiManager.direction==="ltr");A(this,Lr,r.getOutlines());const{lastPoint:i}=g(this,Lr).box;A(this,Wu,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},T1=new WeakSet,Hv=function({highlightOutlines:t,highlightId:r,clipPathId:i}){var d,f;if(A(this,ui,t),A(this,Lr,t.getNewOutline(g(this,qi)/2+1.5,.0025)),r>=0)A(this,An,r),A(this,w0,i),this.parent.drawLayer.finalizeLine(r,t),A(this,Nt,this.parent.drawLayer.highlightOutline(g(this,Lr)));else if(this.parent){const h=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(g(this,An),t),this.parent.drawLayer.updateBox(g(this,An),x(d=_e,ya,md).call(d,g(this,ui).box,(h-this.rotation+360)%360)),this.parent.drawLayer.updateLine(g(this,Nt),g(this,Lr)),this.parent.drawLayer.updateBox(g(this,Nt),x(f=_e,ya,md).call(f,g(this,Lr).box,h))}const{x:o,y:s,width:a,height:c}=t.box;switch(this.rotation){case 0:this.x=o,this.y=s,this.width=a,this.height=c;break;case 90:{const[h,p]=this.parentDimensions;this.x=s,this.y=1-o,this.width=a*p/h,this.height=c*h/p;break}case 180:this.x=1-o,this.y=1-s,this.width=a,this.height=c;break;case 270:{const[h,p]=this.parentDimensions;this.x=1-s,this.y=o,this.width=a*p/h,this.height=c*h/p;break}}const{lastPoint:u}=g(this,Lr).box;A(this,Wu,[(u[0]-o)/a,(u[1]-s)/c])},My=new WeakSet,GN=function(t){const r=o=>{var s,a;this.color=o,(s=this.parent)==null||s.drawLayer.changeColor(g(this,An),o),(a=g(this,Zu))==null||a.updateColor(o)},i=this.color;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)},Ey=new WeakSet,YN=function(t){const r=g(this,qi),i=o=>{A(this,qi,o),x(this,Ay,QN).call(this,o)};this.addCommands({cmd:i.bind(this,t),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)},Ay=new WeakSet,QN=function(t){if(!g(this,fr))return;x(this,T1,Hv).call(this,{highlightOutlines:g(this,ui).getNewOutline(t/2)}),this.fixAndSetPosition();const[r,i]=this.parentDimensions;this.setDims(this.width*r,this.height*i)},x1=new WeakSet,Uv=function(){g(this,An)!==null&&this.parent&&(this.parent.drawLayer.remove(g(this,An)),A(this,An,null),this.parent.drawLayer.remove(g(this,Nt)),A(this,Nt,null))},k0=new WeakSet,np=function(t=this.parent){g(this,An)===null&&({id:Gn(this,An)._,clipPathId:Gn(this,w0)._}=t.drawLayer.highlight(g(this,ui),this.color,g(this,C0)),A(this,Nt,t.drawLayer.highlightOutline(g(this,Lr))),g(this,v0)&&(g(this,v0).style.clipPath=g(this,w0)))},ya=new WeakSet,md=function({x:t,y:r,width:i,height:o},s){switch(s){case 90:return{x:1-r-o,y:t,width:o,height:i};case 180:return{x:1-t-i,y:1-r-o,width:i,height:o};case 270:return{x:r,y:1-t-i,width:o,height:i}}return{x:t,y:r,width:i,height:o}},Ty=new WeakSet,XN=function(t){_e._keyboardManager.exec(this,t)},Ku=new WeakSet,g5=function(t){if(!g(this,Uu))return;const r=window.getSelection();t?r.setPosition(g(this,Uu),g(this,k1)):r.setPosition(g(this,S1),g(this,M1))},S0=new WeakSet,rp=function(){return g(this,fr)?this.rotation:0},xy=new WeakSet,JN=function(){if(g(this,fr))return null;const[t,r]=this.pageDimensions,[i,o]=this.pageTranslation,s=g(this,ga),a=new Float32Array(8*s.length);let c=0;for(const{x:u,y:d,width:f,height:h}of s){const p=u*t+i,m=(1-d-h)*r+o;a[c]=a[c+4]=p,a[c+1]=a[c+3]=m,a[c+2]=a[c+6]=p+f*t,a[c+5]=a[c+7]=m+h*r,c+=8}return a},Iy=new WeakSet,eP=function(t){return g(this,ui).serialize(t,x(this,S0,rp).call(this))},Oy=new WeakSet,tP=function(t,r){this._freeHighlight.add(r)&&t.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)},Dy=new WeakSet,nP=function(t,r){this._freeHighlight.isEmpty()?t.drawLayer.removeFreeHighlight(this._freeHighlightId):t.createAndAddNewEditor(r,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},M(_e,ya),M(_e,Oy),M(_e,Dy),pe(_e,"_defaultColor",null),pe(_e,"_defaultOpacity",1),pe(_e,"_defaultThickness",12),pe(_e,"_l10nPromise"),pe(_e,"_type","highlight"),pe(_e,"_editorType",Te.HIGHLIGHT),pe(_e,"_freeHighlightId",-1),pe(_e,"_freeHighlight",null),pe(_e,"_freeHighlightClipId","");let ym=_e;const Je=class Je extends ze{constructor(t){super({...t,name:"inkEditor"});M(this,Ny);M(this,Py);M(this,_y);M(this,Ly);M(this,I1);M(this,By);M(this,O1);M(this,Ry);M(this,$y);M(this,Vy);M(this,Fy);M(this,jy);M(this,Wo);M(this,D1);M(this,N1);M(this,P1);M(this,Yu);M(this,Qu);M(this,wa);M(this,_1);M(this,Xu);M(this,Uy);M(this,B1);M(this,Ju);M(this,D0);M(this,M0,0);M(this,E0,0);M(this,Ki,null);M(this,Uo,new Path2D);M(this,Br,!1);M(this,A0,null);M(this,T0,!1);M(this,x0,!1);M(this,Zo,null);M(this,Gu,null);M(this,I0,0);M(this,O0,0);M(this,ba,null);this.color=t.color||null,this.thickness=t.thickness||null,this.opacity=t.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(t,r){ze.initialize(t,r)}static updateDefaultParams(t,r){switch(t){case he.INK_THICKNESS:Je._defaultThickness=r;break;case he.INK_COLOR:Je._defaultColor=r;break;case he.INK_OPACITY:Je._defaultOpacity=r/100}}updateParams(t,r){switch(t){case he.INK_THICKNESS:x(this,Ny,rP).call(this,r);break;case he.INK_COLOR:x(this,Py,iP).call(this,r);break;case he.INK_OPACITY:x(this,_y,oP).call(this,r)}}static get defaultPropertiesToUpdate(){return[[he.INK_THICKNESS,Je._defaultThickness],[he.INK_COLOR,Je._defaultColor||ze._defaultLineColor],[he.INK_OPACITY,Math.round(100*Je._defaultOpacity)]]}get propertiesToUpdate(){return[[he.INK_THICKNESS,this.thickness||Je._defaultThickness],[he.INK_COLOR,this.color||Je._defaultColor||ze._defaultLineColor],[he.INK_OPACITY,Math.round(100*(this.opacity??Je._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(x(this,Yu,y5).call(this),x(this,Qu,b5).call(this)),this.isAttachedToDOM||(this.parent.add(this),x(this,wa,gd).call(this)),x(this,D0,ip).call(this)))}remove(){var t;this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,g(this,Ki)&&(clearTimeout(g(this,Ki)),A(this,Ki,null)),(t=g(this,Zo))==null||t.disconnect(),A(this,Zo,null),super.remove())}setParent(t){!this.parent&&t?this._uiManager.removeShouldRescale(this):this.parent&&t===null&&this._uiManager.addShouldRescale(this),super.setParent(t)}onScaleChanging(){const[t,r]=this.parentDimensions,i=this.width*t,o=this.height*r;this.setDimensions(i,o)}enableEditMode(){!g(this,Br)&&this.canvas!==null&&(super.enableEditMode(),this._isDraggable=!1,x(this,D1,qv).call(this))}disableEditMode(){this.isInEditMode()&&this.canvas!==null&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),x(this,N1,Kv).call(this))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){g(this,Br)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),A(this,Br,!0),this.div.classList.add("disabled"),x(this,D0,ip).call(this,!0),this.select(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),this.enableEditMode())}canvasPointerdown(t){t.button===0&&this.isInEditMode()&&!g(this,Br)&&(this.setInForeground(),t.preventDefault(),this.div.contains(document.activeElement)||this.div.focus({preventScroll:!0}),x(this,By,aP).call(this,t.offsetX,t.offsetY))}canvasPointermove(t){t.preventDefault(),x(this,O1,Wv).call(this,t.offsetX,t.offsetY)}canvasPointerup(t){t.preventDefault(),x(this,P1,Gv).call(this,t)}canvasPointerleave(t){x(this,P1,Gv).call(this,t)}get isResizable(){return!this.isEmpty()&&g(this,Br)}render(){if(this.div)return this.div;let t,r;this.width&&(t=this.x,r=this.y),super.render(),this.div.setAttribute("data-l10n-id","pdfjs-ink");const[i,o,s,a]=x(this,Ly,sP).call(this);if(this.setAt(i,o,0,0),this.setDims(s,a),x(this,Yu,y5).call(this),this.width){const[c,u]=this.parentDimensions;this.setAspectRatio(this.width*c,this.height*u),this.setAt(t*c,r*u,this.width*c,this.height*u),A(this,x0,!0),x(this,wa,gd).call(this),this.setDims(this.width*c,this.height*u),x(this,Wo,$0).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return x(this,Qu,b5).call(this),this.div}setDimensions(t,r){const i=Math.round(t),o=Math.round(r);if(g(this,I0)===i&&g(this,O0)===o)return;A(this,I0,i),A(this,O0,o),this.canvas.style.visibility="hidden";const[s,a]=this.parentDimensions;this.width=t/s,this.height=r/a,this.fixAndSetPosition(),g(this,Br)&&x(this,_1,Yv).call(this,t,r),x(this,wa,gd).call(this),x(this,Wo,$0).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(t,r,i){var b,w,v;if(t instanceof rE)return null;const o=super.deserialize(t,r,i);o.thickness=t.thickness,o.color=le.makeHexColor(...t.color),o.opacity=t.opacity;const[s,a]=o.pageDimensions,c=o.width*s,u=o.height*a,d=o.parentScale,f=t.thickness/2;A(o,Br,!0),A(o,I0,Math.round(c)),A(o,O0,Math.round(u));const{paths:h,rect:p,rotation:m}=t;for(let{bezier:k}of h){k=x(b=Je,Hy,pP).call(b,k,p,m);const C=[];o.paths.push(C);let T=d*(k[0]-f),S=d*(k[1]-f);for(let O=2,I=k.length;O<I;O+=6){const P=d*(k[O]-f),D=d*(k[O+1]-f),B=d*(k[O+2]-f),V=d*(k[O+3]-f),U=d*(k[O+4]-f),L=d*(k[O+5]-f);C.push([[T,S],[P,D],[B,V],[U,L]]),T=U,S=L}const E=x(this,zy,hP).call(this,C);o.bezierPath2D.push(E)}const y=x(w=o,B1,Xv).call(w);return A(o,E0,Math.max(ze.MIN_SIZE,y[2]-y[0])),A(o,M0,Math.max(ze.MIN_SIZE,y[3]-y[1])),x(v=o,_1,Yv).call(v,c,u),o}serialize(){if(this.isEmpty())return null;const t=this.getRect(0,0),r=ze._colorManager.convert(this.ctx.strokeStyle);return{annotationType:Te.INK,color:r,thickness:this.thickness,opacity:this.opacity,paths:x(this,Uy,mP).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,t),pageIndex:this.pageIndex,rect:t,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};M0=new WeakMap,E0=new WeakMap,Ki=new WeakMap,Uo=new WeakMap,Br=new WeakMap,A0=new WeakMap,T0=new WeakMap,x0=new WeakMap,Zo=new WeakMap,Gu=new WeakMap,I0=new WeakMap,O0=new WeakMap,ba=new WeakMap,Ny=new WeakSet,rP=function(t){const r=o=>{this.thickness=o,x(this,D0,ip).call(this)},i=this.thickness;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},Py=new WeakSet,iP=function(t){const r=o=>{this.color=o,x(this,Wo,$0).call(this)},i=this.color;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},_y=new WeakSet,oP=function(t){const r=o=>{this.opacity=o,x(this,Wo,$0).call(this)};t/=100;const i=this.opacity;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},Ly=new WeakSet,sP=function(){const{parentRotation:t,parentDimensions:[r,i]}=this;switch(t){case 90:return[0,i,i,r];case 180:return[r,i,r,i];case 270:return[r,0,i,r];default:return[0,0,r,i]}},I1=new WeakSet,Zv=function(){const{ctx:t,color:r,opacity:i,thickness:o,parentScale:s,scaleFactor:a}=this;t.lineWidth=o*s/a,t.lineCap="round",t.lineJoin="round",t.miterLimit=10,t.strokeStyle=`${r}${function(u){return Math.round(Math.min(255,Math.max(1,255*u))).toString(16).padStart(2,"0")}(i)}`},By=new WeakSet,aP=function(t,r){this.canvas.addEventListener("contextmenu",wr,{signal:this._uiManager._signal}),x(this,N1,Kv).call(this),A(this,A0,new AbortController);const i=this._uiManager.combinedSignal(g(this,A0));this.canvas.addEventListener("pointerleave",this.canvasPointerleave.bind(this),{signal:i}),this.canvas.addEventListener("pointermove",this.canvasPointermove.bind(this),{signal:i}),this.canvas.addEventListener("pointerup",this.canvasPointerup.bind(this),{signal:i}),this.isEditing=!0,g(this,x0)||(A(this,x0,!0),x(this,wa,gd).call(this),this.thickness||(this.thickness=Je._defaultThickness),this.color||(this.color=Je._defaultColor||ze._defaultLineColor),this.opacity??(this.opacity=Je._defaultOpacity)),this.currentPath.push([t,r]),A(this,T0,!1),x(this,I1,Zv).call(this),A(this,ba,()=>{x(this,Vy,uP).call(this),g(this,ba)&&window.requestAnimationFrame(g(this,ba))}),window.requestAnimationFrame(g(this,ba))},O1=new WeakSet,Wv=function(t,r){const[i,o]=this.currentPath.at(-1);if(this.currentPath.length>1&&t===i&&r===o)return;const s=this.currentPath;let a=g(this,Uo);s.push([t,r]),A(this,T0,!0),s.length<=2?(a.moveTo(...s[0]),a.lineTo(t,r)):(s.length===3&&(A(this,Uo,a=new Path2D),a.moveTo(...s[0])),x(this,Fy,dP).call(this,a,...s.at(-3),...s.at(-2),t,r))},Ry=new WeakSet,lP=function(){if(this.currentPath.length===0)return;const t=this.currentPath.at(-1);g(this,Uo).lineTo(...t)},$y=new WeakSet,cP=function(t,r){A(this,ba,null),t=Math.min(Math.max(t,0),this.canvas.width),r=Math.min(Math.max(r,0),this.canvas.height),x(this,O1,Wv).call(this,t,r),x(this,Ry,lP).call(this);let i;if(this.currentPath.length!==1)i=x(this,jy,fP).call(this);else{const a=[t,r];i=[[a,a.slice(),a.slice(),a]]}const o=g(this,Uo),s=this.currentPath;this.currentPath=[],A(this,Uo,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(s),this.paths.push(i),this.bezierPath2D.push(o),this._uiManager.rebuild(this)},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(x(this,Yu,y5).call(this),x(this,Qu,b5).call(this)),x(this,D0,ip).call(this))},mustExec:!0})},Vy=new WeakSet,uP=function(){if(!g(this,T0))return;A(this,T0,!1),Math.ceil(this.thickness*this.parentScale);const t=this.currentPath.slice(-3),r=t.map(s=>s[0]),i=t.map(s=>s[1]),{ctx:o}=(Math.min(...r),Math.max(...r),Math.min(...i),Math.max(...i),this);o.save(),o.clearRect(0,0,this.canvas.width,this.canvas.height);for(const s of this.bezierPath2D)o.stroke(s);o.stroke(g(this,Uo)),o.restore()},Fy=new WeakSet,dP=function(t,r,i,o,s,a,c){const u=(r+o)/2,d=(i+s)/2,f=(o+a)/2,h=(s+c)/2;t.bezierCurveTo(u+2*(o-u)/3,d+2*(s-d)/3,f+2*(o-f)/3,h+2*(s-h)/3,f,h)},jy=new WeakSet,fP=function(){const t=this.currentPath;if(t.length<=2)return[[t[0],t[0],t.at(-1),t.at(-1)]];const r=[];let i,[o,s]=t[0];for(i=1;i<t.length-2;i++){const[p,m]=t[i],[y,b]=t[i+1],w=(p+y)/2,v=(m+b)/2,k=[o+2*(p-o)/3,s+2*(m-s)/3],C=[w+2*(p-w)/3,v+2*(m-v)/3];r.push([[o,s],k,C,[w,v]]),[o,s]=[w,v]}const[a,c]=t[i],[u,d]=t[i+1],f=[o+2*(a-o)/3,s+2*(c-s)/3],h=[u+2*(a-u)/3,d+2*(c-d)/3];return r.push([[o,s],f,h,[u,d]]),r},Wo=new WeakSet,$0=function(){if(this.isEmpty()){x(this,Xu,w5).call(this);return}x(this,I1,Zv).call(this);const{canvas:t,ctx:r}=this;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,t.width,t.height),x(this,Xu,w5).call(this);for(const i of this.bezierPath2D)r.stroke(i)},D1=new WeakSet,qv=function(){if(g(this,Gu))return;A(this,Gu,new AbortController);const t=this._uiManager.combinedSignal(g(this,Gu));this.canvas.addEventListener("pointerdown",this.canvasPointerdown.bind(this),{signal:t})},N1=new WeakSet,Kv=function(){var t;(t=this.pointerdownAC)==null||t.abort(),this.pointerdownAC=null},P1=new WeakSet,Gv=function(t){var r;(r=g(this,A0))==null||r.abort(),A(this,A0,null),x(this,D1,qv).call(this),g(this,Ki)&&clearTimeout(g(this,Ki)),A(this,Ki,setTimeout(()=>{A(this,Ki,null),this.canvas.removeEventListener("contextmenu",wr)},10)),x(this,$y,cP).call(this,t.offsetX,t.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Yu=new WeakSet,y5=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Qu=new WeakSet,b5=function(){A(this,Zo,new ResizeObserver(t=>{const r=t[0].contentRect;r.width&&r.height&&this.setDimensions(r.width,r.height)})),g(this,Zo).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var t;(t=g(this,Zo))==null||t.disconnect(),A(this,Zo,null)},{once:!0})},wa=new WeakSet,gd=function(){if(!g(this,x0))return;const[t,r]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*t),this.canvas.height=Math.ceil(this.height*r),x(this,Xu,w5).call(this)},_1=new WeakSet,Yv=function(t,r){const i=x(this,Ju,v5).call(this),o=(t-i)/g(this,E0),s=(r-i)/g(this,M0);this.scaleFactor=Math.min(o,s)},Xu=new WeakSet,w5=function(){const t=x(this,Ju,v5).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+t,this.translationY*this.scaleFactor+t)},zy=new WeakSet,hP=function(t){const r=new Path2D;for(let i=0,o=t.length;i<o;i++){const[s,a,c,u]=t[i];i===0&&r.moveTo(...s),r.bezierCurveTo(a[0],a[1],c[0],c[1],u[0],u[1])}return r},L1=new WeakSet,Qv=function(t,r,i){const[o,s,a,c]=r;switch(i){case 0:for(let u=0,d=t.length;u<d;u+=2)t[u]+=o,t[u+1]=c-t[u+1];break;case 90:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=t[u+1]+o,t[u+1]=f+s}break;case 180:for(let u=0,d=t.length;u<d;u+=2)t[u]=a-t[u],t[u+1]+=s;break;case 270:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=a-t[u+1],t[u+1]=c-f}break;default:throw new Error("Invalid rotation")}return t},Hy=new WeakSet,pP=function(t,r,i){const[o,s,a,c]=r;switch(i){case 0:for(let u=0,d=t.length;u<d;u+=2)t[u]-=o,t[u+1]=c-t[u+1];break;case 90:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=t[u+1]-s,t[u+1]=f-o}break;case 180:for(let u=0,d=t.length;u<d;u+=2)t[u]=a-t[u],t[u+1]-=s;break;case 270:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=c-t[u+1],t[u+1]=a-f}break;default:throw new Error("Invalid rotation")}return t},Uy=new WeakSet,mP=function(t,r,i,o){var d,f;const s=[],a=this.thickness/2,c=t*r+a,u=t*i+a;for(const h of this.paths){const p=[],m=[];for(let y=0,b=h.length;y<b;y++){const[w,v,k,C]=h[y];if(w[0]===C[0]&&w[1]===C[1]&&b===1){const V=t*w[0]+c,U=t*w[1]+u;p.push(V,U),m.push(V,U);break}const T=t*w[0]+c,S=t*w[1]+u,E=t*v[0]+c,O=t*v[1]+u,I=t*k[0]+c,P=t*k[1]+u,D=t*C[0]+c,B=t*C[1]+u;y===0&&(p.push(T,S),m.push(T,S)),p.push(E,O,I,P,D,B),m.push(E,O),y===b-1&&m.push(D,B)}s.push({bezier:x(d=Je,L1,Qv).call(d,p,o,this.rotation),points:x(f=Je,L1,Qv).call(f,m,o,this.rotation)})}return s},B1=new WeakSet,Xv=function(){let t=1/0,r=-1/0,i=1/0,o=-1/0;for(const s of this.paths)for(const[a,c,u,d]of s){const f=le.bezierBoundingBox(...a,...c,...u,...d);t=Math.min(t,f[0]),i=Math.min(i,f[1]),r=Math.max(r,f[2]),o=Math.max(o,f[3])}return[t,i,r,o]},Ju=new WeakSet,v5=function(){return g(this,Br)?Math.ceil(this.thickness*this.parentScale):0},D0=new WeakSet,ip=function(t=!1){if(this.isEmpty())return;if(!g(this,Br)){x(this,Wo,$0).call(this);return}const r=x(this,B1,Xv).call(this),i=x(this,Ju,v5).call(this);A(this,E0,Math.max(ze.MIN_SIZE,r[2]-r[0])),A(this,M0,Math.max(ze.MIN_SIZE,r[3]-r[1]));const o=Math.ceil(i+g(this,E0)*this.scaleFactor),s=Math.ceil(i+g(this,M0)*this.scaleFactor),[a,c]=this.parentDimensions;this.width=o/a,this.height=s/c,this.setAspectRatio(o,s);const u=this.translationX,d=this.translationY;this.translationX=-r[0],this.translationY=-r[1],x(this,wa,gd).call(this),x(this,Wo,$0).call(this),A(this,I0,o),A(this,O0,s),this.setDims(o,s);const f=t?i/this.scaleFactor/2:0;this.translate(u-this.translationX-f,d-this.translationY-f)},M(Je,zy),M(Je,L1),M(Je,Hy),pe(Je,"_defaultColor",null),pe(Je,"_defaultOpacity",1),pe(Je,"_defaultThickness",1),pe(Je,"_type","ink"),pe(Je,"_editorType",Te.INK);let Y4=Je;const j1=class j1 extends ze{constructor(t){super({...t,name:"stampEditor"});M(this,N0);M(this,P0);M(this,td);M(this,$1);M(this,Zy);M(this,V1);M(this,F1);M(this,nd);M(this,Wy);M(this,vt,null);M(this,rn,null);M(this,va,null);M(this,qo,null);M(this,Ca,null);M(this,ed,"");M(this,Gi,null);M(this,Ko,null);M(this,Yi,null);M(this,Rr,!1);M(this,R1,!1);A(this,qo,t.bitmapUrl),A(this,Ca,t.bitmapFile)}static initialize(t,r){ze.initialize(t,r)}static get supportedTypes(){return Ie(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(t=>`image/${t}`))}static get supportedTypesStr(){return Ie(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(t){return this.supportedTypes.includes(t)}static paste(t,r){r.pasteEditor(Te.STAMP,{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var t;return{type:"stamp",hasAltText:!!((t=this.altTextData)!=null&&t.altText)}}static computeTelemetryFinalData(t){const r=t.get("hasAltText");return{hasAltText:r.get(!0)??0,hasNoAltText:r.get(!1)??0}}async mlGuessAltText(t=null,r=!0){if(this.hasAltTextData())return null;const{mlManager:i}=this._uiManager;if(!i)throw new Error("No ML.");if(!await i.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:o,width:s,height:a}=t||this.copyCanvas(null,!0).imageData,c=await i.guess({name:"altText",request:{data:o,width:s,height:a,channels:o.length/(s*a)}});if(!c)throw new Error("No response from the AI service.");if(c.error)throw new Error("Error from the AI service.");if(c.cancel)return null;if(!c.output)throw new Error("No valid response from the AI service.");const u=c.output;return await this.setGuessedAltText(u),r&&!this.hasAltTextData()&&(this.altTextData={alt:u,decorative:!1}),u}remove(){var t,r;g(this,rn)&&(A(this,vt,null),this._uiManager.imageManager.deleteId(g(this,rn)),(t=g(this,Gi))==null||t.remove(),A(this,Gi,null),(r=g(this,Ko))==null||r.disconnect(),A(this,Ko,null),g(this,Yi)&&(clearTimeout(g(this,Yi)),A(this,Yi,null))),super.remove()}rebuild(){this.parent?(super.rebuild(),this.div!==null&&(g(this,rn)&&g(this,Gi)===null&&x(this,td,C5).call(this),this.isAttachedToDOM||this.parent.add(this))):g(this,rn)&&x(this,td,C5).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(g(this,va)||g(this,vt)||g(this,qo)||g(this,Ca)||g(this,rn))}get isResizable(){return!0}render(){if(this.div)return this.div;let t,r;if(this.width&&(t=this.x,r=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),g(this,vt)?x(this,$1,Jv).call(this):x(this,td,C5).call(this),this.width){const[i,o]=this.parentDimensions;this.setAt(t*i,r*o,this.width*i,this.height*o)}return this.div}copyCanvas(t,r=!1){var b;t||(t=224);const{width:i,height:o}=g(this,vt),s=document.createElement("canvas");let a=g(this,vt),c=i,u=o;if(i>t||o>t){const w=Math.min(t/i,t/o);c=Math.floor(i*w),u=Math.floor(o*w),g(this,Rr)||(a=x(this,V1,e8).call(this,c,u))}s.width=c,s.height=u;const d=s.getContext("2d");d.filter=this._uiManager.hcmFilter;let f="white",h="#cfcfd8";this._uiManager.hcmFilter!=="none"?h="black":(b=window.matchMedia)!=null&&b.call(window,"(prefers-color-scheme: dark)").matches&&(f="#8f8f9d",h="#42414d");const p=15,m=new OffscreenCanvas(30,30),y=m.getContext("2d");if(y.fillStyle=f,y.fillRect(0,0,30,30),y.fillStyle=h,y.fillRect(0,0,p,p),y.fillRect(p,p,p,p),d.fillStyle=d.createPattern(m,"repeat"),d.fillRect(0,0,c,u),r){const w=new OffscreenCanvas(c,u),v=w.getContext("2d",{willReadFrequently:!0});v.drawImage(a,0,0,a.width,a.height,0,0,c,u);const k=v.getImageData(0,0,c,u).data;return d.drawImage(w,0,0),{canvas:s,imageData:{width:c,height:u,data:k}}}return d.drawImage(a,0,0,a.width,a.height,0,0,c,u),{canvas:s,imageData:null}}getImageForAltText(){return g(this,Gi)}static deserialize(t,r,i){if(t instanceof iE)return null;const o=super.deserialize(t,r,i),{rect:s,bitmapUrl:a,bitmapId:c,isSvg:u,accessibilityData:d}=t;c&&i.imageManager.isValidId(c)?A(o,rn,c):A(o,qo,a),A(o,Rr,u);const[f,h]=o.pageDimensions;return o.width=(s[2]-s[0])/f,o.height=(s[3]-s[1])/h,d&&(o.altTextData=d),o}serialize(t=!1,r=null){if(this.isEmpty())return null;const i={annotationType:Te.STAMP,bitmapId:g(this,rn),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:g(this,Rr),structTreeParentId:this._structTreeParentId};if(t)return i.bitmapUrl=x(this,nd,k5).call(this,!0),i.accessibilityData=this.serializeAltText(!0),i;const{decorative:o,altText:s}=this.serializeAltText(!1);if(!o&&s&&(i.accessibilityData={type:"Figure",alt:s}),r===null)return i;r.stamps||(r.stamps=new Map);const a=g(this,Rr)?(i.rect[2]-i.rect[0])*(i.rect[3]-i.rect[1]):null;if(r.stamps.has(g(this,rn))){if(g(this,Rr)){const c=r.stamps.get(g(this,rn));a>c.area&&(c.area=a,c.serialized.bitmap.close(),c.serialized.bitmap=x(this,nd,k5).call(this,!1))}}else r.stamps.set(g(this,rn),{area:a,serialized:i}),i.bitmap=x(this,nd,k5).call(this,!1);return i}};vt=new WeakMap,rn=new WeakMap,va=new WeakMap,qo=new WeakMap,Ca=new WeakMap,ed=new WeakMap,Gi=new WeakMap,Ko=new WeakMap,Yi=new WeakMap,Rr=new WeakMap,R1=new WeakMap,N0=new WeakSet,op=function(t,r=!1){t?(A(this,vt,t.bitmap),r||(A(this,rn,t.id),A(this,Rr,t.isSvg)),t.file&&A(this,ed,t.file.name),x(this,$1,Jv).call(this)):this.remove()},P0=new WeakSet,sp=function(){if(A(this,va,null),this._uiManager.enableWaiting(!1),g(this,Gi))if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&g(this,vt))this._editToolbar.hide(),this._uiManager.editAltText(this,!0);else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&g(this,vt)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},td=new WeakSet,C5=function(){if(g(this,rn)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(g(this,rn)).then(i=>x(this,N0,op).call(this,i,!0)).finally(()=>x(this,P0,sp).call(this));return}if(g(this,qo)){const i=g(this,qo);A(this,qo,null),this._uiManager.enableWaiting(!0),A(this,va,this._uiManager.imageManager.getFromUrl(i).then(o=>x(this,N0,op).call(this,o)).finally(()=>x(this,P0,sp).call(this)));return}if(g(this,Ca)){const i=g(this,Ca);A(this,Ca,null),this._uiManager.enableWaiting(!0),A(this,va,this._uiManager.imageManager.getFromFile(i).then(o=>x(this,N0,op).call(this,o)).finally(()=>x(this,P0,sp).call(this)));return}const t=document.createElement("input");t.type="file",t.accept=j1.supportedTypesStr;const r=this._uiManager._signal;A(this,va,new Promise(i=>{t.addEventListener("change",async()=>{if(t.files&&t.files.length!==0){this._uiManager.enableWaiting(!0);const o=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),x(this,N0,op).call(this,o)}else this.remove();i()},{signal:r}),t.addEventListener("cancel",()=>{this.remove(),i()},{signal:r})}).finally(()=>x(this,P0,sp).call(this))),t.click()},$1=new WeakSet,Jv=function(){const{div:t}=this;let{width:r,height:i}=g(this,vt);const[o,s]=this.pageDimensions,a=.75;if(this.width)r=this.width*o,i=this.height*s;else if(r>a*o||i>a*s){const f=Math.min(a*o/r,a*s/i);r*=f,i*=f}const[c,u]=this.parentDimensions;this.setDims(r*c/o,i*u/s),this._uiManager.enableWaiting(!1);const d=A(this,Gi,document.createElement("canvas"));t.append(d),this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow||(t.hidden=!1),x(this,F1,t8).call(this,r,i),x(this,Wy,yP).call(this),g(this,R1)||(this.parent.addUndoableEditor(this),A(this,R1,!0)),this._reportTelemetry({action:"inserted_image"}),g(this,ed)&&d.setAttribute("aria-label",g(this,ed))},Zy=new WeakSet,gP=function(t,r){var s;const[i,o]=this.parentDimensions;this.width=t/i,this.height=r/o,this.setDims(t,r),(s=this._initialOptions)!=null&&s.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,g(this,Yi)!==null&&clearTimeout(g(this,Yi)),A(this,Yi,setTimeout(()=>{A(this,Yi,null),x(this,F1,t8).call(this,t,r)},200))},V1=new WeakSet,e8=function(t,r){const{width:i,height:o}=g(this,vt);let s=i,a=o,c=g(this,vt);for(;s>2*t||a>2*r;){const u=s,d=a;s>2*t&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2)),a>2*r&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const f=new OffscreenCanvas(s,a);f.getContext("2d").drawImage(c,0,0,u,d,0,0,s,a),c=f.transferToImageBitmap()}return c},F1=new WeakSet,t8=function(t,r){t=Math.ceil(t),r=Math.ceil(r);const i=g(this,Gi);if(!i||i.width===t&&i.height===r)return;i.width=t,i.height=r;const o=g(this,Rr)?g(this,vt):x(this,V1,e8).call(this,t,r),s=i.getContext("2d");s.filter=this._uiManager.hcmFilter,s.drawImage(o,0,0,o.width,o.height,0,0,t,r)},nd=new WeakSet,k5=function(t){if(t){if(g(this,Rr)){const i=this._uiManager.imageManager.getSvgUrl(g(this,rn));if(i)return i}const r=document.createElement("canvas");return{width:r.width,height:r.height}=g(this,vt),r.getContext("2d").drawImage(g(this,vt),0,0),r.toDataURL()}if(g(this,Rr)){const[r,i]=this.pageDimensions,o=Math.round(this.width*r*hs.PDF_TO_CSS_UNITS),s=Math.round(this.height*i*hs.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(o,s);return a.getContext("2d").drawImage(g(this,vt),0,0,g(this,vt).width,g(this,vt).height,0,0,o,s),a.transferToImageBitmap()}return structuredClone(g(this,vt))},Wy=new WeakSet,yP=function(){this._uiManager._signal&&(A(this,Ko,new ResizeObserver(t=>{const r=t[0].contentRect;r.width&&r.height&&x(this,Zy,gP).call(this,r.width,r.height)})),g(this,Ko).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var t;(t=g(this,Ko))==null||t.disconnect(),A(this,Ko,null)},{once:!0}))},pe(j1,"_type","stamp"),pe(j1,"_editorType",Te.STAMP);let Q4=j1;const di=class di{constructor({uiManager:e,pageIndex:t,div:r,accessibilityManager:i,annotationLayer:o,drawLayer:s,textLayer:a,viewport:c,l10n:u}){M(this,qy);M(this,z1);M(this,H1);M(this,U1);M(this,sd);M(this,_0,void 0);M(this,rd,!1);M(this,Qi,null);M(this,ka,null);M(this,Go,null);M(this,hr,new Map);M(this,Sa,!1);M(this,id,!1);M(this,od,!1);M(this,Tn,null);M(this,Yo,null);M(this,ce,void 0);const d=[...g(di,Ma).values()];if(!di._initialized){di._initialized=!0;for(const f of d)f.initialize(u,e)}e.registerEditorTypes(d),A(this,ce,e),this.pageIndex=t,this.div=r,A(this,_0,i),A(this,Qi,o),this.viewport=c,A(this,Tn,a),this.drawLayer=s,g(this,ce).addLayer(this)}get isEmpty(){return g(this,hr).size===0}get isInvisible(){return this.isEmpty&&g(this,ce).getMode()===Te.NONE}updateToolbar(e){g(this,ce).updateToolbar(e)}updateMode(e=g(this,ce).getMode()){switch(x(this,sd,S5).call(this),e){case Te.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Te.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case Te.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;for(const r of g(di,Ma).values())t.toggle(`${r._type}Editing`,e===r._editorType);this.div.hidden=!1}hasTextLayer(e){var t;return e===((t=g(this,Tn))==null?void 0:t.div)}addInkEditorIfNeeded(e){if(g(this,ce).getMode()===Te.INK){if(!e){for(const t of g(this,hr).values())if(t.isEmpty()){t.setInBackground();return}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){g(this,ce).setEditingState(e)}addCommands(e){g(this,ce).addCommands(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){var t;(t=g(this,Qi))==null||t.div.classList.toggle("disabled",!e)}enable(){this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const r of g(this,hr).values())r.enableEditing(),r.show(!0),r.annotationElementId&&(g(this,ce).removeChangedExistingAnnotation(r),e.add(r.annotationElementId));if(!g(this,Qi))return;const t=g(this,Qi).getEditableAnnotations();for(const r of t){if(r.hide(),g(this,ce).isDeletedAnnotationElement(r.data.id)||e.has(r.data.id))continue;const i=this.deserialize(r);i&&(this.addOrRebuild(i),i.enableEditing())}}disable(){var i;A(this,od,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,t=new Map;for(const o of g(this,hr).values())o.disableEditing(),o.annotationElementId&&(o.serialize()===null?(t.set(o.annotationElementId,o),(i=this.getEditableAnnotation(o.annotationElementId))==null||i.show(),o.remove()):e.set(o.annotationElementId,o));if(g(this,Qi)){const o=g(this,Qi).getEditableAnnotations();for(const s of o){const{id:a}=s.data;if(g(this,ce).isDeletedAnnotationElement(a))continue;let c=t.get(a);c?(c.resetAnnotationElement(s),c.show(!1),s.show()):(c=e.get(a),c&&(g(this,ce).addChangedExistingAnnotation(c),c.renderAnnotationElement(s),c.show(!1)),s.show())}}x(this,sd,S5).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:r}=this.div;for(const o of g(di,Ma).values())r.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),A(this,od,!1)}getEditableAnnotation(e){var t;return((t=g(this,Qi))==null?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){g(this,ce).getActive()!==e&&g(this,ce).setActiveEditor(e)}enableTextSelection(){var e;if(this.div.tabIndex=-1,(e=g(this,Tn))!=null&&e.div&&!g(this,Yo)){A(this,Yo,new AbortController);const t=g(this,ce).combinedSignal(g(this,Yo));g(this,Tn).div.addEventListener("pointerdown",x(this,qy,bP).bind(this),{signal:t}),g(this,Tn).div.classList.add("highlighting")}}disableTextSelection(){var e;this.div.tabIndex=0,(e=g(this,Tn))!=null&&e.div&&g(this,Yo)&&(g(this,Yo).abort(),A(this,Yo,null),g(this,Tn).div.classList.remove("highlighting"))}enableClick(){if(g(this,ka))return;A(this,ka,new AbortController);const e=g(this,ce).combinedSignal(g(this,ka));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:e})}disableClick(){var e;(e=g(this,ka))==null||e.abort(),A(this,ka,null)}attach(e){g(this,hr).set(e.id,e);const{annotationElementId:t}=e;t&&g(this,ce).isDeletedAnnotationElement(t)&&g(this,ce).removeDeletedAnnotationElement(e)}detach(e){var t;g(this,hr).delete(e.id),(t=g(this,_0))==null||t.removePointerInTextLayer(e.contentDiv),!g(this,od)&&e.annotationElementId&&g(this,ce).addDeletedAnnotationElement(e)}remove(e){this.detach(e),g(this,ce).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1,g(this,id)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.parent&&e.annotationElementId&&(g(this,ce).addDeletedAnnotationElement(e.annotationElementId),ze.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),(t=e.parent)==null||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(e.parent!==this||!e.isAttachedToDOM){if(this.changeParent(e),g(this,ce).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),g(this,ce).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var r;if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&!g(this,Go)&&(e._focusEventsAllowed=!1,A(this,Go,setTimeout(()=>{A(this,Go,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:g(this,ce)._signal}),t.focus())},0))),e._structTreeParentId=(r=g(this,_0))==null?void 0:r.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return g(this,ce).getId()}combinedSignal(e){return g(this,ce).combinedSignal(e)}canCreateNewEmptyEditor(){var e;return(e=g(this,z1,n8))==null?void 0:e.canCreateNewEmptyEditor()}pasteEditor(e,t){g(this,ce).updateToolbar(e),g(this,ce).updateMode(e);const{offsetX:r,offsetY:i}=x(this,U1,i8).call(this),o=this.getNextId(),s=x(this,H1,r8).call(this,{parent:this,id:o,x:r,y:i,uiManager:g(this,ce),isCentered:!0,...t});s&&this.add(s)}deserialize(e){var t;return((t=g(di,Ma).get(e.annotationType??e.annotationEditorType))==null?void 0:t.deserialize(e,this,g(this,ce)))||null}createAndAddNewEditor(e,t,r={}){const i=this.getNextId(),o=x(this,H1,r8).call(this,{parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:g(this,ce),isCentered:t,...r});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(x(this,U1,i8).call(this),!0)}setSelected(e){g(this,ce).setSelected(e)}toggleSelected(e){g(this,ce).toggleSelected(e)}isSelected(e){return g(this,ce).isSelected(e)}unselect(e){g(this,ce).unselect(e)}pointerup(e){const{isMac:t}=Rn.platform;!(e.button!==0||e.ctrlKey&&t)&&e.target===this.div&&g(this,Sa)&&(A(this,Sa,!1),g(this,rd)?g(this,ce).getMode()!==Te.STAMP?this.createAndAddNewEditor(e,!1):g(this,ce).unselectAll():A(this,rd,!0))}pointerdown(e){if(g(this,ce).getMode()===Te.HIGHLIGHT&&this.enableTextSelection(),g(this,Sa)){A(this,Sa,!1);return}const{isMac:t}=Rn.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div)return;A(this,Sa,!0);const r=g(this,ce).getActive();A(this,rd,!r||r.isEmpty())}findNewParent(e,t,r){const i=g(this,ce).findParent(t,r);return i===null||i===this?!1:(i.changeParent(e),!0)}destroy(){var e,t;((e=g(this,ce).getActive())==null?void 0:e.parent)===this&&(g(this,ce).commitOrRemove(),g(this,ce).setActiveEditor(null)),g(this,Go)&&(clearTimeout(g(this,Go)),A(this,Go,null));for(const r of g(this,hr).values())(t=g(this,_0))==null||t.removePointerInTextLayer(r.contentDiv),r.setParent(null),r.isAttachedToDOM=!1,r.div.remove();this.div=null,g(this,hr).clear(),g(this,ce).removeLayer(this)}render({viewport:e}){this.viewport=e,Ka(this.div,e);for(const t of g(this,ce).getEditors(this.pageIndex))this.add(t),t.rebuild();this.updateMode()}update({viewport:e}){g(this,ce).commitOrRemove(),x(this,sd,S5).call(this);const t=this.viewport.rotation,r=e.rotation;if(this.viewport=e,Ka(this.div,{rotation:r}),t!==r)for(const i of g(this,hr).values())i.rotate(r);this.addInkEditorIfNeeded(!1)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return g(this,ce).viewParameters.realScale}};_0=new WeakMap,rd=new WeakMap,Qi=new WeakMap,ka=new WeakMap,Go=new WeakMap,hr=new WeakMap,Sa=new WeakMap,id=new WeakMap,od=new WeakMap,Tn=new WeakMap,Yo=new WeakMap,ce=new WeakMap,Ma=new WeakMap,qy=new WeakSet,bP=function(e){g(this,ce).unselectAll();const{target:t}=e;if(t===g(this,Tn).div||t.classList.contains("endOfContent")&&g(this,Tn).div.contains(t)){const{isMac:r}=Rn.platform;if(e.button!==0||e.ctrlKey&&r)return;g(this,ce).showAllEditors("highlight",!0,!0),g(this,Tn).div.classList.add("free"),this.toggleDrawing(),ym.startHighlighting(this,g(this,ce).direction==="ltr",e),g(this,Tn).div.addEventListener("pointerup",()=>{g(this,Tn).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:g(this,ce)._signal}),e.preventDefault()}},z1=new WeakSet,n8=function(){return g(di,Ma).get(g(this,ce).getMode())},H1=new WeakSet,r8=function(e){const t=g(this,z1,n8);return t?new t.prototype.constructor(e):null},U1=new WeakSet,i8=function(){const{x:e,y:t,width:r,height:i}=this.div.getBoundingClientRect(),o=Math.max(0,e),s=Math.max(0,t),a=(o+Math.min(window.innerWidth,e+r))/2-e,c=(s+Math.min(window.innerHeight,t+i))/2-t,[u,d]=this.viewport.rotation%180==0?[a,c]:[c,a];return{offsetX:u,offsetY:d}},sd=new WeakSet,S5=function(){A(this,id,!0);for(const e of g(this,hr).values())e.isEmpty()&&e.remove();A(this,id,!1)},pe(di,"_initialized",!1),M(di,Ma,new Map([K4,Y4,Q4,ym].map(e=>[e._editorType,e])));let X4=di;const on=class on{constructor({pageIndex:e}){M(this,q1);M(this,Ky);M(this,Xi,null);M(this,Z1,0);M(this,Pt,new Map);M(this,Ea,new Map);this.pageIndex=e}setParent(e){if(g(this,Xi)){if(g(this,Xi)!==e){if(g(this,Pt).size>0)for(const t of g(this,Pt).values())t.remove(),e.append(t);A(this,Xi,e)}}else A(this,Xi,e)}static get _svgFactory(){return Ie(this,"_svgFactory",new A4)}highlight(e,t,r,i=!1){const o=Gn(this,Z1)._++,s=x(this,q1,s8).call(this,e.box);s.classList.add("highlight"),e.free&&s.classList.add("free");const a=on._svgFactory.createElement("defs");s.append(a);const c=on._svgFactory.createElement("path");a.append(c);const u=`path_p${this.pageIndex}_${o}`;c.setAttribute("id",u),c.setAttribute("d",e.toSVGPath()),i&&g(this,Ea).set(o,c);const d=x(this,Ky,wP).call(this,a,u),f=on._svgFactory.createElement("use");return s.append(f),s.setAttribute("fill",t),s.setAttribute("fill-opacity",r),f.setAttribute("href",`#${u}`),g(this,Pt).set(o,s),{id:o,clipPathId:`url(#${d})`}}highlightOutline(e){const t=Gn(this,Z1)._++,r=x(this,q1,s8).call(this,e.box);r.classList.add("highlightOutline");const i=on._svgFactory.createElement("defs");r.append(i);const o=on._svgFactory.createElement("path");i.append(o);const s=`path_p${this.pageIndex}_${t}`;o.setAttribute("id",s),o.setAttribute("d",e.toSVGPath()),o.setAttribute("vector-effect","non-scaling-stroke");let a;if(e.free){r.classList.add("free");const d=on._svgFactory.createElement("mask");i.append(d),a=`mask_p${this.pageIndex}_${t}`,d.setAttribute("id",a),d.setAttribute("maskUnits","objectBoundingBox");const f=on._svgFactory.createElement("rect");d.append(f),f.setAttribute("width","1"),f.setAttribute("height","1"),f.setAttribute("fill","white");const h=on._svgFactory.createElement("use");d.append(h),h.setAttribute("href",`#${s}`),h.setAttribute("stroke","none"),h.setAttribute("fill","black"),h.setAttribute("fill-rule","nonzero"),h.classList.add("mask")}const c=on._svgFactory.createElement("use");r.append(c),c.setAttribute("href",`#${s}`),a&&c.setAttribute("mask",`url(#${a})`);const u=c.cloneNode();return r.append(u),c.classList.add("mainOutline"),u.classList.add("secondaryOutline"),g(this,Pt).set(t,r),t}finalizeLine(e,t){const r=g(this,Ea).get(e);g(this,Ea).delete(e),this.updateBox(e,t.box),r.setAttribute("d",t.toSVGPath())}updateLine(e,t){g(this,Pt).get(e).firstChild.firstChild.setAttribute("d",t.toSVGPath())}removeFreeHighlight(e){this.remove(e),g(this,Ea).delete(e)}updatePath(e,t){g(this,Ea).get(e).setAttribute("d",t.toSVGPath())}updateBox(e,t){var r;x(r=on,W1,o8).call(r,g(this,Pt).get(e),t)}show(e,t){g(this,Pt).get(e).classList.toggle("hidden",!t)}rotate(e,t){g(this,Pt).get(e).setAttribute("data-main-rotation",t)}changeColor(e,t){g(this,Pt).get(e).setAttribute("fill",t)}changeOpacity(e,t){g(this,Pt).get(e).setAttribute("fill-opacity",t)}addClass(e,t){g(this,Pt).get(e).classList.add(t)}removeClass(e,t){g(this,Pt).get(e).classList.remove(t)}remove(e){g(this,Xi)!==null&&(g(this,Pt).get(e).remove(),g(this,Pt).delete(e))}destroy(){A(this,Xi,null);for(const e of g(this,Pt).values())e.remove();g(this,Pt).clear()}};Xi=new WeakMap,Z1=new WeakMap,Pt=new WeakMap,Ea=new WeakMap,W1=new WeakSet,o8=function(e,{x:t=0,y:r=0,width:i=1,height:o=1}={}){const{style:s}=e;s.top=100*r+"%",s.left=100*t+"%",s.width=100*i+"%",s.height=100*o+"%"},q1=new WeakSet,s8=function(e){var r;const t=on._svgFactory.create(1,1,!0);return g(this,Xi).append(t),t.setAttribute("aria-hidden",!0),x(r=on,W1,o8).call(r,t,e),t},Ky=new WeakSet,wP=function(e,t){const r=on._svgFactory.createElement("clipPath");e.append(r);const i=`clip_${t}`;r.setAttribute("id",i),r.setAttribute("clipPathUnits","objectBoundingBox");const o=on._svgFactory.createElement("use");return r.append(o),o.setAttribute("href",`#${t}`),o.classList.add("clip"),i},M(on,W1);let J4=on;ye.AbortException,ye.AnnotationEditorLayer,ye.AnnotationEditorParamsType,ye.AnnotationEditorType,ye.AnnotationEditorUIManager,ye.AnnotationLayer,ye.AnnotationMode,ye.CMapCompressionType,ye.ColorPicker,ye.DOMSVGFactory,ye.DrawLayer,ye.FeatureTest;var uW=ye.GlobalWorkerOptions;ye.ImageKind,ye.InvalidPDFException,ye.MissingPDFException,ye.OPS,ye.PDFDataRangeTransport,ye.PDFDateString,ye.PDFWorker,ye.PasswordResponses,ye.PermissionFlag,ye.PixelsPerInch,ye.RenderingCancelledException,ye.TextLayer,ye.UnexpectedResponseException,ye.Util,ye.VerbosityLevel,ye.XfaLayer,ye.build,ye.createValidAbsoluteUrl,ye.fetchData;var dW=ye.getDocument;ye.getFilenameFromUrl,ye.getPdfFilenameFromUrl,ye.getXfaPageViewport,ye.isDataScheme,ye.isPdfFile,ye.noContextMenu,ye.normalizeUnicode,ye.setLayerDimensions,ye.shadow;var fW=ye.version;const hW=l.defineComponent({name:"QModal",components:{QIcon:z0},props:{id:{type:String,default:"q-modal"},closeButtonClass:{type:String,default:""},containerClass:{type:String,default:"h-fit min-h-fit"},dismissible:{type:Boolean,default:!0},dismissibleOverlay:{type:Boolean,default:!0},dismissText:{type:String,default:""},overlay:{type:String,default:"white-transparent"},size:{type:String,default:"md"},showCancelLink:{type:Boolean,default:!1},hasBuildingBg:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){l.provide("size",n.size);const t=()=>{n.dismissible&&e("close")};return l.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),l.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{onCloseModal:t}}});function pW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{ref:"currentModal",class:l.normalizeClass(["q-modal",n.overlay]),onKeydown:e[3]||(e[3]=l.withKeys((...a)=>n.onCloseModal&&n.onCloseModal(...a),["escape"]))},[l.createElementVNode("div",l.mergeProps({class:"overlay"},{[l.toHandlerKey(n.dismissibleOverlay&&"click")]:e[0]||(e[0]=(...a)=>n.onCloseModal&&n.onCloseModal(...a))}),null,16),l.createElementVNode("div",{class:l.normalizeClass(["modal-container flex flex-col relative","modal-"+n.size,n.containerClass,{"building-background":n.hasBuildingBg}])},[n.dismissible?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-close-button",n.closeButtonClass]),onClick:e[1]||(e[1]=(...a)=>n.onCloseModal&&n.onCloseModal(...a))},[l.createVNode(s,{icon:"close",type:"line",color:"gray-40"})],2)):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0),n.showCancelLink?(l.openBlock(),l.createElementBlock("a",{key:1,class:"modal-close-link",href:"#",onClick:e[2]||(e[2]=l.withModifiers(a=>n.$emit("close"),["prevent"]))},l.toDisplayString(n.$t("HC_CANCEL")),1)):l.createCommentVNode("",!0)],2)],34)}const e6=me(hW,[["render",pW],["__scopeId","data-v-8867a052"]]),mW=l.defineComponent({name:"QErrorModal",components:{QModal:e6},props:{toggle:{type:Boolean,default:!1,required:!0}},emits:["update:toggle"],setup(n,{emit:e}){return{toggleModal:l.computed({get:()=>n.toggle,set:r=>{e("update:toggle",r)}}),mq:Ln}}}),gW={class:"flex flex-col gap-2 text-center"},yW={class:"text-lg font-bold text-inkwell-30 leading-6"},bW={class:"text-inkwell-0 mb-2 md:mb-6"};function wW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("q-button"),c=l.resolveComponent("q-modal-content"),u=l.resolveComponent("q-modal");return l.openBlock(),l.createBlock(l.Transition,{name:n.mq.md?"fade":"slide-up"},{default:l.withCtx(()=>[n.toggleModal?(l.openBlock(),l.createBlock(u,{key:0,id:"error-modal",dismissible:!1,overlay:n.mq.md?"white-transparent":"black-transparent",class:"!z-[170]","footer-class":"mt-2 md:mt-6",onClose:e[1]||(e[1]=d=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createVNode(c,null,{body:l.withCtx(()=>[l.createElementVNode("div",gW,[l.createVNode(s,{icon:"exclamation-circle",type:"outline",size:"xl",color:"red-30",class:"shrink-0 self-center mb-8"}),l.createElementVNode("h2",yW,[l.renderSlot(n.$slots,"headline",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_ERROR")),1)],!0)]),l.createElementVNode("p",bW,[l.renderSlot(n.$slots,"subtext",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_SORRY_UNEXPECTED_EXIT_MODAL")),1)],!0)])])]),footer:l.withCtx(()=>[l.createVNode(a,{class:l.normalizeClass([n.mq.md?"mx-3":"w-full"]),size:"lg",status:"secondary",onClick:e[0]||(e[0]=d=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_EXIT")),1)]),_:1},8,["class"])]),_:3})]),_:3},8,["overlay"])):l.createCommentVNode("",!0)]),_:3},8,["name"])}const aE=me(mW,[["render",wW],["__scopeId","data-v-72f5c09d"]]);uW.workerSrc=`https://cdn.jsdelivr.net/npm/pdfjs-dist@${fW}/legacy/build/pdf.worker.min.mjs`;const vW=l.defineComponent({name:"PdfViewer",components:{QErrorModal:aE},props:{url:{type:String,required:!0}},emits:["pdf-error"],setup(n,{emit:e}){let t=null;const r=2,i=16,o=l.ref([]),s=l.ref(!0),a=l.ref(!1),c=l.ref(0),u=async()=>{try{if(t=await dW(n.url).promise,!t)throw new Error("pdfDoc is null or undefined");c.value=t.numPages,s.value=!1,await l.nextTick(),o.value=Array.from(document.querySelectorAll(".pdf-pages canvas")),await d()}catch(h){a.value=!0,console.log(h),s.value=!1,e("pdf-error",!0)}},d=async()=>{try{for(let h=1;h<=c.value;h++)await f(h)}catch(h){console.log(h),a.value=!0,e("pdf-error",!0)}},f=async h=>{try{const p=await(t==null?void 0:t.getPage(h));if(!p)throw new Error(`Page ${h} does not exist in the PDF document`);const y=p.getViewport({scale:1}),b=o.value[h-1];if(!b)throw new Error(`Canvas for page ${h} does not exist`);const w=b.getContext("2d");if(!w)throw new Error(`Context for page ${h} does not exist`);b.height=y==null?void 0:y.height,b.width=y==null?void 0:y.width;const v={canvasContext:w,viewport:y};await(p==null?void 0:p.render(v))}catch(p){console.log(p),a.value=!0,e("pdf-error",!0)}};return l.onMounted(()=>{u()}),{skeletonColumns:r,skeletonRows:i,canvasRefs:o,loadingMeta:s,showErrorModal:a,totalPages:c,loadPDF:u,renderPage:f}}}),CW={class:"q-pdf-viewer"},kW={key:0},SW={key:1,class:"pdf-pages"};function MW(n,e,t,r,i,o){const s=l.resolveComponent("q-error-modal");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",CW,[n.loadingMeta?(l.openBlock(),l.createElementBlock("div",kW,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.skeletonRows,a=>(l.openBlock(),l.createElementBlock("div",{key:a,class:"flex items-center p-4"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.skeletonColumns,c=>(l.openBlock(),l.createElementBlock("div",{key:c,class:l.normalizeClass(["h-[1.5rem] border-white w-11/12",(a-1)%2?"bg-gray-10":"bg-gray-30",(a-1)%4||c===1?"animate-shimmer":"!hidden"])},null,2))),128))]))),128))])):(l.openBlock(),l.createElementBlock("div",SW,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.totalPages,a=>(l.openBlock(),l.createElementBlock("canvas",{key:a,class:"w-full"}))),128))]))]),n.showErrorModal?(l.openBlock(),l.createBlock(s,{key:0,toggle:n.showErrorModal,"onUpdate:toggle":[e[0]||(e[0]=a=>n.showErrorModal=a),e[1]||(e[1]=a=>n.showErrorModal=!1)]},null,8,["toggle"])):l.createCommentVNode("",!0)],64)}const lE=me(vW,[["render",MW],["__scopeId","data-v-da5da0f5"]]),EW=l.defineComponent({name:"QTooltip",props:{id:{type:String,default:"tooltip"},color:{type:String,default:"inkwell-30"},disabled:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!0},position:{type:String,default:"bottom"},relative:{type:Boolean,default:!1},tooltipClasses:{type:[String,Array,Object],default:""}}}),AW=["aria-describedby"],TW=["id"];function xW(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:"tooltip-container","aria-describedby":n.id},[l.renderSlot(n.$slots,"trigger",{},void 0,!0),l.createElementVNode("div",{id:n.id,class:l.normalizeClass(["tooltip",n.color?"bg-"+n.color+" border-"+n.color:"",n.position,n.noWrap?"no-wrap":"",n.relative?"relative":"",n.disabled?"!hidden":"",n.tooltipClasses]),role:"tooltip"},[l.renderSlot(n.$slots,"content",{},void 0,!0)],10,TW)],8,AW)}const t6=me(EW,[["render",xW],["__scopeId","data-v-ca6ae8fe"]]),n6=()=>{const n=l.ref(""),e=navigator.userAgent;return e.match("/Android|webOS|iPhone|iPod|BlackBerry/i")?n.value="mobile":e.match("/iPad|Tablet/i")||navigator.maxTouchPoints&&navigator.maxTouchPoints>=0&&!window.matchMedia("(pointer:fine)").matches?n.value="tablet":n.value="desktop",{deviceType:n}},IW=l.defineComponent({name:"ImageGallery",components:{Galleria:oM,QBadge:Da,QBottomSheet:Q9,QMenu:m4,QPdfViewer:lE,QTooltip:t6},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showOnHover:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!0},showRemove:{type:[Boolean,Number],default:!1},baseZIndex:{type:Number,default:1e3},wrap:{type:Boolean,default:!0},processing:{type:Boolean,default:!1}},emits:["update:model-value","update:activeIndex","click:file"],setup(n,{emit:e}){const{t}=ao(),{deviceType:r}=n6(),i=[{text:t("HC_CANCEL")}],o=l.ref(null),s=l.computed(()=>{var K;return(K=o.value)==null?void 0:K.offsetWidth}),a=l.ref(null),c=l.ref([]),u=l.ref(!1),d=l.ref(null),f=l.ref("0"),h=l.ref(1),p=l.ref(Ln.md?1:.9),m=l.ref(0),y=l.ref(null),b=l.ref(),w=l.ref(!1),v=l.ref(!1),k=l.computed(()=>{if(y.value)return y.value&&"original"in y.value?{name:y.value.original.name,url:y.value.original.url,type:y.value.mimetype,extension:R(y.value.original.url)}:{name:y.value.name,url:URL.createObjectURL(y.value),type:y.value.type,extension:R(y.value.name)}}),C=l.computed(()=>[`z-[${n.baseZIndex+1}]`]),T=l.computed(()=>n.files.filter(K=>K.type.startsWith("image")&&!K.type.includes("tif"))),S=l.computed(()=>["rounded-lg relative mx-auto object-cover grow-1 max-h-[74vh]",{animated:!N}]),E=l.computed(()=>["flex items-center gap-3",n.wrap?"flex-wrap":"flex-nowrap overflow-x-auto shrink-0",{"flex-nowrap overflow-x-auto":r.value!=="desktop"}]),O=l.computed(()=>[{text:t("HC_DELETE_ATTACHMENT"),classes:"!text-red-20",event:U}]),I=K=>{const H=K instanceof File?URL.createObjectURL(K):K.original.url;r.value==="desktop"?window.open(H,"_blank"):window.open(H,"_self")},P=K=>{r.value==="desktop"?I(K):(y.value=K,v.value=!0)},D=K=>{K.event(),u.value=!1},B=(K,H)=>{var F;const j=((F=H.type)==null?void 0:F.includes("image"))&&!H.type.includes("tif");!u.value&&j?V(K,H):!u.value&&!j&&P(H)},V=(K,H)=>{const j=G=>"original"in G&&"original"in H?G.original.url===(H==null?void 0:H.original.url):H instanceof File?G.name===(H==null?void 0:H.name):!1,F=T.value.findIndex(j);m.value=F!==-1?F:K,w.value=!0},U=(K=null)=>{u.value=!1,e("update:model-value",K||d.value)},L=K=>{const{keyCode:H}=K;if(w.value)switch(H){case 37:m.value=m.value?m.value-1:T.value.length-1,e("update:activeIndex",m.value);break;case 39:m.value=m.value<T.value.length-1?m.value+1:0,e("update:activeIndex",m.value);break;case 27:w.value=!1;break}},{isSwiping:N,lengthX:$}=iL(a,{passive:!1,onSwipe(){const K=Math.abs($.value);s.value&&(h.value=1.1-K/s.value,f.value=$.value<0?`${K/4}px`:`-${K/4}px`)},onSwipeEnd(){const K=m.value<=0,H=m.value>=T.value.length-1,j=Math.abs($.value);s.value&&j/s.value>=.5?($.value<0?m.value=K?T.value.length-1:m.value-1:m.value=H?0:m.value+1,f.value="0",h.value=1):(f.value="0",h.value=1)}}),R=K=>K.substring(K.lastIndexOf(".")),q=(K,H)=>{K.preventDefault(),d.value=n.files[H],u.value=!0},re=()=>{u.value=!1,d.value=null},ue=()=>{r.value!=="desktop"&&c.value.forEach(K=>{X_(K,H=>{const j=c.value.indexOf(K);q(H,j)},{modifiers:{prevent:!0}})})};return l.onMounted(()=>{window.addEventListener("keyup",L),ue()}),l.onUpdated(()=>{ue()}),{menuActions:i,linkActions:O,deviceType:r,container:o,containerWidth:s,featuredPhoto:a,longPressRef:c,longPressedHook:u,isSwiping:N,lengthX:$,left:f,opacity:h,scale:p,showCarousel:w,showFileViewer:v,active:m,activeAttachment:y,hoveredIndex:b,closeIconClasses:C,itemClasses:S,images:T,normalizedAttachment:k,thumbnailContainerClasses:E,downloadDocument:I,getExtension:R,onAttachmentClick:P,onClickMenuLink:D,onClickThumbnail:B,onOpenCarousel:V,onRemoveFile:U,onKeyboardNavigation:L,onLongPressCallbackHook:q,resetHook:re,mq:Ln}}}),OW=n=>(l.pushScopeId("data-v-ba426870"),n=n(),l.popScopeId(),n),DW={class:"q-image-gallery flex",ref:"container"},NW={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},PW=["src","alt"],_W=["src","alt"],LW=["onMouseover","onClick"],BW=["src","alt"],RW={key:1,class:"bg-gray-00 cursor-pointer p-3 h-16 max-w-[14rem] rounded-lg border border-gray-20 flex items-center"},$W={class:"grow text-ellipsis overflow-hidden"},VW={class:"text-inkwell-30 bold leading-normal text-nowrap text-ellipsis text-sm overflow-hidden -mt-1"},FW={class:"uppercase text-xxs"},jW={key:2,class:"image-overlay absolute top-0 left-0 w-full h-full cursor-pointer"},zW={key:0,class:"absolute top-0 left-0 z-1 w-full h-full cursor-pointer bg-black/50 rounded-lg flex items-center justify-center"},HW=[OW(()=>l.createElementVNode("svg",{class:"animate-spin fill-white",width:"20",height:"20",viewBox:"0 0 24 24"},[l.createElementVNode("path",{d:"M2 12a1 1 0 0 1 2 0 8 8 0 1 0 8-8 1 1 0 0 1 0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"})],-1))],UW={key:1,width:"100%",height:"auto",controls:"",class:"bg-black"},ZW=["src"],WW={class:"flex items-center flex-col p-12"},qW=["src"],KW=["data","type"],GW={class:"flex items-center flex-col p-12"};function YW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("Galleria"),c=l.resolveComponent("q-badge"),u=l.resolveComponent("q-tooltip"),d=l.resolveComponent("q-menu"),f=l.resolveComponent("q-pdf-viewer"),h=l.resolveComponent("q-bottom-sheet");return l.openBlock(),l.createElementBlock("div",DW,[l.createVNode(a,{activeIndex:n.active,"onUpdate:activeIndex":e[0]||(e[0]=p=>n.active=p),visible:n.showCarousel,"onUpdate:visible":e[1]||(e[1]=p=>n.showCarousel=p),value:n.images,numVisible:n.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:n.mq.md,showThumbnailNavigators:!0,showThumbnails:n.showThumbnails&&n.mq.md,showIndicators:!n.mq.md,containerStyle:[{height:"100vh"}],"base-z-index":n.baseZIndex},{closeicon:l.withCtx(()=>[l.createVNode(s,{class:l.normalizeClass(n.closeIconClasses),icon:"times-circle",type:"outline",size:"lg",color:"white"},null,8,["class"])]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",NW,[l.createElementVNode("img",{src:(p==null?void 0:p.itemImageSrc)||(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p==null?void 0:p.alt,class:l.normalizeClass(n.itemClasses),style:l.normalizeStyle([{left:n.left,opacity:n.opacity},`transform: scale(${n.scale})`])},null,14,PW)],512)]),thumbnail:l.withCtx(({item:p})=>[l.createElementVNode("img",{src:(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,_W)]),previousitemicon:l.withCtx(()=>[l.createVNode(s,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:l.withCtx(()=>[l.createVNode(s,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:l.withCtx(()=>[n.images.length>n.thumbnailsVisible?(l.openBlock(),l.createBlock(s,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):l.createCommentVNode("",!0)]),nextthumbnailicon:l.withCtx(()=>[n.images.length>n.thumbnailsVisible?(l.openBlock(),l.createBlock(s,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):l.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators","base-z-index"]),n.files?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.thumbnailContainerClasses)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.files,(p,m)=>{var y;return l.openBlock(),l.createElementBlock("div",{ref_for:!0,ref:"longPressRef",key:p.name||((y=p.original)==null?void 0:y.name)||m,class:l.normalizeClass(["p-0 relative rounded-lg",{"shrink-0":n.deviceType!=="desktop"}]),onMouseover:b=>n.hoveredIndex=m,onMouseleave:e[2]||(e[2]=b=>n.hoveredIndex=null),onClick:b=>n.onClickThumbnail(m,p)},[l.createVNode(u,{position:"top"},{trigger:l.withCtx(()=>[p.type&&p.type.includes("image")&&!p.type.includes("tif")?(l.openBlock(),l.createElementBlock("img",{key:0,src:(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p==null?void 0:p.alt,class:"rounded-lg cursor-pointer w-16 h-16 object-cover bg-gray-0 border-gray-20 border"},null,8,BW)):(l.openBlock(),l.createElementBlock("div",RW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"white",class:"mr-3 shrink-0 p-2 bg-green-20 rounded-lg h-full"}),l.createElementVNode("div",$W,[l.createElementVNode("div",VW,l.toDisplayString(p.name||p.original.name),1),l.createElementVNode("div",FW,l.toDisplayString((p.name||p.original.name).match(/([^.]+$)/)[0]),1)])])),n.deviceType!=="desktop"?(l.openBlock(),l.createElementBlock("div",jW)):l.createCommentVNode("",!0),n.showRemove&&n.showOnHover&&n.hoveredIndex===m&&n.deviceType==="desktop"&&!n.processing?(l.openBlock(),l.createBlock(c,{key:3,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute -top-2 -right-2 shadow-solid z-10",onClick:l.withModifiers(b=>n.onRemoveFile(p),["stop"])},{icon:l.withCtx(()=>[l.createVNode(s,{icon:"close",size:"xs",type:"line",color:"white"})]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)]),content:l.withCtx(()=>{var b;return[l.createTextVNode(l.toDisplayString(p.name||((b=p.original)==null?void 0:b.name)),1)]}),_:2},1024),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.processing?(l.openBlock(),l.createElementBlock("div",zW,HW)):l.createCommentVNode("",!0)]),_:1})],42,LW)}),128)),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.longPressedHook?(l.openBlock(),l.createBlock(d,{key:0,modelValue:n.longPressedHook,"onUpdate:modelValue":e[3]||(e[3]=p=>n.longPressedHook=p),actions:n.menuActions,links:n.linkActions,"links-background":"light-gray","onClick:link":n.onClickMenuLink,"onClick:action":e[4]||(e[4]=p=>n.longPressedHook=!1)},null,8,["modelValue","actions","links","onClick:link"])):l.createCommentVNode("",!0)]),_:1})],2)):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:"slide-up-fade"},{default:l.withCtx(()=>[n.showFileViewer&&n.normalizedAttachment&&n.activeAttachment?(l.openBlock(),l.createBlock(h,{key:0,modelValue:n.showFileViewer,"onUpdate:modelValue":e[6]||(e[6]=p=>n.showFileViewer=p),"show-close-button":!1,"content-class":"p-0","header-class":"border-b border-solid border-gray-20","title-class":"min-w-0 truncate"},{header:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.normalizedAttachment.name),1)]),headerAction:l.withCtx(()=>[!n.normalizedAttachment.type.includes("video")&&n.normalizedAttachment.type!=="audio/mpeg"&&n.normalizedAttachment.type!=="application/pdf"?(l.openBlock(),l.createBlock(s,{key:0,icon:"arrow-to-bottom",type:"line",size:"md",color:"inkwell-40",class:"shrink-0 cursor-pointer",onClick:e[5]||(e[5]=p=>n.downloadDocument(n.activeAttachment))})):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[n.normalizedAttachment.type==="application/pdf"?(l.openBlock(),l.createBlock(f,{key:0,url:n.normalizedAttachment.url},null,8,["url"])):n.normalizedAttachment.type.includes("video")?(l.openBlock(),l.createElementBlock("video",UW,[l.createElementVNode("source",{src:n.normalizedAttachment.url},null,8,ZW),l.createElementVNode("div",WW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"inkwell-30"}),l.createTextVNode(" "+l.toDisplayString(n.normalizedAttachment.extension),1)])])):n.normalizedAttachment.type==="audio/mpeg"?(l.openBlock(),l.createElementBlock("audio",{key:2,controls:"",src:n.normalizedAttachment.url,class:"mx-auto my-6"},null,8,qW)):(l.openBlock(),l.createElementBlock("object",{key:3,data:n.normalizedAttachment.url,type:n.normalizedAttachment.type,class:"w-full h-auto"},[l.createElementVNode("div",GW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"inkwell-30"}),l.createTextVNode(" "+l.toDisplayString(n.normalizedAttachment.extension),1)])],8,KW))]),_:1},8,["modelValue"])):l.createCommentVNode("",!0)]),_:1})],512)}const r6=me(IW,[["render",YW],["__scopeId","data-v-ba426870"]]),QW=l.defineComponent({name:"QWarningModal",components:{QModal:e6},props:{toggle:{type:Boolean,default:!1,required:!0},action:{type:Function,default:()=>{}},processing:{type:Boolean,default:!1}},emits:["update:toggle","update:action"],setup(n,{emit:e}){return{toggleModal:l.computed({get:()=>n.toggle,set:r=>{e("update:toggle",r)}}),mq:Ln}}}),XW={key:0,class:"flex flex-col gap-2 text-center"},JW={class:"text-lg font-bold text-inkwell-30 leading-6"},eq={class:"text-inkwell-0 mb-6"},tq={key:1,class:"flex flex-col gap-2 text-center"},nq={class:"text-[1.25rem] font-bold text-center text-inkwell-30"},rq={class:"text-sm text-center text-inkwell-0 mb-2"},iq={class:"flex flex-col items-center justify-center gap-3 md:gap-2"};function oq(n,e,t,r,i,o){const s=l.resolveComponent("q-button"),a=l.resolveComponent("q-modal-content"),c=l.resolveComponent("q-modal");return l.openBlock(),l.createBlock(l.Transition,{name:n.mq.md?"fade":"slide-up"},{default:l.withCtx(()=>[n.toggleModal?(l.openBlock(),l.createBlock(c,{key:0,class:"warning-modal !z-[170]",dismissible:!1,overlay:n.mq.md?"white-transparent":"black-transparent","container-class":"h-fit min-h-fit","footer-class":"mt-2 md:mt-6",onClose:e[1]||(e[1]=u=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createVNode(a,null,{body:l.withCtx(()=>[n.mq.md?(l.openBlock(),l.createElementBlock("div",XW,[l.createElementVNode("h2",JW,[l.renderSlot(n.$slots,"desktopHeader",{},void 0,!0)]),l.createElementVNode("p",eq,[l.renderSlot(n.$slots,"desktopMessage",{},void 0,!0)])])):(l.openBlock(),l.createElementBlock("div",tq,[l.createElementVNode("h2",nq,[l.renderSlot(n.$slots,"mobileHeader",{},void 0,!0)]),l.createElementVNode("p",rq,[l.renderSlot(n.$slots,"mobileMessage",{},void 0,!0)])]))]),footer:l.withCtx(()=>[l.createElementVNode("div",iq,[l.createVNode(s,{disabled:n.processing,loading:n.processing,class:l.normalizeClass([n.mq.md?"mx-2":"w-full"]),size:"lg",status:"danger",onClick:n.action},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"buttonText",{},void 0,!0)]),_:3},8,["disabled","loading","class","onClick"]),l.createVNode(s,{class:l.normalizeClass([n.mq.md?"mx-2":"w-full"]),disabled:n.processing,status:n.mq.md?"link-secondary":"secondary",size:"lg",onClick:e[0]||(e[0]=u=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"cancelText",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_CANCEL")),1)],!0)]),_:3},8,["class","disabled","status"])])]),_:3})]),_:3},8,["overlay"])):l.createCommentVNode("",!0)]),_:3},8,["name"])}const cE=me(QW,[["render",oq],["__scopeId","data-v-a8bfc627"]]),sq=l.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(n,{emit:e}){const t=l.ref(!1),r=l.ref(""),i=l.ref(null),o=l.computed(()=>t.value===!0&&n.reposition===!0?a(n.align):n.align),s=l.computed(()=>t.value===!0&&n.reposition===!0?c(n.position):n.position),a=b=>{if(!i.value||u(i.value.children[1]))return b;const w=i.value.children[0].getBoundingClientRect(),v=i.value.children[1].getBoundingClientRect();if(b==="left"||b==="right"||b==="center"){const k=w.left;return window.innerWidth-k<v.width?"right":"left"}else{const k=w.top;return window.innerHeight-k<v.height?"bottom":"top"}},c=b=>{if(!i.value||u(i.value.children[1]))return b;const w=i.value.children[0].getBoundingClientRect(),v=i.value.children[1].getBoundingClientRect();if(b==="top"||b==="bottom"){const k=w.top;return window.innerHeight-k<v.height?"top":"bottom"}else{const k=w.left;return window.innerWidth-k<v.width?"left":"right"}},u=b=>{const w=b.getBoundingClientRect();return w?w.top>=0&&w.left>=0&&w.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&w.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(n.trigger==="click"||n.trigger==="both")&&e("update:modelValue",!n.modelValue)},f=()=>{n.trigger!=="click"&&e("update:modelValue",!1)},h=()=>{n.trigger!=="click"&&e("update:modelValue",!0)},p=()=>{var w;const b=(w=i.value)==null?void 0:w.children[0];if(b){const v=b.clientWidth,k=b.clientHeight;switch(o.value){case"left":r.value=`margin-left: ${v/2-10}px;`;break;case"right":r.value=`margin-right: ${v/2-10}px;`;break;case"top":r.value=`margin-top: ${k/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${k/2-10}px;`;break}}};V5(i,()=>{e("update:modelValue",!1)});function m(){t.value=!1}function y(){var b;t.value=!0,!u((b=i.value)==null?void 0:b.children[1])&&n.reposition===!0&&p()}return{entered:t,offsetStyle:r,popover:i,alignment:o,positioning:s,getAlignment:a,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:V5,onEnter:y,onMouseLeave:f,onMouseOver:h}}});function aq(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...s)=>n.onMouseLeave&&n.onMouseLeave(...s))},[l.renderSlot(n.$slots,"trigger",{onClick:n.onClick,onMouseOver:n.onMouseOver},void 0,!0),l.createVNode(l.Transition,{name:"fade",onEnter:n.onEnter,onAfterLeave:n.onAfterLeave},{default:l.withCtx(()=>[n.modelValue?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["popover","popover-"+n.alignment,"popover-"+n.size,"popover-on-"+n.positioning,{"has-caret":n.hasCaret}]),style:l.normalizeStyle(n.offsetStyle)},[l.renderSlot(n.$slots,"content",{},void 0,!0)],6)):l.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const uE=me(sq,[["render",aq],["__scopeId","data-v-86f2575d"]]);function Qt(n){this.content=n}Qt.prototype={constructor:Qt,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),o=r.content.slice();return i==-1?o.push(t||n,e):(o[i+1]=e,t&&(o[i]=t)),new Qt(o)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Qt(t)},addToStart:function(n,e){return new Qt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new Qt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),o=r.find(n);return i.splice(o==-1?i.length:o,0,e,t),new Qt(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=Qt.from(n),n.size?new Qt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=Qt.from(n),n.size?new Qt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=Qt.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},Qt.from=function(n){if(n instanceof Qt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Qt(e)};function dE(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),o=e.child(r);if(i==o){t+=i.nodeSize;continue}if(!i.sameMarkup(o))return t;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)t++;return t}if(i.content.size||o.content.size){let s=dE(i.content,o.content,t+1);if(s!=null)return s}t+=i.nodeSize}}function fE(n,e,t,r){for(let i=n.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:t,b:r};let s=n.child(--i),a=e.child(--o),c=s.nodeSize;if(s==a){t-=c,r-=c;continue}if(!s.sameMarkup(a))return{a:t,b:r};if(s.isText&&s.text!=a.text){let u=0,d=Math.min(s.text.length,a.text.length);for(;u<d&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(s.content.size||a.content.size){let u=fE(s.content,a.content,t-1,r-1);if(u)return u}t-=c,r-=c}}class Q{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,o){for(let s=0,a=0;a<t;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&r(c,i+a,o||null,s)!==!1&&c.content.size){let d=a+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,t-d),r,i+d)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let o="",s=!0;return this.nodesBetween(e,t,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,t-c):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=u},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new Q(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let o=0,s=0;s<t;o++){let a=this.content[o],c=s+a.nodeSize;c>e&&((s<e||c>t)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),r.push(a),i+=a.nodeSize),s=c}return new Q(r,i)}cutByIndex(e,t){return e==t?Q.empty:e==0&&t==this.content.length?this:new Q(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new Q(i,o)}addToStart(e){return new Q([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Q(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return dE(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return fE(this,e,t,r)}findIndex(e,t=-1){if(e==0)return bm(0,e);if(e==this.size)return bm(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),s=i+o.nodeSize;if(s>=e)return s==e||t>0?bm(r+1,s):bm(r,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return Q.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Q(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Q.empty;let t,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(t||(t=e.slice(0,i)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new Q(t||e,r)}static from(e){if(!e)return Q.empty;if(e instanceof Q)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Q([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Q.empty=new Q([],0);const i6={index:0,offset:0};function bm(n,e){return i6.index=n,i6.offset=e,i6}function wm(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!wm(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!wm(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let We=class a8{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wm(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return a8.none;if(e instanceof a8)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};We.none=[];class vm extends Error{}class ne{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=pE(this.content,e+this.openStart,t);return r&&new ne(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ne(hE(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return ne.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ne(Q.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new ne(e,r,i)}}ne.empty=new ne(Q.empty,0,0);function hE(n,e,t){let{index:r,offset:i}=n.findIndex(e),o=n.maybeChild(r),{index:s,offset:a}=n.findIndex(t);if(i==e||o.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,o.copy(hE(o.content,e-i-1,t-i-1)))}function pE(n,e,t,r){let{index:i,offset:o}=n.findIndex(e),s=n.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=pE(s.content,e-o-1,t);return a&&n.replaceChild(i,s.copy(a))}function lq(n,e,t){if(t.openStart>n.depth)throw new vm("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new vm("Inconsistent open depths");return mE(n,e,t,0)}function mE(n,e,t,r){let i=n.index(r),o=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let s=mE(n,e,t,r+1);return o.copy(o.content.replaceChild(i,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,a=s.content;return el(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=cq(t,n);return el(o,yE(n,s,a,e,r))}else return el(o,Cm(n,e,r))}function gE(n,e){if(!e.type.compatibleContent(n.type))throw new vm("Cannot join "+e.type.name+" onto "+n.type.name)}function o6(n,e,t){let r=n.node(t);return gE(r,e.node(t)),r}function Ja(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function w2(n,e,t,r){let i=(e||n).node(t),o=0,s=e?e.index(t):i.childCount;n&&(o=n.index(t),n.depth>t?o++:n.textOffset&&(Ja(n.nodeAfter,r),o++));for(let a=o;a<s;a++)Ja(i.child(a),r);e&&e.depth==t&&e.textOffset&&Ja(e.nodeBefore,r)}function el(n,e){return n.type.checkContent(e),n.copy(e)}function yE(n,e,t,r,i){let o=n.depth>i&&o6(n,e,i+1),s=r.depth>i&&o6(t,r,i+1),a=[];return w2(null,n,i,a),o&&s&&e.index(i)==t.index(i)?(gE(o,s),Ja(el(o,yE(n,e,t,r,i+1)),a)):(o&&Ja(el(o,Cm(n,e,i+1)),a),w2(e,t,i,a),s&&Ja(el(s,Cm(t,r,i+1)),a)),w2(r,null,i,a),new Q(a)}function Cm(n,e,t){let r=[];if(w2(null,n,t,r),n.depth>t){let i=o6(n,e,t+1);Ja(el(i,Cm(n,e,t+1)),r)}return w2(e,null,t,r),new Q(r)}function cq(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let o=t-1;o>=0;o--)i=e.node(o).copy(Q.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class v2{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return We.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new km(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,o=t;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(o),u=o-c;if(r.push(s,a,i+c),!u||(s=s.child(a),s.isText))break;o=u-1,i+=c+1}return new v2(t,r,o)}static resolveCached(e,t){for(let i=0;i<s6.length;i++){let o=s6[i];if(o.pos==t&&o.doc==e)return o}let r=s6[a6]=v2.resolve(e,t);return a6=(a6+1)%uq,r}}let s6=[],a6=0,uq=12;class km{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const dq=Object.create(null);let tl=class l8{constructor(e,t,r,i=We.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||Q.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&wm(this.attrs,t||e.defaultAttrs||dq)&&We.sameSet(this.marks,r||We.none)}copy(e=null){return e==this.content?this:new l8(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new l8(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return ne.empty;let i=this.resolve(e),o=this.resolve(t),s=r?0:i.sharedDepth(t),a=i.start(s),u=i.node(s).content.cut(i.pos-a,o.pos-a);return new ne(u,i.depth-s,o.depth-s)}replace(e,t,r){return lq(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return v2.resolveCached(this,e)}resolveNoCache(e){return v2.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),bE(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=Q.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let c=i;c<o;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=We.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!We.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=Q.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};tl.prototype.text=void 0;class Sm extends tl{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bE(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Sm(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Sm(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function bE(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class nl{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new fq(e,t);if(r.next==null)return nl.empty;let i=wE(r);r.next&&r.err("Unexpected trailing text");let o=wq(bq(i));return vq(o,r),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let o=t;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function o(s,a){let c=s.matchFragment(e,r);if(c&&(!t||c.validEnd))return Q.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:f}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=o(f,a.concat(d));if(h)return h}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:c}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||c.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}).join(`
131
+ `)){const r=document.createElement("div");r.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(r)}},py=new WeakSet,jN=function(){return g(this,cr).replaceAll(" "," ")},o1=new WeakSet,Rv=function(t){return t.replaceAll(" "," ")},my=new WeakSet,zN=function(t){const{value:r,fontSize:i,color:o,pageIndex:s}=g(this,Ou);return this._hasBeenMoved||t.value!==r||t.fontSize!==i||t.color.some((a,c)=>a!==o[c])||t.pageIndex!==s},M(Qe,Nu),M(Qe,o1),pe(Qe,"_freeTextDefaultContent",""),pe(Qe,"_internalPadding",0),pe(Qe,"_defaultColor",null),pe(Qe,"_defaultFontSize",10),pe(Qe,"_type","freetext"),pe(Qe,"_editorType",Te.FREETEXT);let K4=Qe;class oE{constructor(e,t=0,r=0,i=!0){M(this,gy);M(this,_u);M(this,yy);M(this,by);M(this,a1);M(this,s1,void 0);M(this,pa,[]);M(this,ai,[]);let o=1/0,s=-1/0,a=1/0,c=-1/0;const u=10**-4;for(const{x:b,y:w,width:v,height:k}of e){const C=Math.floor((b-t)/u)*u,T=Math.ceil((b+v+t)/u)*u,S=Math.floor((w-t)/u)*u,E=Math.ceil((w+k+t)/u)*u,O=[C,S,E,!0],I=[T,S,E,!1];g(this,pa).push(O,I),o=Math.min(o,C),s=Math.max(s,T),a=Math.min(a,S),c=Math.max(c,E)}const d=s-o+2*r,f=c-a+2*r,h=o-r,p=a-r,m=g(this,pa).at(i?-1:-2),y=[m[0],m[2]];for(const b of g(this,pa)){const[w,v,k]=b;b[0]=(w-h)/d,b[1]=(v-p)/f,b[2]=(k-p)/f}A(this,s1,{x:h,y:p,width:d,height:f,lastPoint:y})}getOutlines(){g(this,pa).sort((t,r)=>t[0]-r[0]||t[1]-r[1]||t[2]-r[2]);const e=[];for(const t of g(this,pa))t[3]?(e.push(...x(this,a1,$v).call(this,t)),x(this,yy,UN).call(this,t)):(x(this,by,ZN).call(this,t),e.push(...x(this,a1,$v).call(this,t)));return x(this,gy,HN).call(this,e)}}s1=new WeakMap,pa=new WeakMap,ai=new WeakMap,gy=new WeakSet,HN=function(e){const t=[],r=new Set;for(const s of e){const[a,c,u]=s;t.push([a,c,s],[a,u,s])}t.sort((s,a)=>s[1]-a[1]||s[0]-a[0]);for(let s=0,a=t.length;s<a;s+=2){const c=t[s][2],u=t[s+1][2];c.push(u),u.push(c),r.add(c),r.add(u)}const i=[];let o;for(;r.size>0;){const s=r.values().next().value;let[a,c,u,d,f]=s;r.delete(s);let h=a,p=c;for(o=[a,u],i.push(o);;){let m;if(r.has(d))m=d;else{if(!r.has(f))break;m=f}r.delete(m),[a,c,u,d,f]=m,h!==a&&(o.push(h,p,a,p===c?c:u),h=a),p=p===c?u:c}o.push(h,p)}return new cW(i,g(this,s1))},_u=new WeakSet,m5=function(e){const t=g(this,ai);let r=0,i=t.length-1;for(;r<=i;){const o=r+i>>1,s=t[o][0];if(s===e)return o;s<e?r=o+1:i=o-1}return i+1},yy=new WeakSet,UN=function([,e,t]){const r=x(this,_u,m5).call(this,e);g(this,ai).splice(r,0,[e,t])},by=new WeakSet,ZN=function([,e,t]){const r=x(this,_u,m5).call(this,e);for(let i=r;i<g(this,ai).length;i++){const[o,s]=g(this,ai)[i];if(o!==e)break;if(o===e&&s===t){g(this,ai).splice(i,1);return}}for(let i=r-1;i>=0;i--){const[o,s]=g(this,ai)[i];if(o!==e)break;if(o===e&&s===t){g(this,ai).splice(i,1);return}}},a1=new WeakSet,$v=function(e){const[t,r,i]=e,o=[[t,r,i]],s=x(this,_u,m5).call(this,i);for(let a=0;a<s;a++){const[c,u]=g(this,ai)[a];for(let d=0,f=o.length;d<f;d++){const[,h,p]=o[d];if(!(u<=h||p<=c))if(h>=c)if(p>u)o[d][1]=u;else{if(f===1)return[];o.splice(d,1),d--,f--}else o[d][2]=c,p>u&&o.push([t,u,p])}}return o};class sE{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(e,t){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof G4}}class cW extends sE{constructor(t,r){super();M(this,l1,void 0);M(this,Lu,void 0);A(this,Lu,t),A(this,l1,r)}toSVGPath(){const t=[];for(const r of g(this,Lu)){let[i,o]=r;t.push(`M${i} ${o}`);for(let s=2;s<r.length;s+=2){const a=r[s],c=r[s+1];a===i?(t.push(`V${c}`),o=c):c===o&&(t.push(`H${a}`),i=a)}t.push("Z")}return t.join(" ")}serialize([t,r,i,o],s){const a=[],c=i-t,u=o-r;for(const d of g(this,Lu)){const f=new Array(d.length);for(let h=0;h<d.length;h+=2)f[h]=t+d[h]*c,f[h+1]=o-d[h+1]*u;a.push(f)}return a}get box(){return g(this,l1)}}l1=new WeakMap,Lu=new WeakMap;const Fo=class Fo{constructor({x:e,y:t},r,i,o,s,a=0){M(this,f1);M(this,Ui,void 0);M(this,Vo,[]);M(this,Bu,void 0);M(this,Ru,void 0);M(this,Zi,[]);M(this,xe,new Float64Array(18));M(this,h0,void 0);M(this,p0,void 0);M(this,c1,void 0);M(this,u1,void 0);M(this,$u,void 0);M(this,Vu,void 0);M(this,ma,[]);A(this,Ui,r),A(this,Vu,o*i),A(this,Ru,s),g(this,xe).set([NaN,NaN,NaN,NaN,e,t],6),A(this,Bu,a),A(this,u1,g(Fo,d1)*i),A(this,c1,g(Fo,vy)*i),A(this,$u,i),g(this,ma).push(e,t)}get free(){return!0}isEmpty(){return isNaN(g(this,xe)[8])}add({x:e,y:t}){var E;A(this,h0,e),A(this,p0,t);const[r,i,o,s]=g(this,Ui);let[a,c,u,d]=g(this,xe).subarray(8,12);const f=e-u,h=t-d,p=Math.hypot(f,h);if(p<g(this,c1))return!1;const m=p-g(this,u1),y=m/p,b=y*f,w=y*h;let v=a,k=c;a=u,c=d,u+=b,d+=w,(E=g(this,ma))==null||E.push(e,t);const C=b/m,T=-w/m*g(this,Vu),S=C*g(this,Vu);return g(this,xe).set(g(this,xe).subarray(2,8),0),g(this,xe).set([u+T,d+S],4),g(this,xe).set(g(this,xe).subarray(14,18),12),g(this,xe).set([u-T,d-S],16),isNaN(g(this,xe)[6])?(g(this,Zi).length===0&&(g(this,xe).set([a+T,c+S],2),g(this,Zi).push(NaN,NaN,NaN,NaN,(a+T-r)/o,(c+S-i)/s),g(this,xe).set([a-T,c-S],14),g(this,Vo).push(NaN,NaN,NaN,NaN,(a-T-r)/o,(c-S-i)/s)),g(this,xe).set([v,k,a,c,u,d],6),!this.isEmpty()):(g(this,xe).set([v,k,a,c,u,d],6),Math.abs(Math.atan2(k-c,v-a)-Math.atan2(w,b))<Math.PI/2?([a,c,u,d]=g(this,xe).subarray(2,6),g(this,Zi).push(NaN,NaN,NaN,NaN,((a+u)/2-r)/o,((c+d)/2-i)/s),[a,c,v,k]=g(this,xe).subarray(14,18),g(this,Vo).push(NaN,NaN,NaN,NaN,((v+a)/2-r)/o,((k+c)/2-i)/s),!0):([v,k,a,c,u,d]=g(this,xe).subarray(0,6),g(this,Zi).push(((v+5*a)/6-r)/o,((k+5*c)/6-i)/s,((5*a+u)/6-r)/o,((5*c+d)/6-i)/s,((a+u)/2-r)/o,((c+d)/2-i)/s),[u,d,a,c,v,k]=g(this,xe).subarray(12,18),g(this,Vo).push(((v+5*a)/6-r)/o,((k+5*c)/6-i)/s,((5*a+u)/6-r)/o,((5*c+d)/6-i)/s,((a+u)/2-r)/o,((c+d)/2-i)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const e=g(this,Zi),t=g(this,Vo),r=g(this,xe).subarray(4,6),i=g(this,xe).subarray(16,18),[o,s,a,c]=g(this,Ui),[u,d,f,h]=x(this,f1,Vv).call(this);if(isNaN(g(this,xe)[6])&&!this.isEmpty())return`M${(g(this,xe)[2]-o)/a} ${(g(this,xe)[3]-s)/c} L${(g(this,xe)[4]-o)/a} ${(g(this,xe)[5]-s)/c} L${u} ${d} L${f} ${h} L${(g(this,xe)[16]-o)/a} ${(g(this,xe)[17]-s)/c} L${(g(this,xe)[14]-o)/a} ${(g(this,xe)[15]-s)/c} Z`;const p=[];p.push(`M${e[4]} ${e[5]}`);for(let m=6;m<e.length;m+=6)isNaN(e[m])?p.push(`L${e[m+4]} ${e[m+5]}`):p.push(`C${e[m]} ${e[m+1]} ${e[m+2]} ${e[m+3]} ${e[m+4]} ${e[m+5]}`);p.push(`L${(r[0]-o)/a} ${(r[1]-s)/c} L${u} ${d} L${f} ${h} L${(i[0]-o)/a} ${(i[1]-s)/c}`);for(let m=t.length-6;m>=6;m-=6)isNaN(t[m])?p.push(`L${t[m+4]} ${t[m+5]}`):p.push(`C${t[m]} ${t[m+1]} ${t[m+2]} ${t[m+3]} ${t[m+4]} ${t[m+5]}`);return p.push(`L${t[4]} ${t[5]} Z`),p.join(" ")}getOutlines(){var w;const e=g(this,Zi),t=g(this,Vo),r=g(this,xe),i=r.subarray(4,6),o=r.subarray(16,18),[s,a,c,u]=g(this,Ui),d=new Float64Array((((w=g(this,ma))==null?void 0:w.length)??0)+2);for(let v=0,k=d.length-2;v<k;v+=2)d[v]=(g(this,ma)[v]-s)/c,d[v+1]=(g(this,ma)[v+1]-a)/u;d[d.length-2]=(g(this,h0)-s)/c,d[d.length-1]=(g(this,p0)-a)/u;const[f,h,p,m]=x(this,f1,Vv).call(this);if(isNaN(r[6])&&!this.isEmpty()){const v=new Float64Array(36);return v.set([NaN,NaN,NaN,NaN,(r[2]-s)/c,(r[3]-a)/u,NaN,NaN,NaN,NaN,(r[4]-s)/c,(r[5]-a)/u,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,p,m,NaN,NaN,NaN,NaN,(r[16]-s)/c,(r[17]-a)/u,NaN,NaN,NaN,NaN,(r[14]-s)/c,(r[15]-a)/u],0),new G4(v,d,g(this,Ui),g(this,$u),g(this,Bu),g(this,Ru))}const y=new Float64Array(g(this,Zi).length+24+g(this,Vo).length);let b=e.length;for(let v=0;v<b;v+=2)isNaN(e[v])?y[v]=y[v+1]=NaN:(y[v]=e[v],y[v+1]=e[v+1]);y.set([NaN,NaN,NaN,NaN,(i[0]-s)/c,(i[1]-a)/u,NaN,NaN,NaN,NaN,f,h,NaN,NaN,NaN,NaN,p,m,NaN,NaN,NaN,NaN,(o[0]-s)/c,(o[1]-a)/u],b),b+=24;for(let v=t.length-6;v>=6;v-=6)for(let k=0;k<6;k+=2)isNaN(t[v+k])?(y[b]=y[b+1]=NaN,b+=2):(y[b]=t[v+k],y[b+1]=t[v+k+1],b+=2);return y.set([NaN,NaN,NaN,NaN,t[4],t[5]],b),new G4(y,d,g(this,Ui),g(this,$u),g(this,Bu),g(this,Ru))}};Ui=new WeakMap,Vo=new WeakMap,Bu=new WeakMap,Ru=new WeakMap,Zi=new WeakMap,xe=new WeakMap,h0=new WeakMap,p0=new WeakMap,c1=new WeakMap,u1=new WeakMap,$u=new WeakMap,Vu=new WeakMap,ma=new WeakMap,d1=new WeakMap,wy=new WeakMap,vy=new WeakMap,f1=new WeakSet,Vv=function(){const e=g(this,xe).subarray(4,6),t=g(this,xe).subarray(16,18),[r,i,o,s]=g(this,Ui);return[(g(this,h0)+(e[0]-t[0])/2-r)/o,(g(this,p0)+(e[1]-t[1])/2-i)/s,(g(this,h0)+(t[0]-e[0])/2-r)/o,(g(this,p0)+(t[1]-e[1])/2-i)/s]},M(Fo,d1,8),M(Fo,wy,2),M(Fo,vy,g(Fo,d1)+g(Fo,wy));let mm=Fo;class G4 extends sE{constructor(t,r,i,o,s,a){super();M(this,g0);M(this,y0);M(this,Cy);M(this,Fu,void 0);M(this,m0,null);M(this,jo,void 0);M(this,h1,void 0);M(this,dr,void 0);M(this,p1,void 0);M(this,wt,void 0);A(this,wt,t),A(this,dr,r),A(this,Fu,i),A(this,p1,o),A(this,jo,s),A(this,h1,a),x(this,Cy,WN).call(this,a);const{x:c,y:u,width:d,height:f}=g(this,m0);for(let h=0,p=t.length;h<p;h+=2)t[h]=(t[h]-c)/d,t[h+1]=(t[h+1]-u)/f;for(let h=0,p=r.length;h<p;h+=2)r[h]=(r[h]-c)/d,r[h+1]=(r[h+1]-u)/f}toSVGPath(){const t=[`M${g(this,wt)[4]} ${g(this,wt)[5]}`];for(let r=6,i=g(this,wt).length;r<i;r+=6)isNaN(g(this,wt)[r])?t.push(`L${g(this,wt)[r+4]} ${g(this,wt)[r+5]}`):t.push(`C${g(this,wt)[r]} ${g(this,wt)[r+1]} ${g(this,wt)[r+2]} ${g(this,wt)[r+3]} ${g(this,wt)[r+4]} ${g(this,wt)[r+5]}`);return t.push("Z"),t.join(" ")}serialize([t,r,i,o],s){const a=i-t,c=o-r;let u,d;switch(s){case 0:u=x(this,g0,ep).call(this,g(this,wt),t,o,a,-c),d=x(this,g0,ep).call(this,g(this,dr),t,o,a,-c);break;case 90:u=x(this,y0,tp).call(this,g(this,wt),t,r,a,c),d=x(this,y0,tp).call(this,g(this,dr),t,r,a,c);break;case 180:u=x(this,g0,ep).call(this,g(this,wt),i,r,-a,c),d=x(this,g0,ep).call(this,g(this,dr),i,r,-a,c);break;case 270:u=x(this,y0,tp).call(this,g(this,wt),i,o,-a,-c),d=x(this,y0,tp).call(this,g(this,dr),i,o,-a,-c)}return{outline:Array.from(u),points:[Array.from(d)]}}get box(){return g(this,m0)}getNewOutline(t,r){const{x:i,y:o,width:s,height:a}=g(this,m0),[c,u,d,f]=g(this,Fu),h=s*d,p=a*f,m=i*d+c,y=o*f+u,b=new mm({x:g(this,dr)[0]*h+m,y:g(this,dr)[1]*p+y},g(this,Fu),g(this,p1),t,g(this,h1),r??g(this,jo));for(let w=2;w<g(this,dr).length;w+=2)b.add({x:g(this,dr)[w]*h+m,y:g(this,dr)[w+1]*p+y});return b.getOutlines()}}Fu=new WeakMap,m0=new WeakMap,jo=new WeakMap,h1=new WeakMap,dr=new WeakMap,p1=new WeakMap,wt=new WeakMap,g0=new WeakSet,ep=function(t,r,i,o,s){const a=new Float64Array(t.length);for(let c=0,u=t.length;c<u;c+=2)a[c]=r+t[c]*o,a[c+1]=i+t[c+1]*s;return a},y0=new WeakSet,tp=function(t,r,i,o,s){const a=new Float64Array(t.length);for(let c=0,u=t.length;c<u;c+=2)a[c]=r+t[c+1]*o,a[c+1]=i+t[c]*s;return a},Cy=new WeakSet,WN=function(t){const r=g(this,wt);let i=r[4],o=r[5],s=i,a=o,c=i,u=o,d=i,f=o;const h=t?Math.max:Math.min;for(let w=6,v=r.length;w<v;w+=6){if(isNaN(r[w]))s=Math.min(s,r[w+4]),a=Math.min(a,r[w+5]),c=Math.max(c,r[w+4]),u=Math.max(u,r[w+5]),f<r[w+5]?(d=r[w+4],f=r[w+5]):f===r[w+5]&&(d=h(d,r[w+4]));else{const k=le.bezierBoundingBox(i,o,...r.slice(w,w+6));s=Math.min(s,k[0]),a=Math.min(a,k[1]),c=Math.max(c,k[2]),u=Math.max(u,k[3]),f<k[3]?(d=k[2],f=k[3]):f===k[3]&&(d=h(d,k[2]))}i=r[w+4],o=r[w+5]}const p=s-g(this,jo),m=a-g(this,jo),y=c-s+2*g(this,jo),b=u-a+2*g(this,jo);A(this,m0,{x:p,y:m,width:y,height:b,lastPoint:[d,f]})};const Ho=class Ho{constructor({editor:e=null,uiManager:t=null}){M(this,v1);M(this,C1);M(this,ky);M(this,zo);M(this,Sy);M(this,Wi);M(this,m1,x(this,ky,qN).bind(this));M(this,g1,x(this,Sy,KN).bind(this));M(this,li,null);M(this,b0,null);M(this,ju,void 0);M(this,Dt,null);M(this,y1,!1);M(this,zu,!1);M(this,b1,null);M(this,w1,void 0);M(this,ci,null);M(this,Hu,void 0);var r;e?(A(this,zu,!1),A(this,Hu,he.HIGHLIGHT_COLOR),A(this,b1,e)):(A(this,zu,!0),A(this,Hu,he.HIGHLIGHT_DEFAULT_COLOR)),A(this,ci,(e==null?void 0:e._uiManager)||t),A(this,w1,g(this,ci)._eventBus),A(this,ju,(e==null?void 0:e.color)||((r=g(this,ci))==null?void 0:r.highlightColors.values().next().value)||"#FFFF98")}static get _keyboardManager(){return Ie(this,"_keyboardManager",new u2([[["Escape","mac+Escape"],Ho.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],Ho.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],Ho.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],Ho.prototype._moveToPrevious],[["Home","mac+Home"],Ho.prototype._moveToBeginning],[["End","mac+End"],Ho.prototype._moveToEnd]]))}renderButton(){const e=A(this,li,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.setAttribute("aria-haspopup",!0);const t=g(this,ci)._signal;e.addEventListener("click",x(this,zo,R0).bind(this),{signal:t}),e.addEventListener("keydown",g(this,m1),{signal:t});const r=A(this,b0,document.createElement("span"));return r.className="swatch",r.setAttribute("aria-hidden",!0),r.style.backgroundColor=g(this,ju),e.append(r),e}renderMainDropdown(){const e=A(this,Dt,x(this,v1,Fv).call(this));return e.setAttribute("aria-orientation","horizontal"),e.setAttribute("aria-labelledby","highlightColorPickerLabel"),e}_colorSelectFromKeyboard(e){if(e.target===g(this,li)){x(this,zo,R0).call(this,e);return}const t=e.target.getAttribute("data-color");t&&x(this,C1,jv).call(this,t,e)}_moveToNext(e){var t,r;g(this,Wi,Oa)?e.target!==g(this,li)?(t=e.target.nextSibling)==null||t.focus():(r=g(this,Dt).firstChild)==null||r.focus():x(this,zo,R0).call(this,e)}_moveToPrevious(e){var t,r;e.target!==((t=g(this,Dt))==null?void 0:t.firstChild)&&e.target!==g(this,li)?(g(this,Wi,Oa)||x(this,zo,R0).call(this,e),(r=e.target.previousSibling)==null||r.focus()):g(this,Wi,Oa)&&this._hideDropdownFromKeyboard()}_moveToBeginning(e){var t;g(this,Wi,Oa)?(t=g(this,Dt).firstChild)==null||t.focus():x(this,zo,R0).call(this,e)}_moveToEnd(e){var t;g(this,Wi,Oa)?(t=g(this,Dt).lastChild)==null||t.focus():x(this,zo,R0).call(this,e)}hideDropdown(){var e;(e=g(this,Dt))==null||e.classList.add("hidden"),window.removeEventListener("pointerdown",g(this,g1))}_hideDropdownFromKeyboard(){var e;g(this,zu)||(g(this,Wi,Oa)?(this.hideDropdown(),g(this,li).focus({preventScroll:!0,focusVisible:g(this,y1)})):(e=g(this,b1))==null||e.unselect())}updateColor(e){if(g(this,b0)&&(g(this,b0).style.backgroundColor=e),!g(this,Dt))return;const t=g(this,ci).highlightColors.values();for(const r of g(this,Dt).children)r.setAttribute("aria-selected",t.next().value===e)}destroy(){var e,t;(e=g(this,li))==null||e.remove(),A(this,li,null),A(this,b0,null),(t=g(this,Dt))==null||t.remove(),A(this,Dt,null)}};m1=new WeakMap,g1=new WeakMap,li=new WeakMap,b0=new WeakMap,ju=new WeakMap,Dt=new WeakMap,y1=new WeakMap,zu=new WeakMap,b1=new WeakMap,w1=new WeakMap,ci=new WeakMap,Hu=new WeakMap,v1=new WeakSet,Fv=function(){const e=document.createElement("div"),t=g(this,ci)._signal;e.addEventListener("contextmenu",wr,{signal:t}),e.className="dropdown",e.role="listbox",e.setAttribute("aria-multiselectable",!1),e.setAttribute("aria-orientation","vertical"),e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[r,i]of g(this,ci).highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",i),o.title=r,o.setAttribute("data-l10n-id",`pdfjs-editor-colorpicker-${r}`);const s=document.createElement("span");o.append(s),s.className="swatch",s.style.backgroundColor=i,o.setAttribute("aria-selected",i===g(this,ju)),o.addEventListener("click",x(this,C1,jv).bind(this,i),{signal:t}),e.append(o)}return e.addEventListener("keydown",g(this,m1),{signal:t}),e},C1=new WeakSet,jv=function(e,t){t.stopPropagation(),g(this,w1).dispatch("switchannotationeditorparams",{source:this,type:g(this,Hu),value:e})},ky=new WeakSet,qN=function(e){Ho._keyboardManager.exec(this,e)},zo=new WeakSet,R0=function(e){if(g(this,Wi,Oa)){this.hideDropdown();return}if(A(this,y1,e.detail===0),window.addEventListener("pointerdown",g(this,g1),{signal:g(this,ci)._signal}),g(this,Dt)){g(this,Dt).classList.remove("hidden");return}const t=A(this,Dt,x(this,v1,Fv).call(this));g(this,li).append(t)},Sy=new WeakSet,KN=function(e){var t;(t=g(this,Dt))!=null&&t.contains(e.target)||this.hideDropdown()},Wi=new WeakSet,Oa=function(){return g(this,Dt)&&!g(this,Dt).classList.contains("hidden")};let gm=Ho;const _e=class _e extends ze{constructor(t){super({...t,name:"highlightEditor"});M(this,A1);M(this,T1);M(this,My);M(this,Ey);M(this,Ay);M(this,x1);M(this,k0);M(this,Ty);M(this,Ku);M(this,S0);M(this,xy);M(this,Iy);M(this,Uu,null);M(this,k1,0);M(this,ga,void 0);M(this,w0,null);M(this,Zu,null);M(this,Lr,null);M(this,S1,null);M(this,M1,0);M(this,v0,null);M(this,ui,null);M(this,An,null);M(this,fr,!1);M(this,Wu,null);M(this,C0,void 0);M(this,Nt,null);M(this,qu,"");M(this,qi,void 0);M(this,E1,"");this.color=t.color||_e._defaultColor,A(this,qi,t.thickness||_e._defaultThickness),A(this,C0,t.opacity||_e._defaultOpacity),A(this,ga,t.boxes||null),A(this,E1,t.methodOfCreation||""),A(this,qu,t.text||""),this._isDraggable=!1,t.highlightId>-1?(A(this,fr,!0),x(this,T1,Hv).call(this,t),x(this,k0,np).call(this)):(A(this,Uu,t.anchorNode),A(this,k1,t.anchorOffset),A(this,S1,t.focusNode),A(this,M1,t.focusOffset),x(this,A1,zv).call(this),x(this,k0,np).call(this),this.rotate(this.rotation))}static get _keyboardManager(){const t=_e.prototype;return Ie(this,"_keyboardManager",new u2([[["ArrowLeft","mac+ArrowLeft"],t._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],t._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],t._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],t._moveCaret,{args:[3]}]]))}get telemetryInitialData(){return{action:"added",type:g(this,fr)?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:g(this,qi),methodOfCreation:g(this,E1)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(t){return{numberOfColors:t.get("color").size}}static initialize(t,r){var i;ze.initialize(t,r),_e._defaultColor||(_e._defaultColor=((i=r.highlightColors)==null?void 0:i.values().next().value)||"#fff066")}static updateDefaultParams(t,r){switch(t){case he.HIGHLIGHT_DEFAULT_COLOR:_e._defaultColor=r;break;case he.HIGHLIGHT_THICKNESS:_e._defaultThickness=r}}translateInPage(t,r){}get toolbarPosition(){return g(this,Wu)}updateParams(t,r){switch(t){case he.HIGHLIGHT_COLOR:x(this,My,GN).call(this,r);break;case he.HIGHLIGHT_THICKNESS:x(this,Ey,YN).call(this,r)}}static get defaultPropertiesToUpdate(){return[[he.HIGHLIGHT_DEFAULT_COLOR,_e._defaultColor],[he.HIGHLIGHT_THICKNESS,_e._defaultThickness]]}get propertiesToUpdate(){return[[he.HIGHLIGHT_COLOR,this.color||_e._defaultColor],[he.HIGHLIGHT_THICKNESS,g(this,qi)||_e._defaultThickness],[he.HIGHLIGHT_FREE,g(this,fr)]]}async addEditToolbar(){const t=await super.addEditToolbar();return t?(this._uiManager.highlightColors&&(A(this,Zu,new gm({editor:this})),t.addColorPicker(g(this,Zu))),t):null}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(x(this,S0,rp).call(this))}getBaseTranslation(){return[0,0]}getRect(t,r){return super.getRect(t,r,x(this,S0,rp).call(this))}onceAdded(){this.parent.addUndoableEditor(this),this.div.focus()}remove(){x(this,x1,Uv).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(x(this,k0,np).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(t){var i;let r=!1;this.parent&&!t?x(this,x1,Uv).call(this):t&&(x(this,k0,np).call(this,t),r=!this.parent&&((i=this.div)==null?void 0:i.classList.contains("selectedEditor"))),super.setParent(t),this.show(this._isVisible),r&&this.select()}rotate(t){var o,s,a;const{drawLayer:r}=this.parent;let i;g(this,fr)?(t=(t-this.rotation+360)%360,i=x(o=_e,ya,md).call(o,g(this,ui).box,t)):i=x(s=_e,ya,md).call(s,this,t),r.rotate(g(this,An),t),r.rotate(g(this,Nt),t),r.updateBox(g(this,An),i),r.updateBox(g(this,Nt),x(a=_e,ya,md).call(a,g(this,Lr).box,t))}render(){if(this.div)return this.div;const t=super.render();g(this,qu)&&(t.setAttribute("aria-label",g(this,qu)),t.setAttribute("role","mark")),g(this,fr)?t.classList.add("free"):this.div.addEventListener("keydown",x(this,Ty,XN).bind(this),{signal:this._uiManager._signal});const r=A(this,v0,document.createElement("div"));t.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",r.style.clipPath=g(this,w0);const[i,o]=this.parentDimensions;return this.setDims(this.width*i,this.height*o),am(this,g(this,v0),["pointerover","pointerleave"]),this.enableEditing(),t}pointerover(){this.parent.drawLayer.addClass(g(this,Nt),"hovered")}pointerleave(){this.parent.drawLayer.removeClass(g(this,Nt),"hovered")}_moveCaret(t){switch(this.parent.unselect(this),t){case 0:case 2:x(this,Ku,g5).call(this,!0);break;case 1:case 3:x(this,Ku,g5).call(this,!1)}}select(){var t,r;super.select(),g(this,Nt)&&((t=this.parent)==null||t.drawLayer.removeClass(g(this,Nt),"hovered"),(r=this.parent)==null||r.drawLayer.addClass(g(this,Nt),"selected"))}unselect(){var t;super.unselect(),g(this,Nt)&&((t=this.parent)==null||t.drawLayer.removeClass(g(this,Nt),"selected"),g(this,fr)||x(this,Ku,g5).call(this,!1))}get _mustFixPosition(){return!g(this,fr)}show(t=this._isVisible){super.show(t),this.parent&&(this.parent.drawLayer.show(g(this,An),t),this.parent.drawLayer.show(g(this,Nt),t))}static startHighlighting(t,r,{target:i,x:o,y:s}){const{x:a,y:c,width:u,height:d}=i.getBoundingClientRect(),f=new AbortController,h=t.combinedSignal(f),p=m=>{f.abort(),x(this,Dy,nP).call(this,t,m)};window.addEventListener("blur",p,{signal:h}),window.addEventListener("pointerup",p,{signal:h}),window.addEventListener("pointerdown",m=>{m.preventDefault(),m.stopPropagation()},{capture:!0,passive:!1,signal:h}),window.addEventListener("contextmenu",wr,{signal:h}),i.addEventListener("pointermove",x(this,Oy,tP).bind(this,t),{signal:h}),this._freeHighlight=new mm({x:o,y:s},[a,c,u,d],t.scale,this._defaultThickness/2,r,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=t.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0)}static deserialize(t,r,i){var y;const o=super.deserialize(t,r,i),{rect:[s,a,c,u],color:d,quadPoints:f}=t;o.color=le.makeHexColor(...d),A(o,C0,t.opacity);const[h,p]=o.pageDimensions;o.width=(c-s)/h,o.height=(u-a)/p;const m=A(o,ga,[]);for(let b=0;b<f.length;b+=8)m.push({x:(f[4]-c)/h,y:(u-(1-f[b+5]))/p,width:(f[b+2]-f[b])/h,height:(f[b+5]-f[b+1])/p});return x(y=o,A1,zv).call(y),o}serialize(t=!1){if(this.isEmpty()||t)return null;const r=this.getRect(0,0),i=ze._colorManager.convert(this.color);return{annotationType:Te.HIGHLIGHT,color:i,opacity:g(this,C0),thickness:g(this,qi),quadPoints:x(this,xy,JN).call(this),outlines:x(this,Iy,eP).call(this,r),pageIndex:this.pageIndex,rect:r,rotation:x(this,S0,rp).call(this),structTreeParentId:this._structTreeParentId}}static canCreateNewEmptyEditor(){return!1}};Uu=new WeakMap,k1=new WeakMap,ga=new WeakMap,w0=new WeakMap,Zu=new WeakMap,Lr=new WeakMap,S1=new WeakMap,M1=new WeakMap,v0=new WeakMap,ui=new WeakMap,An=new WeakMap,fr=new WeakMap,Wu=new WeakMap,C0=new WeakMap,Nt=new WeakMap,qu=new WeakMap,qi=new WeakMap,E1=new WeakMap,A1=new WeakSet,zv=function(){const t=new oE(g(this,ga),.001);A(this,ui,t.getOutlines()),{x:this.x,y:this.y,width:this.width,height:this.height}=g(this,ui).box;const r=new oE(g(this,ga),.0025,.001,this._uiManager.direction==="ltr");A(this,Lr,r.getOutlines());const{lastPoint:i}=g(this,Lr).box;A(this,Wu,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])},T1=new WeakSet,Hv=function({highlightOutlines:t,highlightId:r,clipPathId:i}){var d,f;if(A(this,ui,t),A(this,Lr,t.getNewOutline(g(this,qi)/2+1.5,.0025)),r>=0)A(this,An,r),A(this,w0,i),this.parent.drawLayer.finalizeLine(r,t),A(this,Nt,this.parent.drawLayer.highlightOutline(g(this,Lr)));else if(this.parent){const h=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(g(this,An),t),this.parent.drawLayer.updateBox(g(this,An),x(d=_e,ya,md).call(d,g(this,ui).box,(h-this.rotation+360)%360)),this.parent.drawLayer.updateLine(g(this,Nt),g(this,Lr)),this.parent.drawLayer.updateBox(g(this,Nt),x(f=_e,ya,md).call(f,g(this,Lr).box,h))}const{x:o,y:s,width:a,height:c}=t.box;switch(this.rotation){case 0:this.x=o,this.y=s,this.width=a,this.height=c;break;case 90:{const[h,p]=this.parentDimensions;this.x=s,this.y=1-o,this.width=a*p/h,this.height=c*h/p;break}case 180:this.x=1-o,this.y=1-s,this.width=a,this.height=c;break;case 270:{const[h,p]=this.parentDimensions;this.x=1-s,this.y=o,this.width=a*p/h,this.height=c*h/p;break}}const{lastPoint:u}=g(this,Lr).box;A(this,Wu,[(u[0]-o)/a,(u[1]-s)/c])},My=new WeakSet,GN=function(t){const r=o=>{var s,a;this.color=o,(s=this.parent)==null||s.drawLayer.changeColor(g(this,An),o),(a=g(this,Zu))==null||a.updateColor(o)},i=this.color;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(t)},!0)},Ey=new WeakSet,YN=function(t){const r=g(this,qi),i=o=>{A(this,qi,o),x(this,Ay,QN).call(this,o)};this.addCommands({cmd:i.bind(this,t),undo:i.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:t},!0)},Ay=new WeakSet,QN=function(t){if(!g(this,fr))return;x(this,T1,Hv).call(this,{highlightOutlines:g(this,ui).getNewOutline(t/2)}),this.fixAndSetPosition();const[r,i]=this.parentDimensions;this.setDims(this.width*r,this.height*i)},x1=new WeakSet,Uv=function(){g(this,An)!==null&&this.parent&&(this.parent.drawLayer.remove(g(this,An)),A(this,An,null),this.parent.drawLayer.remove(g(this,Nt)),A(this,Nt,null))},k0=new WeakSet,np=function(t=this.parent){g(this,An)===null&&({id:Gn(this,An)._,clipPathId:Gn(this,w0)._}=t.drawLayer.highlight(g(this,ui),this.color,g(this,C0)),A(this,Nt,t.drawLayer.highlightOutline(g(this,Lr))),g(this,v0)&&(g(this,v0).style.clipPath=g(this,w0)))},ya=new WeakSet,md=function({x:t,y:r,width:i,height:o},s){switch(s){case 90:return{x:1-r-o,y:t,width:o,height:i};case 180:return{x:1-t-i,y:1-r-o,width:i,height:o};case 270:return{x:r,y:1-t-i,width:o,height:i}}return{x:t,y:r,width:i,height:o}},Ty=new WeakSet,XN=function(t){_e._keyboardManager.exec(this,t)},Ku=new WeakSet,g5=function(t){if(!g(this,Uu))return;const r=window.getSelection();t?r.setPosition(g(this,Uu),g(this,k1)):r.setPosition(g(this,S1),g(this,M1))},S0=new WeakSet,rp=function(){return g(this,fr)?this.rotation:0},xy=new WeakSet,JN=function(){if(g(this,fr))return null;const[t,r]=this.pageDimensions,[i,o]=this.pageTranslation,s=g(this,ga),a=new Float32Array(8*s.length);let c=0;for(const{x:u,y:d,width:f,height:h}of s){const p=u*t+i,m=(1-d-h)*r+o;a[c]=a[c+4]=p,a[c+1]=a[c+3]=m,a[c+2]=a[c+6]=p+f*t,a[c+5]=a[c+7]=m+h*r,c+=8}return a},Iy=new WeakSet,eP=function(t){return g(this,ui).serialize(t,x(this,S0,rp).call(this))},Oy=new WeakSet,tP=function(t,r){this._freeHighlight.add(r)&&t.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)},Dy=new WeakSet,nP=function(t,r){this._freeHighlight.isEmpty()?t.drawLayer.removeFreeHighlight(this._freeHighlightId):t.createAndAddNewEditor(r,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""},M(_e,ya),M(_e,Oy),M(_e,Dy),pe(_e,"_defaultColor",null),pe(_e,"_defaultOpacity",1),pe(_e,"_defaultThickness",12),pe(_e,"_l10nPromise"),pe(_e,"_type","highlight"),pe(_e,"_editorType",Te.HIGHLIGHT),pe(_e,"_freeHighlightId",-1),pe(_e,"_freeHighlight",null),pe(_e,"_freeHighlightClipId","");let ym=_e;const Je=class Je extends ze{constructor(t){super({...t,name:"inkEditor"});M(this,Ny);M(this,Py);M(this,_y);M(this,Ly);M(this,I1);M(this,By);M(this,O1);M(this,Ry);M(this,$y);M(this,Vy);M(this,Fy);M(this,jy);M(this,Wo);M(this,D1);M(this,N1);M(this,P1);M(this,Yu);M(this,Qu);M(this,wa);M(this,_1);M(this,Xu);M(this,Uy);M(this,B1);M(this,Ju);M(this,D0);M(this,M0,0);M(this,E0,0);M(this,Ki,null);M(this,Uo,new Path2D);M(this,Br,!1);M(this,A0,null);M(this,T0,!1);M(this,x0,!1);M(this,Zo,null);M(this,Gu,null);M(this,I0,0);M(this,O0,0);M(this,ba,null);this.color=t.color||null,this.thickness=t.thickness||null,this.opacity=t.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(t,r){ze.initialize(t,r)}static updateDefaultParams(t,r){switch(t){case he.INK_THICKNESS:Je._defaultThickness=r;break;case he.INK_COLOR:Je._defaultColor=r;break;case he.INK_OPACITY:Je._defaultOpacity=r/100}}updateParams(t,r){switch(t){case he.INK_THICKNESS:x(this,Ny,rP).call(this,r);break;case he.INK_COLOR:x(this,Py,iP).call(this,r);break;case he.INK_OPACITY:x(this,_y,oP).call(this,r)}}static get defaultPropertiesToUpdate(){return[[he.INK_THICKNESS,Je._defaultThickness],[he.INK_COLOR,Je._defaultColor||ze._defaultLineColor],[he.INK_OPACITY,Math.round(100*Je._defaultOpacity)]]}get propertiesToUpdate(){return[[he.INK_THICKNESS,this.thickness||Je._defaultThickness],[he.INK_COLOR,this.color||Je._defaultColor||ze._defaultLineColor],[he.INK_OPACITY,Math.round(100*(this.opacity??Je._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(x(this,Yu,y5).call(this),x(this,Qu,b5).call(this)),this.isAttachedToDOM||(this.parent.add(this),x(this,wa,gd).call(this)),x(this,D0,ip).call(this)))}remove(){var t;this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,g(this,Ki)&&(clearTimeout(g(this,Ki)),A(this,Ki,null)),(t=g(this,Zo))==null||t.disconnect(),A(this,Zo,null),super.remove())}setParent(t){!this.parent&&t?this._uiManager.removeShouldRescale(this):this.parent&&t===null&&this._uiManager.addShouldRescale(this),super.setParent(t)}onScaleChanging(){const[t,r]=this.parentDimensions,i=this.width*t,o=this.height*r;this.setDimensions(i,o)}enableEditMode(){!g(this,Br)&&this.canvas!==null&&(super.enableEditMode(),this._isDraggable=!1,x(this,D1,qv).call(this))}disableEditMode(){this.isInEditMode()&&this.canvas!==null&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),x(this,N1,Kv).call(this))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){g(this,Br)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),A(this,Br,!0),this.div.classList.add("disabled"),x(this,D0,ip).call(this,!0),this.select(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),this.enableEditMode())}canvasPointerdown(t){t.button===0&&this.isInEditMode()&&!g(this,Br)&&(this.setInForeground(),t.preventDefault(),this.div.contains(document.activeElement)||this.div.focus({preventScroll:!0}),x(this,By,aP).call(this,t.offsetX,t.offsetY))}canvasPointermove(t){t.preventDefault(),x(this,O1,Wv).call(this,t.offsetX,t.offsetY)}canvasPointerup(t){t.preventDefault(),x(this,P1,Gv).call(this,t)}canvasPointerleave(t){x(this,P1,Gv).call(this,t)}get isResizable(){return!this.isEmpty()&&g(this,Br)}render(){if(this.div)return this.div;let t,r;this.width&&(t=this.x,r=this.y),super.render(),this.div.setAttribute("data-l10n-id","pdfjs-ink");const[i,o,s,a]=x(this,Ly,sP).call(this);if(this.setAt(i,o,0,0),this.setDims(s,a),x(this,Yu,y5).call(this),this.width){const[c,u]=this.parentDimensions;this.setAspectRatio(this.width*c,this.height*u),this.setAt(t*c,r*u,this.width*c,this.height*u),A(this,x0,!0),x(this,wa,gd).call(this),this.setDims(this.width*c,this.height*u),x(this,Wo,$0).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return x(this,Qu,b5).call(this),this.div}setDimensions(t,r){const i=Math.round(t),o=Math.round(r);if(g(this,I0)===i&&g(this,O0)===o)return;A(this,I0,i),A(this,O0,o),this.canvas.style.visibility="hidden";const[s,a]=this.parentDimensions;this.width=t/s,this.height=r/a,this.fixAndSetPosition(),g(this,Br)&&x(this,_1,Yv).call(this,t,r),x(this,wa,gd).call(this),x(this,Wo,$0).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(t,r,i){var b,w,v;if(t instanceof rE)return null;const o=super.deserialize(t,r,i);o.thickness=t.thickness,o.color=le.makeHexColor(...t.color),o.opacity=t.opacity;const[s,a]=o.pageDimensions,c=o.width*s,u=o.height*a,d=o.parentScale,f=t.thickness/2;A(o,Br,!0),A(o,I0,Math.round(c)),A(o,O0,Math.round(u));const{paths:h,rect:p,rotation:m}=t;for(let{bezier:k}of h){k=x(b=Je,Hy,pP).call(b,k,p,m);const C=[];o.paths.push(C);let T=d*(k[0]-f),S=d*(k[1]-f);for(let O=2,I=k.length;O<I;O+=6){const P=d*(k[O]-f),D=d*(k[O+1]-f),B=d*(k[O+2]-f),V=d*(k[O+3]-f),U=d*(k[O+4]-f),L=d*(k[O+5]-f);C.push([[T,S],[P,D],[B,V],[U,L]]),T=U,S=L}const E=x(this,zy,hP).call(this,C);o.bezierPath2D.push(E)}const y=x(w=o,B1,Xv).call(w);return A(o,E0,Math.max(ze.MIN_SIZE,y[2]-y[0])),A(o,M0,Math.max(ze.MIN_SIZE,y[3]-y[1])),x(v=o,_1,Yv).call(v,c,u),o}serialize(){if(this.isEmpty())return null;const t=this.getRect(0,0),r=ze._colorManager.convert(this.ctx.strokeStyle);return{annotationType:Te.INK,color:r,thickness:this.thickness,opacity:this.opacity,paths:x(this,Uy,mP).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,t),pageIndex:this.pageIndex,rect:t,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};M0=new WeakMap,E0=new WeakMap,Ki=new WeakMap,Uo=new WeakMap,Br=new WeakMap,A0=new WeakMap,T0=new WeakMap,x0=new WeakMap,Zo=new WeakMap,Gu=new WeakMap,I0=new WeakMap,O0=new WeakMap,ba=new WeakMap,Ny=new WeakSet,rP=function(t){const r=o=>{this.thickness=o,x(this,D0,ip).call(this)},i=this.thickness;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},Py=new WeakSet,iP=function(t){const r=o=>{this.color=o,x(this,Wo,$0).call(this)},i=this.color;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},_y=new WeakSet,oP=function(t){const r=o=>{this.opacity=o,x(this,Wo,$0).call(this)};t/=100;const i=this.opacity;this.addCommands({cmd:r.bind(this,t),undo:r.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:he.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},Ly=new WeakSet,sP=function(){const{parentRotation:t,parentDimensions:[r,i]}=this;switch(t){case 90:return[0,i,i,r];case 180:return[r,i,r,i];case 270:return[r,0,i,r];default:return[0,0,r,i]}},I1=new WeakSet,Zv=function(){const{ctx:t,color:r,opacity:i,thickness:o,parentScale:s,scaleFactor:a}=this;t.lineWidth=o*s/a,t.lineCap="round",t.lineJoin="round",t.miterLimit=10,t.strokeStyle=`${r}${function(u){return Math.round(Math.min(255,Math.max(1,255*u))).toString(16).padStart(2,"0")}(i)}`},By=new WeakSet,aP=function(t,r){this.canvas.addEventListener("contextmenu",wr,{signal:this._uiManager._signal}),x(this,N1,Kv).call(this),A(this,A0,new AbortController);const i=this._uiManager.combinedSignal(g(this,A0));this.canvas.addEventListener("pointerleave",this.canvasPointerleave.bind(this),{signal:i}),this.canvas.addEventListener("pointermove",this.canvasPointermove.bind(this),{signal:i}),this.canvas.addEventListener("pointerup",this.canvasPointerup.bind(this),{signal:i}),this.isEditing=!0,g(this,x0)||(A(this,x0,!0),x(this,wa,gd).call(this),this.thickness||(this.thickness=Je._defaultThickness),this.color||(this.color=Je._defaultColor||ze._defaultLineColor),this.opacity??(this.opacity=Je._defaultOpacity)),this.currentPath.push([t,r]),A(this,T0,!1),x(this,I1,Zv).call(this),A(this,ba,()=>{x(this,Vy,uP).call(this),g(this,ba)&&window.requestAnimationFrame(g(this,ba))}),window.requestAnimationFrame(g(this,ba))},O1=new WeakSet,Wv=function(t,r){const[i,o]=this.currentPath.at(-1);if(this.currentPath.length>1&&t===i&&r===o)return;const s=this.currentPath;let a=g(this,Uo);s.push([t,r]),A(this,T0,!0),s.length<=2?(a.moveTo(...s[0]),a.lineTo(t,r)):(s.length===3&&(A(this,Uo,a=new Path2D),a.moveTo(...s[0])),x(this,Fy,dP).call(this,a,...s.at(-3),...s.at(-2),t,r))},Ry=new WeakSet,lP=function(){if(this.currentPath.length===0)return;const t=this.currentPath.at(-1);g(this,Uo).lineTo(...t)},$y=new WeakSet,cP=function(t,r){A(this,ba,null),t=Math.min(Math.max(t,0),this.canvas.width),r=Math.min(Math.max(r,0),this.canvas.height),x(this,O1,Wv).call(this,t,r),x(this,Ry,lP).call(this);let i;if(this.currentPath.length!==1)i=x(this,jy,fP).call(this);else{const a=[t,r];i=[[a,a.slice(),a.slice(),a]]}const o=g(this,Uo),s=this.currentPath;this.currentPath=[],A(this,Uo,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(s),this.paths.push(i),this.bezierPath2D.push(o),this._uiManager.rebuild(this)},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(x(this,Yu,y5).call(this),x(this,Qu,b5).call(this)),x(this,D0,ip).call(this))},mustExec:!0})},Vy=new WeakSet,uP=function(){if(!g(this,T0))return;A(this,T0,!1),Math.ceil(this.thickness*this.parentScale);const t=this.currentPath.slice(-3),r=t.map(s=>s[0]),i=t.map(s=>s[1]),{ctx:o}=(Math.min(...r),Math.max(...r),Math.min(...i),Math.max(...i),this);o.save(),o.clearRect(0,0,this.canvas.width,this.canvas.height);for(const s of this.bezierPath2D)o.stroke(s);o.stroke(g(this,Uo)),o.restore()},Fy=new WeakSet,dP=function(t,r,i,o,s,a,c){const u=(r+o)/2,d=(i+s)/2,f=(o+a)/2,h=(s+c)/2;t.bezierCurveTo(u+2*(o-u)/3,d+2*(s-d)/3,f+2*(o-f)/3,h+2*(s-h)/3,f,h)},jy=new WeakSet,fP=function(){const t=this.currentPath;if(t.length<=2)return[[t[0],t[0],t.at(-1),t.at(-1)]];const r=[];let i,[o,s]=t[0];for(i=1;i<t.length-2;i++){const[p,m]=t[i],[y,b]=t[i+1],w=(p+y)/2,v=(m+b)/2,k=[o+2*(p-o)/3,s+2*(m-s)/3],C=[w+2*(p-w)/3,v+2*(m-v)/3];r.push([[o,s],k,C,[w,v]]),[o,s]=[w,v]}const[a,c]=t[i],[u,d]=t[i+1],f=[o+2*(a-o)/3,s+2*(c-s)/3],h=[u+2*(a-u)/3,d+2*(c-d)/3];return r.push([[o,s],f,h,[u,d]]),r},Wo=new WeakSet,$0=function(){if(this.isEmpty()){x(this,Xu,w5).call(this);return}x(this,I1,Zv).call(this);const{canvas:t,ctx:r}=this;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,t.width,t.height),x(this,Xu,w5).call(this);for(const i of this.bezierPath2D)r.stroke(i)},D1=new WeakSet,qv=function(){if(g(this,Gu))return;A(this,Gu,new AbortController);const t=this._uiManager.combinedSignal(g(this,Gu));this.canvas.addEventListener("pointerdown",this.canvasPointerdown.bind(this),{signal:t})},N1=new WeakSet,Kv=function(){var t;(t=this.pointerdownAC)==null||t.abort(),this.pointerdownAC=null},P1=new WeakSet,Gv=function(t){var r;(r=g(this,A0))==null||r.abort(),A(this,A0,null),x(this,D1,qv).call(this),g(this,Ki)&&clearTimeout(g(this,Ki)),A(this,Ki,setTimeout(()=>{A(this,Ki,null),this.canvas.removeEventListener("contextmenu",wr)},10)),x(this,$y,cP).call(this,t.offsetX,t.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Yu=new WeakSet,y5=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Qu=new WeakSet,b5=function(){A(this,Zo,new ResizeObserver(t=>{const r=t[0].contentRect;r.width&&r.height&&this.setDimensions(r.width,r.height)})),g(this,Zo).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var t;(t=g(this,Zo))==null||t.disconnect(),A(this,Zo,null)},{once:!0})},wa=new WeakSet,gd=function(){if(!g(this,x0))return;const[t,r]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*t),this.canvas.height=Math.ceil(this.height*r),x(this,Xu,w5).call(this)},_1=new WeakSet,Yv=function(t,r){const i=x(this,Ju,v5).call(this),o=(t-i)/g(this,E0),s=(r-i)/g(this,M0);this.scaleFactor=Math.min(o,s)},Xu=new WeakSet,w5=function(){const t=x(this,Ju,v5).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+t,this.translationY*this.scaleFactor+t)},zy=new WeakSet,hP=function(t){const r=new Path2D;for(let i=0,o=t.length;i<o;i++){const[s,a,c,u]=t[i];i===0&&r.moveTo(...s),r.bezierCurveTo(a[0],a[1],c[0],c[1],u[0],u[1])}return r},L1=new WeakSet,Qv=function(t,r,i){const[o,s,a,c]=r;switch(i){case 0:for(let u=0,d=t.length;u<d;u+=2)t[u]+=o,t[u+1]=c-t[u+1];break;case 90:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=t[u+1]+o,t[u+1]=f+s}break;case 180:for(let u=0,d=t.length;u<d;u+=2)t[u]=a-t[u],t[u+1]+=s;break;case 270:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=a-t[u+1],t[u+1]=c-f}break;default:throw new Error("Invalid rotation")}return t},Hy=new WeakSet,pP=function(t,r,i){const[o,s,a,c]=r;switch(i){case 0:for(let u=0,d=t.length;u<d;u+=2)t[u]-=o,t[u+1]=c-t[u+1];break;case 90:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=t[u+1]-s,t[u+1]=f-o}break;case 180:for(let u=0,d=t.length;u<d;u+=2)t[u]=a-t[u],t[u+1]-=s;break;case 270:for(let u=0,d=t.length;u<d;u+=2){const f=t[u];t[u]=c-t[u+1],t[u+1]=a-f}break;default:throw new Error("Invalid rotation")}return t},Uy=new WeakSet,mP=function(t,r,i,o){var d,f;const s=[],a=this.thickness/2,c=t*r+a,u=t*i+a;for(const h of this.paths){const p=[],m=[];for(let y=0,b=h.length;y<b;y++){const[w,v,k,C]=h[y];if(w[0]===C[0]&&w[1]===C[1]&&b===1){const V=t*w[0]+c,U=t*w[1]+u;p.push(V,U),m.push(V,U);break}const T=t*w[0]+c,S=t*w[1]+u,E=t*v[0]+c,O=t*v[1]+u,I=t*k[0]+c,P=t*k[1]+u,D=t*C[0]+c,B=t*C[1]+u;y===0&&(p.push(T,S),m.push(T,S)),p.push(E,O,I,P,D,B),m.push(E,O),y===b-1&&m.push(D,B)}s.push({bezier:x(d=Je,L1,Qv).call(d,p,o,this.rotation),points:x(f=Je,L1,Qv).call(f,m,o,this.rotation)})}return s},B1=new WeakSet,Xv=function(){let t=1/0,r=-1/0,i=1/0,o=-1/0;for(const s of this.paths)for(const[a,c,u,d]of s){const f=le.bezierBoundingBox(...a,...c,...u,...d);t=Math.min(t,f[0]),i=Math.min(i,f[1]),r=Math.max(r,f[2]),o=Math.max(o,f[3])}return[t,i,r,o]},Ju=new WeakSet,v5=function(){return g(this,Br)?Math.ceil(this.thickness*this.parentScale):0},D0=new WeakSet,ip=function(t=!1){if(this.isEmpty())return;if(!g(this,Br)){x(this,Wo,$0).call(this);return}const r=x(this,B1,Xv).call(this),i=x(this,Ju,v5).call(this);A(this,E0,Math.max(ze.MIN_SIZE,r[2]-r[0])),A(this,M0,Math.max(ze.MIN_SIZE,r[3]-r[1]));const o=Math.ceil(i+g(this,E0)*this.scaleFactor),s=Math.ceil(i+g(this,M0)*this.scaleFactor),[a,c]=this.parentDimensions;this.width=o/a,this.height=s/c,this.setAspectRatio(o,s);const u=this.translationX,d=this.translationY;this.translationX=-r[0],this.translationY=-r[1],x(this,wa,gd).call(this),x(this,Wo,$0).call(this),A(this,I0,o),A(this,O0,s),this.setDims(o,s);const f=t?i/this.scaleFactor/2:0;this.translate(u-this.translationX-f,d-this.translationY-f)},M(Je,zy),M(Je,L1),M(Je,Hy),pe(Je,"_defaultColor",null),pe(Je,"_defaultOpacity",1),pe(Je,"_defaultThickness",1),pe(Je,"_type","ink"),pe(Je,"_editorType",Te.INK);let Y4=Je;const j1=class j1 extends ze{constructor(t){super({...t,name:"stampEditor"});M(this,N0);M(this,P0);M(this,td);M(this,$1);M(this,Zy);M(this,V1);M(this,F1);M(this,nd);M(this,Wy);M(this,vt,null);M(this,rn,null);M(this,va,null);M(this,qo,null);M(this,Ca,null);M(this,ed,"");M(this,Gi,null);M(this,Ko,null);M(this,Yi,null);M(this,Rr,!1);M(this,R1,!1);A(this,qo,t.bitmapUrl),A(this,Ca,t.bitmapFile)}static initialize(t,r){ze.initialize(t,r)}static get supportedTypes(){return Ie(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(t=>`image/${t}`))}static get supportedTypesStr(){return Ie(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(t){return this.supportedTypes.includes(t)}static paste(t,r){r.pasteEditor(Te.STAMP,{bitmapFile:t.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var t;return{type:"stamp",hasAltText:!!((t=this.altTextData)!=null&&t.altText)}}static computeTelemetryFinalData(t){const r=t.get("hasAltText");return{hasAltText:r.get(!0)??0,hasNoAltText:r.get(!1)??0}}async mlGuessAltText(t=null,r=!0){if(this.hasAltTextData())return null;const{mlManager:i}=this._uiManager;if(!i)throw new Error("No ML.");if(!await i.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:o,width:s,height:a}=t||this.copyCanvas(null,!0).imageData,c=await i.guess({name:"altText",request:{data:o,width:s,height:a,channels:o.length/(s*a)}});if(!c)throw new Error("No response from the AI service.");if(c.error)throw new Error("Error from the AI service.");if(c.cancel)return null;if(!c.output)throw new Error("No valid response from the AI service.");const u=c.output;return await this.setGuessedAltText(u),r&&!this.hasAltTextData()&&(this.altTextData={alt:u,decorative:!1}),u}remove(){var t,r;g(this,rn)&&(A(this,vt,null),this._uiManager.imageManager.deleteId(g(this,rn)),(t=g(this,Gi))==null||t.remove(),A(this,Gi,null),(r=g(this,Ko))==null||r.disconnect(),A(this,Ko,null),g(this,Yi)&&(clearTimeout(g(this,Yi)),A(this,Yi,null))),super.remove()}rebuild(){this.parent?(super.rebuild(),this.div!==null&&(g(this,rn)&&g(this,Gi)===null&&x(this,td,C5).call(this),this.isAttachedToDOM||this.parent.add(this))):g(this,rn)&&x(this,td,C5).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(g(this,va)||g(this,vt)||g(this,qo)||g(this,Ca)||g(this,rn))}get isResizable(){return!0}render(){if(this.div)return this.div;let t,r;if(this.width&&(t=this.x,r=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),g(this,vt)?x(this,$1,Jv).call(this):x(this,td,C5).call(this),this.width){const[i,o]=this.parentDimensions;this.setAt(t*i,r*o,this.width*i,this.height*o)}return this.div}copyCanvas(t,r=!1){var b;t||(t=224);const{width:i,height:o}=g(this,vt),s=document.createElement("canvas");let a=g(this,vt),c=i,u=o;if(i>t||o>t){const w=Math.min(t/i,t/o);c=Math.floor(i*w),u=Math.floor(o*w),g(this,Rr)||(a=x(this,V1,e8).call(this,c,u))}s.width=c,s.height=u;const d=s.getContext("2d");d.filter=this._uiManager.hcmFilter;let f="white",h="#cfcfd8";this._uiManager.hcmFilter!=="none"?h="black":(b=window.matchMedia)!=null&&b.call(window,"(prefers-color-scheme: dark)").matches&&(f="#8f8f9d",h="#42414d");const p=15,m=new OffscreenCanvas(30,30),y=m.getContext("2d");if(y.fillStyle=f,y.fillRect(0,0,30,30),y.fillStyle=h,y.fillRect(0,0,p,p),y.fillRect(p,p,p,p),d.fillStyle=d.createPattern(m,"repeat"),d.fillRect(0,0,c,u),r){const w=new OffscreenCanvas(c,u),v=w.getContext("2d",{willReadFrequently:!0});v.drawImage(a,0,0,a.width,a.height,0,0,c,u);const k=v.getImageData(0,0,c,u).data;return d.drawImage(w,0,0),{canvas:s,imageData:{width:c,height:u,data:k}}}return d.drawImage(a,0,0,a.width,a.height,0,0,c,u),{canvas:s,imageData:null}}getImageForAltText(){return g(this,Gi)}static deserialize(t,r,i){if(t instanceof iE)return null;const o=super.deserialize(t,r,i),{rect:s,bitmapUrl:a,bitmapId:c,isSvg:u,accessibilityData:d}=t;c&&i.imageManager.isValidId(c)?A(o,rn,c):A(o,qo,a),A(o,Rr,u);const[f,h]=o.pageDimensions;return o.width=(s[2]-s[0])/f,o.height=(s[3]-s[1])/h,d&&(o.altTextData=d),o}serialize(t=!1,r=null){if(this.isEmpty())return null;const i={annotationType:Te.STAMP,bitmapId:g(this,rn),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:g(this,Rr),structTreeParentId:this._structTreeParentId};if(t)return i.bitmapUrl=x(this,nd,k5).call(this,!0),i.accessibilityData=this.serializeAltText(!0),i;const{decorative:o,altText:s}=this.serializeAltText(!1);if(!o&&s&&(i.accessibilityData={type:"Figure",alt:s}),r===null)return i;r.stamps||(r.stamps=new Map);const a=g(this,Rr)?(i.rect[2]-i.rect[0])*(i.rect[3]-i.rect[1]):null;if(r.stamps.has(g(this,rn))){if(g(this,Rr)){const c=r.stamps.get(g(this,rn));a>c.area&&(c.area=a,c.serialized.bitmap.close(),c.serialized.bitmap=x(this,nd,k5).call(this,!1))}}else r.stamps.set(g(this,rn),{area:a,serialized:i}),i.bitmap=x(this,nd,k5).call(this,!1);return i}};vt=new WeakMap,rn=new WeakMap,va=new WeakMap,qo=new WeakMap,Ca=new WeakMap,ed=new WeakMap,Gi=new WeakMap,Ko=new WeakMap,Yi=new WeakMap,Rr=new WeakMap,R1=new WeakMap,N0=new WeakSet,op=function(t,r=!1){t?(A(this,vt,t.bitmap),r||(A(this,rn,t.id),A(this,Rr,t.isSvg)),t.file&&A(this,ed,t.file.name),x(this,$1,Jv).call(this)):this.remove()},P0=new WeakSet,sp=function(){if(A(this,va,null),this._uiManager.enableWaiting(!1),g(this,Gi))if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&g(this,vt))this._editToolbar.hide(),this._uiManager.editAltText(this,!0);else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&g(this,vt)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}},td=new WeakSet,C5=function(){if(g(this,rn)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(g(this,rn)).then(i=>x(this,N0,op).call(this,i,!0)).finally(()=>x(this,P0,sp).call(this));return}if(g(this,qo)){const i=g(this,qo);A(this,qo,null),this._uiManager.enableWaiting(!0),A(this,va,this._uiManager.imageManager.getFromUrl(i).then(o=>x(this,N0,op).call(this,o)).finally(()=>x(this,P0,sp).call(this)));return}if(g(this,Ca)){const i=g(this,Ca);A(this,Ca,null),this._uiManager.enableWaiting(!0),A(this,va,this._uiManager.imageManager.getFromFile(i).then(o=>x(this,N0,op).call(this,o)).finally(()=>x(this,P0,sp).call(this)));return}const t=document.createElement("input");t.type="file",t.accept=j1.supportedTypesStr;const r=this._uiManager._signal;A(this,va,new Promise(i=>{t.addEventListener("change",async()=>{if(t.files&&t.files.length!==0){this._uiManager.enableWaiting(!0);const o=await this._uiManager.imageManager.getFromFile(t.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),x(this,N0,op).call(this,o)}else this.remove();i()},{signal:r}),t.addEventListener("cancel",()=>{this.remove(),i()},{signal:r})}).finally(()=>x(this,P0,sp).call(this))),t.click()},$1=new WeakSet,Jv=function(){const{div:t}=this;let{width:r,height:i}=g(this,vt);const[o,s]=this.pageDimensions,a=.75;if(this.width)r=this.width*o,i=this.height*s;else if(r>a*o||i>a*s){const f=Math.min(a*o/r,a*s/i);r*=f,i*=f}const[c,u]=this.parentDimensions;this.setDims(r*c/o,i*u/s),this._uiManager.enableWaiting(!1);const d=A(this,Gi,document.createElement("canvas"));t.append(d),this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow||(t.hidden=!1),x(this,F1,t8).call(this,r,i),x(this,Wy,yP).call(this),g(this,R1)||(this.parent.addUndoableEditor(this),A(this,R1,!0)),this._reportTelemetry({action:"inserted_image"}),g(this,ed)&&d.setAttribute("aria-label",g(this,ed))},Zy=new WeakSet,gP=function(t,r){var s;const[i,o]=this.parentDimensions;this.width=t/i,this.height=r/o,this.setDims(t,r),(s=this._initialOptions)!=null&&s.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,g(this,Yi)!==null&&clearTimeout(g(this,Yi)),A(this,Yi,setTimeout(()=>{A(this,Yi,null),x(this,F1,t8).call(this,t,r)},200))},V1=new WeakSet,e8=function(t,r){const{width:i,height:o}=g(this,vt);let s=i,a=o,c=g(this,vt);for(;s>2*t||a>2*r;){const u=s,d=a;s>2*t&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2)),a>2*r&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const f=new OffscreenCanvas(s,a);f.getContext("2d").drawImage(c,0,0,u,d,0,0,s,a),c=f.transferToImageBitmap()}return c},F1=new WeakSet,t8=function(t,r){t=Math.ceil(t),r=Math.ceil(r);const i=g(this,Gi);if(!i||i.width===t&&i.height===r)return;i.width=t,i.height=r;const o=g(this,Rr)?g(this,vt):x(this,V1,e8).call(this,t,r),s=i.getContext("2d");s.filter=this._uiManager.hcmFilter,s.drawImage(o,0,0,o.width,o.height,0,0,t,r)},nd=new WeakSet,k5=function(t){if(t){if(g(this,Rr)){const i=this._uiManager.imageManager.getSvgUrl(g(this,rn));if(i)return i}const r=document.createElement("canvas");return{width:r.width,height:r.height}=g(this,vt),r.getContext("2d").drawImage(g(this,vt),0,0),r.toDataURL()}if(g(this,Rr)){const[r,i]=this.pageDimensions,o=Math.round(this.width*r*hs.PDF_TO_CSS_UNITS),s=Math.round(this.height*i*hs.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(o,s);return a.getContext("2d").drawImage(g(this,vt),0,0,g(this,vt).width,g(this,vt).height,0,0,o,s),a.transferToImageBitmap()}return structuredClone(g(this,vt))},Wy=new WeakSet,yP=function(){this._uiManager._signal&&(A(this,Ko,new ResizeObserver(t=>{const r=t[0].contentRect;r.width&&r.height&&x(this,Zy,gP).call(this,r.width,r.height)})),g(this,Ko).observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{var t;(t=g(this,Ko))==null||t.disconnect(),A(this,Ko,null)},{once:!0}))},pe(j1,"_type","stamp"),pe(j1,"_editorType",Te.STAMP);let Q4=j1;const di=class di{constructor({uiManager:e,pageIndex:t,div:r,accessibilityManager:i,annotationLayer:o,drawLayer:s,textLayer:a,viewport:c,l10n:u}){M(this,qy);M(this,z1);M(this,H1);M(this,U1);M(this,sd);M(this,_0,void 0);M(this,rd,!1);M(this,Qi,null);M(this,ka,null);M(this,Go,null);M(this,hr,new Map);M(this,Sa,!1);M(this,id,!1);M(this,od,!1);M(this,Tn,null);M(this,Yo,null);M(this,ue,void 0);const d=[...g(di,Ma).values()];if(!di._initialized){di._initialized=!0;for(const f of d)f.initialize(u,e)}e.registerEditorTypes(d),A(this,ue,e),this.pageIndex=t,this.div=r,A(this,_0,i),A(this,Qi,o),this.viewport=c,A(this,Tn,a),this.drawLayer=s,g(this,ue).addLayer(this)}get isEmpty(){return g(this,hr).size===0}get isInvisible(){return this.isEmpty&&g(this,ue).getMode()===Te.NONE}updateToolbar(e){g(this,ue).updateToolbar(e)}updateMode(e=g(this,ue).getMode()){switch(x(this,sd,S5).call(this),e){case Te.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case Te.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case Te.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;for(const r of g(di,Ma).values())t.toggle(`${r._type}Editing`,e===r._editorType);this.div.hidden=!1}hasTextLayer(e){var t;return e===((t=g(this,Tn))==null?void 0:t.div)}addInkEditorIfNeeded(e){if(g(this,ue).getMode()===Te.INK){if(!e){for(const t of g(this,hr).values())if(t.isEmpty()){t.setInBackground();return}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){g(this,ue).setEditingState(e)}addCommands(e){g(this,ue).addCommands(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){var t;(t=g(this,Qi))==null||t.div.classList.toggle("disabled",!e)}enable(){this.div.tabIndex=0,this.togglePointerEvents(!0);const e=new Set;for(const r of g(this,hr).values())r.enableEditing(),r.show(!0),r.annotationElementId&&(g(this,ue).removeChangedExistingAnnotation(r),e.add(r.annotationElementId));if(!g(this,Qi))return;const t=g(this,Qi).getEditableAnnotations();for(const r of t){if(r.hide(),g(this,ue).isDeletedAnnotationElement(r.data.id)||e.has(r.data.id))continue;const i=this.deserialize(r);i&&(this.addOrRebuild(i),i.enableEditing())}}disable(){var i;A(this,od,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,t=new Map;for(const o of g(this,hr).values())o.disableEditing(),o.annotationElementId&&(o.serialize()===null?(t.set(o.annotationElementId,o),(i=this.getEditableAnnotation(o.annotationElementId))==null||i.show(),o.remove()):e.set(o.annotationElementId,o));if(g(this,Qi)){const o=g(this,Qi).getEditableAnnotations();for(const s of o){const{id:a}=s.data;if(g(this,ue).isDeletedAnnotationElement(a))continue;let c=t.get(a);c?(c.resetAnnotationElement(s),c.show(!1),s.show()):(c=e.get(a),c&&(g(this,ue).addChangedExistingAnnotation(c),c.renderAnnotationElement(s),c.show(!1)),s.show())}}x(this,sd,S5).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:r}=this.div;for(const o of g(di,Ma).values())r.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),A(this,od,!1)}getEditableAnnotation(e){var t;return((t=g(this,Qi))==null?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){g(this,ue).getActive()!==e&&g(this,ue).setActiveEditor(e)}enableTextSelection(){var e;if(this.div.tabIndex=-1,(e=g(this,Tn))!=null&&e.div&&!g(this,Yo)){A(this,Yo,new AbortController);const t=g(this,ue).combinedSignal(g(this,Yo));g(this,Tn).div.addEventListener("pointerdown",x(this,qy,bP).bind(this),{signal:t}),g(this,Tn).div.classList.add("highlighting")}}disableTextSelection(){var e;this.div.tabIndex=0,(e=g(this,Tn))!=null&&e.div&&g(this,Yo)&&(g(this,Yo).abort(),A(this,Yo,null),g(this,Tn).div.classList.remove("highlighting"))}enableClick(){if(g(this,ka))return;A(this,ka,new AbortController);const e=g(this,ue).combinedSignal(g(this,ka));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:e})}disableClick(){var e;(e=g(this,ka))==null||e.abort(),A(this,ka,null)}attach(e){g(this,hr).set(e.id,e);const{annotationElementId:t}=e;t&&g(this,ue).isDeletedAnnotationElement(t)&&g(this,ue).removeDeletedAnnotationElement(e)}detach(e){var t;g(this,hr).delete(e.id),(t=g(this,_0))==null||t.removePointerInTextLayer(e.contentDiv),!g(this,od)&&e.annotationElementId&&g(this,ue).addDeletedAnnotationElement(e)}remove(e){this.detach(e),g(this,ue).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1,g(this,id)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.parent&&e.annotationElementId&&(g(this,ue).addDeletedAnnotationElement(e.annotationElementId),ze.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),(t=e.parent)==null||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(e.parent!==this||!e.isAttachedToDOM){if(this.changeParent(e),g(this,ue).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),g(this,ue).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var r;if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&!g(this,Go)&&(e._focusEventsAllowed=!1,A(this,Go,setTimeout(()=>{A(this,Go,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:g(this,ue)._signal}),t.focus())},0))),e._structTreeParentId=(r=g(this,_0))==null?void 0:r.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return g(this,ue).getId()}combinedSignal(e){return g(this,ue).combinedSignal(e)}canCreateNewEmptyEditor(){var e;return(e=g(this,z1,n8))==null?void 0:e.canCreateNewEmptyEditor()}pasteEditor(e,t){g(this,ue).updateToolbar(e),g(this,ue).updateMode(e);const{offsetX:r,offsetY:i}=x(this,U1,i8).call(this),o=this.getNextId(),s=x(this,H1,r8).call(this,{parent:this,id:o,x:r,y:i,uiManager:g(this,ue),isCentered:!0,...t});s&&this.add(s)}deserialize(e){var t;return((t=g(di,Ma).get(e.annotationType??e.annotationEditorType))==null?void 0:t.deserialize(e,this,g(this,ue)))||null}createAndAddNewEditor(e,t,r={}){const i=this.getNextId(),o=x(this,H1,r8).call(this,{parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:g(this,ue),isCentered:t,...r});return o&&this.add(o),o}addNewEditor(){this.createAndAddNewEditor(x(this,U1,i8).call(this),!0)}setSelected(e){g(this,ue).setSelected(e)}toggleSelected(e){g(this,ue).toggleSelected(e)}isSelected(e){return g(this,ue).isSelected(e)}unselect(e){g(this,ue).unselect(e)}pointerup(e){const{isMac:t}=Rn.platform;!(e.button!==0||e.ctrlKey&&t)&&e.target===this.div&&g(this,Sa)&&(A(this,Sa,!1),g(this,rd)?g(this,ue).getMode()!==Te.STAMP?this.createAndAddNewEditor(e,!1):g(this,ue).unselectAll():A(this,rd,!0))}pointerdown(e){if(g(this,ue).getMode()===Te.HIGHLIGHT&&this.enableTextSelection(),g(this,Sa)){A(this,Sa,!1);return}const{isMac:t}=Rn.platform;if(e.button!==0||e.ctrlKey&&t||e.target!==this.div)return;A(this,Sa,!0);const r=g(this,ue).getActive();A(this,rd,!r||r.isEmpty())}findNewParent(e,t,r){const i=g(this,ue).findParent(t,r);return i===null||i===this?!1:(i.changeParent(e),!0)}destroy(){var e,t;((e=g(this,ue).getActive())==null?void 0:e.parent)===this&&(g(this,ue).commitOrRemove(),g(this,ue).setActiveEditor(null)),g(this,Go)&&(clearTimeout(g(this,Go)),A(this,Go,null));for(const r of g(this,hr).values())(t=g(this,_0))==null||t.removePointerInTextLayer(r.contentDiv),r.setParent(null),r.isAttachedToDOM=!1,r.div.remove();this.div=null,g(this,hr).clear(),g(this,ue).removeLayer(this)}render({viewport:e}){this.viewport=e,Ka(this.div,e);for(const t of g(this,ue).getEditors(this.pageIndex))this.add(t),t.rebuild();this.updateMode()}update({viewport:e}){g(this,ue).commitOrRemove(),x(this,sd,S5).call(this);const t=this.viewport.rotation,r=e.rotation;if(this.viewport=e,Ka(this.div,{rotation:r}),t!==r)for(const i of g(this,hr).values())i.rotate(r);this.addInkEditorIfNeeded(!1)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return g(this,ue).viewParameters.realScale}};_0=new WeakMap,rd=new WeakMap,Qi=new WeakMap,ka=new WeakMap,Go=new WeakMap,hr=new WeakMap,Sa=new WeakMap,id=new WeakMap,od=new WeakMap,Tn=new WeakMap,Yo=new WeakMap,ue=new WeakMap,Ma=new WeakMap,qy=new WeakSet,bP=function(e){g(this,ue).unselectAll();const{target:t}=e;if(t===g(this,Tn).div||t.classList.contains("endOfContent")&&g(this,Tn).div.contains(t)){const{isMac:r}=Rn.platform;if(e.button!==0||e.ctrlKey&&r)return;g(this,ue).showAllEditors("highlight",!0,!0),g(this,Tn).div.classList.add("free"),this.toggleDrawing(),ym.startHighlighting(this,g(this,ue).direction==="ltr",e),g(this,Tn).div.addEventListener("pointerup",()=>{g(this,Tn).div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:g(this,ue)._signal}),e.preventDefault()}},z1=new WeakSet,n8=function(){return g(di,Ma).get(g(this,ue).getMode())},H1=new WeakSet,r8=function(e){const t=g(this,z1,n8);return t?new t.prototype.constructor(e):null},U1=new WeakSet,i8=function(){const{x:e,y:t,width:r,height:i}=this.div.getBoundingClientRect(),o=Math.max(0,e),s=Math.max(0,t),a=(o+Math.min(window.innerWidth,e+r))/2-e,c=(s+Math.min(window.innerHeight,t+i))/2-t,[u,d]=this.viewport.rotation%180==0?[a,c]:[c,a];return{offsetX:u,offsetY:d}},sd=new WeakSet,S5=function(){A(this,id,!0);for(const e of g(this,hr).values())e.isEmpty()&&e.remove();A(this,id,!1)},pe(di,"_initialized",!1),M(di,Ma,new Map([K4,Y4,Q4,ym].map(e=>[e._editorType,e])));let X4=di;const on=class on{constructor({pageIndex:e}){M(this,q1);M(this,Ky);M(this,Xi,null);M(this,Z1,0);M(this,Pt,new Map);M(this,Ea,new Map);this.pageIndex=e}setParent(e){if(g(this,Xi)){if(g(this,Xi)!==e){if(g(this,Pt).size>0)for(const t of g(this,Pt).values())t.remove(),e.append(t);A(this,Xi,e)}}else A(this,Xi,e)}static get _svgFactory(){return Ie(this,"_svgFactory",new A4)}highlight(e,t,r,i=!1){const o=Gn(this,Z1)._++,s=x(this,q1,s8).call(this,e.box);s.classList.add("highlight"),e.free&&s.classList.add("free");const a=on._svgFactory.createElement("defs");s.append(a);const c=on._svgFactory.createElement("path");a.append(c);const u=`path_p${this.pageIndex}_${o}`;c.setAttribute("id",u),c.setAttribute("d",e.toSVGPath()),i&&g(this,Ea).set(o,c);const d=x(this,Ky,wP).call(this,a,u),f=on._svgFactory.createElement("use");return s.append(f),s.setAttribute("fill",t),s.setAttribute("fill-opacity",r),f.setAttribute("href",`#${u}`),g(this,Pt).set(o,s),{id:o,clipPathId:`url(#${d})`}}highlightOutline(e){const t=Gn(this,Z1)._++,r=x(this,q1,s8).call(this,e.box);r.classList.add("highlightOutline");const i=on._svgFactory.createElement("defs");r.append(i);const o=on._svgFactory.createElement("path");i.append(o);const s=`path_p${this.pageIndex}_${t}`;o.setAttribute("id",s),o.setAttribute("d",e.toSVGPath()),o.setAttribute("vector-effect","non-scaling-stroke");let a;if(e.free){r.classList.add("free");const d=on._svgFactory.createElement("mask");i.append(d),a=`mask_p${this.pageIndex}_${t}`,d.setAttribute("id",a),d.setAttribute("maskUnits","objectBoundingBox");const f=on._svgFactory.createElement("rect");d.append(f),f.setAttribute("width","1"),f.setAttribute("height","1"),f.setAttribute("fill","white");const h=on._svgFactory.createElement("use");d.append(h),h.setAttribute("href",`#${s}`),h.setAttribute("stroke","none"),h.setAttribute("fill","black"),h.setAttribute("fill-rule","nonzero"),h.classList.add("mask")}const c=on._svgFactory.createElement("use");r.append(c),c.setAttribute("href",`#${s}`),a&&c.setAttribute("mask",`url(#${a})`);const u=c.cloneNode();return r.append(u),c.classList.add("mainOutline"),u.classList.add("secondaryOutline"),g(this,Pt).set(t,r),t}finalizeLine(e,t){const r=g(this,Ea).get(e);g(this,Ea).delete(e),this.updateBox(e,t.box),r.setAttribute("d",t.toSVGPath())}updateLine(e,t){g(this,Pt).get(e).firstChild.firstChild.setAttribute("d",t.toSVGPath())}removeFreeHighlight(e){this.remove(e),g(this,Ea).delete(e)}updatePath(e,t){g(this,Ea).get(e).setAttribute("d",t.toSVGPath())}updateBox(e,t){var r;x(r=on,W1,o8).call(r,g(this,Pt).get(e),t)}show(e,t){g(this,Pt).get(e).classList.toggle("hidden",!t)}rotate(e,t){g(this,Pt).get(e).setAttribute("data-main-rotation",t)}changeColor(e,t){g(this,Pt).get(e).setAttribute("fill",t)}changeOpacity(e,t){g(this,Pt).get(e).setAttribute("fill-opacity",t)}addClass(e,t){g(this,Pt).get(e).classList.add(t)}removeClass(e,t){g(this,Pt).get(e).classList.remove(t)}remove(e){g(this,Xi)!==null&&(g(this,Pt).get(e).remove(),g(this,Pt).delete(e))}destroy(){A(this,Xi,null);for(const e of g(this,Pt).values())e.remove();g(this,Pt).clear()}};Xi=new WeakMap,Z1=new WeakMap,Pt=new WeakMap,Ea=new WeakMap,W1=new WeakSet,o8=function(e,{x:t=0,y:r=0,width:i=1,height:o=1}={}){const{style:s}=e;s.top=100*r+"%",s.left=100*t+"%",s.width=100*i+"%",s.height=100*o+"%"},q1=new WeakSet,s8=function(e){var r;const t=on._svgFactory.create(1,1,!0);return g(this,Xi).append(t),t.setAttribute("aria-hidden",!0),x(r=on,W1,o8).call(r,t,e),t},Ky=new WeakSet,wP=function(e,t){const r=on._svgFactory.createElement("clipPath");e.append(r);const i=`clip_${t}`;r.setAttribute("id",i),r.setAttribute("clipPathUnits","objectBoundingBox");const o=on._svgFactory.createElement("use");return r.append(o),o.setAttribute("href",`#${t}`),o.classList.add("clip"),i},M(on,W1);let J4=on;ye.AbortException,ye.AnnotationEditorLayer,ye.AnnotationEditorParamsType,ye.AnnotationEditorType,ye.AnnotationEditorUIManager,ye.AnnotationLayer,ye.AnnotationMode,ye.CMapCompressionType,ye.ColorPicker,ye.DOMSVGFactory,ye.DrawLayer,ye.FeatureTest;var uW=ye.GlobalWorkerOptions;ye.ImageKind,ye.InvalidPDFException,ye.MissingPDFException,ye.OPS,ye.PDFDataRangeTransport,ye.PDFDateString,ye.PDFWorker,ye.PasswordResponses,ye.PermissionFlag,ye.PixelsPerInch,ye.RenderingCancelledException,ye.TextLayer,ye.UnexpectedResponseException,ye.Util,ye.VerbosityLevel,ye.XfaLayer,ye.build,ye.createValidAbsoluteUrl,ye.fetchData;var dW=ye.getDocument;ye.getFilenameFromUrl,ye.getPdfFilenameFromUrl,ye.getXfaPageViewport,ye.isDataScheme,ye.isPdfFile,ye.noContextMenu,ye.normalizeUnicode,ye.setLayerDimensions,ye.shadow;var fW=ye.version;const hW=l.defineComponent({name:"QModal",components:{QIcon:z0},props:{id:{type:String,default:"q-modal"},closeButtonClass:{type:String,default:""},containerClass:{type:String,default:"h-fit min-h-fit"},dismissible:{type:Boolean,default:!0},dismissibleOverlay:{type:Boolean,default:!0},dismissText:{type:String,default:""},overlay:{type:String,default:"white-transparent"},size:{type:String,default:"md"},showCancelLink:{type:Boolean,default:!1},hasBuildingBg:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){l.provide("size",n.size);const t=()=>{n.dismissible&&e("close")};return l.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),l.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{onCloseModal:t}}});function pW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createElementBlock("div",{ref:"currentModal",class:l.normalizeClass(["q-modal",n.overlay]),onKeydown:e[3]||(e[3]=l.withKeys((...a)=>n.onCloseModal&&n.onCloseModal(...a),["escape"]))},[l.createElementVNode("div",l.mergeProps({class:"overlay"},{[l.toHandlerKey(n.dismissibleOverlay&&"click")]:e[0]||(e[0]=(...a)=>n.onCloseModal&&n.onCloseModal(...a))}),null,16),l.createElementVNode("div",{class:l.normalizeClass(["modal-container flex flex-col relative","modal-"+n.size,n.containerClass,{"building-background":n.hasBuildingBg}])},[n.dismissible?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["modal-close-button",n.closeButtonClass]),onClick:e[1]||(e[1]=(...a)=>n.onCloseModal&&n.onCloseModal(...a))},[l.createVNode(s,{icon:"close",type:"line",color:"gray-40"})],2)):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0),n.showCancelLink?(l.openBlock(),l.createElementBlock("a",{key:1,class:"modal-close-link",href:"#",onClick:e[2]||(e[2]=l.withModifiers(a=>n.$emit("close"),["prevent"]))},l.toDisplayString(n.$t("HC_CANCEL")),1)):l.createCommentVNode("",!0)],2)],34)}const e6=me(hW,[["render",pW],["__scopeId","data-v-8867a052"]]),mW=l.defineComponent({name:"QErrorModal",components:{QModal:e6},props:{toggle:{type:Boolean,default:!1,required:!0}},emits:["update:toggle"],setup(n,{emit:e}){return{toggleModal:l.computed({get:()=>n.toggle,set:r=>{e("update:toggle",r)}}),mq:Ln}}}),gW={class:"flex flex-col gap-2 text-center"},yW={class:"text-lg font-bold text-inkwell-30 leading-6"},bW={class:"text-inkwell-0 mb-2 md:mb-6"};function wW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("q-button"),c=l.resolveComponent("q-modal-content"),u=l.resolveComponent("q-modal");return l.openBlock(),l.createBlock(l.Transition,{name:n.mq.md?"fade":"slide-up"},{default:l.withCtx(()=>[n.toggleModal?(l.openBlock(),l.createBlock(u,{key:0,id:"error-modal",dismissible:!1,overlay:n.mq.md?"white-transparent":"black-transparent",class:"!z-[170]","footer-class":"mt-2 md:mt-6",onClose:e[1]||(e[1]=d=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createVNode(c,null,{body:l.withCtx(()=>[l.createElementVNode("div",gW,[l.createVNode(s,{icon:"exclamation-circle",type:"outline",size:"xl",color:"red-30",class:"shrink-0 self-center mb-8"}),l.createElementVNode("h2",yW,[l.renderSlot(n.$slots,"headline",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_ERROR")),1)],!0)]),l.createElementVNode("p",bW,[l.renderSlot(n.$slots,"subtext",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_SORRY_UNEXPECTED_EXIT_MODAL")),1)],!0)])])]),footer:l.withCtx(()=>[l.createVNode(a,{class:l.normalizeClass([n.mq.md?"mx-3":"w-full"]),size:"lg",status:"secondary",onClick:e[0]||(e[0]=d=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_EXIT")),1)]),_:1},8,["class"])]),_:3})]),_:3},8,["overlay"])):l.createCommentVNode("",!0)]),_:3},8,["name"])}const aE=me(mW,[["render",wW],["__scopeId","data-v-72f5c09d"]]);uW.workerSrc=`https://cdn.jsdelivr.net/npm/pdfjs-dist@${fW}/legacy/build/pdf.worker.min.mjs`;const vW=l.defineComponent({name:"PdfViewer",components:{QErrorModal:aE},props:{url:{type:String,required:!0}},emits:["pdf-error"],setup(n,{emit:e}){let t=null;const r=2,i=16,o=l.ref([]),s=l.ref(!0),a=l.ref(!1),c=l.ref(0),u=async()=>{try{if(t=await dW(n.url).promise,!t)throw new Error("pdfDoc is null or undefined");c.value=t.numPages,s.value=!1,await l.nextTick(),o.value=Array.from(document.querySelectorAll(".pdf-pages canvas")),await d()}catch(h){a.value=!0,console.log(h),s.value=!1,e("pdf-error",!0)}},d=async()=>{try{for(let h=1;h<=c.value;h++)await f(h)}catch(h){console.log(h),a.value=!0,e("pdf-error",!0)}},f=async h=>{try{const p=await(t==null?void 0:t.getPage(h));if(!p)throw new Error(`Page ${h} does not exist in the PDF document`);const y=p.getViewport({scale:1}),b=o.value[h-1];if(!b)throw new Error(`Canvas for page ${h} does not exist`);const w=b.getContext("2d");if(!w)throw new Error(`Context for page ${h} does not exist`);b.height=y==null?void 0:y.height,b.width=y==null?void 0:y.width;const v={canvasContext:w,viewport:y};await(p==null?void 0:p.render(v))}catch(p){console.log(p),a.value=!0,e("pdf-error",!0)}};return l.onMounted(()=>{u()}),{skeletonColumns:r,skeletonRows:i,canvasRefs:o,loadingMeta:s,showErrorModal:a,totalPages:c,loadPDF:u,renderPage:f}}}),CW={class:"q-pdf-viewer"},kW={key:0},SW={key:1,class:"pdf-pages"};function MW(n,e,t,r,i,o){const s=l.resolveComponent("q-error-modal");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",CW,[n.loadingMeta?(l.openBlock(),l.createElementBlock("div",kW,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.skeletonRows,a=>(l.openBlock(),l.createElementBlock("div",{key:a,class:"flex items-center p-4"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.skeletonColumns,c=>(l.openBlock(),l.createElementBlock("div",{key:c,class:l.normalizeClass(["h-[1.5rem] border-white w-11/12",(a-1)%2?"bg-gray-10":"bg-gray-30",(a-1)%4||c===1?"animate-shimmer":"!hidden"])},null,2))),128))]))),128))])):(l.openBlock(),l.createElementBlock("div",SW,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.totalPages,a=>(l.openBlock(),l.createElementBlock("canvas",{key:a,class:"w-full"}))),128))]))]),n.showErrorModal?(l.openBlock(),l.createBlock(s,{key:0,toggle:n.showErrorModal,"onUpdate:toggle":[e[0]||(e[0]=a=>n.showErrorModal=a),e[1]||(e[1]=a=>n.showErrorModal=!1)]},null,8,["toggle"])):l.createCommentVNode("",!0)],64)}const lE=me(vW,[["render",MW],["__scopeId","data-v-da5da0f5"]]),EW=l.defineComponent({name:"QTooltip",props:{id:{type:String,default:"tooltip"},color:{type:String,default:"inkwell-30"},disabled:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!0},position:{type:String,default:"bottom"},relative:{type:Boolean,default:!1},tooltipClasses:{type:[String,Array,Object],default:""}}}),AW=["aria-describedby"],TW=["id"];function xW(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:"tooltip-container","aria-describedby":n.id},[l.renderSlot(n.$slots,"trigger",{},void 0,!0),l.createElementVNode("div",{id:n.id,class:l.normalizeClass(["tooltip",n.color?"bg-"+n.color+" border-"+n.color:"",n.position,n.noWrap?"no-wrap":"",n.relative?"relative":"",n.disabled?"!hidden":"",n.tooltipClasses]),role:"tooltip"},[l.renderSlot(n.$slots,"content",{},void 0,!0)],10,TW)],8,AW)}const t6=me(EW,[["render",xW],["__scopeId","data-v-ca6ae8fe"]]),n6=()=>{const n=l.ref(""),e=navigator.userAgent;return e.match("/Android|webOS|iPhone|iPod|BlackBerry/i")?n.value="mobile":e.match("/iPad|Tablet/i")||navigator.maxTouchPoints&&navigator.maxTouchPoints>=0&&!window.matchMedia("(pointer:fine)").matches?n.value="tablet":n.value="desktop",{deviceType:n}},IW=l.defineComponent({name:"ImageGallery",components:{Galleria:oM,QBadge:Da,QBottomSheet:Q9,QMenu:m4,QPdfViewer:lE,QTooltip:t6},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showOnHover:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!0},showRemove:{type:[Boolean,Number],default:!1},baseZIndex:{type:Number,default:1e3},wrap:{type:Boolean,default:!0},processing:{type:Boolean,default:!1}},emits:["update:model-value","update:activeIndex","click:file"],setup(n,{emit:e}){const{t}=ao(),{deviceType:r}=n6(),i=[{text:t("HC_CANCEL")}],o=l.ref(null),s=l.computed(()=>{var K;return(K=o.value)==null?void 0:K.offsetWidth}),a=l.ref(null),c=l.ref([]),u=l.ref(!1),d=l.ref(null),f=l.ref("0"),h=l.ref(1),p=l.ref(Ln.md?1:.9),m=l.ref(0),y=l.ref(null),b=l.ref(),w=l.ref(!1),v=l.ref(!1),k=l.computed(()=>{if(y.value)return y.value&&"original"in y.value?{name:y.value.original.name,url:y.value.original.url,type:y.value.mimetype,extension:R(y.value.original.url)}:{name:y.value.name,url:URL.createObjectURL(y.value),type:y.value.type,extension:R(y.value.name)}}),C=l.computed(()=>[`z-[${n.baseZIndex+1}]`]),T=l.computed(()=>n.files.filter(K=>K.type.startsWith("image")&&!K.type.includes("tif"))),S=l.computed(()=>["rounded-lg relative mx-auto object-cover grow-1 max-h-[74vh]",{animated:!N}]),E=l.computed(()=>["flex items-center gap-3",n.wrap?"flex-wrap":"flex-nowrap overflow-x-auto shrink-0",{"flex-nowrap overflow-x-auto":r.value!=="desktop"}]),O=l.computed(()=>[{text:t("HC_DELETE_ATTACHMENT"),classes:"!text-red-20",event:U}]),I=K=>{const H=K instanceof File?URL.createObjectURL(K):K.original.url;r.value==="desktop"?window.open(H,"_blank"):window.open(H,"_self")},P=K=>{r.value==="desktop"?I(K):(y.value=K,v.value=!0)},D=K=>{K.event(),u.value=!1},B=(K,H)=>{var F;const j=((F=H.type)==null?void 0:F.includes("image"))&&!H.type.includes("tif");!u.value&&j?V(K,H):!u.value&&!j&&P(H)},V=(K,H)=>{const j=G=>"original"in G&&"original"in H?G.original.url===(H==null?void 0:H.original.url):H instanceof File?G.name===(H==null?void 0:H.name):!1,F=T.value.findIndex(j);m.value=F!==-1?F:K,w.value=!0},U=(K=null)=>{u.value=!1,e("update:model-value",K||d.value)},L=K=>{const{keyCode:H}=K;if(w.value)switch(H){case 37:m.value=m.value?m.value-1:T.value.length-1,e("update:activeIndex",m.value);break;case 39:m.value=m.value<T.value.length-1?m.value+1:0,e("update:activeIndex",m.value);break;case 27:w.value=!1;break}},{isSwiping:N,lengthX:$}=iL(a,{passive:!1,onSwipe(){const K=Math.abs($.value);s.value&&(h.value=1.1-K/s.value,f.value=$.value<0?`${K/4}px`:`-${K/4}px`)},onSwipeEnd(){const K=m.value<=0,H=m.value>=T.value.length-1,j=Math.abs($.value);s.value&&j/s.value>=.5?($.value<0?m.value=K?T.value.length-1:m.value-1:m.value=H?0:m.value+1,f.value="0",h.value=1):(f.value="0",h.value=1)}}),R=K=>K.substring(K.lastIndexOf(".")),q=(K,H)=>{K.preventDefault(),d.value=n.files[H],u.value=!0},re=()=>{u.value=!1,d.value=null},ce=()=>{r.value!=="desktop"&&c.value.forEach(K=>{X_(K,H=>{const j=c.value.indexOf(K);q(H,j)},{modifiers:{prevent:!0}})})};return l.onMounted(()=>{window.addEventListener("keyup",L),ce()}),l.onUpdated(()=>{ce()}),{menuActions:i,linkActions:O,deviceType:r,container:o,containerWidth:s,featuredPhoto:a,longPressRef:c,longPressedHook:u,isSwiping:N,lengthX:$,left:f,opacity:h,scale:p,showCarousel:w,showFileViewer:v,active:m,activeAttachment:y,hoveredIndex:b,closeIconClasses:C,itemClasses:S,images:T,normalizedAttachment:k,thumbnailContainerClasses:E,downloadDocument:I,getExtension:R,onAttachmentClick:P,onClickMenuLink:D,onClickThumbnail:B,onOpenCarousel:V,onRemoveFile:U,onKeyboardNavigation:L,onLongPressCallbackHook:q,resetHook:re,mq:Ln}}}),OW=n=>(l.pushScopeId("data-v-ba426870"),n=n(),l.popScopeId(),n),DW={class:"q-image-gallery flex",ref:"container"},NW={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},PW=["src","alt"],_W=["src","alt"],LW=["onMouseover","onClick"],BW=["src","alt"],RW={key:1,class:"bg-gray-00 cursor-pointer p-3 h-16 max-w-[14rem] rounded-lg border border-gray-20 flex items-center"},$W={class:"grow text-ellipsis overflow-hidden"},VW={class:"text-inkwell-30 bold leading-normal text-nowrap text-ellipsis text-sm overflow-hidden -mt-1"},FW={class:"uppercase text-xxs"},jW={key:2,class:"image-overlay absolute top-0 left-0 w-full h-full cursor-pointer"},zW={key:0,class:"absolute top-0 left-0 z-1 w-full h-full cursor-pointer bg-black/50 rounded-lg flex items-center justify-center"},HW=[OW(()=>l.createElementVNode("svg",{class:"animate-spin fill-white",width:"20",height:"20",viewBox:"0 0 24 24"},[l.createElementVNode("path",{d:"M2 12a1 1 0 0 1 2 0 8 8 0 1 0 8-8 1 1 0 0 1 0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12z"})],-1))],UW={key:1,width:"100%",height:"auto",controls:"",class:"bg-black"},ZW=["src"],WW={class:"flex items-center flex-col p-12"},qW=["src"],KW=["data","type"],GW={class:"flex items-center flex-col p-12"};function YW(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("Galleria"),c=l.resolveComponent("q-badge"),u=l.resolveComponent("q-tooltip"),d=l.resolveComponent("q-menu"),f=l.resolveComponent("q-pdf-viewer"),h=l.resolveComponent("q-bottom-sheet");return l.openBlock(),l.createElementBlock("div",DW,[l.createVNode(a,{activeIndex:n.active,"onUpdate:activeIndex":e[0]||(e[0]=p=>n.active=p),visible:n.showCarousel,"onUpdate:visible":e[1]||(e[1]=p=>n.showCarousel=p),value:n.images,numVisible:n.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:n.mq.md,showThumbnailNavigators:!0,showThumbnails:n.showThumbnails&&n.mq.md,showIndicators:!n.mq.md,containerStyle:[{height:"100vh"}],"base-z-index":n.baseZIndex},{closeicon:l.withCtx(()=>[l.createVNode(s,{class:l.normalizeClass(n.closeIconClasses),icon:"times-circle",type:"outline",size:"lg",color:"white"},null,8,["class"])]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",NW,[l.createElementVNode("img",{src:(p==null?void 0:p.itemImageSrc)||(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p==null?void 0:p.alt,class:l.normalizeClass(n.itemClasses),style:l.normalizeStyle([{left:n.left,opacity:n.opacity},`transform: scale(${n.scale})`])},null,14,PW)],512)]),thumbnail:l.withCtx(({item:p})=>[l.createElementVNode("img",{src:(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,_W)]),previousitemicon:l.withCtx(()=>[l.createVNode(s,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:l.withCtx(()=>[l.createVNode(s,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:l.withCtx(()=>[n.images.length>n.thumbnailsVisible?(l.openBlock(),l.createBlock(s,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):l.createCommentVNode("",!0)]),nextthumbnailicon:l.withCtx(()=>[n.images.length>n.thumbnailsVisible?(l.openBlock(),l.createBlock(s,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):l.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators","base-z-index"]),n.files?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(n.thumbnailContainerClasses)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.files,(p,m)=>{var y;return l.openBlock(),l.createElementBlock("div",{ref_for:!0,ref:"longPressRef",key:p.name||((y=p.original)==null?void 0:y.name)||m,class:l.normalizeClass(["p-0 relative rounded-lg",{"shrink-0":n.deviceType!=="desktop"}]),onMouseover:b=>n.hoveredIndex=m,onMouseleave:e[2]||(e[2]=b=>n.hoveredIndex=null),onClick:b=>n.onClickThumbnail(m,p)},[l.createVNode(u,{position:"top"},{trigger:l.withCtx(()=>[p.type&&p.type.includes("image")&&!p.type.includes("tif")?(l.openBlock(),l.createElementBlock("img",{key:0,src:(p==null?void 0:p.objectURL)||(p==null?void 0:p.original.url),alt:p==null?void 0:p.alt,class:"rounded-lg cursor-pointer w-16 h-16 object-cover bg-gray-0 border-gray-20 border"},null,8,BW)):(l.openBlock(),l.createElementBlock("div",RW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"white",class:"mr-3 shrink-0 p-2 bg-green-20 rounded-lg h-full"}),l.createElementVNode("div",$W,[l.createElementVNode("div",VW,l.toDisplayString(p.name||p.original.name),1),l.createElementVNode("div",FW,l.toDisplayString((p.name||p.original.name).match(/([^.]+$)/)[0]),1)])])),n.deviceType!=="desktop"?(l.openBlock(),l.createElementBlock("div",jW)):l.createCommentVNode("",!0),n.showRemove&&n.showOnHover&&n.hoveredIndex===m&&n.deviceType==="desktop"&&!n.processing?(l.openBlock(),l.createBlock(c,{key:3,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute -top-2 -right-2 shadow-solid z-10",onClick:l.withModifiers(b=>n.onRemoveFile(p),["stop"])},{icon:l.withCtx(()=>[l.createVNode(s,{icon:"close",size:"xs",type:"line",color:"white"})]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)]),content:l.withCtx(()=>{var b;return[l.createTextVNode(l.toDisplayString(p.name||((b=p.original)==null?void 0:b.name)),1)]}),_:2},1024),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.processing?(l.openBlock(),l.createElementBlock("div",zW,HW)):l.createCommentVNode("",!0)]),_:1})],42,LW)}),128)),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.longPressedHook?(l.openBlock(),l.createBlock(d,{key:0,modelValue:n.longPressedHook,"onUpdate:modelValue":e[3]||(e[3]=p=>n.longPressedHook=p),actions:n.menuActions,links:n.linkActions,"links-background":"light-gray","onClick:link":n.onClickMenuLink,"onClick:action":e[4]||(e[4]=p=>n.longPressedHook=!1)},null,8,["modelValue","actions","links","onClick:link"])):l.createCommentVNode("",!0)]),_:1})],2)):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:"slide-up-fade"},{default:l.withCtx(()=>[n.showFileViewer&&n.normalizedAttachment&&n.activeAttachment?(l.openBlock(),l.createBlock(h,{key:0,modelValue:n.showFileViewer,"onUpdate:modelValue":e[6]||(e[6]=p=>n.showFileViewer=p),"show-close-button":!1,"content-class":"p-0","header-class":"border-b border-solid border-gray-20","title-class":"min-w-0 truncate"},{header:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.normalizedAttachment.name),1)]),headerAction:l.withCtx(()=>[!n.normalizedAttachment.type.includes("video")&&n.normalizedAttachment.type!=="audio/mpeg"&&n.normalizedAttachment.type!=="application/pdf"?(l.openBlock(),l.createBlock(s,{key:0,icon:"arrow-to-bottom",type:"line",size:"md",color:"inkwell-40",class:"shrink-0 cursor-pointer",onClick:e[5]||(e[5]=p=>n.downloadDocument(n.activeAttachment))})):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[n.normalizedAttachment.type==="application/pdf"?(l.openBlock(),l.createBlock(f,{key:0,url:n.normalizedAttachment.url},null,8,["url"])):n.normalizedAttachment.type.includes("video")?(l.openBlock(),l.createElementBlock("video",UW,[l.createElementVNode("source",{src:n.normalizedAttachment.url},null,8,ZW),l.createElementVNode("div",WW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"inkwell-30"}),l.createTextVNode(" "+l.toDisplayString(n.normalizedAttachment.extension),1)])])):n.normalizedAttachment.type==="audio/mpeg"?(l.openBlock(),l.createElementBlock("audio",{key:2,controls:"",src:n.normalizedAttachment.url,class:"mx-auto my-6"},null,8,qW)):(l.openBlock(),l.createElementBlock("object",{key:3,data:n.normalizedAttachment.url,type:n.normalizedAttachment.type,class:"w-full h-auto"},[l.createElementVNode("div",GW,[l.createVNode(s,{icon:"file-document",size:"xl",color:"inkwell-30"}),l.createTextVNode(" "+l.toDisplayString(n.normalizedAttachment.extension),1)])],8,KW))]),_:1},8,["modelValue"])):l.createCommentVNode("",!0)]),_:1})],512)}const r6=me(IW,[["render",YW],["__scopeId","data-v-ba426870"]]),QW=l.defineComponent({name:"QWarningModal",components:{QModal:e6},props:{toggle:{type:Boolean,default:!1,required:!0},action:{type:Function,default:()=>{}},processing:{type:Boolean,default:!1}},emits:["update:toggle","update:action"],setup(n,{emit:e}){return{toggleModal:l.computed({get:()=>n.toggle,set:r=>{e("update:toggle",r)}}),mq:Ln}}}),XW={key:0,class:"flex flex-col gap-2 text-center"},JW={class:"text-lg font-bold text-inkwell-30 leading-6"},eq={class:"text-inkwell-0 mb-6"},tq={key:1,class:"flex flex-col gap-2 text-center"},nq={class:"text-[1.25rem] font-bold text-center text-inkwell-30"},rq={class:"text-sm text-center text-inkwell-0 mb-2"},iq={class:"flex flex-col items-center justify-center gap-3 md:gap-2"};function oq(n,e,t,r,i,o){const s=l.resolveComponent("q-button"),a=l.resolveComponent("q-modal-content"),c=l.resolveComponent("q-modal");return l.openBlock(),l.createBlock(l.Transition,{name:n.mq.md?"fade":"slide-up"},{default:l.withCtx(()=>[n.toggleModal?(l.openBlock(),l.createBlock(c,{key:0,class:"warning-modal !z-[170]",dismissible:!1,overlay:n.mq.md?"white-transparent":"black-transparent","container-class":"h-fit min-h-fit","footer-class":"mt-2 md:mt-6",onClose:e[1]||(e[1]=u=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.createVNode(a,null,{body:l.withCtx(()=>[n.mq.md?(l.openBlock(),l.createElementBlock("div",XW,[l.createElementVNode("h2",JW,[l.renderSlot(n.$slots,"desktopHeader",{},void 0,!0)]),l.createElementVNode("p",eq,[l.renderSlot(n.$slots,"desktopMessage",{},void 0,!0)])])):(l.openBlock(),l.createElementBlock("div",tq,[l.createElementVNode("h2",nq,[l.renderSlot(n.$slots,"mobileHeader",{},void 0,!0)]),l.createElementVNode("p",rq,[l.renderSlot(n.$slots,"mobileMessage",{},void 0,!0)])]))]),footer:l.withCtx(()=>[l.createElementVNode("div",iq,[l.createVNode(s,{disabled:n.processing,loading:n.processing,class:l.normalizeClass([n.mq.md?"mx-2":"w-full"]),size:"lg",status:"danger",onClick:n.action},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"buttonText",{},void 0,!0)]),_:3},8,["disabled","loading","class","onClick"]),l.createVNode(s,{class:l.normalizeClass([n.mq.md?"mx-2":"w-full"]),disabled:n.processing,status:n.mq.md?"link-secondary":"secondary",size:"lg",onClick:e[0]||(e[0]=u=>n.toggleModal=!1)},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"cancelText",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_CANCEL")),1)],!0)]),_:3},8,["class","disabled","status"])])]),_:3})]),_:3},8,["overlay"])):l.createCommentVNode("",!0)]),_:3},8,["name"])}const cE=me(QW,[["render",oq],["__scopeId","data-v-a8bfc627"]]),sq=l.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(n,{emit:e}){const t=l.ref(!1),r=l.ref(""),i=l.ref(null),o=l.computed(()=>t.value===!0&&n.reposition===!0?a(n.align):n.align),s=l.computed(()=>t.value===!0&&n.reposition===!0?c(n.position):n.position),a=b=>{if(!i.value||u(i.value.children[1]))return b;const w=i.value.children[0].getBoundingClientRect(),v=i.value.children[1].getBoundingClientRect();if(b==="left"||b==="right"||b==="center"){const k=w.left;return window.innerWidth-k<v.width?"right":"left"}else{const k=w.top;return window.innerHeight-k<v.height?"bottom":"top"}},c=b=>{if(!i.value||u(i.value.children[1]))return b;const w=i.value.children[0].getBoundingClientRect(),v=i.value.children[1].getBoundingClientRect();if(b==="top"||b==="bottom"){const k=w.top;return window.innerHeight-k<v.height?"top":"bottom"}else{const k=w.left;return window.innerWidth-k<v.width?"left":"right"}},u=b=>{const w=b.getBoundingClientRect();return w?w.top>=0&&w.left>=0&&w.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&w.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(n.trigger==="click"||n.trigger==="both")&&e("update:modelValue",!n.modelValue)},f=()=>{n.trigger!=="click"&&e("update:modelValue",!1)},h=()=>{n.trigger!=="click"&&e("update:modelValue",!0)},p=()=>{var w;const b=(w=i.value)==null?void 0:w.children[0];if(b){const v=b.clientWidth,k=b.clientHeight;switch(o.value){case"left":r.value=`margin-left: ${v/2-10}px;`;break;case"right":r.value=`margin-right: ${v/2-10}px;`;break;case"top":r.value=`margin-top: ${k/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${k/2-10}px;`;break}}};V5(i,()=>{e("update:modelValue",!1)});function m(){t.value=!1}function y(){var b;t.value=!0,!u((b=i.value)==null?void 0:b.children[1])&&n.reposition===!0&&p()}return{entered:t,offsetStyle:r,popover:i,alignment:o,positioning:s,getAlignment:a,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:V5,onEnter:y,onMouseLeave:f,onMouseOver:h}}});function aq(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...s)=>n.onMouseLeave&&n.onMouseLeave(...s))},[l.renderSlot(n.$slots,"trigger",{onClick:n.onClick,onMouseOver:n.onMouseOver},void 0,!0),l.createVNode(l.Transition,{name:"fade",onEnter:n.onEnter,onAfterLeave:n.onAfterLeave},{default:l.withCtx(()=>[n.modelValue?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["popover","popover-"+n.alignment,"popover-"+n.size,"popover-on-"+n.positioning,{"has-caret":n.hasCaret}]),style:l.normalizeStyle(n.offsetStyle)},[l.renderSlot(n.$slots,"content",{},void 0,!0)],6)):l.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const uE=me(sq,[["render",aq],["__scopeId","data-v-86f2575d"]]);function Qt(n){this.content=n}Qt.prototype={constructor:Qt,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),o=r.content.slice();return i==-1?o.push(t||n,e):(o[i+1]=e,t&&(o[i]=t)),new Qt(o)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Qt(t)},addToStart:function(n,e){return new Qt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new Qt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),o=r.find(n);return i.splice(o==-1?i.length:o,0,e,t),new Qt(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=Qt.from(n),n.size?new Qt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=Qt.from(n),n.size?new Qt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=Qt.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},Qt.from=function(n){if(n instanceof Qt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Qt(e)};function dE(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),o=e.child(r);if(i==o){t+=i.nodeSize;continue}if(!i.sameMarkup(o))return t;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)t++;return t}if(i.content.size||o.content.size){let s=dE(i.content,o.content,t+1);if(s!=null)return s}t+=i.nodeSize}}function fE(n,e,t,r){for(let i=n.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:t,b:r};let s=n.child(--i),a=e.child(--o),c=s.nodeSize;if(s==a){t-=c,r-=c;continue}if(!s.sameMarkup(a))return{a:t,b:r};if(s.isText&&s.text!=a.text){let u=0,d=Math.min(s.text.length,a.text.length);for(;u<d&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(s.content.size||a.content.size){let u=fE(s.content,a.content,t-1,r-1);if(u)return u}t-=c,r-=c}}class Q{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,o){for(let s=0,a=0;a<t;s++){let c=this.content[s],u=a+c.nodeSize;if(u>e&&r(c,i+a,o||null,s)!==!1&&c.content.size){let d=a+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,t-d),r,i+d)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let o="",s=!0;return this.nodesBetween(e,t,(a,c)=>{let u=a.isText?a.text.slice(Math.max(e,c)-c,t-c):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=u},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new Q(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let o=0,s=0;s<t;o++){let a=this.content[o],c=s+a.nodeSize;c>e&&((s<e||c>t)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),r.push(a),i+=a.nodeSize),s=c}return new Q(r,i)}cutByIndex(e,t){return e==t?Q.empty:e==0&&t==this.content.length?this:new Q(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new Q(i,o)}addToStart(e){return new Q([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Q(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return dE(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return fE(this,e,t,r)}findIndex(e,t=-1){if(e==0)return bm(0,e);if(e==this.size)return bm(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),s=i+o.nodeSize;if(s>=e)return s==e||t>0?bm(r+1,s):bm(r,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return Q.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Q(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Q.empty;let t,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(t||(t=e.slice(0,i)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new Q(t||e,r)}static from(e){if(!e)return Q.empty;if(e instanceof Q)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Q([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Q.empty=new Q([],0);const i6={index:0,offset:0};function bm(n,e){return i6.index=n,i6.offset=e,i6}function wm(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!wm(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!wm(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let We=class a8{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wm(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return a8.none;if(e instanceof a8)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};We.none=[];class vm extends Error{}class ne{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=pE(this.content,e+this.openStart,t);return r&&new ne(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ne(hE(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return ne.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ne(Q.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new ne(e,r,i)}}ne.empty=new ne(Q.empty,0,0);function hE(n,e,t){let{index:r,offset:i}=n.findIndex(e),o=n.maybeChild(r),{index:s,offset:a}=n.findIndex(t);if(i==e||o.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,o.copy(hE(o.content,e-i-1,t-i-1)))}function pE(n,e,t,r){let{index:i,offset:o}=n.findIndex(e),s=n.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=pE(s.content,e-o-1,t);return a&&n.replaceChild(i,s.copy(a))}function lq(n,e,t){if(t.openStart>n.depth)throw new vm("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new vm("Inconsistent open depths");return mE(n,e,t,0)}function mE(n,e,t,r){let i=n.index(r),o=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let s=mE(n,e,t,r+1);return o.copy(o.content.replaceChild(i,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,a=s.content;return el(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=cq(t,n);return el(o,yE(n,s,a,e,r))}else return el(o,Cm(n,e,r))}function gE(n,e){if(!e.type.compatibleContent(n.type))throw new vm("Cannot join "+e.type.name+" onto "+n.type.name)}function o6(n,e,t){let r=n.node(t);return gE(r,e.node(t)),r}function Ja(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function w2(n,e,t,r){let i=(e||n).node(t),o=0,s=e?e.index(t):i.childCount;n&&(o=n.index(t),n.depth>t?o++:n.textOffset&&(Ja(n.nodeAfter,r),o++));for(let a=o;a<s;a++)Ja(i.child(a),r);e&&e.depth==t&&e.textOffset&&Ja(e.nodeBefore,r)}function el(n,e){return n.type.checkContent(e),n.copy(e)}function yE(n,e,t,r,i){let o=n.depth>i&&o6(n,e,i+1),s=r.depth>i&&o6(t,r,i+1),a=[];return w2(null,n,i,a),o&&s&&e.index(i)==t.index(i)?(gE(o,s),Ja(el(o,yE(n,e,t,r,i+1)),a)):(o&&Ja(el(o,Cm(n,e,i+1)),a),w2(e,t,i,a),s&&Ja(el(s,Cm(t,r,i+1)),a)),w2(r,null,i,a),new Q(a)}function Cm(n,e,t){let r=[];if(w2(null,n,t,r),n.depth>t){let i=o6(n,e,t+1);Ja(el(i,Cm(n,e,t+1)),r)}return w2(e,null,t,r),new Q(r)}function cq(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let o=t-1;o>=0;o--)i=e.node(o).copy(Q.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class v2{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return We.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new km(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,o=t;for(let s=e;;){let{index:a,offset:c}=s.content.findIndex(o),u=o-c;if(r.push(s,a,i+c),!u||(s=s.child(a),s.isText))break;o=u-1,i+=c+1}return new v2(t,r,o)}static resolveCached(e,t){for(let i=0;i<s6.length;i++){let o=s6[i];if(o.pos==t&&o.doc==e)return o}let r=s6[a6]=v2.resolve(e,t);return a6=(a6+1)%uq,r}}let s6=[],a6=0,uq=12;class km{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const dq=Object.create(null);let tl=class l8{constructor(e,t,r,i=We.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||Q.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&wm(this.attrs,t||e.defaultAttrs||dq)&&We.sameSet(this.marks,r||We.none)}copy(e=null){return e==this.content?this:new l8(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new l8(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return ne.empty;let i=this.resolve(e),o=this.resolve(t),s=r?0:i.sharedDepth(t),a=i.start(s),u=i.node(s).content.cut(i.pos-a,o.pos-a);return new ne(u,i.depth-s,o.depth-s)}replace(e,t,r){return lq(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return v2.resolveCached(this,e)}resolveNoCache(e){return v2.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),bE(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=Q.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let c=i;c<o;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=We.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!We.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=Q.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};tl.prototype.text=void 0;class Sm extends tl{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bE(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Sm(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Sm(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function bE(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class nl{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new fq(e,t);if(r.next==null)return nl.empty;let i=wE(r);r.next&&r.err("Unexpected trailing text");let o=wq(bq(i));return vq(o,r),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let o=t;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function o(s,a){let c=s.matchFragment(e,r);if(c&&(!t||c.validEnd))return Q.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:f}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=o(f,a.concat(d));if(h)return h}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:c}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||c.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}).join(`
132
132
  `)}}nl.empty=new nl(!0);class fq{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function wE(n){let e=[];do e.push(hq(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function hq(n){let e=[];do e.push(pq(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function pq(n){let e=yq(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=mq(n,e);else break;return e}function vE(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function mq(n,e){let t=vE(n),r=t;return n.eat(",")&&(n.next!="}"?r=vE(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function gq(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let o in t){let s=t[o];s.groups.indexOf(e)>-1&&i.push(s)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function yq(n){if(n.eat("(")){let e=wE(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=gq(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function bq(n){let e=[[]];return i(o(n,0),t()),e;function t(){return e.push([])-1}function r(s,a,c){let u={term:c,to:a};return e[s].push(u),u}function i(s,a){s.forEach(c=>c.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(o(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=o(s.exprs[c],a);if(c==s.exprs.length-1)return u;i(u,a=t())}else if(s.type=="star"){let c=t();return r(a,c),i(o(s.expr,c),c),[r(c)]}else if(s.type=="plus"){let c=t();return i(o(s.expr,a),c),i(o(s.expr,c),c),[r(c)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let d=t();i(o(s.expr,c),d),c=d}if(s.max==-1)i(o(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let d=t();r(c,d),i(o(s.expr,c),d),c=d}return[r(c)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function CE(n,e){return e-n}function kE(n,e){let t=[];return r(e),t.sort(CE);function r(i){let o=n[i];if(o.length==1&&!o[0].term)return r(o[0].to);t.push(i);for(let s=0;s<o.length;s++){let{term:a,to:c}=o[s];!a&&t.indexOf(c)==-1&&r(c)}}}function wq(n){let e=Object.create(null);return t(kE(n,0));function t(r){let i=[];r.forEach(s=>{n[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let d=0;d<i.length;d++)i[d][0]==a&&(u=i[d][1]);kE(n,c).forEach(d=>{u||i.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let o=e[r.join(",")]=new nl(r.indexOf(n.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(CE);o.next.push({type:i[s][0],next:e[a.join(",")]||t(a)})}return o}}function vq(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:c,next:u}=i.next[a];s.push(c.name),o&&!(c.isText||c.hasRequiredAttrs())&&(o=!1),r.indexOf(u)==-1&&r.push(u)}o&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function SE(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function ME(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let o=n[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}function EE(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new Cq(n[t]);return e}let AE=class vP{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=EE(r.attrs),this.defaultAttrs=SE(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==nl.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ME(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new tl(this,this.computeAttrs(e),Q.from(t),We.setFrom(r))}createChecked(e=null,t,r){return t=Q.from(t),this.checkContent(t),new tl(this,this.computeAttrs(e),t,We.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=Q.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(Q.empty,!0);return o?new tl(this,e,t.append(o),We.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:We.none:e}static compile(e,t){let r=Object.create(null);e.forEach((o,s)=>r[o]=new vP(o,t,s));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Cq{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Mm{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=EE(i.attrs),this.excluded=null;let o=SE(this.attrs);this.instance=o?new We(this,o):null}create(e=null){return!e&&this.instance?this.instance:new We(this,ME(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new Mm(o,i++,t,s)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class kq{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=Qt.from(e.nodes),t.marks=Qt.from(e.marks||{}),this.nodes=AE.compile(this.spec.nodes,this),this.marks=Mm.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=r[s]||(r[s]=nl.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet=a=="_"?null:a?TE(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:TE(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof AE){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Sm(r,r.defaultAttrs,e,We.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return tl.fromJSON(this,e)}markFromJSON(e){return We.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function TE(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],o=n.marks[i],s=o;if(o)t.push(o);else for(let a in n.marks){let c=n.marks[a];(i=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(i)>-1)&&t.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class rc{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new DE(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new DE(this,t,!0);return r.addAll(e,t.from,t.to),ne.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(Eq(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(e);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(e,t,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(s.getAttrs){let c=s.getAttrs(t);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(e){let t=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<t.length;s++){let a=t[s];if((a.priority==null?50:a.priority)<o)break}t.splice(s,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=NE(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=NE(s)),s.node||s.ignore||s.mark||(s.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new rc(e,rc.schemaRules(e)))}}const xE={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Sq={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},IE={ol:!0,ul:!0},Em=1,Am=2,C2=4;function OE(n,e,t){return e!=null?(e?Em:0)|(e==="full"?Am:0):n&&n.whitespace=="pre"?Em|Am:t&~C2}class Tm{constructor(e,t,r,i,o,s,a){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=i,this.solid=o,this.options=a,this.content=[],this.activeMarks=We.none,this.stashMarks=[],this.match=s||(a&C2?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Q.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Em)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let t=Q.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Q.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let i=r[t];(this.type?this.type.allowsMarkType(i.type):Tq(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!xE.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class DE{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let i=t.topNode,o,s=OE(null,t.preserveWhitespace,0)|(r?C2:0);i?o=new Tm(i.type,i.attrs,We.none,We.none,!0,t.topMatch||i.type.contentMatch,s):r?o=new Tm(null,null,We.none,We.none,!0,null,s):o=new Tm(e.schema.topNodeType,null,We.none,We.none,!0,null,s),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let i=this.readStyles(Aq(r));if(!i)return;let[o,s]=i,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<o.length;c++)this.addPendingMark(o[c]);t();for(let c=0;c<o.length;c++)this.removePendingMark(o[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Am||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&Em)r.options&Am?t=t.replace(/\r\n?/g,`
133
133
  `):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],o=e.previousSibling;(!i||o&&o.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),i;IE.hasOwnProperty(r)&&this.parser.normalizeLists&&Mq(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,t));if(o?o.ignore:Sq.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let s,a=this.top,c=this.needsBlock;if(xE.hasOwnProperty(r))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}o&&o.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,o,o.consuming===!1?i:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
134
134
  `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=We.none,r=We.none;for(let i=0;i<e.length;i+=2)for(let o=void 0;;){let s=this.parser.matchStyle(e[i],e[i+1],this,o);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(a=>{s.clearMark(a)&&(r=a.addToSet(r))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)o=s;else break}return[t,r]}addElementByRule(e,t,r){let i,o,s;t.node?(o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):i=this.enter(o,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof t.contentElement=="string"?c=e.querySelector(t.contentElement):typeof t.contentElement=="function"?c=t.contentElement(e):t.contentElement&&(c=t.contentElement),this.findAround(e,c,!0),this.addAll(c)}i&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,t,r){let i=t||0;for(let o=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o);this.findAtPoint(e,i)}findPlace(e){let t,r;for(let i=this.open;i>=0;i--){let o=this.nodes[i],s=o.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=o,!s.length)||o.solid)break}if(!t)return!1;this.sync(r);for(let i=0;i<t.length;i++)this.enterInner(t[i],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let i=0;i<e.marks.length;i++)(!t.type||t.type.allowsMarkType(e.marks[i].type))&&(r=e.marks[i].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,r),i}enterInner(e,t=null,r=!1,i){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let s=OE(e,i,o.options);o.options&C2&&o.content.length==0&&(s|=C2),this.nodes.push(new Tm(e,t,o.activeMarks,o.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,c)=>{for(;a>=0;a--){let u=t[a];if(u==""){if(a==t.length-1||a==0)continue;for(;c>=o;c--)if(s(a-1,c))return!0;return!1}else{let d=c>0||c==0&&i?this.nodes[c].type:r&&c>=o?r.node(c-o).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=xq(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);let s=i.popFromStashMark(e);s&&i.type&&i.type.allowsMarkType(s.type)&&(i.activeMarks=s.addToSet(i.activeMarks))}if(i==t)break}}}function Mq(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&IE.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Eq(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Aq(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function NE(n){let e={};for(let t in n)e[t]=n[t];return e}function Tq(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let c=0;c<a.edgeCount;c++){let{type:u,next:d}=a.edge(c);if(u==e||o.indexOf(d)<0&&s(d))return!0}};if(s(i.contentMatch))return!0}}function xq(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class mi{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=l6(t).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let a=0,c=0;for(;a<o.length&&c<s.marks.length;){let u=s.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(o[a][0])||u.type.spec.spanning===!1)break;a++,c++}for(;a<o.length;)i=o.pop()[1];for(;c<s.marks.length;){let u=s.marks[c++],d=this.serializeMark(u,s.isInline,t);d&&(o.push([u,i]),i.appendChild(d.dom),i=d.contentDOM||d.dom)}}i.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:i}=mi.renderSpec(l6(t),this.nodes[e.type.name](e));if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&mi.renderSpec(l6(r),i(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],o=i.indexOf(" ");o>0&&(r=i.slice(0,o),i=i.slice(o+1));let s,a=r?e.createElementNS(r,i):e.createElement(i),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):a.setAttribute(d,c[d])}}for(let d=u;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:h,contentDOM:p}=mi.renderSpec(e,f,r);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new mi(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=PE(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return PE(e.marks)}}function PE(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function l6(n){return n.document||window.document}const _E=65535,LE=Math.pow(2,16);function Iq(n,e){return n+e*LE}function BE(n){return n&_E}function Oq(n){return(n-(n&_E))/LE}const RE=1,$E=2,xm=4,VE=8;class c6{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&VE)>0}get deletedBefore(){return(this.delInfo&(RE|xm))>0}get deletedAfter(){return(this.delInfo&($E|xm))>0}get deletedAcross(){return(this.delInfo&xm)>0}}class er{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&er.empty)return er.empty}recover(e){let t=0,r=BE(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+Oq(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?i:0);if(c>e)break;let u=this.ranges[a+o],d=this.ranges[a+s],f=c+u;if(e<=f){let h=u?e==c?-1:e==f?1:t:t,p=c+i+(h<0?0:d);if(r)return p;let m=e==(t<0?c:f)?null:Iq(a/3,e-c),y=e==c?$E:e==f?RE:xm;return(t<0?e!=c:e!=f)&&(y|=VE),new c6(p,y,m)}i+=d-u}return r?e+i:new c6(e+i,0,null)}touches(e,t){let r=0,i=BE(t),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let c=this.ranges[a]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[a+o],d=c+u;if(e<=d&&a==i*3)return!0;r+=this.ranges[a+s]-u}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],a=s-(this.inverted?o:0),c=s+(this.inverted?0:o),u=this.ranges[i+t],d=this.ranges[i+r];e(a,a+u,c,c+d),o+=d-u}}invert(){return new er(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?er.empty:new er(e<0?[0,-e,0]:[0,0,e])}}er.empty=new er([]);class ic{constructor(e=[],t,r=0,i=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=i}slice(e=0,t=this.maps.length){return new ic(this.maps,this.mirror,e,t)}copy(){return new ic(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let i=e.getMirror(t);this.appendMap(e.maps[t],i!=null&&i<t?r+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e.maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new ic;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this.maps[o],a=s.mapResult(e,t);if(a.recover!=null){let c=this.getMirror(o);if(c!=null&&c>o&&c<this.to){o=c,e=this.maps[c].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new c6(e,i,null)}}const u6=Object.create(null);class un{getMap(){return er.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=u6[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in u6)throw new RangeError("Duplicate use of step JSON ID "+e);return u6[e]=t,t.prototype.jsonID=e,t}}class Et{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Et(e,null)}static fail(e){return new Et(null,e)}static fromReplace(e,t,r,i){try{return Et.ok(e.replace(t,r,i))}catch(o){if(o instanceof vm)return Et.fail(o.message);throw o}}}function d6(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let o=n.child(i);o.content.size&&(o=o.copy(d6(o.content,e,o))),o.isInline&&(o=e(o,t,i)),r.push(o)}return Q.fromArray(r)}class ys extends un{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new ne(d6(t.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),t.openStart,t.openEnd);return Et.fromReplace(e,this.from,this.to,o)}invert(){return new gi(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new ys(t.pos,r.pos,this.mark)}merge(e){return e instanceof ys&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ys(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ys(t.from,t.to,e.markFromJSON(t.mark))}}un.jsonID("addMark",ys);class gi extends un{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new ne(d6(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return Et.fromReplace(e,this.from,this.to,r)}invert(){return new ys(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new gi(t.pos,r.pos,this.mark)}merge(e){return e instanceof gi&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new gi(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new gi(t.from,t.to,e.markFromJSON(t.mark))}}un.jsonID("removeMark",gi);class bs extends un{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Et.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Et.fromReplace(e,this.pos,this.pos+1,new ne(Q.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new bs(this.pos,t.marks[i]);return new bs(this.pos,this.mark)}}return new oc(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new bs(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new bs(t.pos,e.markFromJSON(t.mark))}}un.jsonID("addNodeMark",bs);class oc extends un{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Et.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Et.fromReplace(e,this.pos,this.pos+1,new ne(Q.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new bs(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new oc(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new oc(t.pos,e.markFromJSON(t.mark))}}un.jsonID("removeNodeMark",oc);class Lt extends un{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&f6(e,this.from,this.to)?Et.fail("Structure replace would overwrite content"):Et.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new er([this.from,this.to-this.from,this.slice.size])}invert(e){return new Lt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new Lt(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof Lt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?ne.empty:new ne(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Lt(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?ne.empty:new ne(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Lt(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Lt(t.from,t.to,ne.fromJSON(e,t.slice),!!t.structure)}}un.jsonID("replace",Lt);class Bt extends un{constructor(e,t,r,i,o,s,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(e){if(this.structure&&(f6(e,this.from,this.gapFrom)||f6(e,this.gapTo,this.to)))return Et.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Et.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?Et.fromReplace(e,this.from,this.to,r):Et.fail("Content does not fit in gap")}getMap(){return new er([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Bt(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||o>r.pos?null:new Bt(t.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Bt(t.from,t.to,t.gapFrom,t.gapTo,ne.fromJSON(e,t.slice),t.insert,!!t.structure)}}un.jsonID("replaceAround",Bt);function f6(n,e,t){let r=n.resolve(e),i=t-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function Dq(n,e,t,r){let i=[],o=[],s,a;n.doc.nodesBetween(e,t,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(u,e),p=Math.min(u+c.nodeSize,t),m=r.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(m)||(s&&s.to==h&&s.mark.eq(f[y])?s.to=p:i.push(s=new gi(h,p,f[y])));a&&a.to==h?a.to=p:o.push(a=new ys(h,p,r))}}),i.forEach(c=>n.step(c)),o.forEach(c=>n.step(c))}function Nq(n,e,t,r){let i=[],o=0;n.doc.nodesBetween(e,t,(s,a)=>{if(!s.isInline)return;o++;let c=null;if(r instanceof Mm){let u=s.marks,d;for(;d=r.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(s.marks)&&(c=[r]):c=s.marks;if(c&&c.length){let u=Math.min(a+s.nodeSize,t);for(let d=0;d<c.length;d++){let f=c[d],h;for(let p=0;p<i.length;p++){let m=i[p];m.step==o-1&&f.eq(i[p].style)&&(h=m)}h?(h.to=u,h.step=o):i.push({style:f,from:Math.max(a,e),to:u,step:o})}}}),i.forEach(s=>n.step(new gi(s.from,s.to,s.style)))}function Pq(n,e,t,r=t.contentMatch){let i=n.doc.nodeAt(e),o=[],s=e+1;for(let a=0;a<i.childCount;a++){let c=i.child(a),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new Lt(s,u,ne.empty));else{r=d;for(let f=0;f<c.marks.length;f++)t.allowsMarkType(c.marks[f].type)||n.step(new gi(s,u,c.marks[f]));if(c.isText&&!t.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new ne(Q.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new Lt(s+f.index,s+f.index+f[0].length,p))}}s=u}if(!r.validEnd){let a=r.fillBefore(Q.empty,!0);n.replace(s,s,new ne(a,0,0))}for(let a=o.length-1;a>=0;a--)n.step(o[a])}function _q(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function sc(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let i=n.$from.node(r),o=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&i.canReplace(o,s,t))return r;if(r==0||i.type.spec.isolating||!_q(i,o,s))break}return null}function Lq(n,e,t){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),a=i.after(o+1),c=s,u=a,d=Q.empty,f=0;for(let m=o,y=!1;m>t;m--)y||r.index(m)>0?(y=!0,d=Q.from(r.node(m).copy(d)),f++):c--;let h=Q.empty,p=0;for(let m=o,y=!1;m>t;m--)y||i.after(m+1)<i.end(m)?(y=!0,h=Q.from(i.node(m).copy(h)),p++):u++;n.step(new Bt(c,u,s,a,new ne(d.append(h),f,p),d.size-f,!0))}function h6(n,e,t=null,r=n){let i=Bq(n,e),o=i&&Rq(r,e);return o?i.map(FE).concat({type:e,attrs:t}).concat(o.map(FE)):null}function FE(n){return{type:n,attrs:null}}function Bq(n,e){let{parent:t,startIndex:r,endIndex:i}=n,o=t.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return t.canReplaceWith(r,i,s)?o:null}function Rq(n,e){let{parent:t,startIndex:r,endIndex:i}=n,o=t.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let c=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;c&&u<i;u++)c=c.matchType(t.child(u).type);return!c||!c.validEnd?null:s}function $q(n,e,t){let r=Q.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let a=t[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Q.from(t[s].type.create(t[s].attrs,r))}let i=e.start,o=e.end;n.step(new Bt(i,o,i,o,new ne(r,0,0),t.length,!0))}function Vq(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(e,t,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(r,i)&&Fq(n.doc,n.mapping.slice(o).map(a),r)){n.clearIncompatible(n.mapping.slice(o).map(a,1),r);let c=n.mapping.slice(o),u=c.map(a,1),d=c.map(a+s.nodeSize,1);return n.step(new Bt(u,d,u+1,d-1,new ne(Q.from(r.create(i,null,s.marks)),0,0),1,!0)),!1}})}function Fq(n,e,t){let r=n.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,t)}function jq(n,e,t,r,i){let o=n.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);let s=t.create(r,null,i||o.marks);if(o.isLeaf)return n.replaceWith(e,e+o.nodeSize,s);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Bt(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new ne(Q.from(s),0,0),1,!0))}function ac(n,e,t=1,r){let i=n.resolve(e),o=i.depth-t,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,d=t-2;u>o;u--,d--){let f=i.node(u),h=i.index(u);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[d+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let y=r&&r[d]||f;if(!f.canReplace(h+1,f.childCount)||!y.type.validContent(p))return!1}let a=i.indexAfter(o),c=r&&r[0];return i.node(o).canReplaceWith(a,a,c?c.type:i.node(o+1).type)}function zq(n,e,t=1,r){let i=n.doc.resolve(e),o=Q.empty,s=Q.empty;for(let a=i.depth,c=i.depth-t,u=t-1;a>c;a--,u--){o=Q.from(i.node(a).copy(o));let d=r&&r[u];s=Q.from(d?d.type.create(d.attrs,s):i.node(a).copy(s))}n.step(new Lt(e,e,new ne(o.append(s),t,t),!0))}function ws(n,e){let t=n.resolve(e),r=t.index();return jE(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function jE(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Im(n,e,t=-1){let r=n.resolve(e);for(let i=r.depth;;i--){let o,s,a=r.index(i);if(i==r.depth?(o=r.nodeBefore,s=r.nodeAfter):t>0?(o=r.node(i+1),a++,s=r.node(i).maybeChild(a)):(o=r.node(i).maybeChild(a-1),s=r.node(i+1)),o&&!o.isTextblock&&jE(o,s)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=t<0?r.before(i):r.after(i)}}function Hq(n,e,t){let r=new Lt(e-t,e+t,ne.empty,!0);n.step(r)}function Uq(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,t))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,t))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function zE(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let i=t.content;for(let o=0;o<t.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(t.openStart==0&&t.size?2:1);o++)for(let s=r.depth;s>=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(a>0?1:0),u=r.node(s),d=!1;if(o==1)d=u.canReplace(c,c,i);else{let f=u.contentMatchAt(c).findWrapping(i.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function Om(n,e,t=e,r=ne.empty){if(e==t&&!r.size)return null;let i=n.resolve(e),o=n.resolve(t);return HE(i,o,r)?new Lt(e,t,r):new Zq(i,o,r).fit()}function HE(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class Zq{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=Q.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=Q.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let c=new ne(o,s,a);return e>-1?new Bt(r.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||r.pos!=this.$to.pos?new Lt(r.pos,i.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=t.firstChild;if(t.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}t=o.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=p6(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:u}=this.frontier[a],d,f=null;if(t==1&&(s?u.matchType(s.type)||(f=u.fillBefore(Q.from(s),!1)):o&&c.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:f};if(t==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:d};if(o&&u.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=p6(e,t);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ne(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=p6(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new ne(k2(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new ne(k2(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let y=0;y<o.length;y++)this.openFrontierNode(o[y]);let s=this.unplaced,a=r?r.content:s.content,c=s.openStart-e,u=0,d=[],{match:f,type:h}=this.frontier[t];if(i){for(let y=0;y<i.childCount;y++)d.push(i.child(y));f=f.matchFragment(i)}let p=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let y=a.child(u),b=f.matchType(y.type);if(!b)break;u++,(u>1||c==0||y.content.size)&&(f=b,d.push(UE(y.mark(h.allowedMarks(y.marks)),u==1?c:0,u==a.childCount?p:-1)))}let m=u==a.childCount;m||(p=-1),this.placed=S2(this.placed,t,Q.from(d)),this.frontier[t].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,b=a;y<p;y++){let w=b.lastChild;this.frontier.push({type:w.type,match:w.contentMatchAt(w.childCount)}),b=w.content}this.unplaced=m?e==0?ne.empty:new ne(k2(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new ne(k2(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!m6(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:i}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=m6(e,t,i,r,o);if(s){for(let a=t-1;a>=0;a--){let{match:c,type:u}=this.frontier[a],d=m6(e,a,u,c,!0);if(!d||d.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=S2(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=S2(this.placed,this.depth,Q.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(Q.empty,!0);t.childCount&&(this.placed=S2(this.placed,this.frontier.length,t))}}function k2(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(k2(n.firstChild.content,e-1,t)))}function S2(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(S2(n.lastChild.content,e-1,t)))}function p6(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function UE(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,UE(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(Q.empty,!0)))),n.copy(r)}function m6(n,e,t,r,i){let o=n.node(e),s=i?n.indexAfter(e):n.index(e);if(s==o.childCount&&!t.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!Wq(t,o.content,s)?a:null}function Wq(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function qq(n){return n.spec.defining||n.spec.definingForContent}function Kq(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let i=n.doc.resolve(e),o=n.doc.resolve(t);if(HE(i,o,r))return n.step(new Lt(e,t,r));let s=WE(i,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let h=i.depth,p=i.pos-1;h>0;h--,p--){let m=i.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?a=h:i.before(h)==p&&s.splice(1,0,-h)}let c=s.indexOf(a),u=[],d=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(u.push(m),p==r.openStart)break;h=m.content}for(let h=d-1;h>=0;h--){let p=u[h],m=qq(p.type);if(m&&!p.sameMarkup(i.node(Math.abs(a)-1)))d=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+d+1)%(r.openStart+1),m=u[p];if(m)for(let y=0;y<s.length;y++){let b=s[(y+c)%s.length],w=!0;b<0&&(w=!1,b=-b);let v=i.node(b-1),k=i.index(b-1);if(v.canReplaceWith(k,k,m.type,m.marks))return n.replace(i.before(b),w?o.after(b):t,new ne(ZE(r.content,0,r.openStart,p),p,r.openEnd))}}let f=n.steps.length;for(let h=s.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>f));h--){let p=s[h];p<0||(e=i.before(p),t=o.after(p))}}function ZE(n,e,t,r,i){if(e<t){let o=n.firstChild;n=n.replaceChild(0,o.copy(ZE(o.content,e+1,t,r,o)))}if(e>r){let o=i.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(Q.empty,!0))}return n}function Gq(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let i=Uq(n.doc,e,r.type);i!=null&&(e=t=i)}n.replaceRange(e,t,new ne(Q.from(r),0,0))}function Yq(n,e,t){let r=n.doc.resolve(e),i=n.doc.resolve(t),o=WE(r,i);for(let s=0;s<o.length;s++){let a=o[s],c=s==o.length-1;if(c&&a==0||r.node(a).type.contentMatch.validEnd)return n.delete(r.start(a),i.end(a));if(a>0&&(c||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return n.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&i.end(s)-t!=i.depth-s)return n.delete(r.before(s),t);n.delete(e,t)}function WE(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let i=r;i>=0;i--){let o=n.start(i);if(o<n.pos-(n.depth-i)||e.end(i)>e.pos+(e.depth-i)||n.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==n.depth&&i==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&t.push(i)}return t}class lc extends un{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return Et.fail("No node at attribute step's position");let r=Object.create(null);for(let o in t.attrs)r[o]=t.attrs[o];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return Et.fromReplace(e,this.pos,this.pos+1,new ne(Q.from(i),0,t.isLeaf?0:1))}getMap(){return er.empty}invert(e){return new lc(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new lc(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new lc(t.pos,t.attr,t.value)}}un.jsonID("attr",lc);class M2 extends un{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let i in e.attrs)t[i]=e.attrs[i];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return Et.ok(r)}getMap(){return er.empty}invert(e){return new M2(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new M2(t.attr,t.value)}}un.jsonID("docAttr",M2);let cc=class extends Error{};cc=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},cc.prototype=Object.create(Error.prototype),cc.prototype.constructor=cc,cc.prototype.name="TransformError";class qE{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ic}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new cc(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=ne.empty){let i=Om(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new ne(Q.from(r),0,0))}delete(e,t){return this.replace(e,t,ne.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return Kq(this,e,t,r),this}replaceRangeWith(e,t,r){return Gq(this,e,t,r),this}deleteRange(e,t){return Yq(this,e,t),this}lift(e,t){return Lq(this,e,t),this}join(e,t=1){return Hq(this,e,t),this}wrap(e,t){return $q(this,e,t),this}setBlockType(e,t=e,r,i=null){return Vq(this,e,t,r,i),this}setNodeMarkup(e,t,r=null,i){return jq(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new lc(e,t,r)),this}setDocAttribute(e,t){return this.step(new M2(e,t)),this}addNodeMark(e,t){return this.step(new bs(e,t)),this}removeNodeMark(e,t){if(!(t instanceof We)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new oc(e,t)),this}split(e,t=1,r){return zq(this,e,t,r),this}addMark(e,t,r){return Dq(this,e,t,r),this}removeMark(e,t,r){return Nq(this,e,t,r),this}clearIncompatible(e,t,r){return Pq(this,e,t,r),this}}const g6=Object.create(null);class Se{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new Qq(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=ne.empty){let r=t.content.lastChild,i=null;for(let a=0;a<t.openEnd;a++)i=r,r=r.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:c,$to:u}=s[a],d=e.mapping.slice(o);e.replaceRange(d.map(c.pos),d.map(u.pos),a?ne.empty:t),a==0&&YE(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],c=e.mapping.slice(r),u=c.map(s.pos),d=c.map(a.pos);o?e.deleteRange(u,d):(e.replaceRangeWith(u,d,t),YE(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let i=e.parent.inlineContent?new ve(e):uc(e.node(0),e.parent,e.pos,e.index(),t,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let s=t<0?uc(e.node(0),e.node(o),e.before(o+1),e.index(o),t,r):uc(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,r);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Kr(e.node(0))}static atStart(e){return uc(e,e,0,0,1)||new Kr(e)}static atEnd(e){return uc(e,e,e.content.size,e.childCount,-1)||new Kr(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=g6[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g6)throw new RangeError("Duplicate use of selection JSON ID "+e);return g6[e]=t,t.prototype.jsonID=e,t}getBookmark(){return ve.between(this.$anchor,this.$head).getBookmark()}}Se.prototype.visible=!0;class Qq{constructor(e,t){this.$from=e,this.$to=t}}let KE=!1;function GE(n){!KE&&!n.parent.inlineContent&&(KE=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class ve extends Se{constructor(e,t=e){GE(e),GE(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return Se.near(r);let i=e.resolve(t.map(this.anchor));return new ve(i.parent.inlineContent?i:r,r)}replace(e,t=ne.empty){if(super.replace(e,t),t==ne.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof ve&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Dm(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ve(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let i=e.resolve(t);return new this(i,r==t?i:e.resolve(r))}static between(e,t,r){let i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){let o=Se.findFrom(t,r,!0)||Se.findFrom(t,-r,!0);if(o)t=o.$head;else return Se.near(t,r)}return e.parent.inlineContent||(i==0?e=t:(e=(Se.findFrom(e,-r,!0)||Se.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=i<0&&(e=t))),new ve(e,t)}}Se.jsonID("text",ve);class Dm{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Dm(e.map(this.anchor),e.map(this.head))}resolve(e){return ve.between(e.resolve(this.anchor),e.resolve(this.head))}}class de extends Se{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:i}=t.mapResult(this.anchor),o=e.resolve(i);return r?Se.near(o):new de(o)}content(){return new ne(Q.from(this.node),0,0)}eq(e){return e instanceof de&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new y6(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new de(e.resolve(t.anchor))}static create(e,t){return new de(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}de.prototype.visible=!1,Se.jsonID("node",de);class y6{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Dm(r,r):new y6(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&de.isSelectable(r)?new de(t):Se.near(t)}}class Kr extends Se{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=ne.empty){if(t==ne.empty){e.delete(0,e.doc.content.size);let r=Se.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Kr(e)}map(e){return new Kr(e)}eq(e){return e instanceof Kr}getBookmark(){return Xq}}Se.jsonID("all",Kr);const Xq={map(){return this},resolve(n){return new Kr(n)}};function uc(n,e,t,r,i,o=!1){if(e.inlineContent)return ve.create(n,t);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let a=e.child(s);if(a.isAtom){if(!o&&de.isSelectable(a))return de.create(n,t-(i<0?a.nodeSize:0))}else{let c=uc(n,a,t+i,i<0?a.childCount:0,i,o);if(c)return c}t+=a.nodeSize*i}return null}function YE(n,e,t){let r=n.steps.length-1;if(r<e)return;let i=n.steps[r];if(!(i instanceof Lt||i instanceof Bt))return;let o=n.mapping.maps[r],s;o.forEach((a,c,u,d)=>{s==null&&(s=d)}),n.setSelection(Se.near(n.doc.resolve(s),t))}const QE=1,Nm=2,XE=4;class Jq extends qE{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|QE)&~Nm,this.storedMarks=null,this}get selectionSet(){return(this.updated&QE)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Nm,this}ensureMarks(e){return We.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Nm)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Nm,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||We.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let i=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(t);o=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,i.text(e,o)),this.selection.empty||this.setSelection(Se.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=XE,this}get scrolledIntoView(){return(this.updated&XE)>0}}function JE(n,e){return!e||!n?n:n.bind(e)}class E2{constructor(e,t,r){this.name=e,this.init=JE(t.init,r),this.apply=JE(t.apply,r)}}const eK=[new E2("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new E2("selection",{init(n,e){return n.selection||Se.atStart(e.doc)},apply(n){return n.selection}}),new E2("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new E2("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class b6{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=eK.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new E2(r.key,r.spec.state,r))})}}class dc{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),i=null;for(;;){let o=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let c=i?i[s].n:0,u=i?i[s].state:this,d=c<t.length&&a.spec.appendTransaction.call(a,c?t.slice(c):t,u,r);if(d&&r.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",e),!i){i=[];for(let f=0;f<this.config.plugins.length;f++)i.push(f<s?{state:r,n:t.length}:{state:this,n:0})}t.push(d),r=r.applyInner(d),o=!0}i&&(i[s]={state:r,n:t.length})}}if(!o)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new dc(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new Jq(this)}static create(e){let t=new b6(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new dc(t);for(let i=0;i<t.fields.length;i++)r[t.fields[i].name]=t.fields[i].init(e,r);return r}reconfigure(e){let t=new b6(this.schema,e.plugins),r=t.fields,i=new dc(t);for(let o=0;o<r.length;o++){let s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(e,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(t[r]=o.toJSON.call(i,this[i.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new b6(e.schema,e.plugins),o=new dc(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=tl.fromJSON(e.schema,t.doc);else if(s.name=="selection")o.selection=Se.fromJSON(o.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let c=r[a],u=c.spec.state;if(c.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(t,a)){o[s.name]=u.fromJSON.call(c,e,t[a],o);return}}o[s.name]=s.init(e,o)}}),o}}function eA(n,e,t){for(let r in n){let i=n[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=eA(i,e,{})),t[r]=i}return t}class Rt{constructor(e){this.spec=e,this.props={},e.props&&eA(e.props,this,this.props),this.key=e.key?e.key.key:tA("plugin")}getState(e){return e[this.key]}}const w6=Object.create(null);function tA(n){return n in w6?n+"$"+ ++w6[n]:(w6[n]=0,n+"$")}class Vn{constructor(e="key"){this.key=tA(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Cn=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},A2=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let nA=null;const ho=function(n,e,t){let r=nA||(nA=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},rl=function(n,e,t,r){return t&&(rA(n,e,t,r,-1)||rA(n,e,t,r,1))},tK=/^(img|br|input|textarea|hr)$/i;function rA(n,e,t,r,i){for(;;){if(n==t&&e==r)return!0;if(e==(i<0?0:yi(n))){let o=n.parentNode;if(!o||o.nodeType!=1||v6(n)||tK.test(n.nodeName)||n.contentEditable=="false")return!1;e=Cn(n)+(i<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(i<0?-1:0)],n.contentEditable=="false")return!1;e=i<0?yi(n):0}else return!1}}function yi(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function nK(n,e,t){for(let r=e==0,i=e==yi(n);r||i;){if(n==t)return!0;let o=Cn(n);if(n=n.parentNode,!n)return!1;r=r&&o==0,i=i&&o==yi(n)}}function v6(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Pm=function(n){return n.focusNode&&rl(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function il(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function rK(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function iK(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:r.startOffset}}}const bi=typeof navigator<"u"?navigator:null,iA=typeof document<"u"?document:null,vs=bi&&bi.userAgent||"",C6=/Edge\/(\d+)/.exec(vs),oA=/MSIE \d/.exec(vs),k6=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vs),Fn=!!(oA||k6||C6),Cs=oA?document.documentMode:k6?+k6[1]:C6?+C6[1]:0,Gr=!Fn&&/gecko\/(\d+)/i.test(vs);Gr&&+(/Firefox\/(\d+)/.exec(vs)||[0,0])[1];const S6=!Fn&&/Chrome\/(\d+)/.exec(vs),dn=!!S6,oK=S6?+S6[1]:0,kn=!Fn&&!!bi&&/Apple Computer/.test(bi.vendor),fc=kn&&(/Mobile\/\w+/.test(vs)||!!bi&&bi.maxTouchPoints>2),Cr=fc||(bi?/Mac/.test(bi.platform):!1),sK=bi?/Win/.test(bi.platform):!1,Yr=/Android \d/.test(vs),T2=!!iA&&"webkitFontSmoothing"in iA.documentElement.style,aK=T2?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function lK(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function po(n,e){return typeof n=="number"?n:n[e]}function cK(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function sA(n,e,t){let r=n.someProp("scrollThreshold")||0,i=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=t||n.dom;s;s=A2(s)){if(s.nodeType!=1)continue;let a=s,c=a==o.body,u=c?lK(o):cK(a),d=0,f=0;if(e.top<u.top+po(r,"top")?f=-(u.top-e.top+po(i,"top")):e.bottom>u.bottom-po(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+po(i,"top")-u.top:e.bottom-u.bottom+po(i,"bottom")),e.left<u.left+po(r,"left")?d=-(u.left-e.left+po(i,"left")):e.right>u.right-po(r,"right")&&(d=e.right-u.right+po(i,"right")),d||f)if(c)o.defaultView.scrollBy(d,f);else{let h=a.scrollLeft,p=a.scrollTop;f&&(a.scrollTop+=f),d&&(a.scrollLeft+=d);let m=a.scrollLeft-h,y=a.scrollTop-p;e={left:e.left-m,top:e.top-y,right:e.right-m,bottom:e.bottom-y}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function uK(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=n.root.elementFromPoint(o,s);if(!a||a==n.dom||!n.dom.contains(a))continue;let c=a.getBoundingClientRect();if(c.top>=t-20){r=a,i=c.top;break}}return{refDOM:r,refTop:i,stack:aA(n.dom)}}function aA(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=A2(r));return e}function dK({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;lA(t,r==0?0:r-e)}function lA(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:i,left:o}=n[t];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}let hc=null;function fK(n){if(n.setActive)return n.setActive();if(hc)return n.focus(hc);let e=aA(n);n.focus(hc==null?{get preventScroll(){return hc={preventScroll:!0},!0}}:void 0),hc||(hc=!1,lA(e,0))}function cA(n,e){let t,r=2e8,i,o=0,s=e.top,a=e.top,c,u;for(let d=n.firstChild,f=0;d;d=d.nextSibling,f++){let h;if(d.nodeType==1)h=d.getClientRects();else if(d.nodeType==3)h=ho(d).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=a){s=Math.max(m.bottom,s),a=Math.min(m.top,a);let y=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(y<r){t=d,r=y,i=y&&t.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&y&&(o=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!c&&m.left<=e.left&&m.right>=e.left&&(c=d,u={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!t&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(o=f+1)}}return!t&&c&&(t=c,i=u,r=0),t&&t.nodeType==3?hK(t,i):!t||r&&t.nodeType==1?{node:n,offset:o}:cA(t,i)}function hK(n,e){let t=n.nodeValue.length,r=document.createRange();for(let i=0;i<t;i++){r.setEnd(n,i+1),r.setStart(n,i);let o=ks(r,1);if(o.top!=o.bottom&&M6(e,o))return{node:n,offset:i+(e.left>=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}function M6(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function pK(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function mK(n,e,t){let{node:r,offset:i}=cA(e,t),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,i,o)}function gK(n,e,t,r){let i=-1;for(let o=e,s=!1;o!=n.dom;){let a=n.docView.nearestDesc(o,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent&&!s||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,c.left>r.left||c.top>r.top?i=a.posBefore:(c.right<r.left||c.bottom<r.top)&&(i=a.posAfter)),!a.contentDOM&&i<0&&!a.node.isText)return(a.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?a.posBefore:a.posAfter}o=a.dom.parentNode}return i>-1?i:n.docView.posFromDOM(e,t,-1)}function uA(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),o=i;;){let s=n.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let c=0;c<a.length;c++){let u=a[c];if(M6(e,u))return uA(s,e,u)}}if((o=(o+1)%r)==i)break}return n}function yK(n,e){let t=n.dom.ownerDocument,r,i=0,o=iK(t,e.left,e.top);o&&({node:r,offset:i}=o);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),a;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let u=n.dom.getBoundingClientRect();if(!M6(e,u)||(s=uA(n.dom,e,u),!s))return null}if(kn)for(let u=s;r&&u;u=A2(u))u.draggable&&(r=void 0);if(s=pK(s,e),r){if(Gr&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let d=r.childNodes[i],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&i++}let u;T2&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&i--,r==n.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=n.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=gK(n,r,i,e))}a==null&&(a=mK(n,s,e));let c=n.docView.nearestDesc(s,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function dA(n){return n.top<n.bottom||n.left<n.right}function ks(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(dA(r))return r}return Array.prototype.find.call(t,dA)||n.getBoundingClientRect()}const bK=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function fA(n,e,t){let{node:r,offset:i,atom:o}=n.docView.domFromPos(e,t<0?-1:1),s=T2||Gr;if(r.nodeType==3)if(s&&(bK.test(r.nodeValue)||(t<0?!i:i==r.nodeValue.length))){let c=ks(ho(r,i,i),t);if(Gr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let u=ks(ho(r,i-1,i-1),-1);if(u.top==c.top){let d=ks(ho(r,i,i+1),-1);if(d.top!=c.top)return x2(d,d.left<u.left)}}return c}else{let c=i,u=i,d=t<0?1:-1;return t<0&&!i?(u++,d=-1):t>=0&&i==r.nodeValue.length?(c--,d=1):t<0?c--:u++,x2(ks(ho(r,c,u),d),d<0)}if(!n.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(t<0||i==yi(r))){let c=r.childNodes[i-1];if(c.nodeType==1)return E6(c.getBoundingClientRect(),!1)}if(o==null&&i<yi(r)){let c=r.childNodes[i];if(c.nodeType==1)return E6(c.getBoundingClientRect(),!0)}return E6(r.getBoundingClientRect(),t>=0)}if(o==null&&i&&(t<0||i==yi(r))){let c=r.childNodes[i-1],u=c.nodeType==3?ho(c,yi(c)-(s?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return x2(ks(u,1),!1)}if(o==null&&i<yi(r)){let c=r.childNodes[i];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?ho(c,0,s?0:1):c.nodeType==1?c:null:null;if(u)return x2(ks(u,-1),!0)}return x2(ks(r.nodeType==3?ho(r):r,-t),t>=0)}function x2(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function E6(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function hA(n,e,t){let r=n.state,i=n.root.activeElement;r!=e&&n.updateState(e),i!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),i!=n.dom&&i&&i.focus()}}function wK(n,e,t){let r=e.selection,i=t=="up"?r.$from:r.$to;return hA(n,e,()=>{let{node:o}=n.docView.domFromPos(i.pos,t=="up"?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=fA(n,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=ho(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(t=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const vK=/[\u0590-\u08ac]/;function CK(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=n.domSelection();return!vK.test(r.parent.textContent)||!a.modify?t=="left"||t=="backward"?o:s:hA(n,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",t,"character");let p=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:m,focusOffset:y}=n.domSelectionRange(),b=m&&!p.contains(m.nodeType==1?m:m.parentNode)||c==m&&u==y;try{a.collapse(d,f),c&&(c!=d||u!=f)&&a.extend&&a.extend(c,u)}catch{}return h!=null&&(a.caretBidiLevel=h),b})}let pA=null,mA=null,gA=!1;function kK(n,e,t){return pA==e&&mA==t?gA:(pA=e,mA=t,gA=t=="up"||t=="down"?wK(n,e,t):CK(n,e,t))}const kr=0,yA=1,ol=2,wi=3;class I2{constructor(e,t,r,i){this.parent=e,this.children=t,this.dom=r,this.contentDOM=i,this.dirty=kr,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let i=this.children[t];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let o,s;if(e==this.contentDOM)o=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(s)+s.size:this.posAtStart}else{let o,s;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=t>Cn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&t==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!t||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return o}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let i=this.children[t],o=r+i.size;if(r==e&&o!=r){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<o)return i.descAt(e-r-i.border);r=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.size;if(a>e||s instanceof vA){i=e-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof bA&&o.side>=0;r--);if(t<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&t&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,t):{node:this.contentDOM,offset:o?Cn(o.dom)+1:0}}else{let o,s=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,s=!1);return o&&s&&!o.border&&!o.domAtom?o.domFromPos(0,t):{node:this.contentDOM,offset:o?Cn(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let c=this.children[a],u=s+c.size;if(i==-1&&e<=u){let d=s+c.border;if(e>=d&&t<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,t,d);e=s;for(let f=a;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=Cn(h.dom)+1;break}e-=h.size}i==-1&&(i=0)}if(i>-1&&(u>t||a==this.children.length-1)){t=u;for(let d=a+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){o=Cn(f.dom);break}t+=f.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=u}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,i=!1){let o=Math.min(e,t),s=Math.max(e,t);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],y=p+m.size;if(o>p&&s<y)return m.setSelection(e-p-m.border,t-p-m.border,r,i);p=y}let a=this.domFromPos(e,e?-1:1),c=t==e?a:this.domFromPos(t,t?-1:1),u=r.getSelection(),d=!1;if((Gr||kn)&&e==t){let{node:h,offset:p}=a;if(h.nodeType==3){if(d=!!(p&&h.nodeValue[p-1]==`
@@ -215,7 +215,7 @@ img.ProseMirror-separator {
215
215
  opacity: 0
216
216
  }`;function UQ(n,e,t){const r=document.querySelector(`style[data-tiptap-style${t?`-${t}`:""}]`);if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute(`data-tiptap-style${t?`-${t}`:""}`,""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}let ZQ=class extends cY{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=UQ(HQ,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=ST(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});this.view.updateState(i)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(i=>!i.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(zQ):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new bc(t,this)}createCommandManager(){this.commandManager=new zm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=PT(this.options.content,this.schema,this.options.parseOptions),t=IT(e,this.options.autofocus);this.view=new xG(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:dc.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),o=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return _T(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,i=typeof e=="string"?t:e;return MQ(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return bQ(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
217
217
 
218
- `,textSerializers:r={}}=e||{};return wQ(this.state.doc,{blockSeparator:t,textSerializers:{...xT(this.schema),...r}})}get isEmpty(){return EQ(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new ul(t,this)}get $doc(){return this.$pos(0)}};function wc(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=Me(n.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,s=r[r.length-1],a=r[0];if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(i7(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(y=>y===n.type&&y!==p.mark.type)).filter(p=>p.to>u).length)return null;d<t.to&&o.delete(d,t.to),u>t.from&&o.delete(t.from+c,u);const h=t.from+c+s.length;o.addMark(t.from+c,h,n.type.create(i||{})),o.removeStoredMark(n.type)}}})}function WQ(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=Me(n.getAttributes,void 0,r)||{},{tr:o}=e,s=t.from;let a=t.to;const c=n.type.create(i);if(r[1]){const u=r[0].lastIndexOf(r[1]);let d=s+u;d>a?d=a:a=d+r[1].length;const f=r[0][r[0].length-1];o.insertText(f,s+r[0].length-1),o.replaceWith(d,a,c)}else r[0]&&o.insert(s-1,n.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a));o.scrollIntoView()}})}function l7(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=e.doc.resolve(t.from),o=Me(n.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,o)}})}function R2(n){return new Um({find:n.find,handler:({state:e,range:t,match:r,chain:i})=>{const o=Me(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),c=s.doc.resolve(t.from).blockRange(),u=c&&h6(c,n.type,o);if(!u)return null;if(s.wrap(c,u),n.keepMarks&&n.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const y=m.filter(b=>p.includes(b.type.name));s.ensureMarks(y)}}if(n.keepAttributes){const f=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(f,o).run()}const d=s.doc.resolve(t.from-1).nodeBefore;d&&d.type===n.type&&ws(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,d))&&s.join(t.from-1)}})}class nr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Me(ie(this,"addOptions",{name:this.name}))),this.storage=Me(ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new nr(e)}configure(e={}){const t=this.extend();return t.options=Zm(this.options,e),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new nr({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Me(ie(t,"addOptions",{name:t.name})),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===t.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===t.name);return c&&r.removeStoredMark(c),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}let rr=class c8{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Me(ie(this,"addOptions",{name:this.name}))),this.storage=Me(ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new c8(e)}configure(e={}){const t=this.extend();return t.options=Zm(this.options,e),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new c8({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Me(ie(t,"addOptions",{name:t.name})),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}};function dl(n){return new yY({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:i})=>{const o=Me(n.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],c=r[0];let u=t.to;if(a){const d=c.search(/\S/),f=t.from+c.indexOf(a),h=f+a.length;if(i7(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(b=>b===n.type&&b!==m.mark.type)).filter(m=>m.to>f).length)return null;h<t.to&&s.delete(h,t.to),f>t.from&&s.delete(t.from+d,f),u=t.from+d+a.length,s.addMark(t.from+d,u,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}var jn="top",Sr="bottom",Mr="right",zn="left",c7="auto",$2=[jn,Sr,Mr,zn],vc="start",V2="end",qQ="clippingParents",$T="viewport",F2="popper",KQ="reference",VT=$2.reduce(function(n,e){return n.concat([e+"-"+vc,e+"-"+V2])},[]),FT=[].concat($2,[c7]).reduce(function(n,e){return n.concat([e,e+"-"+vc,e+"-"+V2])},[]),GQ="beforeRead",YQ="read",QQ="afterRead",XQ="beforeMain",JQ="main",eX="afterMain",tX="beforeWrite",nX="write",rX="afterWrite",iX=[GQ,YQ,QQ,XQ,JQ,eX,tX,nX,rX];function vi(n){return n?(n.nodeName||"").toLowerCase():null}function ir(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function fl(n){var e=ir(n).Element;return n instanceof e||n instanceof Element}function Er(n){var e=ir(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function u7(n){if(typeof ShadowRoot>"u")return!1;var e=ir(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function oX(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!Er(o)||!vi(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function sX(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Er(i)||!vi(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const jT={name:"applyStyles",enabled:!0,phase:"write",fn:oX,effect:sX,requires:["computeStyles"]};function Ci(n){return n.split("-")[0]}var hl=Math.max,Ym=Math.min,Cc=Math.round;function d7(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function zT(){return!/^((?!chrome|android).)*safari/i.test(d7())}function kc(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&Er(n)&&(i=n.offsetWidth>0&&Cc(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Cc(r.height)/n.offsetHeight||1);var s=fl(n)?ir(n):window,a=s.visualViewport,c=!zT()&&t,u=(r.left+(c&&a?a.offsetLeft:0))/i,d=(r.top+(c&&a?a.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function f7(n){var e=kc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function HT(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&u7(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yo(n){return ir(n).getComputedStyle(n)}function aX(n){return["table","td","th"].indexOf(vi(n))>=0}function Os(n){return((fl(n)?n.ownerDocument:n.document)||window.document).documentElement}function Qm(n){return vi(n)==="html"?n:n.assignedSlot||n.parentNode||(u7(n)?n.host:null)||Os(n)}function UT(n){return!Er(n)||yo(n).position==="fixed"?null:n.offsetParent}function lX(n){var e=/firefox/i.test(d7()),t=/Trident/i.test(d7());if(t&&Er(n)){var r=yo(n);if(r.position==="fixed")return null}var i=Qm(n);for(u7(i)&&(i=i.host);Er(i)&&["html","body"].indexOf(vi(i))<0;){var o=yo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function j2(n){for(var e=ir(n),t=UT(n);t&&aX(t)&&yo(t).position==="static";)t=UT(t);return t&&(vi(t)==="html"||vi(t)==="body"&&yo(t).position==="static")?e:t||lX(n)||e}function h7(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function z2(n,e,t){return hl(n,Ym(e,t))}function cX(n,e,t){var r=z2(n,e,t);return r>t?t:r}function ZT(){return{top:0,right:0,bottom:0,left:0}}function WT(n){return Object.assign({},ZT(),n)}function qT(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var uX=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WT(typeof e!="number"?e:qT(e,$2))};function dX(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Ci(t.placement),c=h7(a),u=[zn,Mr].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!s)){var f=uX(i.padding,t),h=f7(o),p=c==="y"?jn:zn,m=c==="y"?Sr:Mr,y=t.rects.reference[d]+t.rects.reference[c]-s[c]-t.rects.popper[d],b=s[c]-t.rects.reference[c],w=j2(o),v=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,k=y/2-b/2,C=f[p],T=v-h[d]-f[m],S=v/2-h[d]/2+k,E=z2(C,S,T),O=c;t.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-S,e)}}function fX(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||HT(e.elements.popper,i)&&(e.elements.arrow=i))}const hX={name:"arrow",enabled:!0,phase:"main",fn:dX,effect:fX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sc(n){return n.split("-")[1]}var pX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mX(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Cc(t*i)/i||0,y:Cc(r*i)/i||0}}function KT(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,c=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,f=n.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,y=m===void 0?0:m,b=typeof d=="function"?d({x:p,y}):{x:p,y};p=b.x,y=b.y;var w=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=zn,C=jn,T=window;if(u){var S=j2(t),E="clientHeight",O="clientWidth";if(S===ir(t)&&(S=Os(t),yo(S).position!=="static"&&a==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,i===jn||(i===zn||i===Mr)&&o===V2){C=Sr;var I=f&&S===T&&T.visualViewport?T.visualViewport.height:S[E];y-=I-r.height,y*=c?1:-1}if(i===zn||(i===jn||i===Sr)&&o===V2){k=Mr;var P=f&&S===T&&T.visualViewport?T.visualViewport.width:S[O];p-=P-r.width,p*=c?1:-1}}var D=Object.assign({position:a},u&&pX),B=d===!0?mX({x:p,y},ir(t)):{x:p,y};if(p=B.x,y=B.y,c){var V;return Object.assign({},D,(V={},V[C]=v?"0":"",V[k]=w?"0":"",V.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",V))}return Object.assign({},D,(e={},e[C]=v?y+"px":"",e[k]=w?p+"px":"",e.transform="",e))}function gX(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,u={placement:Ci(e.placement),variation:Sc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,KT(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,KT(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gX,data:{}};var Xm={passive:!0};function bX(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=ir(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",t.update,Xm)}),a&&c.addEventListener("resize",t.update,Xm),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",t.update,Xm)}),a&&c.removeEventListener("resize",t.update,Xm)}}const wX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bX,data:{}};var vX={left:"right",right:"left",bottom:"top",top:"bottom"};function Jm(n){return n.replace(/left|right|bottom|top/g,function(e){return vX[e]})}var CX={start:"end",end:"start"};function GT(n){return n.replace(/start|end/g,function(e){return CX[e]})}function p7(n){var e=ir(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function m7(n){return kc(Os(n)).left+p7(n).scrollLeft}function kX(n,e){var t=ir(n),r=Os(n),i=t.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=zT();(u||!u&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+m7(n),y:c}}function SX(n){var e,t=Os(n),r=p7(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=hl(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=hl(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+m7(n),c=-r.scrollTop;return yo(i||t).direction==="rtl"&&(a+=hl(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function g7(n){var e=yo(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function YT(n){return["html","body","#document"].indexOf(vi(n))>=0?n.ownerDocument.body:Er(n)&&g7(n)?n:YT(Qm(n))}function H2(n,e){var t;e===void 0&&(e=[]);var r=YT(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=ir(r),s=i?[o].concat(o.visualViewport||[],g7(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(H2(Qm(s)))}function y7(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function MX(n,e){var t=kc(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function QT(n,e,t){return e===$T?y7(kX(n,t)):fl(e)?MX(e,t):y7(SX(Os(n)))}function EX(n){var e=H2(Qm(n)),t=["absolute","fixed"].indexOf(yo(n).position)>=0,r=t&&Er(n)?j2(n):n;return fl(r)?e.filter(function(i){return fl(i)&&HT(i,r)&&vi(i)!=="body"}):[]}function AX(n,e,t,r){var i=e==="clippingParents"?EX(n):[].concat(e),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(c,u){var d=QT(n,u,r);return c.top=hl(d.top,c.top),c.right=Ym(d.right,c.right),c.bottom=Ym(d.bottom,c.bottom),c.left=hl(d.left,c.left),c},QT(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function XT(n){var e=n.reference,t=n.element,r=n.placement,i=r?Ci(r):null,o=r?Sc(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(i){case jn:c={x:s,y:e.y-t.height};break;case Sr:c={x:s,y:e.y+e.height};break;case Mr:c={x:e.x+e.width,y:a};break;case zn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var u=i?h7(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case vc:c[u]=c[u]-(e[d]/2-t[d]/2);break;case V2:c[u]=c[u]+(e[d]/2-t[d]/2);break}}return c}function U2(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,c=a===void 0?qQ:a,u=t.rootBoundary,d=u===void 0?$T:u,f=t.elementContext,h=f===void 0?F2:f,p=t.altBoundary,m=p===void 0?!1:p,y=t.padding,b=y===void 0?0:y,w=WT(typeof b!="number"?b:qT(b,$2)),v=h===F2?KQ:F2,k=n.rects.popper,C=n.elements[m?v:h],T=AX(fl(C)?C:C.contextElement||Os(n.elements.popper),c,d,s),S=kc(n.elements.reference),E=XT({reference:S,element:k,strategy:"absolute",placement:i}),O=y7(Object.assign({},k,E)),I=h===F2?O:S,P={top:T.top-I.top+w.top,bottom:I.bottom-T.bottom+w.bottom,left:T.left-I.left+w.left,right:I.right-T.right+w.right},D=n.modifiersData.offset;if(h===F2&&D){var B=D[i];Object.keys(P).forEach(function(V){var U=[Mr,Sr].indexOf(V)>=0?1:-1,L=[jn,Sr].indexOf(V)>=0?"y":"x";P[V]+=B[L]*U})}return P}function TX(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,u=c===void 0?FT:c,d=Sc(r),f=d?a?VT:VT.filter(function(m){return Sc(m)===d}):$2,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=U2(n,{placement:y,boundary:i,rootBoundary:o,padding:s})[Ci(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function xX(n){if(Ci(n)===c7)return[];var e=Jm(n);return[GT(n),e,GT(e)]}function IX(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,c=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,y=t.allowedAutoPlacements,b=e.options.placement,w=Ci(b),v=w===b,k=c||(v||!m?[Jm(b)]:xX(b)),C=[b].concat(k).reduce(function(j,F){return j.concat(Ci(F)===c7?TX(e,{placement:F,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):F)},[]),T=e.rects.reference,S=e.rects.popper,E=new Map,O=!0,I=C[0],P=0;P<C.length;P++){var D=C[P],B=Ci(D),V=Sc(D)===vc,U=[jn,Sr].indexOf(B)>=0,L=U?"width":"height",N=U2(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),$=U?V?Mr:zn:V?Sr:jn;T[L]>S[L]&&($=Jm($));var R=Jm($),q=[];if(o&&q.push(N[B]<=0),a&&q.push(N[$]<=0,N[R]<=0),q.every(function(j){return j})){I=D,O=!1;break}E.set(D,q)}if(O)for(var re=m?3:1,ue=function(F){var G=C.find(function(J){var ae=E.get(J);if(ae)return ae.slice(0,F).every(function(Oe){return Oe})});if(G)return I=G,"break"},K=re;K>0;K--){var H=ue(K);if(H==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const OX={name:"flip",enabled:!0,phase:"main",fn:IX,requiresIfExists:["offset"],data:{_skip:!1}};function JT(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function ex(n){return[jn,Mr,Sr,zn].some(function(e){return n[e]>=0})}function DX(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=U2(e,{elementContext:"reference"}),a=U2(e,{altBoundary:!0}),c=JT(s,r),u=JT(a,i,o),d=ex(c),f=ex(u);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const NX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DX};function PX(n,e,t){var r=Ci(n),i=[zn,jn].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[zn,Mr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function _X(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=FT.reduce(function(d,f){return d[f]=PX(f,e.rects,o),d},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const LX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_X};function BX(n){var e=n.state,t=n.name;e.modifiersData[t]=XT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const RX={name:"popperOffsets",enabled:!0,phase:"read",fn:BX,data:{}};function $X(n){return n==="x"?"y":"x"}function VX(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,c=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,y=m===void 0?0:m,b=U2(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Ci(e.placement),v=Sc(e.placement),k=!v,C=h7(w),T=$X(C),S=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(S){if(o){var V,U=C==="y"?jn:zn,L=C==="y"?Sr:Mr,N=C==="y"?"height":"width",$=S[C],R=$+b[U],q=$-b[L],re=p?-O[N]/2:0,ue=v===vc?E[N]:O[N],K=v===vc?-O[N]:-E[N],H=e.elements.arrow,j=p&&H?f7(H):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ZT(),G=F[U],J=F[L],ae=z2(0,E[N],j[N]),Oe=k?E[N]/2-re-ae-G-P.mainAxis:ue-ae-G-P.mainAxis,be=k?-E[N]/2+re+ae+J+P.mainAxis:K+ae+J+P.mainAxis,Le=e.elements.arrow&&j2(e.elements.arrow),pt=Le?C==="y"?Le.clientTop||0:Le.clientLeft||0:0,pn=(V=D==null?void 0:D[C])!=null?V:0,$r=$+Oe-pn-pt,Kn=$+be-pn,mn=z2(p?Ym(R,$r):R,$,p?hl(q,Kn):q);S[C]=mn,B[C]=mn-$}if(a){var Ji,Aa=C==="x"?jn:zn,Ta=C==="x"?Sr:Mr,_t=S[T],xn=T==="y"?"height":"width",eo=_t+b[Aa],Vr=_t-b[Ta],fi=[jn,zn].indexOf(w)!==-1,Ge=(Ji=D==null?void 0:D[T])!=null?Ji:0,Z=fi?eo:_t-E[xn]-O[xn]-Ge+P.altAxis,Y=fi?_t+E[xn]+O[xn]-Ge-P.altAxis:Vr,Ae=p&&fi?cX(Z,_t,Y):z2(p?Z:eo,_t,p?Y:Vr);S[T]=Ae,B[T]=Ae-_t}e.modifiersData[r]=B}}const FX={name:"preventOverflow",enabled:!0,phase:"main",fn:VX,requiresIfExists:["offset"]};function jX(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function zX(n){return n===ir(n)||!Er(n)?p7(n):jX(n)}function HX(n){var e=n.getBoundingClientRect(),t=Cc(e.width)/n.offsetWidth||1,r=Cc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function UX(n,e,t){t===void 0&&(t=!1);var r=Er(e),i=Er(e)&&HX(e),o=Os(e),s=kc(n,i,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((vi(e)!=="body"||g7(o))&&(a=zX(e)),Er(e)?(c=kc(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=m7(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ZX(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&i(c)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function WX(n){var e=ZX(n);return iX.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function qX(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function KX(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var tx={placement:"bottom",modifiers:[],strategy:"absolute"};function nx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GX(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?tx:i;return function(a,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},tx,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(w){var v=typeof w=="function"?w(d.options):w;y(),d.options=Object.assign({},o,d.options,v),d.scrollParents={reference:fl(a)?H2(a):a.contextElement?H2(a.contextElement):[],popper:H2(c)};var k=WX(KX([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var w=d.elements,v=w.reference,k=w.popper;if(nx(v,k)){d.rects={reference:UX(v,j2(k),d.options.strategy==="fixed"),popper:f7(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],S=T.fn,E=T.options,O=E===void 0?{}:E,I=T.name;typeof S=="function"&&(d=S({state:d,options:O,name:I,instance:p})||d)}}}},update:qX(function(){return new Promise(function(b){p.forceUpdate(),b(d)})}),destroy:function(){y(),h=!0}};if(!nx(a,c))return p;p.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var w=b.name,v=b.options,k=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var T=C({state:d,name:w,instance:p,options:k}),S=function(){};f.push(T||S)}})}function y(){f.forEach(function(b){return b()}),f=[]}return p}}var YX=[wX,RX,yX,jT,LX,OX,FX,hX,NX],QX=GX({defaultModifiers:YX}),XX="tippy-box",rx="tippy-content",JX="tippy-backdrop",ix="tippy-arrow",ox="tippy-svg-arrow",pl={passive:!0,capture:!0},sx=function(){return document.body};function eJ(n,e){return{}.hasOwnProperty.call(n,e)}function b7(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function w7(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function ax(n,e){return typeof n=="function"?n.apply(void 0,e):n}function lx(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function tJ(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function nJ(n){return n.split(/\s+/).filter(Boolean)}function Mc(n){return[].concat(n)}function cx(n,e){n.indexOf(e)===-1&&n.push(e)}function rJ(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function iJ(n){return n.split("-")[0]}function eg(n){return[].slice.call(n)}function ux(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Z2(){return document.createElement("div")}function W2(n){return["Element","Fragment"].some(function(e){return w7(n,e)})}function oJ(n){return w7(n,"NodeList")}function sJ(n){return w7(n,"MouseEvent")}function aJ(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function lJ(n){return W2(n)?[n]:oJ(n)?eg(n):Array.isArray(n)?n:eg(document.querySelectorAll(n))}function v7(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function dx(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function cJ(n){var e,t=Mc(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function uJ(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,c=a.interactiveBorder,u=iJ(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,h=u==="top"?d.bottom.y:0,p=u==="right"?d.left.x:0,m=u==="left"?d.right.x:0,y=o.top-r+f>c,b=r-o.bottom-h>c,w=o.left-t+p>c,v=t-o.right-m>c;return y||b||w||v})}function C7(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function fx(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var ki={isTouch:!1},hx=0;function dJ(){ki.isTouch||(ki.isTouch=!0,window.performance&&document.addEventListener("mousemove",px))}function px(){var n=performance.now();n-hx<20&&(ki.isTouch=!1,document.removeEventListener("mousemove",px)),hx=n}function fJ(){var n=document.activeElement;if(aJ(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function hJ(){document.addEventListener("touchstart",dJ,pl),window.addEventListener("blur",fJ)}var pJ=typeof window<"u"&&typeof document<"u",mJ=pJ?!!window.msCrypto:!1;function Ec(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function mx(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function gJ(n){return mx(`
218
+ `,textSerializers:r={}}=e||{};return wQ(this.state.doc,{blockSeparator:t,textSerializers:{...xT(this.schema),...r}})}get isEmpty(){return EQ(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new ul(t,this)}get $doc(){return this.$pos(0)}};function wc(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=Me(n.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,s=r[r.length-1],a=r[0];if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(i7(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(y=>y===n.type&&y!==p.mark.type)).filter(p=>p.to>u).length)return null;d<t.to&&o.delete(d,t.to),u>t.from&&o.delete(t.from+c,u);const h=t.from+c+s.length;o.addMark(t.from+c,h,n.type.create(i||{})),o.removeStoredMark(n.type)}}})}function WQ(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=Me(n.getAttributes,void 0,r)||{},{tr:o}=e,s=t.from;let a=t.to;const c=n.type.create(i);if(r[1]){const u=r[0].lastIndexOf(r[1]);let d=s+u;d>a?d=a:a=d+r[1].length;const f=r[0][r[0].length-1];o.insertText(f,s+r[0].length-1),o.replaceWith(d,a,c)}else r[0]&&o.insert(s-1,n.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a));o.scrollIntoView()}})}function l7(n){return new Um({find:n.find,handler:({state:e,range:t,match:r})=>{const i=e.doc.resolve(t.from),o=Me(n.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,o)}})}function R2(n){return new Um({find:n.find,handler:({state:e,range:t,match:r,chain:i})=>{const o=Me(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),c=s.doc.resolve(t.from).blockRange(),u=c&&h6(c,n.type,o);if(!u)return null;if(s.wrap(c,u),n.keepMarks&&n.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const y=m.filter(b=>p.includes(b.type.name));s.ensureMarks(y)}}if(n.keepAttributes){const f=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(f,o).run()}const d=s.doc.resolve(t.from-1).nodeBefore;d&&d.type===n.type&&ws(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,d))&&s.join(t.from-1)}})}class nr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Me(ie(this,"addOptions",{name:this.name}))),this.storage=Me(ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new nr(e)}configure(e={}){const t=this.extend();return t.options=Zm(this.options,e),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new nr({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Me(ie(t,"addOptions",{name:t.name})),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(u=>(u==null?void 0:u.type.name)===t.name))return!1;const c=s.find(u=>(u==null?void 0:u.type.name)===t.name);return c&&r.removeStoredMark(c),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}let rr=class c8{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Me(ie(this,"addOptions",{name:this.name}))),this.storage=Me(ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new c8(e)}configure(e={}){const t=this.extend();return t.options=Zm(this.options,e),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new c8({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Me(ie(t,"addOptions",{name:t.name})),t.storage=Me(ie(t,"addStorage",{name:t.name,options:t.options})),t}};function dl(n){return new yY({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:i})=>{const o=Me(n.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],c=r[0];let u=t.to;if(a){const d=c.search(/\S/),f=t.from+c.indexOf(a),h=f+a.length;if(i7(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(b=>b===n.type&&b!==m.mark.type)).filter(m=>m.to>f).length)return null;h<t.to&&s.delete(h,t.to),f>t.from&&s.delete(t.from+d,f),u=t.from+d+a.length,s.addMark(t.from+d,u,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}var jn="top",Sr="bottom",Mr="right",zn="left",c7="auto",$2=[jn,Sr,Mr,zn],vc="start",V2="end",qQ="clippingParents",$T="viewport",F2="popper",KQ="reference",VT=$2.reduce(function(n,e){return n.concat([e+"-"+vc,e+"-"+V2])},[]),FT=[].concat($2,[c7]).reduce(function(n,e){return n.concat([e,e+"-"+vc,e+"-"+V2])},[]),GQ="beforeRead",YQ="read",QQ="afterRead",XQ="beforeMain",JQ="main",eX="afterMain",tX="beforeWrite",nX="write",rX="afterWrite",iX=[GQ,YQ,QQ,XQ,JQ,eX,tX,nX,rX];function vi(n){return n?(n.nodeName||"").toLowerCase():null}function ir(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function fl(n){var e=ir(n).Element;return n instanceof e||n instanceof Element}function Er(n){var e=ir(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function u7(n){if(typeof ShadowRoot>"u")return!1;var e=ir(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function oX(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!Er(o)||!vi(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function sX(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Er(i)||!vi(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const jT={name:"applyStyles",enabled:!0,phase:"write",fn:oX,effect:sX,requires:["computeStyles"]};function Ci(n){return n.split("-")[0]}var hl=Math.max,Ym=Math.min,Cc=Math.round;function d7(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function zT(){return!/^((?!chrome|android).)*safari/i.test(d7())}function kc(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&Er(n)&&(i=n.offsetWidth>0&&Cc(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Cc(r.height)/n.offsetHeight||1);var s=fl(n)?ir(n):window,a=s.visualViewport,c=!zT()&&t,u=(r.left+(c&&a?a.offsetLeft:0))/i,d=(r.top+(c&&a?a.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function f7(n){var e=kc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function HT(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&u7(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yo(n){return ir(n).getComputedStyle(n)}function aX(n){return["table","td","th"].indexOf(vi(n))>=0}function Os(n){return((fl(n)?n.ownerDocument:n.document)||window.document).documentElement}function Qm(n){return vi(n)==="html"?n:n.assignedSlot||n.parentNode||(u7(n)?n.host:null)||Os(n)}function UT(n){return!Er(n)||yo(n).position==="fixed"?null:n.offsetParent}function lX(n){var e=/firefox/i.test(d7()),t=/Trident/i.test(d7());if(t&&Er(n)){var r=yo(n);if(r.position==="fixed")return null}var i=Qm(n);for(u7(i)&&(i=i.host);Er(i)&&["html","body"].indexOf(vi(i))<0;){var o=yo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function j2(n){for(var e=ir(n),t=UT(n);t&&aX(t)&&yo(t).position==="static";)t=UT(t);return t&&(vi(t)==="html"||vi(t)==="body"&&yo(t).position==="static")?e:t||lX(n)||e}function h7(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function z2(n,e,t){return hl(n,Ym(e,t))}function cX(n,e,t){var r=z2(n,e,t);return r>t?t:r}function ZT(){return{top:0,right:0,bottom:0,left:0}}function WT(n){return Object.assign({},ZT(),n)}function qT(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var uX=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WT(typeof e!="number"?e:qT(e,$2))};function dX(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Ci(t.placement),c=h7(a),u=[zn,Mr].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!s)){var f=uX(i.padding,t),h=f7(o),p=c==="y"?jn:zn,m=c==="y"?Sr:Mr,y=t.rects.reference[d]+t.rects.reference[c]-s[c]-t.rects.popper[d],b=s[c]-t.rects.reference[c],w=j2(o),v=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,k=y/2-b/2,C=f[p],T=v-h[d]-f[m],S=v/2-h[d]/2+k,E=z2(C,S,T),O=c;t.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-S,e)}}function fX(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||HT(e.elements.popper,i)&&(e.elements.arrow=i))}const hX={name:"arrow",enabled:!0,phase:"main",fn:dX,effect:fX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sc(n){return n.split("-")[1]}var pX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mX(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Cc(t*i)/i||0,y:Cc(r*i)/i||0}}function KT(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,c=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,f=n.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,y=m===void 0?0:m,b=typeof d=="function"?d({x:p,y}):{x:p,y};p=b.x,y=b.y;var w=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=zn,C=jn,T=window;if(u){var S=j2(t),E="clientHeight",O="clientWidth";if(S===ir(t)&&(S=Os(t),yo(S).position!=="static"&&a==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,i===jn||(i===zn||i===Mr)&&o===V2){C=Sr;var I=f&&S===T&&T.visualViewport?T.visualViewport.height:S[E];y-=I-r.height,y*=c?1:-1}if(i===zn||(i===jn||i===Sr)&&o===V2){k=Mr;var P=f&&S===T&&T.visualViewport?T.visualViewport.width:S[O];p-=P-r.width,p*=c?1:-1}}var D=Object.assign({position:a},u&&pX),B=d===!0?mX({x:p,y},ir(t)):{x:p,y};if(p=B.x,y=B.y,c){var V;return Object.assign({},D,(V={},V[C]=v?"0":"",V[k]=w?"0":"",V.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",V))}return Object.assign({},D,(e={},e[C]=v?y+"px":"",e[k]=w?p+"px":"",e.transform="",e))}function gX(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,u={placement:Ci(e.placement),variation:Sc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,KT(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,KT(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gX,data:{}};var Xm={passive:!0};function bX(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=ir(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",t.update,Xm)}),a&&c.addEventListener("resize",t.update,Xm),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",t.update,Xm)}),a&&c.removeEventListener("resize",t.update,Xm)}}const wX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bX,data:{}};var vX={left:"right",right:"left",bottom:"top",top:"bottom"};function Jm(n){return n.replace(/left|right|bottom|top/g,function(e){return vX[e]})}var CX={start:"end",end:"start"};function GT(n){return n.replace(/start|end/g,function(e){return CX[e]})}function p7(n){var e=ir(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function m7(n){return kc(Os(n)).left+p7(n).scrollLeft}function kX(n,e){var t=ir(n),r=Os(n),i=t.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=zT();(u||!u&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+m7(n),y:c}}function SX(n){var e,t=Os(n),r=p7(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=hl(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=hl(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+m7(n),c=-r.scrollTop;return yo(i||t).direction==="rtl"&&(a+=hl(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function g7(n){var e=yo(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function YT(n){return["html","body","#document"].indexOf(vi(n))>=0?n.ownerDocument.body:Er(n)&&g7(n)?n:YT(Qm(n))}function H2(n,e){var t;e===void 0&&(e=[]);var r=YT(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=ir(r),s=i?[o].concat(o.visualViewport||[],g7(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(H2(Qm(s)))}function y7(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function MX(n,e){var t=kc(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function QT(n,e,t){return e===$T?y7(kX(n,t)):fl(e)?MX(e,t):y7(SX(Os(n)))}function EX(n){var e=H2(Qm(n)),t=["absolute","fixed"].indexOf(yo(n).position)>=0,r=t&&Er(n)?j2(n):n;return fl(r)?e.filter(function(i){return fl(i)&&HT(i,r)&&vi(i)!=="body"}):[]}function AX(n,e,t,r){var i=e==="clippingParents"?EX(n):[].concat(e),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(c,u){var d=QT(n,u,r);return c.top=hl(d.top,c.top),c.right=Ym(d.right,c.right),c.bottom=Ym(d.bottom,c.bottom),c.left=hl(d.left,c.left),c},QT(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function XT(n){var e=n.reference,t=n.element,r=n.placement,i=r?Ci(r):null,o=r?Sc(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(i){case jn:c={x:s,y:e.y-t.height};break;case Sr:c={x:s,y:e.y+e.height};break;case Mr:c={x:e.x+e.width,y:a};break;case zn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var u=i?h7(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case vc:c[u]=c[u]-(e[d]/2-t[d]/2);break;case V2:c[u]=c[u]+(e[d]/2-t[d]/2);break}}return c}function U2(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,c=a===void 0?qQ:a,u=t.rootBoundary,d=u===void 0?$T:u,f=t.elementContext,h=f===void 0?F2:f,p=t.altBoundary,m=p===void 0?!1:p,y=t.padding,b=y===void 0?0:y,w=WT(typeof b!="number"?b:qT(b,$2)),v=h===F2?KQ:F2,k=n.rects.popper,C=n.elements[m?v:h],T=AX(fl(C)?C:C.contextElement||Os(n.elements.popper),c,d,s),S=kc(n.elements.reference),E=XT({reference:S,element:k,strategy:"absolute",placement:i}),O=y7(Object.assign({},k,E)),I=h===F2?O:S,P={top:T.top-I.top+w.top,bottom:I.bottom-T.bottom+w.bottom,left:T.left-I.left+w.left,right:I.right-T.right+w.right},D=n.modifiersData.offset;if(h===F2&&D){var B=D[i];Object.keys(P).forEach(function(V){var U=[Mr,Sr].indexOf(V)>=0?1:-1,L=[jn,Sr].indexOf(V)>=0?"y":"x";P[V]+=B[L]*U})}return P}function TX(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,u=c===void 0?FT:c,d=Sc(r),f=d?a?VT:VT.filter(function(m){return Sc(m)===d}):$2,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=U2(n,{placement:y,boundary:i,rootBoundary:o,padding:s})[Ci(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function xX(n){if(Ci(n)===c7)return[];var e=Jm(n);return[GT(n),e,GT(e)]}function IX(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,c=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,y=t.allowedAutoPlacements,b=e.options.placement,w=Ci(b),v=w===b,k=c||(v||!m?[Jm(b)]:xX(b)),C=[b].concat(k).reduce(function(j,F){return j.concat(Ci(F)===c7?TX(e,{placement:F,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):F)},[]),T=e.rects.reference,S=e.rects.popper,E=new Map,O=!0,I=C[0],P=0;P<C.length;P++){var D=C[P],B=Ci(D),V=Sc(D)===vc,U=[jn,Sr].indexOf(B)>=0,L=U?"width":"height",N=U2(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),$=U?V?Mr:zn:V?Sr:jn;T[L]>S[L]&&($=Jm($));var R=Jm($),q=[];if(o&&q.push(N[B]<=0),a&&q.push(N[$]<=0,N[R]<=0),q.every(function(j){return j})){I=D,O=!1;break}E.set(D,q)}if(O)for(var re=m?3:1,ce=function(F){var G=C.find(function(J){var ae=E.get(J);if(ae)return ae.slice(0,F).every(function(Oe){return Oe})});if(G)return I=G,"break"},K=re;K>0;K--){var H=ce(K);if(H==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}const OX={name:"flip",enabled:!0,phase:"main",fn:IX,requiresIfExists:["offset"],data:{_skip:!1}};function JT(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function ex(n){return[jn,Mr,Sr,zn].some(function(e){return n[e]>=0})}function DX(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=U2(e,{elementContext:"reference"}),a=U2(e,{altBoundary:!0}),c=JT(s,r),u=JT(a,i,o),d=ex(c),f=ex(u);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const NX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:DX};function PX(n,e,t){var r=Ci(n),i=[zn,jn].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[zn,Mr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function _X(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=FT.reduce(function(d,f){return d[f]=PX(f,e.rects,o),d},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const LX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_X};function BX(n){var e=n.state,t=n.name;e.modifiersData[t]=XT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const RX={name:"popperOffsets",enabled:!0,phase:"read",fn:BX,data:{}};function $X(n){return n==="x"?"y":"x"}function VX(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,c=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,y=m===void 0?0:m,b=U2(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Ci(e.placement),v=Sc(e.placement),k=!v,C=h7(w),T=$X(C),S=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(S){if(o){var V,U=C==="y"?jn:zn,L=C==="y"?Sr:Mr,N=C==="y"?"height":"width",$=S[C],R=$+b[U],q=$-b[L],re=p?-O[N]/2:0,ce=v===vc?E[N]:O[N],K=v===vc?-O[N]:-E[N],H=e.elements.arrow,j=p&&H?f7(H):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ZT(),G=F[U],J=F[L],ae=z2(0,E[N],j[N]),Oe=k?E[N]/2-re-ae-G-P.mainAxis:ce-ae-G-P.mainAxis,be=k?-E[N]/2+re+ae+J+P.mainAxis:K+ae+J+P.mainAxis,Le=e.elements.arrow&&j2(e.elements.arrow),pt=Le?C==="y"?Le.clientTop||0:Le.clientLeft||0:0,pn=(V=D==null?void 0:D[C])!=null?V:0,$r=$+Oe-pn-pt,Kn=$+be-pn,mn=z2(p?Ym(R,$r):R,$,p?hl(q,Kn):q);S[C]=mn,B[C]=mn-$}if(a){var Ji,Aa=C==="x"?jn:zn,Ta=C==="x"?Sr:Mr,_t=S[T],xn=T==="y"?"height":"width",eo=_t+b[Aa],Vr=_t-b[Ta],fi=[jn,zn].indexOf(w)!==-1,Ge=(Ji=D==null?void 0:D[T])!=null?Ji:0,Z=fi?eo:_t-E[xn]-O[xn]-Ge+P.altAxis,Y=fi?_t+E[xn]+O[xn]-Ge-P.altAxis:Vr,Ae=p&&fi?cX(Z,_t,Y):z2(p?Z:eo,_t,p?Y:Vr);S[T]=Ae,B[T]=Ae-_t}e.modifiersData[r]=B}}const FX={name:"preventOverflow",enabled:!0,phase:"main",fn:VX,requiresIfExists:["offset"]};function jX(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function zX(n){return n===ir(n)||!Er(n)?p7(n):jX(n)}function HX(n){var e=n.getBoundingClientRect(),t=Cc(e.width)/n.offsetWidth||1,r=Cc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function UX(n,e,t){t===void 0&&(t=!1);var r=Er(e),i=Er(e)&&HX(e),o=Os(e),s=kc(n,i,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((vi(e)!=="body"||g7(o))&&(a=zX(e)),Er(e)?(c=kc(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=m7(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ZX(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&i(c)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function WX(n){var e=ZX(n);return iX.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function qX(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function KX(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var tx={placement:"bottom",modifiers:[],strategy:"absolute"};function nx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GX(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?tx:i;return function(a,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},tx,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(w){var v=typeof w=="function"?w(d.options):w;y(),d.options=Object.assign({},o,d.options,v),d.scrollParents={reference:fl(a)?H2(a):a.contextElement?H2(a.contextElement):[],popper:H2(c)};var k=WX(KX([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var w=d.elements,v=w.reference,k=w.popper;if(nx(v,k)){d.rects={reference:UX(v,j2(k),d.options.strategy==="fixed"),popper:f7(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],S=T.fn,E=T.options,O=E===void 0?{}:E,I=T.name;typeof S=="function"&&(d=S({state:d,options:O,name:I,instance:p})||d)}}}},update:qX(function(){return new Promise(function(b){p.forceUpdate(),b(d)})}),destroy:function(){y(),h=!0}};if(!nx(a,c))return p;p.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var w=b.name,v=b.options,k=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var T=C({state:d,name:w,instance:p,options:k}),S=function(){};f.push(T||S)}})}function y(){f.forEach(function(b){return b()}),f=[]}return p}}var YX=[wX,RX,yX,jT,LX,OX,FX,hX,NX],QX=GX({defaultModifiers:YX}),XX="tippy-box",rx="tippy-content",JX="tippy-backdrop",ix="tippy-arrow",ox="tippy-svg-arrow",pl={passive:!0,capture:!0},sx=function(){return document.body};function eJ(n,e){return{}.hasOwnProperty.call(n,e)}function b7(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function w7(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function ax(n,e){return typeof n=="function"?n.apply(void 0,e):n}function lx(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function tJ(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function nJ(n){return n.split(/\s+/).filter(Boolean)}function Mc(n){return[].concat(n)}function cx(n,e){n.indexOf(e)===-1&&n.push(e)}function rJ(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function iJ(n){return n.split("-")[0]}function eg(n){return[].slice.call(n)}function ux(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Z2(){return document.createElement("div")}function W2(n){return["Element","Fragment"].some(function(e){return w7(n,e)})}function oJ(n){return w7(n,"NodeList")}function sJ(n){return w7(n,"MouseEvent")}function aJ(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function lJ(n){return W2(n)?[n]:oJ(n)?eg(n):Array.isArray(n)?n:eg(document.querySelectorAll(n))}function v7(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function dx(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function cJ(n){var e,t=Mc(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function uJ(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,c=a.interactiveBorder,u=iJ(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,h=u==="top"?d.bottom.y:0,p=u==="right"?d.left.x:0,m=u==="left"?d.right.x:0,y=o.top-r+f>c,b=r-o.bottom-h>c,w=o.left-t+p>c,v=t-o.right-m>c;return y||b||w||v})}function C7(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function fx(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var ki={isTouch:!1},hx=0;function dJ(){ki.isTouch||(ki.isTouch=!0,window.performance&&document.addEventListener("mousemove",px))}function px(){var n=performance.now();n-hx<20&&(ki.isTouch=!1,document.removeEventListener("mousemove",px)),hx=n}function fJ(){var n=document.activeElement;if(aJ(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function hJ(){document.addEventListener("touchstart",dJ,pl),window.addEventListener("blur",fJ)}var pJ=typeof window<"u"&&typeof document<"u",mJ=pJ?!!window.msCrypto:!1;function Ec(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function mx(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function gJ(n){return mx(`
219
219
  %ctippy.js
220
220
 
221
221
  %c`+mx(n)+`
@@ -224,18 +224,18 @@ img.ProseMirror-separator {
224
224
  `)}function gx(n){return[gJ(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var q2;process.env.NODE_ENV!=="production"&&yJ();function yJ(){q2=new Set}function bo(n,e){if(n&&!q2.has(e)){var t;q2.add(e),(t=console).warn.apply(t,gx(e))}}function k7(n,e){if(n&&!q2.has(e)){var t;q2.add(e),(t=console).error.apply(t,gx(e))}}function bJ(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;k7(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),k7(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var yx={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wJ={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},or=Object.assign({appendTo:sx,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},yx,wJ),vJ=Object.keys(or),CJ=function(e){process.env.NODE_ENV!=="production"&&vx(e,[]);var t=Object.keys(e);t.forEach(function(r){or[r]=e[r]})};function bx(n){var e=n.plugins||[],t=e.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=n[o]!==void 0?n[o]:(a=or[o])!=null?a:s}return r},{});return Object.assign({},n,t)}function kJ(n,e){var t=e?Object.keys(bx(Object.assign({},or,{plugins:e}))):vJ,r=t.reduce(function(i,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function wx(n,e){var t=Object.assign({},e,{content:ax(e.content,[n])},e.ignoreAttributes?{}:kJ(n,e.plugins));return t.aria=Object.assign({},or.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function vx(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var i=tJ(or,Object.keys(yx)),o=!eJ(i,r);o&&(o=e.filter(function(s){return s.name===r}).length===0),bo(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
225
225
 
226
226
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
227
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var SJ=function(){return"innerHTML"};function S7(n,e){n[SJ()]=e}function Cx(n){var e=Z2();return n===!0?e.className=ix:(e.className=ox,W2(n)?e.appendChild(n):S7(e,n)),e}function kx(n,e){W2(e.content)?(S7(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?S7(n,e.content):n.textContent=e.content)}function M7(n){var e=n.firstElementChild,t=eg(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(rx)}),arrow:t.find(function(r){return r.classList.contains(ix)||r.classList.contains(ox)}),backdrop:t.find(function(r){return r.classList.contains(JX)})}}function Sx(n){var e=Z2(),t=Z2();t.className=XX,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Z2();r.className=rx,r.setAttribute("data-state","hidden"),kx(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props);function i(o,s){var a=M7(e),c=a.box,u=a.content,d=a.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&kx(u,n.props),s.arrow?d?o.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(Cx(s.arrow))):c.appendChild(Cx(s.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:i}}Sx.$$tippy=!0;var MJ=1,tg=[],E7=[];function EJ(n,e){var t=wx(n,Object.assign({},or,bx(ux(e)))),r,i,o,s=!1,a=!1,c=!1,u=!1,d,f,h,p=[],m=lx($r,t.interactiveDebounce),y,b=MJ++,w=null,v=rJ(t.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:b,reference:n,popper:Z2(),popperInstance:w,props:t,state:k,plugins:v,clearDelayTimeouts:Z,setProps:Y,setContent:Ae,show:ct,hide:Qo,hideWithInteractivity:ad,enable:fi,disable:Ge,unmount:xa,destroy:Xo};if(!t.render)return process.env.NODE_ENV!=="production"&&k7(!0,"render() function has not been supplied."),C;var T=t.render(C),S=T.popper,E=T.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+C.id,C.popper=S,n._tippy=C,S._tippy=C;var O=v.map(function(W){return W.fn(C)}),I=n.hasAttribute("aria-expanded");return Le(),re(),$(),R("onCreate",[C]),t.showOnCreate&&eo(),S.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",m)}),C;function P(){var W=C.props.touch;return Array.isArray(W)?W:[W,0]}function D(){return P()[0]==="hold"}function B(){var W;return!!((W=C.props.render)!=null&&W.$$tippy)}function V(){return y||n}function U(){var W=V().parentNode;return W?cJ(W):document}function L(){return M7(S)}function N(W){return C.state.isMounted&&!C.state.isVisible||ki.isTouch||d&&d.type==="focus"?0:b7(C.props.delay,W?0:1,or.delay)}function $(W){W===void 0&&(W=!1),S.style.pointerEvents=C.props.interactive&&!W?"":"none",S.style.zIndex=""+C.props.zIndex}function R(W,oe,fe){if(fe===void 0&&(fe=!0),O.forEach(function(Be){Be[W]&&Be[W].apply(Be,oe)}),fe){var Ue;(Ue=C.props)[W].apply(Ue,oe)}}function q(){var W=C.props.aria;if(W.content){var oe="aria-"+W.content,fe=S.id,Ue=Mc(C.props.triggerTarget||n);Ue.forEach(function(Be){var In=Be.getAttribute(oe);if(C.state.isVisible)Be.setAttribute(oe,In?In+" "+fe:fe);else{var Fr=In&&In.replace(fe,"").trim();Fr?Be.setAttribute(oe,Fr):Be.removeAttribute(oe)}})}}function re(){if(!(I||!C.props.aria.expanded)){var W=Mc(C.props.triggerTarget||n);W.forEach(function(oe){C.props.interactive?oe.setAttribute("aria-expanded",C.state.isVisible&&oe===V()?"true":"false"):oe.removeAttribute("aria-expanded")})}}function ue(){U().removeEventListener("mousemove",m),tg=tg.filter(function(W){return W!==m})}function K(W){if(!(ki.isTouch&&(c||W.type==="mousedown"))){var oe=W.composedPath&&W.composedPath()[0]||W.target;if(!(C.props.interactive&&fx(S,oe))){if(Mc(C.props.triggerTarget||n).some(function(fe){return fx(fe,oe)})){if(ki.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[C,W]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||G())}}}function H(){c=!0}function j(){c=!1}function F(){var W=U();W.addEventListener("mousedown",K,!0),W.addEventListener("touchend",K,pl),W.addEventListener("touchstart",j,pl),W.addEventListener("touchmove",H,pl)}function G(){var W=U();W.removeEventListener("mousedown",K,!0),W.removeEventListener("touchend",K,pl),W.removeEventListener("touchstart",j,pl),W.removeEventListener("touchmove",H,pl)}function J(W,oe){Oe(W,function(){!C.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&oe()})}function ae(W,oe){Oe(W,oe)}function Oe(W,oe){var fe=L().box;function Ue(Be){Be.target===fe&&(C7(fe,"remove",Ue),oe())}if(W===0)return oe();C7(fe,"remove",f),C7(fe,"add",Ue),f=Ue}function be(W,oe,fe){fe===void 0&&(fe=!1);var Ue=Mc(C.props.triggerTarget||n);Ue.forEach(function(Be){Be.addEventListener(W,oe,fe),p.push({node:Be,eventType:W,handler:oe,options:fe})})}function Le(){D()&&(be("touchstart",pn,{passive:!0}),be("touchend",Kn,{passive:!0})),nJ(C.props.trigger).forEach(function(W){if(W!=="manual")switch(be(W,pn),W){case"mouseenter":be("mouseleave",Kn);break;case"focus":be(mJ?"focusout":"blur",mn);break;case"focusin":be("focusout",mn);break}})}function pt(){p.forEach(function(W){var oe=W.node,fe=W.eventType,Ue=W.handler,Be=W.options;oe.removeEventListener(fe,Ue,Be)}),p=[]}function pn(W){var oe,fe=!1;if(!(!C.state.isEnabled||Ji(W)||a)){var Ue=((oe=d)==null?void 0:oe.type)==="focus";d=W,y=W.currentTarget,re(),!C.state.isVisible&&sJ(W)&&tg.forEach(function(Be){return Be(W)}),W.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||s)&&C.props.hideOnClick!==!1&&C.state.isVisible?fe=!0:eo(W),W.type==="click"&&(s=!fe),fe&&!Ue&&Vr(W)}}function $r(W){var oe=W.target,fe=V().contains(oe)||S.contains(oe);if(!(W.type==="mousemove"&&fe)){var Ue=xn().concat(S).map(function(Be){var In,Fr=Be._tippy,ld=(In=Fr.popperInstance)==null?void 0:In.state;return ld?{popperRect:Be.getBoundingClientRect(),popperState:ld,props:t}:null}).filter(Boolean);uJ(Ue,W)&&(ue(),Vr(W))}}function Kn(W){var oe=Ji(W)||C.props.trigger.indexOf("click")>=0&&s;if(!oe){if(C.props.interactive){C.hideWithInteractivity(W);return}Vr(W)}}function mn(W){C.props.trigger.indexOf("focusin")<0&&W.target!==V()||C.props.interactive&&W.relatedTarget&&S.contains(W.relatedTarget)||Vr(W)}function Ji(W){return ki.isTouch?D()!==W.type.indexOf("touch")>=0:!1}function Aa(){Ta();var W=C.props,oe=W.popperOptions,fe=W.placement,Ue=W.offset,Be=W.getReferenceClientRect,In=W.moveTransition,Fr=B()?M7(S).arrow:null,ld=Be?{getBoundingClientRect:Be,contextElement:Be.contextElement||V()}:n,XD={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gy){var cd=Gy.state;if(B()){var xfe=L(),sv=xfe.box;["placement","reference-hidden","escaped"].forEach(function(Yy){Yy==="placement"?sv.setAttribute("data-placement",cd.placement):cd.attributes.popper["data-popper-"+Yy]?sv.setAttribute("data-"+Yy,""):sv.removeAttribute("data-"+Yy)}),cd.attributes.popper={}}}},L0=[{name:"offset",options:{offset:Ue}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!In}},XD];B()&&Fr&&L0.push({name:"arrow",options:{element:Fr,padding:3}}),L0.push.apply(L0,(oe==null?void 0:oe.modifiers)||[]),C.popperInstance=QX(ld,S,Object.assign({},oe,{placement:fe,onFirstUpdate:h,modifiers:L0}))}function Ta(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function _t(){var W=C.props.appendTo,oe,fe=V();C.props.interactive&&W===sx||W==="parent"?oe=fe.parentNode:oe=ax(W,[fe]),oe.contains(S)||oe.appendChild(S),C.state.isMounted=!0,Aa(),process.env.NODE_ENV!=="production"&&bo(C.props.interactive&&W===or.appendTo&&fe.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
227
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var SJ=function(){return"innerHTML"};function S7(n,e){n[SJ()]=e}function Cx(n){var e=Z2();return n===!0?e.className=ix:(e.className=ox,W2(n)?e.appendChild(n):S7(e,n)),e}function kx(n,e){W2(e.content)?(S7(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?S7(n,e.content):n.textContent=e.content)}function M7(n){var e=n.firstElementChild,t=eg(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(rx)}),arrow:t.find(function(r){return r.classList.contains(ix)||r.classList.contains(ox)}),backdrop:t.find(function(r){return r.classList.contains(JX)})}}function Sx(n){var e=Z2(),t=Z2();t.className=XX,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Z2();r.className=rx,r.setAttribute("data-state","hidden"),kx(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props);function i(o,s){var a=M7(e),c=a.box,u=a.content,d=a.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&kx(u,n.props),s.arrow?d?o.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(Cx(s.arrow))):c.appendChild(Cx(s.arrow)):d&&c.removeChild(d)}return{popper:e,onUpdate:i}}Sx.$$tippy=!0;var MJ=1,tg=[],E7=[];function EJ(n,e){var t=wx(n,Object.assign({},or,bx(ux(e)))),r,i,o,s=!1,a=!1,c=!1,u=!1,d,f,h,p=[],m=lx($r,t.interactiveDebounce),y,b=MJ++,w=null,v=rJ(t.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:b,reference:n,popper:Z2(),popperInstance:w,props:t,state:k,plugins:v,clearDelayTimeouts:Z,setProps:Y,setContent:Ae,show:ct,hide:Qo,hideWithInteractivity:ad,enable:fi,disable:Ge,unmount:xa,destroy:Xo};if(!t.render)return process.env.NODE_ENV!=="production"&&k7(!0,"render() function has not been supplied."),C;var T=t.render(C),S=T.popper,E=T.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+C.id,C.popper=S,n._tippy=C,S._tippy=C;var O=v.map(function(W){return W.fn(C)}),I=n.hasAttribute("aria-expanded");return Le(),re(),$(),R("onCreate",[C]),t.showOnCreate&&eo(),S.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",m)}),C;function P(){var W=C.props.touch;return Array.isArray(W)?W:[W,0]}function D(){return P()[0]==="hold"}function B(){var W;return!!((W=C.props.render)!=null&&W.$$tippy)}function V(){return y||n}function U(){var W=V().parentNode;return W?cJ(W):document}function L(){return M7(S)}function N(W){return C.state.isMounted&&!C.state.isVisible||ki.isTouch||d&&d.type==="focus"?0:b7(C.props.delay,W?0:1,or.delay)}function $(W){W===void 0&&(W=!1),S.style.pointerEvents=C.props.interactive&&!W?"":"none",S.style.zIndex=""+C.props.zIndex}function R(W,oe,fe){if(fe===void 0&&(fe=!0),O.forEach(function(Be){Be[W]&&Be[W].apply(Be,oe)}),fe){var Ue;(Ue=C.props)[W].apply(Ue,oe)}}function q(){var W=C.props.aria;if(W.content){var oe="aria-"+W.content,fe=S.id,Ue=Mc(C.props.triggerTarget||n);Ue.forEach(function(Be){var In=Be.getAttribute(oe);if(C.state.isVisible)Be.setAttribute(oe,In?In+" "+fe:fe);else{var Fr=In&&In.replace(fe,"").trim();Fr?Be.setAttribute(oe,Fr):Be.removeAttribute(oe)}})}}function re(){if(!(I||!C.props.aria.expanded)){var W=Mc(C.props.triggerTarget||n);W.forEach(function(oe){C.props.interactive?oe.setAttribute("aria-expanded",C.state.isVisible&&oe===V()?"true":"false"):oe.removeAttribute("aria-expanded")})}}function ce(){U().removeEventListener("mousemove",m),tg=tg.filter(function(W){return W!==m})}function K(W){if(!(ki.isTouch&&(c||W.type==="mousedown"))){var oe=W.composedPath&&W.composedPath()[0]||W.target;if(!(C.props.interactive&&fx(S,oe))){if(Mc(C.props.triggerTarget||n).some(function(fe){return fx(fe,oe)})){if(ki.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[C,W]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||G())}}}function H(){c=!0}function j(){c=!1}function F(){var W=U();W.addEventListener("mousedown",K,!0),W.addEventListener("touchend",K,pl),W.addEventListener("touchstart",j,pl),W.addEventListener("touchmove",H,pl)}function G(){var W=U();W.removeEventListener("mousedown",K,!0),W.removeEventListener("touchend",K,pl),W.removeEventListener("touchstart",j,pl),W.removeEventListener("touchmove",H,pl)}function J(W,oe){Oe(W,function(){!C.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&oe()})}function ae(W,oe){Oe(W,oe)}function Oe(W,oe){var fe=L().box;function Ue(Be){Be.target===fe&&(C7(fe,"remove",Ue),oe())}if(W===0)return oe();C7(fe,"remove",f),C7(fe,"add",Ue),f=Ue}function be(W,oe,fe){fe===void 0&&(fe=!1);var Ue=Mc(C.props.triggerTarget||n);Ue.forEach(function(Be){Be.addEventListener(W,oe,fe),p.push({node:Be,eventType:W,handler:oe,options:fe})})}function Le(){D()&&(be("touchstart",pn,{passive:!0}),be("touchend",Kn,{passive:!0})),nJ(C.props.trigger).forEach(function(W){if(W!=="manual")switch(be(W,pn),W){case"mouseenter":be("mouseleave",Kn);break;case"focus":be(mJ?"focusout":"blur",mn);break;case"focusin":be("focusout",mn);break}})}function pt(){p.forEach(function(W){var oe=W.node,fe=W.eventType,Ue=W.handler,Be=W.options;oe.removeEventListener(fe,Ue,Be)}),p=[]}function pn(W){var oe,fe=!1;if(!(!C.state.isEnabled||Ji(W)||a)){var Ue=((oe=d)==null?void 0:oe.type)==="focus";d=W,y=W.currentTarget,re(),!C.state.isVisible&&sJ(W)&&tg.forEach(function(Be){return Be(W)}),W.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||s)&&C.props.hideOnClick!==!1&&C.state.isVisible?fe=!0:eo(W),W.type==="click"&&(s=!fe),fe&&!Ue&&Vr(W)}}function $r(W){var oe=W.target,fe=V().contains(oe)||S.contains(oe);if(!(W.type==="mousemove"&&fe)){var Ue=xn().concat(S).map(function(Be){var In,Fr=Be._tippy,ld=(In=Fr.popperInstance)==null?void 0:In.state;return ld?{popperRect:Be.getBoundingClientRect(),popperState:ld,props:t}:null}).filter(Boolean);uJ(Ue,W)&&(ce(),Vr(W))}}function Kn(W){var oe=Ji(W)||C.props.trigger.indexOf("click")>=0&&s;if(!oe){if(C.props.interactive){C.hideWithInteractivity(W);return}Vr(W)}}function mn(W){C.props.trigger.indexOf("focusin")<0&&W.target!==V()||C.props.interactive&&W.relatedTarget&&S.contains(W.relatedTarget)||Vr(W)}function Ji(W){return ki.isTouch?D()!==W.type.indexOf("touch")>=0:!1}function Aa(){Ta();var W=C.props,oe=W.popperOptions,fe=W.placement,Ue=W.offset,Be=W.getReferenceClientRect,In=W.moveTransition,Fr=B()?M7(S).arrow:null,ld=Be?{getBoundingClientRect:Be,contextElement:Be.contextElement||V()}:n,XD={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gy){var cd=Gy.state;if(B()){var xfe=L(),sv=xfe.box;["placement","reference-hidden","escaped"].forEach(function(Yy){Yy==="placement"?sv.setAttribute("data-placement",cd.placement):cd.attributes.popper["data-popper-"+Yy]?sv.setAttribute("data-"+Yy,""):sv.removeAttribute("data-"+Yy)}),cd.attributes.popper={}}}},L0=[{name:"offset",options:{offset:Ue}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!In}},XD];B()&&Fr&&L0.push({name:"arrow",options:{element:Fr,padding:3}}),L0.push.apply(L0,(oe==null?void 0:oe.modifiers)||[]),C.popperInstance=QX(ld,S,Object.assign({},oe,{placement:fe,onFirstUpdate:h,modifiers:L0}))}function Ta(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function _t(){var W=C.props.appendTo,oe,fe=V();C.props.interactive&&W===sx||W==="parent"?oe=fe.parentNode:oe=ax(W,[fe]),oe.contains(S)||oe.appendChild(S),C.state.isMounted=!0,Aa(),process.env.NODE_ENV!=="production"&&bo(C.props.interactive&&W===or.appendTo&&fe.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
228
228
 
229
229
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
230
230
 
231
231
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
232
232
 
233
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function xn(){return eg(S.querySelectorAll("[data-tippy-root]"))}function eo(W){C.clearDelayTimeouts(),W&&R("onTrigger",[C,W]),F();var oe=N(!0),fe=P(),Ue=fe[0],Be=fe[1];ki.isTouch&&Ue==="hold"&&Be&&(oe=Be),oe?r=setTimeout(function(){C.show()},oe):C.show()}function Vr(W){if(C.clearDelayTimeouts(),R("onUntrigger",[C,W]),!C.state.isVisible){G();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(W.type)>=0&&s)){var oe=N(!1);oe?i=setTimeout(function(){C.state.isVisible&&C.hide()},oe):o=requestAnimationFrame(function(){C.hide()})}}function fi(){C.state.isEnabled=!0}function Ge(){C.hide(),C.state.isEnabled=!1}function Z(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Y(W){if(process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("setProps")),!C.state.isDestroyed){R("onBeforeUpdate",[C,W]),pt();var oe=C.props,fe=wx(n,Object.assign({},oe,ux(W),{ignoreAttributes:!0}));C.props=fe,Le(),oe.interactiveDebounce!==fe.interactiveDebounce&&(ue(),m=lx($r,fe.interactiveDebounce)),oe.triggerTarget&&!fe.triggerTarget?Mc(oe.triggerTarget).forEach(function(Ue){Ue.removeAttribute("aria-expanded")}):fe.triggerTarget&&n.removeAttribute("aria-expanded"),re(),$(),E&&E(oe,fe),C.popperInstance&&(Aa(),xn().forEach(function(Ue){requestAnimationFrame(Ue._tippy.popperInstance.forceUpdate)})),R("onAfterUpdate",[C,W])}}function Ae(W){C.setProps({content:W})}function ct(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("show"));var W=C.state.isVisible,oe=C.state.isDestroyed,fe=!C.state.isEnabled,Ue=ki.isTouch&&!C.props.touch,Be=b7(C.props.duration,0,or.duration);if(!(W||oe||fe||Ue)&&!V().hasAttribute("disabled")&&(R("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,B()&&(S.style.visibility="visible"),$(),F(),C.state.isMounted||(S.style.transition="none"),B()){var In=L(),Fr=In.box,ld=In.content;v7([Fr,ld],0)}h=function(){var L0;if(!(!C.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=C.props.moveTransition,B()&&C.props.animation){var ov=L(),Gy=ov.box,cd=ov.content;v7([Gy,cd],Be),dx([Gy,cd],"visible")}q(),re(),cx(E7,C),(L0=C.popperInstance)==null||L0.forceUpdate(),R("onMount",[C]),C.props.animation&&B()&&ae(Be,function(){C.state.isShown=!0,R("onShown",[C])})}},_t()}}function Qo(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("hide"));var W=!C.state.isVisible,oe=C.state.isDestroyed,fe=!C.state.isEnabled,Ue=b7(C.props.duration,1,or.duration);if(!(W||oe||fe)&&(R("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,u=!1,s=!1,B()&&(S.style.visibility="hidden"),ue(),G(),$(!0),B()){var Be=L(),In=Be.box,Fr=Be.content;C.props.animation&&(v7([In,Fr],Ue),dx([In,Fr],"hidden"))}q(),re(),C.props.animation?B()&&J(Ue,C.unmount):C.unmount()}}function ad(W){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("hideWithInteractivity")),U().addEventListener("mousemove",m),cx(tg,m),m(W)}function xa(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("unmount")),C.state.isVisible&&C.hide(),C.state.isMounted&&(Ta(),xn().forEach(function(W){W._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),E7=E7.filter(function(W){return W!==C}),C.state.isMounted=!1,R("onHidden",[C]))}function Xo(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("destroy")),!C.state.isDestroyed&&(C.clearDelayTimeouts(),C.unmount(),pt(),delete n._tippy,C.state.isDestroyed=!0,R("onDestroy",[C]))}}function Ac(n,e){e===void 0&&(e={});var t=or.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(bJ(n),vx(e,t)),hJ();var r=Object.assign({},e,{plugins:t}),i=lJ(n);if(process.env.NODE_ENV!=="production"){var o=W2(r.content),s=i.length>1;bo(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
233
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function xn(){return eg(S.querySelectorAll("[data-tippy-root]"))}function eo(W){C.clearDelayTimeouts(),W&&R("onTrigger",[C,W]),F();var oe=N(!0),fe=P(),Ue=fe[0],Be=fe[1];ki.isTouch&&Ue==="hold"&&Be&&(oe=Be),oe?r=setTimeout(function(){C.show()},oe):C.show()}function Vr(W){if(C.clearDelayTimeouts(),R("onUntrigger",[C,W]),!C.state.isVisible){G();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(W.type)>=0&&s)){var oe=N(!1);oe?i=setTimeout(function(){C.state.isVisible&&C.hide()},oe):o=requestAnimationFrame(function(){C.hide()})}}function fi(){C.state.isEnabled=!0}function Ge(){C.hide(),C.state.isEnabled=!1}function Z(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Y(W){if(process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("setProps")),!C.state.isDestroyed){R("onBeforeUpdate",[C,W]),pt();var oe=C.props,fe=wx(n,Object.assign({},oe,ux(W),{ignoreAttributes:!0}));C.props=fe,Le(),oe.interactiveDebounce!==fe.interactiveDebounce&&(ce(),m=lx($r,fe.interactiveDebounce)),oe.triggerTarget&&!fe.triggerTarget?Mc(oe.triggerTarget).forEach(function(Ue){Ue.removeAttribute("aria-expanded")}):fe.triggerTarget&&n.removeAttribute("aria-expanded"),re(),$(),E&&E(oe,fe),C.popperInstance&&(Aa(),xn().forEach(function(Ue){requestAnimationFrame(Ue._tippy.popperInstance.forceUpdate)})),R("onAfterUpdate",[C,W])}}function Ae(W){C.setProps({content:W})}function ct(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("show"));var W=C.state.isVisible,oe=C.state.isDestroyed,fe=!C.state.isEnabled,Ue=ki.isTouch&&!C.props.touch,Be=b7(C.props.duration,0,or.duration);if(!(W||oe||fe||Ue)&&!V().hasAttribute("disabled")&&(R("onShow",[C],!1),C.props.onShow(C)!==!1)){if(C.state.isVisible=!0,B()&&(S.style.visibility="visible"),$(),F(),C.state.isMounted||(S.style.transition="none"),B()){var In=L(),Fr=In.box,ld=In.content;v7([Fr,ld],0)}h=function(){var L0;if(!(!C.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=C.props.moveTransition,B()&&C.props.animation){var ov=L(),Gy=ov.box,cd=ov.content;v7([Gy,cd],Be),dx([Gy,cd],"visible")}q(),re(),cx(E7,C),(L0=C.popperInstance)==null||L0.forceUpdate(),R("onMount",[C]),C.props.animation&&B()&&ae(Be,function(){C.state.isShown=!0,R("onShown",[C])})}},_t()}}function Qo(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("hide"));var W=!C.state.isVisible,oe=C.state.isDestroyed,fe=!C.state.isEnabled,Ue=b7(C.props.duration,1,or.duration);if(!(W||oe||fe)&&(R("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,u=!1,s=!1,B()&&(S.style.visibility="hidden"),ce(),G(),$(!0),B()){var Be=L(),In=Be.box,Fr=Be.content;C.props.animation&&(v7([In,Fr],Ue),dx([In,Fr],"hidden"))}q(),re(),C.props.animation?B()&&J(Ue,C.unmount):C.unmount()}}function ad(W){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("hideWithInteractivity")),U().addEventListener("mousemove",m),cx(tg,m),m(W)}function xa(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("unmount")),C.state.isVisible&&C.hide(),C.state.isMounted&&(Ta(),xn().forEach(function(W){W._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),E7=E7.filter(function(W){return W!==C}),C.state.isMounted=!1,R("onHidden",[C]))}function Xo(){process.env.NODE_ENV!=="production"&&bo(C.state.isDestroyed,Ec("destroy")),!C.state.isDestroyed&&(C.clearDelayTimeouts(),C.unmount(),pt(),delete n._tippy,C.state.isDestroyed=!0,R("onDestroy",[C]))}}function Ac(n,e){e===void 0&&(e={});var t=or.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(bJ(n),vx(e,t)),hJ();var r=Object.assign({},e,{plugins:t}),i=lJ(n);if(process.env.NODE_ENV!=="production"){var o=W2(r.content),s=i.length>1;bo(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
234
234
 
235
235
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
236
236
 
237
237
  `,`1) content: element.innerHTML
238
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=i.reduce(function(c,u){var d=u&&EJ(u,r);return d&&c.push(d),c},[]);return W2(n)?a[0]:a}Ac.defaultProps=or,Ac.setDefaultProps=CJ,Ac.currentInput=ki,Object.assign({},jT,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Ac.setDefaultProps({render:Sx});class AJ{constructor({editor:e,element:t,view:r,tippyOptions:i={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:d})=>{const{doc:f,selection:h}=c,{empty:p}=h,m=!f.textBetween(u,d).length&&e7(c.selection),y=this.element.contains(document.activeElement);return!(!(a.hasFocus()||y)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),d=!(c!=null&&c.doc.eq(a.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,d,c)},this.updateDelay))},this.updateHandler=(a,c,u,d)=>{var f,h,p;const{state:m,composing:y}=a,{selection:b}=m;if(y||!c&&!u)return;this.createTooltip();const{ranges:v}=b,k=Math.min(...v.map(S=>S.$from.pos)),C=Math.max(...v.map(S=>S.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:a,state:m,oldState:d,from:k,to:C}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(AQ(m.selection)){let S=a.nodeDOM(k);const E=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(E&&(S=E.firstChild),S)return S.getBoundingClientRect()}return BT(a,k,C)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Ac(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,i=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,t);return}const o=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,o,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Mx=n=>new Rt({key:typeof n.pluginKey=="string"?new Vn(n.pluginKey):n.pluginKey,view:e=>new AJ({view:e,...n})});Jt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Mx({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class TJ{constructor({editor:e,element:t,view:r,tippyOptions:i={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:c}=a,{$anchor:u,empty:d}=c,f=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Ac(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,i,o;const{state:s}=e,{doc:a,selection:c}=s,{from:u,to:d}=c;if(t&&t.doc.eq(a)&&t.selection.eq(c))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(i=this.tippy)===null||i===void 0||i.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>BT(e,u,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Ex=n=>new Rt({key:typeof n.pluginKey=="string"?new Vn(n.pluginKey):n.pluginKey,view:e=>new TJ({view:e,...n})});Jt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Ex({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),l.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=l.ref(null);return l.onMounted(()=>{const{updateDelay:r,editor:i,pluginKey:o,shouldShow:s,tippyOptions:a}=n;i.registerPlugin(Mx({updateDelay:r,editor:i,element:t.value,pluginKey:o,shouldShow:s,tippyOptions:a}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Ax(n){return l.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class xJ extends ZQ{constructor(e={}){return super(e),this.vueRenderers=l.reactive(new Map),this.contentComponent=null,this.reactiveState=Ax(this.view.state),this.reactiveExtensionStorage=Ax(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),l.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const IJ=l.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=l.ref(),t=l.getCurrentInstance();return l.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&l.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const i=l.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:i}),r.createNodeViews()})}),l.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const i=document.createElement("div");i.append(...r.options.element.childNodes),r.setOptions({element:i})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=l.h(l.Teleport,{to:e.teleportElement,key:e.id},l.h(e.component,{ref:e.id,...e.props}));n.push(t)}),l.h("div",{ref:e=>{this.rootEl=e}},...n)}});l.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=l.ref(null);return l.onMounted(()=>{const{pluginKey:r,editor:i,tippyOptions:o,shouldShow:s}=n;i.registerPlugin(Ex({pluginKey:r,editor:i,element:t.value,tippyOptions:o,shouldShow:s}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),l.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),l.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return l.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const OJ=(n={})=>{const e=l.shallowRef();return l.onMounted(()=>{e.value=new xJ(n)}),l.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},Tx="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",xx={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"},Ix="u",ng="n",rg="v",K2="r",DJ={[ng]:["grinning face","grinning"],[Ix]:"1f600",[K2]:"1f600"},ig="neutral",NJ=[ig,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],PJ={placeholder:"Search emoji",skinTone:"Skin tone"},_J=["light","dark","auto"];var LJ={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"}]},Ox=[{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 BJ=(n,e)=>e.some(t=>n instanceof t);let Dx,Nx;function RJ(){return Dx||(Dx=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $J(){return Nx||(Nx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Px=new WeakMap,A7=new WeakMap,_x=new WeakMap,T7=new WeakMap,x7=new WeakMap;function VJ(n){const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Ds(n.result)),i()},s=()=>{r(n.error),i()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&Px.set(t,n)}).catch(()=>{}),x7.set(e,n),e}function FJ(n){if(A7.has(n))return;const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),i()},s=()=>{r(n.error||new DOMException("AbortError","AbortError")),i()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});A7.set(n,e)}let I7={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return A7.get(n);if(e==="objectStoreNames")return n.objectStoreNames||_x.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Ds(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function jJ(n){I7=n(I7)}function zJ(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=n.call(O7(this),e,...t);return _x.set(r,e.sort?e.sort():[e]),Ds(r)}:$J().includes(n)?function(...e){return n.apply(O7(this),e),Ds(Px.get(this))}:function(...e){return Ds(n.apply(O7(this),e))}}function HJ(n){return typeof n=="function"?zJ(n):(n instanceof IDBTransaction&&FJ(n),BJ(n,RJ())?new Proxy(n,I7):n)}function Ds(n){if(n instanceof IDBRequest)return VJ(n);if(T7.has(n))return T7.get(n);const e=HJ(n);return e!==n&&(T7.set(n,e),x7.set(e,n)),e}const O7=n=>x7.get(n);function D7(n,e,{blocked:t,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(n,e),a=Ds(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Ds(s.result),c.oldVersion,c.newVersion,Ds(s.transaction),c)}),t&&s.addEventListener("blocked",c=>t(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const UJ=["get","getKey","getAll","getAllKeys","count"],ZJ=["put","add","delete","clear"],N7=new Map;function Lx(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(N7.get(e))return N7.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,i=ZJ.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||UJ.includes(t)))return;const o=async function(s,...a){const c=this.transaction(s,i?"readwrite":"readonly");let u=c.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[t](...a),i&&c.done]))[0]};return N7.set(e,o),o}jJ(n=>({...n,get:(e,t,r)=>Lx(e,t)||n.get(e,t,r),has:(e,t)=>!!Lx(e,t)||n.has(e,t)}));const P7="EMJ",Tc="emojis",_7=3;async function WJ(){(await D7(P7,_7,{upgrade(e,t){e.objectStoreNames.contains(Tc)||e.createObjectStore(Tc,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}WJ();const qJ={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function KJ(){return await(await D7(P7,_7)).transaction(Tc,"readonly").objectStore(Tc).getAll()}function GJ(){const n=l.reactive({search:"",emoji:DJ,activeGroup:"",skinTone:ig,options:qJ,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...LJ}},get disabled(){let f=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(f=["recent",...f]),f},get groups(){return Ox.filter(f=>!this.disabled.includes(f.key))},get orderedGroupKeys(){const f=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...Ox.map(h=>h.key)];return[...new Set(f)].filter(h=>!this.disabled.includes(h))}});function e(){n.options.displayRecent&&r()}async function t(){var f;let h=await KJ();return Array.isArray(h)&&h.length?h=JSON.parse(((f=h[0])==null?void 0:f.value)||""):h=[],h}function r(){t().then(f=>{n.recent=f,u()})}const i=f=>{n.search=f},o=f=>{n.emoji=f},s=f=>{n.activeGroup=f},a=(f=ig)=>{n.skinTone=f},c=f=>{n.options=Object.assign({},n.options,f),e()};async function u(){(await D7(P7,_7)).transaction(Tc,"readwrite").objectStore(Tc).put({id:0,value:JSON.stringify(n.recent)})}const d=f=>{if(n.options.displayRecent!==!0)return;const h=n.recent.findIndex(m=>m.u===f.u);if(h>0&&n.recent.splice(h,1),h===0)return;const p={u:f.u,n:l.toRaw(f.n)};n.recent=[p,...n.recent],n.recent.length>24&&(n.recent.length=24),u()};return{state:l.readonly(n),updateSearch:i,updateEmoji:o,updateActiveGroup:s,updateSkinTone:a,updateOptions:c,updateSelect:d}}var Hn="top",Ar="bottom",Tr="right",Un="left",L7="auto",G2=[Hn,Ar,Tr,Un],xc="start",Y2="end",YJ="clippingParents",Bx="viewport",Q2="popper",QJ="reference",Rx=G2.reduce(function(n,e){return n.concat([e+"-"+xc,e+"-"+Y2])},[]),$x=[].concat(G2,[L7]).reduce(function(n,e){return n.concat([e,e+"-"+xc,e+"-"+Y2])},[]),XJ="beforeRead",JJ="read",eee="afterRead",tee="beforeMain",nee="main",ree="afterMain",iee="beforeWrite",oee="write",see="afterWrite",aee=[XJ,JJ,eee,tee,nee,ree,iee,oee,see];function Si(n){return n?(n.nodeName||"").toLowerCase():null}function Qr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ic(n){var e=Qr(n).Element;return n instanceof e||n instanceof Element}function xr(n){var e=Qr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Vx(n){if(typeof ShadowRoot>"u")return!1;var e=Qr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function lee(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!xr(o)||!Si(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function cee(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!xr(i)||!Si(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var uee={name:"applyStyles",enabled:!0,phase:"write",fn:lee,effect:cee,requires:["computeStyles"]};function Mi(n){return n.split("-")[0]}var ml=Math.max,og=Math.min,Oc=Math.round;function Dc(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,i=1;if(xr(n)&&e){var o=n.offsetHeight,s=n.offsetWidth;s>0&&(r=Oc(t.width)/s||1),o>0&&(i=Oc(t.height)/o||1)}return{width:t.width/r,height:t.height/i,top:t.top/i,right:t.right/r,bottom:t.bottom/i,left:t.left/r,x:t.left/r,y:t.top/i}}function B7(n){var e=Dc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function Fx(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Vx(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ei(n){return Qr(n).getComputedStyle(n)}function dee(n){return["table","td","th"].indexOf(Si(n))>=0}function Ns(n){return((Ic(n)?n.ownerDocument:n.document)||window.document).documentElement}function sg(n){return Si(n)==="html"?n:n.assignedSlot||n.parentNode||(Vx(n)?n.host:null)||Ns(n)}function jx(n){return!xr(n)||Ei(n).position==="fixed"?null:n.offsetParent}function fee(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&xr(n)){var r=Ei(n);if(r.position==="fixed")return null}for(var i=sg(n);xr(i)&&["html","body"].indexOf(Si(i))<0;){var o=Ei(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function X2(n){for(var e=Qr(n),t=jx(n);t&&dee(t)&&Ei(t).position==="static";)t=jx(t);return t&&(Si(t)==="html"||Si(t)==="body"&&Ei(t).position==="static")?e:t||fee(n)||e}function R7(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function J2(n,e,t){return ml(n,og(e,t))}function hee(n,e,t){var r=J2(n,e,t);return r>t?t:r}function zx(){return{top:0,right:0,bottom:0,left:0}}function Hx(n){return Object.assign({},zx(),n)}function Ux(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var pee=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Hx(typeof e!="number"?e:Ux(e,G2))};function mee(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Mi(t.placement),c=R7(a),u=[Un,Tr].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!s)){var f=pee(i.padding,t),h=B7(o),p=c==="y"?Hn:Un,m=c==="y"?Ar:Tr,y=t.rects.reference[d]+t.rects.reference[c]-s[c]-t.rects.popper[d],b=s[c]-t.rects.reference[c],w=X2(o),v=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,k=y/2-b/2,C=f[p],T=v-h[d]-f[m],S=v/2-h[d]/2+k,E=J2(C,S,T),O=c;t.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-S,e)}}function gee(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Fx(e.elements.popper,i)&&(e.elements.arrow=i))}var yee={name:"arrow",enabled:!0,phase:"main",fn:mee,effect:gee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nc(n){return n.split("-")[1]}var bee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wee(n){var e=n.x,t=n.y,r=window,i=r.devicePixelRatio||1;return{x:Oc(e*i)/i||0,y:Oc(t*i)/i||0}}function Zx(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,c=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,f=n.isFixed,h=d===!0?wee(s):typeof d=="function"?d(s):s,p=h.x,m=p===void 0?0:p,y=h.y,b=y===void 0?0:y,w=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=Un,C=Hn,T=window;if(u){var S=X2(t),E="clientHeight",O="clientWidth";if(S===Qr(t)&&(S=Ns(t),Ei(S).position!=="static"&&a==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,i===Hn||(i===Un||i===Tr)&&o===Y2){C=Ar;var I=f&&T.visualViewport?T.visualViewport.height:S[E];b-=I-r.height,b*=c?1:-1}if(i===Un||(i===Hn||i===Ar)&&o===Y2){k=Tr;var P=f&&T.visualViewport?T.visualViewport.width:S[O];m-=P-r.width,m*=c?1:-1}}var D=Object.assign({position:a},u&&bee);if(c){var B;return Object.assign({},D,(B={},B[C]=v?"0":"",B[k]=w?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",B))}return Object.assign({},D,(e={},e[C]=v?b+"px":"",e[k]=w?m+"px":"",e.transform="",e))}function vee(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,u={placement:Mi(e.placement),variation:Nc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zx(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zx(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Cee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vee,data:{}},ag={passive:!0};function kee(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Qr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",t.update,ag)}),a&&c.addEventListener("resize",t.update,ag),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",t.update,ag)}),a&&c.removeEventListener("resize",t.update,ag)}}var See={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kee,data:{}},Mee={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(n){return n.replace(/left|right|bottom|top/g,function(e){return Mee[e]})}var Eee={start:"end",end:"start"};function Wx(n){return n.replace(/start|end/g,function(e){return Eee[e]})}function $7(n){var e=Qr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function V7(n){return Dc(Ns(n)).left+$7(n).scrollLeft}function Aee(n){var e=Qr(n),t=Ns(n),r=e.visualViewport,i=t.clientWidth,o=t.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+V7(n),y:a}}function Tee(n){var e,t=Ns(n),r=$7(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=ml(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ml(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+V7(n),c=-r.scrollTop;return Ei(i||t).direction==="rtl"&&(a+=ml(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function F7(n){var e=Ei(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function qx(n){return["html","body","#document"].indexOf(Si(n))>=0?n.ownerDocument.body:xr(n)&&F7(n)?n:qx(sg(n))}function ef(n,e){var t;e===void 0&&(e=[]);var r=qx(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=Qr(r),s=i?[o].concat(o.visualViewport||[],F7(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(ef(sg(s)))}function j7(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function xee(n){var e=Dc(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Kx(n,e){return e===Bx?j7(Aee(n)):Ic(e)?xee(e):j7(Tee(Ns(n)))}function Iee(n){var e=ef(sg(n)),t=["absolute","fixed"].indexOf(Ei(n).position)>=0,r=t&&xr(n)?X2(n):n;return Ic(r)?e.filter(function(i){return Ic(i)&&Fx(i,r)&&Si(i)!=="body"&&(t?Ei(i).position!=="static":!0)}):[]}function Oee(n,e,t){var r=e==="clippingParents"?Iee(n):[].concat(e),i=[].concat(r,[t]),o=i[0],s=i.reduce(function(a,c){var u=Kx(n,c);return a.top=ml(u.top,a.top),a.right=og(u.right,a.right),a.bottom=og(u.bottom,a.bottom),a.left=ml(u.left,a.left),a},Kx(n,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Gx(n){var e=n.reference,t=n.element,r=n.placement,i=r?Mi(r):null,o=r?Nc(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(i){case Hn:c={x:s,y:e.y-t.height};break;case Ar:c={x:s,y:e.y+e.height};break;case Tr:c={x:e.x+e.width,y:a};break;case Un:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var u=i?R7(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case xc:c[u]=c[u]-(e[d]/2-t[d]/2);break;case Y2:c[u]=c[u]+(e[d]/2-t[d]/2);break}}return c}function tf(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.boundary,s=o===void 0?YJ:o,a=t.rootBoundary,c=a===void 0?Bx:a,u=t.elementContext,d=u===void 0?Q2:u,f=t.altBoundary,h=f===void 0?!1:f,p=t.padding,m=p===void 0?0:p,y=Hx(typeof m!="number"?m:Ux(m,G2)),b=d===Q2?QJ:Q2,w=n.rects.popper,v=n.elements[h?b:d],k=Oee(Ic(v)?v:v.contextElement||Ns(n.elements.popper),s,c),C=Dc(n.elements.reference),T=Gx({reference:C,element:w,strategy:"absolute",placement:i}),S=j7(Object.assign({},w,T)),E=d===Q2?S:C,O={top:k.top-E.top+y.top,bottom:E.bottom-k.bottom+y.bottom,left:k.left-E.left+y.left,right:E.right-k.right+y.right},I=n.modifiersData.offset;if(d===Q2&&I){var P=I[i];Object.keys(O).forEach(function(D){var B=[Tr,Ar].indexOf(D)>=0?1:-1,V=[Hn,Ar].indexOf(D)>=0?"y":"x";O[D]+=P[V]*B})}return O}function Dee(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,u=c===void 0?$x:c,d=Nc(r),f=d?a?Rx:Rx.filter(function(m){return Nc(m)===d}):G2,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=tf(n,{placement:y,boundary:i,rootBoundary:o,padding:s})[Mi(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function Nee(n){if(Mi(n)===L7)return[];var e=lg(n);return[Wx(n),e,Wx(e)]}function Pee(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,c=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,y=t.allowedAutoPlacements,b=e.options.placement,w=Mi(b),v=w===b,k=c||(v||!m?[lg(b)]:Nee(b)),C=[b].concat(k).reduce(function(j,F){return j.concat(Mi(F)===L7?Dee(e,{placement:F,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):F)},[]),T=e.rects.reference,S=e.rects.popper,E=new Map,O=!0,I=C[0],P=0;P<C.length;P++){var D=C[P],B=Mi(D),V=Nc(D)===xc,U=[Hn,Ar].indexOf(B)>=0,L=U?"width":"height",N=tf(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),$=U?V?Tr:Un:V?Ar:Hn;T[L]>S[L]&&($=lg($));var R=lg($),q=[];if(o&&q.push(N[B]<=0),a&&q.push(N[$]<=0,N[R]<=0),q.every(function(j){return j})){I=D,O=!1;break}E.set(D,q)}if(O)for(var re=m?3:1,ue=function(F){var G=C.find(function(J){var ae=E.get(J);if(ae)return ae.slice(0,F).every(function(Oe){return Oe})});if(G)return I=G,"break"},K=re;K>0;K--){var H=ue(K);if(H==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}var _ee={name:"flip",enabled:!0,phase:"main",fn:Pee,requiresIfExists:["offset"],data:{_skip:!1}};function Yx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Qx(n){return[Hn,Tr,Ar,Un].some(function(e){return n[e]>=0})}function Lee(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=tf(e,{elementContext:"reference"}),a=tf(e,{altBoundary:!0}),c=Yx(s,r),u=Yx(a,i,o),d=Qx(c),f=Qx(u);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var Bee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lee};function Ree(n,e,t){var r=Mi(n),i=[Un,Hn].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Un,Tr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function $ee(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=$x.reduce(function(d,f){return d[f]=Ree(f,e.rects,o),d},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}var Vee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$ee};function Fee(n){var e=n.state,t=n.name;e.modifiersData[t]=Gx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var jee={name:"popperOffsets",enabled:!0,phase:"read",fn:Fee,data:{}};function zee(n){return n==="x"?"y":"x"}function Hee(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,c=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,y=m===void 0?0:m,b=tf(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Mi(e.placement),v=Nc(e.placement),k=!v,C=R7(w),T=zee(C),S=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(S){if(o){var V,U=C==="y"?Hn:Un,L=C==="y"?Ar:Tr,N=C==="y"?"height":"width",$=S[C],R=$+b[U],q=$-b[L],re=p?-O[N]/2:0,ue=v===xc?E[N]:O[N],K=v===xc?-O[N]:-E[N],H=e.elements.arrow,j=p&&H?B7(H):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zx(),G=F[U],J=F[L],ae=J2(0,E[N],j[N]),Oe=k?E[N]/2-re-ae-G-P.mainAxis:ue-ae-G-P.mainAxis,be=k?-E[N]/2+re+ae+J+P.mainAxis:K+ae+J+P.mainAxis,Le=e.elements.arrow&&X2(e.elements.arrow),pt=Le?C==="y"?Le.clientTop||0:Le.clientLeft||0:0,pn=(V=D==null?void 0:D[C])!=null?V:0,$r=$+Oe-pn-pt,Kn=$+be-pn,mn=J2(p?og(R,$r):R,$,p?ml(q,Kn):q);S[C]=mn,B[C]=mn-$}if(a){var Ji,Aa=C==="x"?Hn:Un,Ta=C==="x"?Ar:Tr,_t=S[T],xn=T==="y"?"height":"width",eo=_t+b[Aa],Vr=_t-b[Ta],fi=[Hn,Un].indexOf(w)!==-1,Ge=(Ji=D==null?void 0:D[T])!=null?Ji:0,Z=fi?eo:_t-E[xn]-O[xn]-Ge+P.altAxis,Y=fi?_t+E[xn]+O[xn]-Ge-P.altAxis:Vr,Ae=p&&fi?hee(Z,_t,Y):J2(p?Z:eo,_t,p?Y:Vr);S[T]=Ae,B[T]=Ae-_t}e.modifiersData[r]=B}}var Uee={name:"preventOverflow",enabled:!0,phase:"main",fn:Hee,requiresIfExists:["offset"]};function Zee(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Wee(n){return n===Qr(n)||!xr(n)?$7(n):Zee(n)}function qee(n){var e=n.getBoundingClientRect(),t=Oc(e.width)/n.offsetWidth||1,r=Oc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Kee(n,e,t){t===void 0&&(t=!1);var r=xr(e),i=xr(e)&&qee(e),o=Ns(e),s=Dc(n,i),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((Si(e)!=="body"||F7(o))&&(a=Wee(e)),xr(e)?(c=Dc(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=V7(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Gee(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&i(c)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function Yee(n){var e=Gee(n);return aee.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function Qee(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Xee(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Xx={placement:"bottom",modifiers:[],strategy:"absolute"};function Jx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Jee(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?Xx:i;return function(a,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xx,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(w){var v=typeof w=="function"?w(d.options):w;y(),d.options=Object.assign({},o,d.options,v),d.scrollParents={reference:Ic(a)?ef(a):a.contextElement?ef(a.contextElement):[],popper:ef(c)};var k=Yee(Xee([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var w=d.elements,v=w.reference,k=w.popper;if(Jx(v,k)){d.rects={reference:Kee(v,X2(k),d.options.strategy==="fixed"),popper:B7(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],S=T.fn,E=T.options,O=E===void 0?{}:E,I=T.name;typeof S=="function"&&(d=S({state:d,options:O,name:I,instance:p})||d)}}}},update:Qee(function(){return new Promise(function(b){p.forceUpdate(),b(d)})}),destroy:function(){y(),h=!0}};if(!Jx(a,c))return p;p.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var w=b.name,v=b.options,k=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var T=C({state:d,name:w,instance:p,options:k}),S=function(){};f.push(T||S)}})}function y(){f.forEach(function(b){return b()}),f=[]}return p}}var ete=[See,jee,Cee,uee,Vee,_ee,Uee,yee,Bee],tte=Jee({defaultModifiers:ete}),eI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function cg(n){return n.split("-").map(e=>parseInt(e,16)).map(e=>String.fromCodePoint(e)).join("")}function nte(n,e,t,r=[]){const i={};return Object.keys(n).forEach(o=>{if(r.includes(o))return;const s=[];n[o].forEach(a=>{var c;if(a[ng][0].includes(e.toLocaleLowerCase())){let u=a[Ix];if(t!==ig&&Array.isArray(a[rg])){const d=((c=a[rg])==null?void 0:c.findIndex(f=>f.includes(t)))||-1;d!==-1&&a[rg]&&(u=a[rg][d])}return s.push({...a,[K2]:u})}}),s.length&&(i[o]=s)}),i}function tI(){var n;return(((n=navigator==null?void 0:navigator.userAgentData)==null?void 0:n.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function nI(n){return n.replace(/^_*(.)|_+(.)/g,(e,t,r)=>t?t.toUpperCase():" "+r.toUpperCase())}var nf=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};const rte=l.defineComponent({name:"Body",emits:{select:n=>!0},setup(){const{state:n,updateEmoji:e,updateSelect:t}=l.inject("store"),r=l.ref(null),i=l.computed(()=>nte(n.emojis,n.search,n.skinTone,n.options.disabledGroups)),o=l.getCurrentInstance(),s=l.computed(()=>!n.options.hideGroupNames),a=l.computed(()=>!n.options.disableStickyGroupNames),c=l.toRaw(n.options.groupNames),u=n.orderedGroupKeys;n.options.additionalGroups&&Object.keys(n.options.additionalGroups).map(m=>{n.options.groupNames[m]?c[m]=n.options.groupNames[m]:c[m]=nI(m)});const d=tI()?"is-mac":"";function f(m){e(m)}function h(m){t(m),o==null||o.emit("select",{...m,t:n.skinTone,i:cg(m.r)})}function p(m,y){var b;const w=(b=m==null?void 0:m.target)==null?void 0:b.closest("button");w&&(w.innerHTML=`<span>${cg(y)}</span>`)}return l.watch(()=>n.activeGroup,()=>{var m;const y=(m=r.value)==null?void 0:m.querySelector("#"+n.activeGroup);y&&(y.parentNode.scrollTop=y.offsetTop-y.parentNode.offsetTop)}),{emojis:i,bodyInner:r,EMOJI_REMOTE_SRC:Tx,GROUP_NAMES:xx,handleClick:h,handleError:p,handleMouseEnter:f,native:n.options.native,unicodeToEmoji:cg,EMOJI_RESULT_KEY:K2,EMOJI_NAME_KEY:ng,hasGroupNames:s,isSticky:a,platform:d,groupNames:c,orderedKeys:u}}}),ite={class:"v3-body"},ote=["id"],ste={class:"v3-emojis"},ate=["onMouseenter","onClick"],lte={key:0},cte=["src","alt","onError"],ute={key:1,class:"v3-no-result"};function dte(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",ite,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([n.platform,"v3-body-inner"])},[n.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.orderedKeys,s=>(l.openBlock(),l.createElementBlock("div",{id:s,key:s,class:"v3-group"},[n.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(n.isSticky?"v3-sticky":"")},l.toDisplayString(n.groupNames[s]),3)),[[l.vShow,n.emojis[s]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",ste,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.emojis[s],a=>(l.openBlock(),l.createElementBlock("button",{key:a.r,type:"button",onMouseenter:c=>n.handleMouseEnter(a),onClick:c=>n.handleClick(a)},[n.native?(l.openBlock(),l.createElementBlock("span",lte,l.toDisplayString(n.unicodeToEmoji(a.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:n.EMOJI_REMOTE_SRC+`/${a.r}.png`,alt:a.n[0],onError:c=>n.handleError(c,a.r)},null,40,cte))],40,ate))),128))],512),[[l.vShow,n.emojis[s]]])],8,ote))),128)):(l.openBlock(),l.createElementBlock("span",ute," No emoji has been found! "))],2)])}var fte=nf(rte,[["render",dte]]),hte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",pte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",mte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",gte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",yte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",bte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",wte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",vte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const Cte=l.defineComponent({name:"Header",setup(n){const{state:e,updateSearch:t,updateActiveGroup:r}=l.inject("store"),i=l.computed(()=>!e.options.hideSearch),o=l.computed(()=>!e.options.hideGroupIcons),s=JSON.parse(JSON.stringify(e.orderedGroupKeys)),a=l.computed(()=>e.options.staticTexts.placeholder||""),c=l.computed({get:()=>e.search,set:f=>t(f)}),u=[...e.groups,...Object.keys(e.options.additionalGroups).map(f=>({key:f,title:e.options.groupNames[f]?e.options.groupNames[f]:nI(f)}))],d=[];return s.forEach(f=>{const h=u.findIndex(p=>p.key===f);h!==-1&&(d.push(u[h]),u.splice(h,1))}),{orderedGroups:d,orderedKeys:s,searchValue:c,updateActiveGroup:r,hasSearch:i,hasGroupIcons:o,placeholder:a,icons:{smileys_people:eI,animals_nature:hte,food_drink:pte,activities:mte,travel_places:gte,objects:yte,symbols:bte,flags:wte,...e.options.groupIcons,recent:vte}}}}),kte={key:0,class:"v3-header"},Ste={key:0,class:"v3-groups"},Mte=["onClick"],Ete=["title"],Ate=["src"],Tte={key:1,class:"v3-spacing"},xte={key:2,class:"v3-search"},Ite=["placeholder"];function Ote(n,e,t,r,i,o){return n.hasGroupIcons||n.hasSearch?(l.openBlock(),l.createElementBlock("div",kte,[n.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",Ste,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.orderedGroups,s=>(l.openBlock(),l.createElementBlock("button",{key:s.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!n.icons[s.key]}]),onClick:a=>n.updateActiveGroup(s.key)},[l.createElementVNode("span",{title:s.title,class:"v3-icon"},[l.createElementVNode("img",{src:n.icons[s.key],alt:""},null,8,Ate)],8,Ete)],10,Mte))),128))])):l.createCommentVNode("",!0),n.hasGroupIcons&&n.hasSearch?(l.openBlock(),l.createElementBlock("div",Tte)):l.createCommentVNode("",!0),n.hasSearch?(l.openBlock(),l.createElementBlock("div",xte,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>n.searchValue=s),type:"text",placeholder:n.placeholder},null,8,Ite),[[l.vModelText,n.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var Dte=nf(Cte,[["render",Ote]]);const Nte=l.defineComponent({name:"Header",setup(){const{state:n,updateSkinTone:e}=l.inject("store"),t=l.ref(!1),r=l.ref(!1),i=l.computed(()=>n.skinTone),o=l.computed(()=>n.options.staticTexts.skinTone||"Skin tone"),s=l.computed(()=>!n.options.disableSkinTones),a=tI()?"is-mac":"",c=l.computed(()=>({...n.emoji,src:Tx+"/"+n.emoji[K2]+".png"}));function u(h=!0){t.value=h}function d(){t.value=!t.value}function f(h){e(h),u(!1)}return l.watch(()=>n.emoji,()=>{r.value=!1}),{emoji:c,SKIN_TONES:NJ,updateSkinToneState:u,skinTone:t,stateSkinTone:i,selectSkinTone:f,toggleSkinToneState:d,EMOJI_RESULT_KEY:K2,EMOJI_NAME_KEY:ng,skinToneText:o,hasSkinTones:s,native:n.options.native,unicodeToEmoji:cg,platform:a,hasError:r}}}),Pte={class:"v3-foot-left"},_te={key:0},Lte=["alt","src"],Bte={class:"v3-text"},Rte={class:"v3-text"},$te=["onClick"];function Vte(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:e[2]||(e[2]=s=>n.updateSkinToneState(!1))},[l.createElementVNode("div",Pte,[l.createElementVNode("span",{class:l.normalizeClass([n.platform,"v3-icon"])},[n.native||n.hasError?(l.openBlock(),l.createElementBlock("span",_te,l.toDisplayString(n.unicodeToEmoji(n.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:n.unicodeToEmoji(n.emoji.r),src:n.emoji.src,onError:e[0]||(e[0]=s=>n.hasError=!0)},null,40,Lte))],2),l.createElementVNode("span",Bte," :"+l.toDisplayString(n.emoji[n.EMOJI_NAME_KEY][1]||n.emoji[n.EMOJI_NAME_KEY][0])+": ",1)]),n.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:e[1]||(e[1]=(...s)=>n.toggleSkinToneState&&n.toggleSkinToneState(...s))},[l.createElementVNode("span",Rte,l.toDisplayString(n.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${n.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([n.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.SKIN_TONES,s=>(l.openBlock(),l.createElementBlock("button",{key:s,type:"button",class:l.normalizeClass(["v3-skin-tone-"+s,"v3-skin-tone"]),onClick:a=>n.selectSkinTone(s)},null,10,$te))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var Fte=nf(Nte,[["render",Vte]]);const jte=l.defineComponent({name:"PickerRoot",components:{Header:Dte,Body:fte,Footer:Fte},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:n=>!0,"update:text":n=>!0},setup(n,{emit:e}){const t=l.ref(),r=l.ref(),i=l.ref(),o=l.ref(!1),s=l.ref(n.text),a=n.type==="input"||n.type==="textarea";let c=-1;const{state:u}=l.inject("store"),d=l.computed(()=>u.options.colorTheme);function f(b){if(a){const w=u.options.mode;w==="prepend"?s.value=b.i+s.value:w==="insert"&&c!==-1?(s.value=`${s.value.slice(0,c)}${b.i}${s.value.slice(c)}`,c+=b.i.length):s.value+=b.i,e("update:text",s.value)}e("select",b)}function h(){var b;t.value&&(c=((b=t.value)==null?void 0:b.selectionEnd)||-1)}function p(b){var w;!((w=b.target)!=null&&w.closest(".v3-input-picker-wrap"))&&o.value&&(o.value=!1)}function m(){if(r.value&&i.value&&a){let b=u.options.offset;typeof b!="number"&&(b=6),tte(r.value,i.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,b]}}]}),document.body.addEventListener("click",p)}}function y(b){s.value=b.target.value||"",e("update:text",s.value)}return l.onMounted(()=>{m()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",p)}),{face:eI,open:o,onSelect:f,input:s,elem:t,updateCursor:h,button:r,picker:i,isInputType:a,onChangeText:y,colorTheme:d}}}),zte={key:0,class:"v3-input-emoji-picker"},Hte={class:"v3-input-picker-root"},Ute=["value"],Zte=["value"],Wte=["src"];function qte(n,e,t,r,i,o){const s=l.resolveComponent("Header"),a=l.resolveComponent("Body"),c=l.resolveComponent("Footer");return n.isInputType?(l.openBlock(),l.createElementBlock("div",zte,[l.createElementVNode("div",Hte,[n.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:n.input,type:"text",class:"v3-emoji-picker-input",onInput:e[0]||(e[0]=(...u)=>n.onChangeText&&n.onChangeText(...u)),onBlur:e[1]||(e[1]=(...u)=>n.updateCursor&&n.updateCursor(...u))},null,40,Ute)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:n.input,class:"v3-emoji-picker-textarea",onInput:e[2]||(e[2]=(...u)=>n.onChangeText&&n.onChangeText(...u)),onBlur:e[3]||(e[3]=(...u)=>n.updateCursor&&n.updateCursor(...u))},null,40,Zte)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",n.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:e[4]||(e[4]=u=>n.open=!n.open)},[l.createElementVNode("img",{src:n.face,alt:""},null,8,Wte)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+n.colorTheme])},[l.createVNode(s),l.createVNode(a,{onSelect:n.onSelect},null,8,["onSelect"]),l.createVNode(c)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+n.colorTheme])},[l.createVNode(s),l.createVNode(a,{onSelect:n.onSelect},null,8,["onSelect"]),l.createVNode(c)],2))}var Kte=nf(jte,[["render",qte]]);const Gte=l.defineComponent({name:"Picker",components:{PickerRoot:Kte},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":n=>!0,select:n=>!0},setup(n,{emit:e}){const t=l.ref(n.text);function r(o){t.value=o||"",e("update:text",t.value)}const i=GJ();return i.updateOptions({native:n.native,hideSearch:n.hideSearch,hideGroupIcons:n.hideGroupIcons,hideGroupNames:n.hideGroupNames,staticTexts:{...PJ,...n.staticTexts},disableStickyGroupNames:n.disableStickyGroupNames,disabledGroups:n.disabledGroups,groupNames:{...xx,...n.groupNames},disableSkinTones:n.disableSkinTones,displayRecent:n.displayRecent,additionalGroups:n.additionalGroups,mode:n.mode,offset:n.offset,groupOrder:n.groupOrder,groupIcons:n.groupIcons,colorTheme:_J.includes(n.theme)?n.theme:"light"}),l.provide("store",i),{type:n.pickerType,input:t,onChangeText:r}}});function Yte(n,e,t,r,i,o){const s=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(s,{type:n.type,text:n.input,onSelect:e[0]||(e[0]=a=>n.$emit("select",a)),"onUpdate:text":n.onChangeText},null,8,["type","text","onUpdate:text"])}var Qte=nf(Gte,[["render",Yte]]);const Xte=/^\s*>\s$/,Jte=rr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[R2({find:Xte,type:this.type})]}}),ene=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,tne=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,nne=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,rne=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ine=nr.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[wc({find:ene,type:this.type}),wc({find:nne,type:this.type})]},addPasteRules(){return[dl({find:tne,type:this.type}),dl({find:rne,type:this.type})]}}),one=rr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",st(this.options.HTMLAttributes,n),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)}}}),rI=nr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",st(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=B2(n,this.type);return Object.entries(t).some(([,i])=>!!i)?!0:e.unsetMark(this.name)}}}}),iI=/^\s*([-+*])\s$/,sne=rr.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:n}){return["ul",st(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(one.name,this.editor.getAttributes(rI.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=R2({find:iI,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=R2({find:iI,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(rI.name),editor:this.editor})),[n]}}),ane=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,lne=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,cne=nr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[wc({find:ane,type:this.type})]},addPasteRules(){return[dl({find:lne,type:this.type})]}}),une=/^```([a-z]+)?[\s\n]$/,dne=/^~~~([a-z]+)?[\s\n]$/,fne=rr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options,o=[...((e=n.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:e}){return["pre",st(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!n||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:r,empty:i}=t;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
238
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=i.reduce(function(c,u){var d=u&&EJ(u,r);return d&&c.push(d),c},[]);return W2(n)?a[0]:a}Ac.defaultProps=or,Ac.setDefaultProps=CJ,Ac.currentInput=ki,Object.assign({},jT,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Ac.setDefaultProps({render:Sx});class AJ{constructor({editor:e,element:t,view:r,tippyOptions:i={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:u,to:d})=>{const{doc:f,selection:h}=c,{empty:p}=h,m=!f.textBetween(u,d).length&&e7(c.selection),y=this.element.contains(document.activeElement);return!(!(a.hasFocus()||y)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const u=!(c!=null&&c.selection.eq(a.state.selection)),d=!(c!=null&&c.doc.eq(a.state.doc));!u&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,u,d,c)},this.updateDelay))},this.updateHandler=(a,c,u,d)=>{var f,h,p;const{state:m,composing:y}=a,{selection:b}=m;if(y||!c&&!u)return;this.createTooltip();const{ranges:v}=b,k=Math.min(...v.map(S=>S.$from.pos)),C=Math.max(...v.map(S=>S.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:a,state:m,oldState:d,from:k,to:C}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(AQ(m.selection)){let S=a.nodeDOM(k);const E=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(E&&(S=E.firstChild),S)return S.getBoundingClientRect()}return BT(a,k,C)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Ac(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,i=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,t);return}const o=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,o,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Mx=n=>new Rt({key:typeof n.pluginKey=="string"?new Vn(n.pluginKey):n.pluginKey,view:e=>new AJ({view:e,...n})});Jt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Mx({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class TJ{constructor({editor:e,element:t,view:r,tippyOptions:i={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:c}=a,{$anchor:u,empty:d}=c,f=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!s.hasFocus()||!d||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Ac(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,i,o;const{state:s}=e,{doc:a,selection:c}=s,{from:u,to:d}=c;if(t&&t.doc.eq(a)&&t.selection.eq(c))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(i=this.tippy)===null||i===void 0||i.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>BT(e,u,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Ex=n=>new Rt({key:typeof n.pluginKey=="string"?new Vn(n.pluginKey):n.pluginKey,view:e=>new TJ({view:e,...n})});Jt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Ex({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),l.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=l.ref(null);return l.onMounted(()=>{const{updateDelay:r,editor:i,pluginKey:o,shouldShow:s,tippyOptions:a}=n;i.registerPlugin(Mx({updateDelay:r,editor:i,element:t.value,pluginKey:o,shouldShow:s,tippyOptions:a}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Ax(n){return l.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class xJ extends ZQ{constructor(e={}){return super(e),this.vueRenderers=l.reactive(new Map),this.contentComponent=null,this.reactiveState=Ax(this.view.state),this.reactiveExtensionStorage=Ax(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),l.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const IJ=l.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=l.ref(),t=l.getCurrentInstance();return l.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&l.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const i=l.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:i}),r.createNodeViews()})}),l.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const i=document.createElement("div");i.append(...r.options.element.childNodes),r.setOptions({element:i})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=l.h(l.Teleport,{to:e.teleportElement,key:e.id},l.h(e.component,{ref:e.id,...e.props}));n.push(t)}),l.h("div",{ref:e=>{this.rootEl=e}},...n)}});l.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=l.ref(null);return l.onMounted(()=>{const{pluginKey:r,editor:i,tippyOptions:o,shouldShow:s}=n;i.registerPlugin(Ex({pluginKey:r,editor:i,element:t.value,tippyOptions:o,shouldShow:s}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),l.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),l.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return l.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const OJ=(n={})=>{const e=l.shallowRef();return l.onMounted(()=>{e.value=new xJ(n)}),l.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},Tx="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",xx={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"},Ix="u",ng="n",rg="v",K2="r",DJ={[ng]:["grinning face","grinning"],[Ix]:"1f600",[K2]:"1f600"},ig="neutral",NJ=[ig,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],PJ={placeholder:"Search emoji",skinTone:"Skin tone"},_J=["light","dark","auto"];var LJ={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"}]},Ox=[{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 BJ=(n,e)=>e.some(t=>n instanceof t);let Dx,Nx;function RJ(){return Dx||(Dx=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $J(){return Nx||(Nx=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Px=new WeakMap,A7=new WeakMap,_x=new WeakMap,T7=new WeakMap,x7=new WeakMap;function VJ(n){const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Ds(n.result)),i()},s=()=>{r(n.error),i()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&Px.set(t,n)}).catch(()=>{}),x7.set(e,n),e}function FJ(n){if(A7.has(n))return;const e=new Promise((t,r)=>{const i=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),i()},s=()=>{r(n.error||new DOMException("AbortError","AbortError")),i()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});A7.set(n,e)}let I7={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return A7.get(n);if(e==="objectStoreNames")return n.objectStoreNames||_x.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Ds(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function jJ(n){I7=n(I7)}function zJ(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=n.call(O7(this),e,...t);return _x.set(r,e.sort?e.sort():[e]),Ds(r)}:$J().includes(n)?function(...e){return n.apply(O7(this),e),Ds(Px.get(this))}:function(...e){return Ds(n.apply(O7(this),e))}}function HJ(n){return typeof n=="function"?zJ(n):(n instanceof IDBTransaction&&FJ(n),BJ(n,RJ())?new Proxy(n,I7):n)}function Ds(n){if(n instanceof IDBRequest)return VJ(n);if(T7.has(n))return T7.get(n);const e=HJ(n);return e!==n&&(T7.set(n,e),x7.set(e,n)),e}const O7=n=>x7.get(n);function D7(n,e,{blocked:t,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(n,e),a=Ds(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Ds(s.result),c.oldVersion,c.newVersion,Ds(s.transaction),c)}),t&&s.addEventListener("blocked",c=>t(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const UJ=["get","getKey","getAll","getAllKeys","count"],ZJ=["put","add","delete","clear"],N7=new Map;function Lx(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(N7.get(e))return N7.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,i=ZJ.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||UJ.includes(t)))return;const o=async function(s,...a){const c=this.transaction(s,i?"readwrite":"readonly");let u=c.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[t](...a),i&&c.done]))[0]};return N7.set(e,o),o}jJ(n=>({...n,get:(e,t,r)=>Lx(e,t)||n.get(e,t,r),has:(e,t)=>!!Lx(e,t)||n.has(e,t)}));const P7="EMJ",Tc="emojis",_7=3;async function WJ(){(await D7(P7,_7,{upgrade(e,t){e.objectStoreNames.contains(Tc)||e.createObjectStore(Tc,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}WJ();const qJ={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function KJ(){return await(await D7(P7,_7)).transaction(Tc,"readonly").objectStore(Tc).getAll()}function GJ(){const n=l.reactive({search:"",emoji:DJ,activeGroup:"",skinTone:ig,options:qJ,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...LJ}},get disabled(){let f=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(f=["recent",...f]),f},get groups(){return Ox.filter(f=>!this.disabled.includes(f.key))},get orderedGroupKeys(){const f=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...Ox.map(h=>h.key)];return[...new Set(f)].filter(h=>!this.disabled.includes(h))}});function e(){n.options.displayRecent&&r()}async function t(){var f;let h=await KJ();return Array.isArray(h)&&h.length?h=JSON.parse(((f=h[0])==null?void 0:f.value)||""):h=[],h}function r(){t().then(f=>{n.recent=f,u()})}const i=f=>{n.search=f},o=f=>{n.emoji=f},s=f=>{n.activeGroup=f},a=(f=ig)=>{n.skinTone=f},c=f=>{n.options=Object.assign({},n.options,f),e()};async function u(){(await D7(P7,_7)).transaction(Tc,"readwrite").objectStore(Tc).put({id:0,value:JSON.stringify(n.recent)})}const d=f=>{if(n.options.displayRecent!==!0)return;const h=n.recent.findIndex(m=>m.u===f.u);if(h>0&&n.recent.splice(h,1),h===0)return;const p={u:f.u,n:l.toRaw(f.n)};n.recent=[p,...n.recent],n.recent.length>24&&(n.recent.length=24),u()};return{state:l.readonly(n),updateSearch:i,updateEmoji:o,updateActiveGroup:s,updateSkinTone:a,updateOptions:c,updateSelect:d}}var Hn="top",Ar="bottom",Tr="right",Un="left",L7="auto",G2=[Hn,Ar,Tr,Un],xc="start",Y2="end",YJ="clippingParents",Bx="viewport",Q2="popper",QJ="reference",Rx=G2.reduce(function(n,e){return n.concat([e+"-"+xc,e+"-"+Y2])},[]),$x=[].concat(G2,[L7]).reduce(function(n,e){return n.concat([e,e+"-"+xc,e+"-"+Y2])},[]),XJ="beforeRead",JJ="read",eee="afterRead",tee="beforeMain",nee="main",ree="afterMain",iee="beforeWrite",oee="write",see="afterWrite",aee=[XJ,JJ,eee,tee,nee,ree,iee,oee,see];function Si(n){return n?(n.nodeName||"").toLowerCase():null}function Qr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ic(n){var e=Qr(n).Element;return n instanceof e||n instanceof Element}function xr(n){var e=Qr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Vx(n){if(typeof ShadowRoot>"u")return!1;var e=Qr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function lee(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!xr(o)||!Si(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function cee(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!xr(i)||!Si(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}var uee={name:"applyStyles",enabled:!0,phase:"write",fn:lee,effect:cee,requires:["computeStyles"]};function Mi(n){return n.split("-")[0]}var ml=Math.max,og=Math.min,Oc=Math.round;function Dc(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,i=1;if(xr(n)&&e){var o=n.offsetHeight,s=n.offsetWidth;s>0&&(r=Oc(t.width)/s||1),o>0&&(i=Oc(t.height)/o||1)}return{width:t.width/r,height:t.height/i,top:t.top/i,right:t.right/r,bottom:t.bottom/i,left:t.left/r,x:t.left/r,y:t.top/i}}function B7(n){var e=Dc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function Fx(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Vx(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ei(n){return Qr(n).getComputedStyle(n)}function dee(n){return["table","td","th"].indexOf(Si(n))>=0}function Ns(n){return((Ic(n)?n.ownerDocument:n.document)||window.document).documentElement}function sg(n){return Si(n)==="html"?n:n.assignedSlot||n.parentNode||(Vx(n)?n.host:null)||Ns(n)}function jx(n){return!xr(n)||Ei(n).position==="fixed"?null:n.offsetParent}function fee(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&xr(n)){var r=Ei(n);if(r.position==="fixed")return null}for(var i=sg(n);xr(i)&&["html","body"].indexOf(Si(i))<0;){var o=Ei(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function X2(n){for(var e=Qr(n),t=jx(n);t&&dee(t)&&Ei(t).position==="static";)t=jx(t);return t&&(Si(t)==="html"||Si(t)==="body"&&Ei(t).position==="static")?e:t||fee(n)||e}function R7(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function J2(n,e,t){return ml(n,og(e,t))}function hee(n,e,t){var r=J2(n,e,t);return r>t?t:r}function zx(){return{top:0,right:0,bottom:0,left:0}}function Hx(n){return Object.assign({},zx(),n)}function Ux(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var pee=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Hx(typeof e!="number"?e:Ux(e,G2))};function mee(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Mi(t.placement),c=R7(a),u=[Un,Tr].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!s)){var f=pee(i.padding,t),h=B7(o),p=c==="y"?Hn:Un,m=c==="y"?Ar:Tr,y=t.rects.reference[d]+t.rects.reference[c]-s[c]-t.rects.popper[d],b=s[c]-t.rects.reference[c],w=X2(o),v=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,k=y/2-b/2,C=f[p],T=v-h[d]-f[m],S=v/2-h[d]/2+k,E=J2(C,S,T),O=c;t.modifiersData[r]=(e={},e[O]=E,e.centerOffset=E-S,e)}}function gee(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||Fx(e.elements.popper,i)&&(e.elements.arrow=i))}var yee={name:"arrow",enabled:!0,phase:"main",fn:mee,effect:gee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nc(n){return n.split("-")[1]}var bee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wee(n){var e=n.x,t=n.y,r=window,i=r.devicePixelRatio||1;return{x:Oc(e*i)/i||0,y:Oc(t*i)/i||0}}function Zx(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,c=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,f=n.isFixed,h=d===!0?wee(s):typeof d=="function"?d(s):s,p=h.x,m=p===void 0?0:p,y=h.y,b=y===void 0?0:y,w=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),k=Un,C=Hn,T=window;if(u){var S=X2(t),E="clientHeight",O="clientWidth";if(S===Qr(t)&&(S=Ns(t),Ei(S).position!=="static"&&a==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,i===Hn||(i===Un||i===Tr)&&o===Y2){C=Ar;var I=f&&T.visualViewport?T.visualViewport.height:S[E];b-=I-r.height,b*=c?1:-1}if(i===Un||(i===Hn||i===Ar)&&o===Y2){k=Tr;var P=f&&T.visualViewport?T.visualViewport.width:S[O];m-=P-r.width,m*=c?1:-1}}var D=Object.assign({position:a},u&&bee);if(c){var B;return Object.assign({},D,(B={},B[C]=v?"0":"",B[k]=w?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",B))}return Object.assign({},D,(e={},e[C]=v?b+"px":"",e[k]=w?m+"px":"",e.transform="",e))}function vee(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,u={placement:Mi(e.placement),variation:Nc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zx(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zx(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Cee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vee,data:{}},ag={passive:!0};function kee(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Qr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",t.update,ag)}),a&&c.addEventListener("resize",t.update,ag),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",t.update,ag)}),a&&c.removeEventListener("resize",t.update,ag)}}var See={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kee,data:{}},Mee={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(n){return n.replace(/left|right|bottom|top/g,function(e){return Mee[e]})}var Eee={start:"end",end:"start"};function Wx(n){return n.replace(/start|end/g,function(e){return Eee[e]})}function $7(n){var e=Qr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function V7(n){return Dc(Ns(n)).left+$7(n).scrollLeft}function Aee(n){var e=Qr(n),t=Ns(n),r=e.visualViewport,i=t.clientWidth,o=t.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+V7(n),y:a}}function Tee(n){var e,t=Ns(n),r=$7(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=ml(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ml(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+V7(n),c=-r.scrollTop;return Ei(i||t).direction==="rtl"&&(a+=ml(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function F7(n){var e=Ei(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function qx(n){return["html","body","#document"].indexOf(Si(n))>=0?n.ownerDocument.body:xr(n)&&F7(n)?n:qx(sg(n))}function ef(n,e){var t;e===void 0&&(e=[]);var r=qx(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=Qr(r),s=i?[o].concat(o.visualViewport||[],F7(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(ef(sg(s)))}function j7(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function xee(n){var e=Dc(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Kx(n,e){return e===Bx?j7(Aee(n)):Ic(e)?xee(e):j7(Tee(Ns(n)))}function Iee(n){var e=ef(sg(n)),t=["absolute","fixed"].indexOf(Ei(n).position)>=0,r=t&&xr(n)?X2(n):n;return Ic(r)?e.filter(function(i){return Ic(i)&&Fx(i,r)&&Si(i)!=="body"&&(t?Ei(i).position!=="static":!0)}):[]}function Oee(n,e,t){var r=e==="clippingParents"?Iee(n):[].concat(e),i=[].concat(r,[t]),o=i[0],s=i.reduce(function(a,c){var u=Kx(n,c);return a.top=ml(u.top,a.top),a.right=og(u.right,a.right),a.bottom=og(u.bottom,a.bottom),a.left=ml(u.left,a.left),a},Kx(n,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Gx(n){var e=n.reference,t=n.element,r=n.placement,i=r?Mi(r):null,o=r?Nc(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(i){case Hn:c={x:s,y:e.y-t.height};break;case Ar:c={x:s,y:e.y+e.height};break;case Tr:c={x:e.x+e.width,y:a};break;case Un:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var u=i?R7(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case xc:c[u]=c[u]-(e[d]/2-t[d]/2);break;case Y2:c[u]=c[u]+(e[d]/2-t[d]/2);break}}return c}function tf(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.boundary,s=o===void 0?YJ:o,a=t.rootBoundary,c=a===void 0?Bx:a,u=t.elementContext,d=u===void 0?Q2:u,f=t.altBoundary,h=f===void 0?!1:f,p=t.padding,m=p===void 0?0:p,y=Hx(typeof m!="number"?m:Ux(m,G2)),b=d===Q2?QJ:Q2,w=n.rects.popper,v=n.elements[h?b:d],k=Oee(Ic(v)?v:v.contextElement||Ns(n.elements.popper),s,c),C=Dc(n.elements.reference),T=Gx({reference:C,element:w,strategy:"absolute",placement:i}),S=j7(Object.assign({},w,T)),E=d===Q2?S:C,O={top:k.top-E.top+y.top,bottom:E.bottom-k.bottom+y.bottom,left:k.left-E.left+y.left,right:E.right-k.right+y.right},I=n.modifiersData.offset;if(d===Q2&&I){var P=I[i];Object.keys(O).forEach(function(D){var B=[Tr,Ar].indexOf(D)>=0?1:-1,V=[Hn,Ar].indexOf(D)>=0?"y":"x";O[D]+=P[V]*B})}return O}function Dee(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,u=c===void 0?$x:c,d=Nc(r),f=d?a?Rx:Rx.filter(function(m){return Nc(m)===d}):G2,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=tf(n,{placement:y,boundary:i,rootBoundary:o,padding:s})[Mi(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function Nee(n){if(Mi(n)===L7)return[];var e=lg(n);return[Wx(n),e,Wx(e)]}function Pee(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,c=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,y=t.allowedAutoPlacements,b=e.options.placement,w=Mi(b),v=w===b,k=c||(v||!m?[lg(b)]:Nee(b)),C=[b].concat(k).reduce(function(j,F){return j.concat(Mi(F)===L7?Dee(e,{placement:F,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):F)},[]),T=e.rects.reference,S=e.rects.popper,E=new Map,O=!0,I=C[0],P=0;P<C.length;P++){var D=C[P],B=Mi(D),V=Nc(D)===xc,U=[Hn,Ar].indexOf(B)>=0,L=U?"width":"height",N=tf(e,{placement:D,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),$=U?V?Tr:Un:V?Ar:Hn;T[L]>S[L]&&($=lg($));var R=lg($),q=[];if(o&&q.push(N[B]<=0),a&&q.push(N[$]<=0,N[R]<=0),q.every(function(j){return j})){I=D,O=!1;break}E.set(D,q)}if(O)for(var re=m?3:1,ce=function(F){var G=C.find(function(J){var ae=E.get(J);if(ae)return ae.slice(0,F).every(function(Oe){return Oe})});if(G)return I=G,"break"},K=re;K>0;K--){var H=ce(K);if(H==="break")break}e.placement!==I&&(e.modifiersData[r]._skip=!0,e.placement=I,e.reset=!0)}}var _ee={name:"flip",enabled:!0,phase:"main",fn:Pee,requiresIfExists:["offset"],data:{_skip:!1}};function Yx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Qx(n){return[Hn,Tr,Ar,Un].some(function(e){return n[e]>=0})}function Lee(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=tf(e,{elementContext:"reference"}),a=tf(e,{altBoundary:!0}),c=Yx(s,r),u=Yx(a,i,o),d=Qx(c),f=Qx(u);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var Bee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lee};function Ree(n,e,t){var r=Mi(n),i=[Un,Hn].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Un,Tr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function $ee(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=$x.reduce(function(d,f){return d[f]=Ree(f,e.rects,o),d},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}var Vee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$ee};function Fee(n){var e=n.state,t=n.name;e.modifiersData[t]=Gx({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var jee={name:"popperOffsets",enabled:!0,phase:"read",fn:Fee,data:{}};function zee(n){return n==="x"?"y":"x"}function Hee(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,c=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,y=m===void 0?0:m,b=tf(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Mi(e.placement),v=Nc(e.placement),k=!v,C=R7(w),T=zee(C),S=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,I=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(S){if(o){var V,U=C==="y"?Hn:Un,L=C==="y"?Ar:Tr,N=C==="y"?"height":"width",$=S[C],R=$+b[U],q=$-b[L],re=p?-O[N]/2:0,ce=v===xc?E[N]:O[N],K=v===xc?-O[N]:-E[N],H=e.elements.arrow,j=p&&H?B7(H):{width:0,height:0},F=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zx(),G=F[U],J=F[L],ae=J2(0,E[N],j[N]),Oe=k?E[N]/2-re-ae-G-P.mainAxis:ce-ae-G-P.mainAxis,be=k?-E[N]/2+re+ae+J+P.mainAxis:K+ae+J+P.mainAxis,Le=e.elements.arrow&&X2(e.elements.arrow),pt=Le?C==="y"?Le.clientTop||0:Le.clientLeft||0:0,pn=(V=D==null?void 0:D[C])!=null?V:0,$r=$+Oe-pn-pt,Kn=$+be-pn,mn=J2(p?og(R,$r):R,$,p?ml(q,Kn):q);S[C]=mn,B[C]=mn-$}if(a){var Ji,Aa=C==="x"?Hn:Un,Ta=C==="x"?Ar:Tr,_t=S[T],xn=T==="y"?"height":"width",eo=_t+b[Aa],Vr=_t-b[Ta],fi=[Hn,Un].indexOf(w)!==-1,Ge=(Ji=D==null?void 0:D[T])!=null?Ji:0,Z=fi?eo:_t-E[xn]-O[xn]-Ge+P.altAxis,Y=fi?_t+E[xn]+O[xn]-Ge-P.altAxis:Vr,Ae=p&&fi?hee(Z,_t,Y):J2(p?Z:eo,_t,p?Y:Vr);S[T]=Ae,B[T]=Ae-_t}e.modifiersData[r]=B}}var Uee={name:"preventOverflow",enabled:!0,phase:"main",fn:Hee,requiresIfExists:["offset"]};function Zee(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Wee(n){return n===Qr(n)||!xr(n)?$7(n):Zee(n)}function qee(n){var e=n.getBoundingClientRect(),t=Oc(e.width)/n.offsetWidth||1,r=Oc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Kee(n,e,t){t===void 0&&(t=!1);var r=xr(e),i=xr(e)&&qee(e),o=Ns(e),s=Dc(n,i),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((Si(e)!=="body"||F7(o))&&(a=Wee(e)),xr(e)?(c=Dc(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=V7(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Gee(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&i(c)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function Yee(n){var e=Gee(n);return aee.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function Qee(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Xee(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Xx={placement:"bottom",modifiers:[],strategy:"absolute"};function Jx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Jee(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?Xx:i;return function(a,c,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xx,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(w){var v=typeof w=="function"?w(d.options):w;y(),d.options=Object.assign({},o,d.options,v),d.scrollParents={reference:Ic(a)?ef(a):a.contextElement?ef(a.contextElement):[],popper:ef(c)};var k=Yee(Xee([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var w=d.elements,v=w.reference,k=w.popper;if(Jx(v,k)){d.rects={reference:Kee(v,X2(k),d.options.strategy==="fixed"),popper:B7(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],S=T.fn,E=T.options,O=E===void 0?{}:E,I=T.name;typeof S=="function"&&(d=S({state:d,options:O,name:I,instance:p})||d)}}}},update:Qee(function(){return new Promise(function(b){p.forceUpdate(),b(d)})}),destroy:function(){y(),h=!0}};if(!Jx(a,c))return p;p.setOptions(u).then(function(b){!h&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var w=b.name,v=b.options,k=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var T=C({state:d,name:w,instance:p,options:k}),S=function(){};f.push(T||S)}})}function y(){f.forEach(function(b){return b()}),f=[]}return p}}var ete=[See,jee,Cee,uee,Vee,_ee,Uee,yee,Bee],tte=Jee({defaultModifiers:ete}),eI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function cg(n){return n.split("-").map(e=>parseInt(e,16)).map(e=>String.fromCodePoint(e)).join("")}function nte(n,e,t,r=[]){const i={};return Object.keys(n).forEach(o=>{if(r.includes(o))return;const s=[];n[o].forEach(a=>{var c;if(a[ng][0].includes(e.toLocaleLowerCase())){let u=a[Ix];if(t!==ig&&Array.isArray(a[rg])){const d=((c=a[rg])==null?void 0:c.findIndex(f=>f.includes(t)))||-1;d!==-1&&a[rg]&&(u=a[rg][d])}return s.push({...a,[K2]:u})}}),s.length&&(i[o]=s)}),i}function tI(){var n;return(((n=navigator==null?void 0:navigator.userAgentData)==null?void 0:n.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function nI(n){return n.replace(/^_*(.)|_+(.)/g,(e,t,r)=>t?t.toUpperCase():" "+r.toUpperCase())}var nf=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t};const rte=l.defineComponent({name:"Body",emits:{select:n=>!0},setup(){const{state:n,updateEmoji:e,updateSelect:t}=l.inject("store"),r=l.ref(null),i=l.computed(()=>nte(n.emojis,n.search,n.skinTone,n.options.disabledGroups)),o=l.getCurrentInstance(),s=l.computed(()=>!n.options.hideGroupNames),a=l.computed(()=>!n.options.disableStickyGroupNames),c=l.toRaw(n.options.groupNames),u=n.orderedGroupKeys;n.options.additionalGroups&&Object.keys(n.options.additionalGroups).map(m=>{n.options.groupNames[m]?c[m]=n.options.groupNames[m]:c[m]=nI(m)});const d=tI()?"is-mac":"";function f(m){e(m)}function h(m){t(m),o==null||o.emit("select",{...m,t:n.skinTone,i:cg(m.r)})}function p(m,y){var b;const w=(b=m==null?void 0:m.target)==null?void 0:b.closest("button");w&&(w.innerHTML=`<span>${cg(y)}</span>`)}return l.watch(()=>n.activeGroup,()=>{var m;const y=(m=r.value)==null?void 0:m.querySelector("#"+n.activeGroup);y&&(y.parentNode.scrollTop=y.offsetTop-y.parentNode.offsetTop)}),{emojis:i,bodyInner:r,EMOJI_REMOTE_SRC:Tx,GROUP_NAMES:xx,handleClick:h,handleError:p,handleMouseEnter:f,native:n.options.native,unicodeToEmoji:cg,EMOJI_RESULT_KEY:K2,EMOJI_NAME_KEY:ng,hasGroupNames:s,isSticky:a,platform:d,groupNames:c,orderedKeys:u}}}),ite={class:"v3-body"},ote=["id"],ste={class:"v3-emojis"},ate=["onMouseenter","onClick"],lte={key:0},cte=["src","alt","onError"],ute={key:1,class:"v3-no-result"};function dte(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",ite,[l.createElementVNode("div",{ref:"bodyInner",class:l.normalizeClass([n.platform,"v3-body-inner"])},[n.orderedKeys.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.orderedKeys,s=>(l.openBlock(),l.createElementBlock("div",{id:s,key:s,class:"v3-group"},[n.hasGroupNames?l.withDirectives((l.openBlock(),l.createElementBlock("h5",{key:0,class:l.normalizeClass(n.isSticky?"v3-sticky":"")},l.toDisplayString(n.groupNames[s]),3)),[[l.vShow,n.emojis[s]]]):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",ste,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.emojis[s],a=>(l.openBlock(),l.createElementBlock("button",{key:a.r,type:"button",onMouseenter:c=>n.handleMouseEnter(a),onClick:c=>n.handleClick(a)},[n.native?(l.openBlock(),l.createElementBlock("span",lte,l.toDisplayString(n.unicodeToEmoji(a.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,src:n.EMOJI_REMOTE_SRC+`/${a.r}.png`,alt:a.n[0],onError:c=>n.handleError(c,a.r)},null,40,cte))],40,ate))),128))],512),[[l.vShow,n.emojis[s]]])],8,ote))),128)):(l.openBlock(),l.createElementBlock("span",ute," No emoji has been found! "))],2)])}var fte=nf(rte,[["render",dte]]),hte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",pte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",mte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",gte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",yte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",bte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",wte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",vte="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const Cte=l.defineComponent({name:"Header",setup(n){const{state:e,updateSearch:t,updateActiveGroup:r}=l.inject("store"),i=l.computed(()=>!e.options.hideSearch),o=l.computed(()=>!e.options.hideGroupIcons),s=JSON.parse(JSON.stringify(e.orderedGroupKeys)),a=l.computed(()=>e.options.staticTexts.placeholder||""),c=l.computed({get:()=>e.search,set:f=>t(f)}),u=[...e.groups,...Object.keys(e.options.additionalGroups).map(f=>({key:f,title:e.options.groupNames[f]?e.options.groupNames[f]:nI(f)}))],d=[];return s.forEach(f=>{const h=u.findIndex(p=>p.key===f);h!==-1&&(d.push(u[h]),u.splice(h,1))}),{orderedGroups:d,orderedKeys:s,searchValue:c,updateActiveGroup:r,hasSearch:i,hasGroupIcons:o,placeholder:a,icons:{smileys_people:eI,animals_nature:hte,food_drink:pte,activities:mte,travel_places:gte,objects:yte,symbols:bte,flags:wte,...e.options.groupIcons,recent:vte}}}}),kte={key:0,class:"v3-header"},Ste={key:0,class:"v3-groups"},Mte=["onClick"],Ete=["title"],Ate=["src"],Tte={key:1,class:"v3-spacing"},xte={key:2,class:"v3-search"},Ite=["placeholder"];function Ote(n,e,t,r,i,o){return n.hasGroupIcons||n.hasSearch?(l.openBlock(),l.createElementBlock("div",kte,[n.hasGroupIcons?(l.openBlock(),l.createElementBlock("div",Ste,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.orderedGroups,s=>(l.openBlock(),l.createElementBlock("button",{key:s.key,type:"button",class:l.normalizeClass(["v3-group",{"v3-is-hidden":!n.icons[s.key]}]),onClick:a=>n.updateActiveGroup(s.key)},[l.createElementVNode("span",{title:s.title,class:"v3-icon"},[l.createElementVNode("img",{src:n.icons[s.key],alt:""},null,8,Ate)],8,Ete)],10,Mte))),128))])):l.createCommentVNode("",!0),n.hasGroupIcons&&n.hasSearch?(l.openBlock(),l.createElementBlock("div",Tte)):l.createCommentVNode("",!0),n.hasSearch?(l.openBlock(),l.createElementBlock("div",xte,[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>n.searchValue=s),type:"text",placeholder:n.placeholder},null,8,Ite),[[l.vModelText,n.searchValue]])])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)}var Dte=nf(Cte,[["render",Ote]]);const Nte=l.defineComponent({name:"Header",setup(){const{state:n,updateSkinTone:e}=l.inject("store"),t=l.ref(!1),r=l.ref(!1),i=l.computed(()=>n.skinTone),o=l.computed(()=>n.options.staticTexts.skinTone||"Skin tone"),s=l.computed(()=>!n.options.disableSkinTones),a=tI()?"is-mac":"",c=l.computed(()=>({...n.emoji,src:Tx+"/"+n.emoji[K2]+".png"}));function u(h=!0){t.value=h}function d(){t.value=!t.value}function f(h){e(h),u(!1)}return l.watch(()=>n.emoji,()=>{r.value=!1}),{emoji:c,SKIN_TONES:NJ,updateSkinToneState:u,skinTone:t,stateSkinTone:i,selectSkinTone:f,toggleSkinToneState:d,EMOJI_RESULT_KEY:K2,EMOJI_NAME_KEY:ng,skinToneText:o,hasSkinTones:s,native:n.options.native,unicodeToEmoji:cg,platform:a,hasError:r}}}),Pte={class:"v3-foot-left"},_te={key:0},Lte=["alt","src"],Bte={class:"v3-text"},Rte={class:"v3-text"},$te=["onClick"];function Vte(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:"v3-footer",onMouseleave:e[2]||(e[2]=s=>n.updateSkinToneState(!1))},[l.createElementVNode("div",Pte,[l.createElementVNode("span",{class:l.normalizeClass([n.platform,"v3-icon"])},[n.native||n.hasError?(l.openBlock(),l.createElementBlock("span",_te,l.toDisplayString(n.unicodeToEmoji(n.emoji.r)),1)):(l.openBlock(),l.createElementBlock("img",{key:1,alt:n.unicodeToEmoji(n.emoji.r),src:n.emoji.src,onError:e[0]||(e[0]=s=>n.hasError=!0)},null,40,Lte))],2),l.createElementVNode("span",Bte," :"+l.toDisplayString(n.emoji[n.EMOJI_NAME_KEY][1]||n.emoji[n.EMOJI_NAME_KEY][0])+": ",1)]),n.hasSkinTones?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{type:"button",class:"v3-tone",onClick:e[1]||(e[1]=(...s)=>n.toggleSkinToneState&&n.toggleSkinToneState(...s))},[l.createElementVNode("span",Rte,l.toDisplayString(n.skinToneText),1),l.createElementVNode("span",{class:l.normalizeClass(`v3-icon v3-tone-${n.stateSkinTone}`)},null,2)]),l.createElementVNode("div",{class:l.normalizeClass([n.skinTone?"v3-is-open":"","v3-skin-tones"])},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.SKIN_TONES,s=>(l.openBlock(),l.createElementBlock("button",{key:s,type:"button",class:l.normalizeClass(["v3-skin-tone-"+s,"v3-skin-tone"]),onClick:a=>n.selectSkinTone(s)},null,10,$te))),128))],2)],64)):l.createCommentVNode("",!0)],32)}var Fte=nf(Nte,[["render",Vte]]);const jte=l.defineComponent({name:"PickerRoot",components:{Header:Dte,Body:fte,Footer:Fte},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:n=>!0,"update:text":n=>!0},setup(n,{emit:e}){const t=l.ref(),r=l.ref(),i=l.ref(),o=l.ref(!1),s=l.ref(n.text),a=n.type==="input"||n.type==="textarea";let c=-1;const{state:u}=l.inject("store"),d=l.computed(()=>u.options.colorTheme);function f(b){if(a){const w=u.options.mode;w==="prepend"?s.value=b.i+s.value:w==="insert"&&c!==-1?(s.value=`${s.value.slice(0,c)}${b.i}${s.value.slice(c)}`,c+=b.i.length):s.value+=b.i,e("update:text",s.value)}e("select",b)}function h(){var b;t.value&&(c=((b=t.value)==null?void 0:b.selectionEnd)||-1)}function p(b){var w;!((w=b.target)!=null&&w.closest(".v3-input-picker-wrap"))&&o.value&&(o.value=!1)}function m(){if(r.value&&i.value&&a){let b=u.options.offset;typeof b!="number"&&(b=6),tte(r.value,i.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,b]}}]}),document.body.addEventListener("click",p)}}function y(b){s.value=b.target.value||"",e("update:text",s.value)}return l.onMounted(()=>{m()}),l.onBeforeUnmount(()=>{document.body.removeEventListener("click",p)}),{face:eI,open:o,onSelect:f,input:s,elem:t,updateCursor:h,button:r,picker:i,isInputType:a,onChangeText:y,colorTheme:d}}}),zte={key:0,class:"v3-input-emoji-picker"},Hte={class:"v3-input-picker-root"},Ute=["value"],Zte=["value"],Wte=["src"];function qte(n,e,t,r,i,o){const s=l.resolveComponent("Header"),a=l.resolveComponent("Body"),c=l.resolveComponent("Footer");return n.isInputType?(l.openBlock(),l.createElementBlock("div",zte,[l.createElementVNode("div",Hte,[n.type==="input"?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"elem",value:n.input,type:"text",class:"v3-emoji-picker-input",onInput:e[0]||(e[0]=(...u)=>n.onChangeText&&n.onChangeText(...u)),onBlur:e[1]||(e[1]=(...u)=>n.updateCursor&&n.updateCursor(...u))},null,40,Ute)):(l.openBlock(),l.createElementBlock("textarea",{key:1,ref:"elem",value:n.input,class:"v3-emoji-picker-textarea",onInput:e[2]||(e[2]=(...u)=>n.onChangeText&&n.onChangeText(...u)),onBlur:e[3]||(e[3]=(...u)=>n.updateCursor&&n.updateCursor(...u))},null,40,Zte)),l.createElementVNode("div",{class:l.normalizeClass(["v3-input-picker-wrap",n.open?"v3-picker-is-open":""])},[l.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:e[4]||(e[4]=u=>n.open=!n.open)},[l.createElementVNode("img",{src:n.face,alt:""},null,8,Wte)],512),l.createElementVNode("div",{ref:"picker",class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+n.colorTheme])},[l.createVNode(s),l.createVNode(a,{onSelect:n.onSelect},null,8,["onSelect"]),l.createVNode(c)],2)],2)])])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["v3-emoji-picker","v3-color-theme-"+n.colorTheme])},[l.createVNode(s),l.createVNode(a,{onSelect:n.onSelect},null,8,["onSelect"]),l.createVNode(c)],2))}var Kte=nf(jte,[["render",qte]]);const Gte=l.defineComponent({name:"Picker",components:{PickerRoot:Kte},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":n=>!0,select:n=>!0},setup(n,{emit:e}){const t=l.ref(n.text);function r(o){t.value=o||"",e("update:text",t.value)}const i=GJ();return i.updateOptions({native:n.native,hideSearch:n.hideSearch,hideGroupIcons:n.hideGroupIcons,hideGroupNames:n.hideGroupNames,staticTexts:{...PJ,...n.staticTexts},disableStickyGroupNames:n.disableStickyGroupNames,disabledGroups:n.disabledGroups,groupNames:{...xx,...n.groupNames},disableSkinTones:n.disableSkinTones,displayRecent:n.displayRecent,additionalGroups:n.additionalGroups,mode:n.mode,offset:n.offset,groupOrder:n.groupOrder,groupIcons:n.groupIcons,colorTheme:_J.includes(n.theme)?n.theme:"light"}),l.provide("store",i),{type:n.pickerType,input:t,onChangeText:r}}});function Yte(n,e,t,r,i,o){const s=l.resolveComponent("picker-root");return l.openBlock(),l.createBlock(s,{type:n.type,text:n.input,onSelect:e[0]||(e[0]=a=>n.$emit("select",a)),"onUpdate:text":n.onChangeText},null,8,["type","text","onUpdate:text"])}var Qte=nf(Gte,[["render",Yte]]);const Xte=/^\s*>\s$/,Jte=rr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[R2({find:Xte,type:this.type})]}}),ene=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,tne=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,nne=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,rne=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ine=nr.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[wc({find:ene,type:this.type}),wc({find:nne,type:this.type})]},addPasteRules(){return[dl({find:tne,type:this.type}),dl({find:rne,type:this.type})]}}),one=rr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",st(this.options.HTMLAttributes,n),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)}}}),rI=nr.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",st(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=B2(n,this.type);return Object.entries(t).some(([,i])=>!!i)?!0:e.unsetMark(this.name)}}}}),iI=/^\s*([-+*])\s$/,sne=rr.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:n}){return["ul",st(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(one.name,this.editor.getAttributes(rI.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=R2({find:iI,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=R2({find:iI,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(rI.name),editor:this.editor})),[n]}}),ane=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,lne=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,cne=nr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",st(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[wc({find:ane,type:this.type})]},addPasteRules(){return[dl({find:lne,type:this.type})]}}),une=/^```([a-z]+)?[\s\n]$/,dne=/^~~~([a-z]+)?[\s\n]$/,fne=rr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options,o=[...((e=n.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:e}){return["pre",st(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!n||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:r,empty:i}=t;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
239
239
 
240
240
  `);return!o||!s?!1:n.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:r}=e,{$from:i,empty:o}=t;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0||r.nodeAt(a)?!1:n.commands.exitCode()}}},addInputRules(){return[l7({find:une,type:this.type,getAttributes:n=>({language:n[1]})}),l7({find:dne,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new Rt({key:new Vn("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!t||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(ve.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(t.replace(/\r\n?/g,`
241
241
  `)),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),hne=rr.create({name:"doc",topNode:!0,content:"block+"});function pne(n={}){return new Rt({view(e){return new mne(e,n)}})}class mne{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=t.width)!==null&&r!==void 0?r:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=s=>{this[i](s)};return e.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,r;if(t){let a=e.nodeBefore,c=e.nodeAfter;if(a||c){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=a?d.bottom:d.top;a&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let a=this.editorView.coordsAtPos(this.cursorPos);r={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.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",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let o,s;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,s=-pageYOffset;else{let a=i.getBoundingClientRect();o=a.left-i.scrollLeft,s=a.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,t,e):i;if(t&&!o){let s=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=zE(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const gne=Jt.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[pne(this.options)]}});class ft extends Se{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return ft.valid(r)?new ft(r):Se.near(r)}content(){return ne.empty}eq(e){return e instanceof ft&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ft(e.resolve(t.pos))}getBookmark(){return new z7(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!yne(e)||!bne(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&ft.valid(e))return e;let i=e.pos,o=null;for(let s=e.depth;;s--){let a=e.node(s);if(t>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(t>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;i+=t;let c=e.doc.resolve(i);if(ft.valid(c))return c}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!de.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*t),r=!1;continue e}break}o=s,i+=t;let a=e.doc.resolve(i);if(ft.valid(a))return a}return null}}}ft.prototype.visible=!1,ft.findFrom=ft.findGapCursorFrom,Se.jsonID("gapcursor",ft);class z7{constructor(e){this.pos=e}map(e){return new z7(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return ft.valid(t)?new ft(t):Se.near(t)}}function yne(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function bne(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function wne(){return new Rt({props:{decorations:Sne,createSelectionBetween(n,e,t){return e.pos==t.pos&&ft.valid(t)?new ft(t):null},handleClick:Cne,handleKeyDown:vne,handleDOMEvents:{beforeinput:kne}}})}const vne=pT({ArrowLeft:ug("horiz",-1),ArrowRight:ug("horiz",1),ArrowUp:ug("vert",-1),ArrowDown:ug("vert",1)});function ug(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,o){let s=r.selection,a=e>0?s.$to:s.$from,c=s.empty;if(s instanceof ve){if(!o.endOfTextblock(t)||a.depth==0)return!1;c=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=ft.findGapCursorFrom(a,e,c);return u?(i&&i(r.tr.setSelection(new ft(u))),!0):!1}}function Cne(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!ft.valid(r))return!1;let i=n.posAtCoords({left:t.clientX,top:t.clientY});return i&&i.inside>-1&&de.isSelectable(n.state.doc.nodeAt(i.inside))?!1:(n.dispatch(n.state.tr.setSelection(new ft(r))),!0)}function kne(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof ft))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let i=Q.empty;for(let s=r.length-1;s>=0;s--)i=Q.from(r[s].createAndFill(null,i));let o=n.state.tr.replace(t.pos,t.pos,new ne(i,0,0));return o.setSelection(ve.near(o.doc.resolve(t.pos+1))),n.dispatch(o),!1}function Sne(n){if(!(n.selection instanceof ft))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",At.create(n.doc,[tr.widget(n.selection.head,e,{key:"gapcursor"})])}const Mne=Jt.create({name:"gapCursor",addProseMirrorPlugins(){return[wne()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=Me(ie(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),Ene=rr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",st(this.options.HTMLAttributes,n)]},renderText(){return`
@@ -384,9 +384,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
384
384
  display: block;
385
385
  }
386
386
  }
387
- `);this.responsiveStyleElement.innerHTML=o}},destroyResponsiveStyle:function(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(e){var t=e||this.processedData;if(t&&this.paginator){var r=this.lazy?0:this.d_first;return t.slice(r,r+this.d_rows)}return t},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(e){return z.isNotEmpty(e)}},computed:{columns:function(){var e=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var t=[],r=_f(this.d_columnOrder),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=this.findColumnByKey(e,o);s&&!this.columnProp(s,"hidden")&&t.push(s)}}catch(a){r.e(a)}finally{r.f()}return[].concat(t,et(e.filter(function(a){return t.indexOf(a)<0})))}return e},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var e,t=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return t.columnProp(r,"type")==="header"})},footerColumnGroup:function(){var e,t=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return t.columnProp(r,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var e,t=this.value||[];return!this.lazy&&!((e=this.virtualScrollerOptions)!==null&&e!==void 0&&e.lazy)&&t&&t.length&&(this.hasFilters&&(t=this.filter(t)),this.sorted&&(this.sortMode==="single"?t=this.sortSingle(t):this.sortMode==="multiple"&&(t=this.sortMultiple(t)))),t},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var e=this.processedData;return e?e.length:0},empty:function(){var e=this.processedData;return!e||e.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var e=this;if(this.selectAll!==null)return this.selectAll;var t=this.frozenValue?[].concat(et(this.frozenValue),et(this.processedData)):this.processedData;return z.isNotEmpty(t)&&this.selection&&Array.isArray(this.selection)&&t.every(function(r){return e.selection.some(function(i){return e.equals(i,r)})})},attributeSelector:function(){return zr()},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},virtualScrollerDisabled:function(){return z.isEmpty(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:iD,DTTableHeader:PD,DTTableBody:vD,DTTableFooter:ED,DTVirtualScroller:Fw,ArrowDownIcon:AO,ArrowUpIcon:TO,SpinnerIcon:cf}};function Lf(n){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lf(n)}function $D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function VD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$D(Object(t),!0).forEach(function(r){n2e(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$D(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function n2e(n,e,t){return e=r2e(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r2e(n){var e=i2e(n,"string");return Lf(e)=="symbol"?e:String(e)}function i2e(n,e){if(Lf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function o2e(n,e,t,r,i,o){var s=l.resolveComponent("SpinnerIcon"),a=l.resolveComponent("DTPaginator"),c=l.resolveComponent("DTTableHeader"),u=l.resolveComponent("DTTableBody"),d=l.resolveComponent("DTTableFooter"),f=l.resolveComponent("DTVirtualScroller");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:n.cx("root"),"data-scrollselectors":".p-datatable-wrapper"},n.ptmi("root")),[l.renderSlot(n.$slots,"default"),n.loading?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:n.cx("loadingOverlay")},n.ptm("loadingOverlay")),[n.$slots.loading?l.renderSlot(n.$slots,"loading",{key:0}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.$slots.loadingicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.loadingicon),{key:0,class:l.normalizeClass(n.cx("loadingIcon"))},null,8,["class"])):n.loadingIcon?(l.openBlock(),l.createElementBlock("i",l.mergeProps({key:1,class:[n.cx("loadingIcon"),"pi-spin",n.loadingIcon]},n.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,spin:"",class:n.cx("loadingIcon")},n.ptm("loadingIcon")),null,16,["class"]))],64))],16)):l.createCommentVNode("",!0),n.$slots.header?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:n.cx("header")},n.ptm("header")),[l.renderSlot(n.$slots,"header")],16)):l.createCommentVNode("",!0),o.paginatorTop?(l.openBlock(),l.createBlock(a,{key:2,rows:i.d_rows,first:i.d_first,totalRecords:o.totalRecordsLength,pageLinkSize:n.pageLinkSize,template:n.paginatorTemplate,rowsPerPageOptions:n.rowsPerPageOptions,currentPageReportTemplate:n.currentPageReportTemplate,class:l.normalizeClass(n.cx("paginator")),onPage:e[0]||(e[0]=function(h){return o.onPage(h)}),alwaysShow:n.alwaysShowPaginator,unstyled:n.unstyled,pt:n.ptm("paginator")},l.createSlots({_:2},[n.$slots.paginatorstart?{name:"start",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorstart")]}),key:"0"}:void 0,n.$slots.paginatorend?{name:"end",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorend")]}),key:"1"}:void 0,n.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorfirstpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"2"}:void 0,n.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorprevpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"3"}:void 0,n.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatornextpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"4"}:void 0,n.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorlastpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"5"}:void 0,n.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorjumptopagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"6"}:void 0,n.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorrowsperpagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("wrapper"),style:[n.sx("wrapper"),{maxHeight:o.virtualScrollerDisabled?n.scrollHeight:""}]},n.ptm("wrapper")),[l.createVNode(f,l.mergeProps({ref:"virtualScroller"},n.virtualScrollerOptions,{items:o.processedData,columns:o.columns,style:n.scrollHeight!=="flex"?{height:n.scrollHeight}:void 0,scrollHeight:n.scrollHeight!=="flex"?void 0:"100%",disabled:o.virtualScrollerDisabled,loaderDisabled:"",inline:"",autoSize:"",showSpacer:!1,pt:n.ptm("virtualScroller")}),{content:l.withCtx(function(h){return[l.createElementVNode("table",l.mergeProps({ref:"table",role:"table",class:[n.cx("table"),n.tableClass],style:[n.tableStyle,h.spacerStyle]},VD(VD({},n.tableProps),n.ptm("table"))),[l.createVNode(c,{columnGroup:o.headerColumnGroup,columns:h.columns,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,groupRowSortField:o.groupRowSortField,reorderableColumns:n.reorderableColumns,resizableColumns:n.resizableColumns,allRowsSelected:o.allRowsSelected,empty:o.empty,sortMode:n.sortMode,sortField:i.d_sortField,sortOrder:i.d_sortOrder,multiSortMeta:i.d_multiSortMeta,filters:i.d_filters,filtersStore:n.filters,filterDisplay:n.filterDisplay,filterInputProps:n.filterInputProps,onColumnClick:e[1]||(e[1]=function(p){return o.onColumnHeaderClick(p)}),onColumnMousedown:e[2]||(e[2]=function(p){return o.onColumnHeaderMouseDown(p)}),onFilterChange:o.onFilterChange,onFilterApply:o.onFilterApply,onColumnDragstart:e[3]||(e[3]=function(p){return o.onColumnHeaderDragStart(p)}),onColumnDragover:e[4]||(e[4]=function(p){return o.onColumnHeaderDragOver(p)}),onColumnDragleave:e[5]||(e[5]=function(p){return o.onColumnHeaderDragLeave(p)}),onColumnDrop:e[6]||(e[6]=function(p){return o.onColumnHeaderDrop(p)}),onColumnResizestart:e[7]||(e[7]=function(p){return o.onColumnResizeStart(p)}),onCheckboxChange:e[8]||(e[8]=function(p){return o.toggleRowsWithCheckbox(p)}),unstyled:n.unstyled,pt:n.pt},null,8,["columnGroup","columns","rowGroupMode","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","allRowsSelected","empty","sortMode","sortField","sortOrder","multiSortMeta","filters","filtersStore","filterDisplay","filterInputProps","onFilterChange","onFilterApply","unstyled","pt"]),n.frozenValue?(l.openBlock(),l.createBlock(u,{key:0,ref:"frozenBodyRef",value:n.frozenValue,frozenRow:!0,columns:h.columns,first:i.d_first,dataKey:n.dataKey,selection:n.selection,selectionKeys:i.d_selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:i.d_editingRowKeys,templates:n.$slots,responsiveLayout:n.responsiveLayout,isVirtualScrollerDisabled:!0,onRowgroupToggle:o.toggleRowGroup,onRowClick:e[9]||(e[9]=function(p){return o.onRowClick(p)}),onRowDblclick:e[10]||(e[10]=function(p){return o.onRowDblClick(p)}),onRowRightclick:e[11]||(e[11]=function(p){return o.onRowRightClick(p)}),onRowTouchend:o.onRowTouchEnd,onRowKeydown:o.onRowKeyDown,onRowMousedown:o.onRowMouseDown,onRowDragstart:e[12]||(e[12]=function(p){return o.onRowDragStart(p)}),onRowDragover:e[13]||(e[13]=function(p){return o.onRowDragOver(p)}),onRowDragleave:e[14]||(e[14]=function(p){return o.onRowDragLeave(p)}),onRowDragend:e[15]||(e[15]=function(p){return o.onRowDragEnd(p)}),onRowDrop:e[16]||(e[16]=function(p){return o.onRowDrop(p)}),onRowToggle:e[17]||(e[17]=function(p){return o.toggleRow(p)}),onRadioChange:e[18]||(e[18]=function(p){return o.toggleRowWithRadio(p)}),onCheckboxChange:e[19]||(e[19]=function(p){return o.toggleRowWithCheckbox(p)}),onCellEditInit:e[20]||(e[20]=function(p){return o.onCellEditInit(p)}),onCellEditComplete:e[21]||(e[21]=function(p){return o.onCellEditComplete(p)}),onCellEditCancel:e[22]||(e[22]=function(p){return o.onCellEditCancel(p)}),onRowEditInit:e[23]||(e[23]=function(p){return o.onRowEditInit(p)}),onRowEditSave:e[24]||(e[24]=function(p){return o.onRowEditSave(p)}),onRowEditCancel:e[25]||(e[25]=function(p){return o.onRowEditCancel(p)}),editingMeta:i.d_editingMeta,onEditingMetaChange:o.onEditingMetaChange,unstyled:n.unstyled,pt:n.pt},null,8,["value","columns","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"])):l.createCommentVNode("",!0),l.createVNode(u,{ref:"bodyRef",value:o.dataToRender(h.rows),class:l.normalizeClass(h.styleClass),columns:h.columns,empty:o.empty,first:i.d_first,dataKey:n.dataKey,selection:n.selection,selectionKeys:i.d_selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:i.d_editingRowKeys,templates:n.$slots,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:h,isVirtualScrollerDisabled:o.virtualScrollerDisabled,onRowgroupToggle:o.toggleRowGroup,onRowClick:e[26]||(e[26]=function(p){return o.onRowClick(p)}),onRowDblclick:e[27]||(e[27]=function(p){return o.onRowDblClick(p)}),onRowRightclick:e[28]||(e[28]=function(p){return o.onRowRightClick(p)}),onRowTouchend:o.onRowTouchEnd,onRowKeydown:function(m){return o.onRowKeyDown(m,h)},onRowMousedown:o.onRowMouseDown,onRowDragstart:e[29]||(e[29]=function(p){return o.onRowDragStart(p)}),onRowDragover:e[30]||(e[30]=function(p){return o.onRowDragOver(p)}),onRowDragleave:e[31]||(e[31]=function(p){return o.onRowDragLeave(p)}),onRowDragend:e[32]||(e[32]=function(p){return o.onRowDragEnd(p)}),onRowDrop:e[33]||(e[33]=function(p){return o.onRowDrop(p)}),onRowToggle:e[34]||(e[34]=function(p){return o.toggleRow(p)}),onRadioChange:e[35]||(e[35]=function(p){return o.toggleRowWithRadio(p)}),onCheckboxChange:e[36]||(e[36]=function(p){return o.toggleRowWithCheckbox(p)}),onCellEditInit:e[37]||(e[37]=function(p){return o.onCellEditInit(p)}),onCellEditComplete:e[38]||(e[38]=function(p){return o.onCellEditComplete(p)}),onCellEditCancel:e[39]||(e[39]=function(p){return o.onCellEditCancel(p)}),onRowEditInit:e[40]||(e[40]=function(p){return o.onRowEditInit(p)}),onRowEditSave:e[41]||(e[41]=function(p){return o.onRowEditSave(p)}),onRowEditCancel:e[42]||(e[42]=function(p){return o.onRowEditCancel(p)}),editingMeta:i.d_editingMeta,onEditingMetaChange:o.onEditingMetaChange,unstyled:n.unstyled,pt:n.pt},null,8,["value","class","columns","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"]),o.hasSpacerStyle(h.spacerStyle)?(l.openBlock(),l.createElementBlock("tbody",l.mergeProps({key:1,class:n.cx("virtualScrollerSpacer"),style:{height:"calc(".concat(h.spacerStyle.height," - ").concat(h.rows.length*h.itemSize,"px)")}},n.ptm("virtualScrollerSpacer")),null,16)):l.createCommentVNode("",!0),l.createVNode(d,{columnGroup:o.footerColumnGroup,columns:h.columns,pt:n.pt},null,8,["columnGroup","columns","pt"])],16)]}),_:1},16,["items","columns","style","scrollHeight","disabled","pt"])],16),n.$slots.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:3,class:n.cx("footer")},n.ptm("footer")),[l.renderSlot(n.$slots,"footer")],16)):l.createCommentVNode("",!0),o.paginatorBottom?(l.openBlock(),l.createBlock(a,{key:4,rows:i.d_rows,first:i.d_first,totalRecords:o.totalRecordsLength,pageLinkSize:n.pageLinkSize,template:n.paginatorTemplate,rowsPerPageOptions:n.rowsPerPageOptions,currentPageReportTemplate:n.currentPageReportTemplate,class:l.normalizeClass(n.cx("paginator")),onPage:e[43]||(e[43]=function(h){return o.onPage(h)}),alwaysShow:n.alwaysShowPaginator,unstyled:n.unstyled,pt:n.ptm("paginator")},l.createSlots({_:2},[n.$slots.paginatorstart?{name:"start",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorstart")]}),key:"0"}:void 0,n.$slots.paginatorend?{name:"end",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorend")]}),key:"1"}:void 0,n.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorfirstpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"2"}:void 0,n.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorprevpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"3"}:void 0,n.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatornextpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"4"}:void 0,n.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorlastpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"5"}:void 0,n.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorjumptopagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"6"}:void 0,n.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorrowsperpagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({ref:"resizeHelper",class:n.cx("resizeHelper"),style:{display:"none"}},n.ptm("resizeHelper")),null,16),n.reorderableColumns?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:5,ref:"reorderIndicatorUp",class:n.cx("reorderIndicatorUp"),style:{position:"absolute",display:"none"}},n.ptm("reorderIndicatorUp")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.reorderindicatorupicon||"ArrowDownIcon")))],16)):l.createCommentVNode("",!0),n.reorderableColumns?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:6,ref:"reorderIndicatorDown",class:n.cx("reorderIndicatorDown"),style:{position:"absolute",display:"none"}},n.ptm("reorderIndicatorDown")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.reorderindicatordownicon||"ArrowUpIcon")))],16)):l.createCommentVNode("",!0)],16)}RD.render=o2e;var s2e={},a2e={name:"BaseColumn",extends:we,props:{columnKey:{type:null,default:null},field:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},filterField:{type:[String,Function],default:null},dataType:{type:String,default:"text"},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},style:{type:null,default:null},class:{type:String,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},showFilterMenu:{type:Boolean,default:!0},showFilterOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showFilterMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},filterMatchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},excludeGlobalFilter:{type:Boolean,default:!1},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:void 0},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1},alignFrozen:{type:String,default:"left"},exportable:{type:Boolean,default:!0},exportHeader:{type:String,default:null},exportFooter:{type:String,default:null},filterMatchMode:{type:String,default:null},hidden:{type:Boolean,default:!1}},style:s2e,provide:function(){return{$parentInstance:this}}},l2e={name:"Column",extends:a2e,inheritAttrs:!1,inject:["$columns"],mounted:function(){var e;(e=this.$columns)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columns)===null||e===void 0||e.delete(this.$)},render:function(){return null}},c2e={},u2e={name:"BaseColumnGroup",extends:we,props:{type:{type:String,default:null}},style:c2e,provide:function(){return{$parentInstance:this}}},d2e={name:"ColumnGroup",extends:u2e,inheritAttrs:!1,inject:["$columnGroups"],mounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.delete(this.$)},render:function(){return null}},f2e={name:"Row",extends:we,inject:["$rows"],mounted:function(){var e;(e=this.$rows)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$rows)===null||e===void 0||e.delete(this.$)},render:function(){return null}};const h2e="data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%200%20118%2099'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M104.165%2059.815C107.107%2062.7762%20108.893%2066.692%20109.201%2070.8549C109.508%2075.0179%20108.317%2079.1536%20105.842%2082.515L105.642%2082.782L105.412%2083.082L117.521%2095.245C117.828%2095.5546%20118%2095.973%20118%2096.409C118%2096.845%20117.828%2097.2634%20117.521%2097.573C117.232%2097.8651%20116.844%2098.0376%20116.434%2098.0561C116.023%2098.0746%20115.621%2097.9378%20115.307%2097.673L115.207%2097.573L103.122%2085.438L102.822%2085.682C99.4939%2088.3942%2095.2763%2089.772%2090.9889%2089.5476C86.7016%2089.3233%2082.6508%2087.5127%2079.624%2084.468C76.3686%2081.1921%2074.5414%2076.7614%2074.5414%2072.143C74.5414%2067.5247%2076.3686%2063.0939%2079.624%2059.818C81.2316%2058.2001%2083.1433%2056.916%2085.2491%2056.0397C87.3548%2055.1634%2089.6131%2054.7121%2091.8939%2054.7118C94.1747%2054.7115%2096.4331%2055.1622%2098.539%2056.0381C100.645%2056.9139%20102.557%2058.1975%20104.165%2059.815ZM81.935%2062.131C79.2951%2064.7964%2077.8142%2068.3961%2077.8142%2072.1475C77.8142%2075.8989%2079.2951%2079.4986%2081.935%2082.164C83.2368%2083.4792%2084.7865%2084.5233%2086.4944%2085.2358C88.2022%2085.9484%2090.0344%2086.3153%2091.885%2086.3153C93.7355%2086.3153%2095.5678%2085.9484%2097.2756%2085.2358C98.9835%2084.5233%20100.533%2083.4792%20101.835%2082.164C104.475%2079.4986%20105.956%2075.8989%20105.956%2072.1475C105.956%2068.3961%20104.475%2064.7964%20101.835%2062.131C100.533%2060.8158%2098.9835%2059.7717%2097.2756%2059.0592C95.5678%2058.3466%2093.7355%2057.9797%2091.885%2057.9797C90.0344%2057.9797%2088.2022%2058.3466%2086.4944%2059.0592C84.7865%2059.7717%2083.2368%2060.8158%2081.935%2062.131ZM31.4%2075.042V76.442C31.4001%2076.5544%2031.4224%2076.6656%2031.4656%2076.7694C31.5087%2076.8731%2031.5719%2076.9673%2031.6515%2077.0466C31.7311%2077.126%2031.8255%2077.1888%2031.9294%2077.2316C32.0333%2077.2744%2032.1446%2077.2963%2032.257%2077.296H72.357C72.5818%2078.1673%2072.8638%2079.0228%2073.201%2079.857H32.258C31.3506%2079.8589%2030.4796%2079.5003%2029.8366%2078.86C29.1935%2078.2198%2028.8311%2077.3504%2028.829%2076.443V75.043L31.4%2075.042ZM86.162%2022C87.0694%2021.9981%2087.9404%2022.3568%2088.5834%2022.997C89.2265%2023.6372%2089.5889%2024.5066%2089.591%2025.414V51.808C88.7243%2051.9101%2087.8652%2052.0684%2087.019%2052.282V25.414C87.0189%2025.3016%2086.9966%2025.1904%2086.9534%2025.0867C86.9103%2024.9829%2086.8471%2024.8887%2086.7675%2024.8094C86.6879%2024.7301%2086.5935%2024.6672%2086.4896%2024.6244C86.3857%2024.5816%2086.2744%2024.5597%2086.162%2024.56H25.429C25.3166%2024.5597%2025.2053%2024.5816%2025.1014%2024.6244C24.9975%2024.6672%2024.9031%2024.7301%2024.8235%2024.8094C24.7439%2024.8887%2024.6807%2024.9829%2024.6376%2025.0867C24.5944%2025.1904%2024.5721%2025.3016%2024.572%2025.414V69.587C24.5721%2069.6994%2024.5944%2069.8106%2024.6376%2069.9144C24.6807%2070.0181%2024.7439%2070.1123%2024.8235%2070.1916C24.9031%2070.271%2024.9975%2070.3338%2025.1014%2070.3766C25.2053%2070.4194%2025.3166%2070.4413%2025.429%2070.441H71.766C71.697%2071.2932%2071.6806%2072.1488%2071.717%2073.003H25.429C24.5216%2073.0049%2023.6506%2072.6463%2023.0076%2072.006C22.3645%2071.3658%2022.0021%2070.4964%2022%2069.589V25.414C22.0021%2024.5066%2022.3645%2023.6372%2023.0076%2022.997C23.6506%2022.3568%2024.5216%2021.9981%2025.429%2022H86.162ZM77.701%2054.948C77.8695%2054.9484%2078.0362%2054.982%2078.1918%2055.0468C78.3473%2055.1117%2078.4885%2055.2065%2078.6073%2055.3259C78.7262%2055.4453%2078.8204%2055.587%2078.8845%2055.7428C78.9486%2055.8986%2078.9814%2056.0655%2078.981%2056.234C78.9811%2056.2983%2078.9764%2056.3624%2078.967%2056.426C78.557%2056.7693%2078.159%2057.1327%2077.773%2057.516H77.701H34.374C34.0329%2057.516%2033.7058%2057.3805%2033.4647%2057.1393C33.2235%2056.8982%2033.088%2056.5711%2033.088%2056.23C33.088%2055.8889%2033.2235%2055.5618%2033.4647%2055.3207C33.7058%2055.0795%2034.0329%2054.944%2034.374%2054.944L77.701%2054.948ZM92.991%2028.859C93.8984%2028.8571%2094.7694%2029.2158%2095.4124%2029.856C96.0555%2030.4962%2096.4179%2031.3656%2096.42%2032.273V52.168C95.5725%2051.9753%2094.7133%2051.8377%2093.848%2051.756V32.273C93.8479%2032.1606%2093.8256%2032.0494%2093.7824%2031.9457C93.7393%2031.8419%2093.6761%2031.7477%2093.5965%2031.6684C93.5169%2031.5891%2093.4225%2031.5262%2093.3186%2031.4834C93.2147%2031.4406%2093.1034%2031.4187%2092.991%2031.419H91.291V28.858L92.991%2028.859ZM77.701%2046.375C78.0421%2046.375%2078.3692%2046.5105%2078.6103%2046.7517C78.8515%2046.9928%2078.987%2047.3199%2078.987%2047.661C78.987%2048.0021%2078.8515%2048.3292%2078.6103%2048.5703C78.3692%2048.8115%2078.0421%2048.947%2077.701%2048.947H34.374C34.0329%2048.947%2033.7058%2048.8115%2033.4647%2048.5703C33.2235%2048.3292%2033.088%2048.0021%2033.088%2047.661C33.088%2047.3199%2033.2235%2046.9928%2033.4647%2046.7517C33.7058%2046.5105%2034.0329%2046.375%2034.374%2046.375H77.701ZM59.983%2037.801C60.3241%2037.801%2060.6512%2037.9365%2060.8923%2038.1777C61.1335%2038.4188%2061.269%2038.7459%2061.269%2039.087C61.269%2039.4281%2061.1335%2039.7552%2060.8923%2039.9963C60.6512%2040.2375%2060.3241%2040.373%2059.983%2040.373H34.374C34.0329%2040.373%2033.7058%2040.2375%2033.4647%2039.9963C33.2235%2039.7552%2033.088%2039.4281%2033.088%2039.087C33.088%2038.7459%2033.2235%2038.4188%2033.4647%2038.1777C33.7058%2037.9365%2034.0329%2037.801%2034.374%2037.801H59.983Z'%20fill='%238D9AA5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%200C4.2066%200%204.40475%200.0820729%204.55084%200.228164C4.69693%200.374255%204.779%200.572397%204.779%200.779V3.221H7.221C7.41393%203.221%207.6%203.29258%207.74317%203.4219C7.88634%203.55122%207.97643%203.72907%207.996%203.921V4.001C7.996%204.2076%207.91393%204.40575%207.76784%204.55184C7.62175%204.69793%207.4236%204.78%207.217%204.78H4.779V7.222C4.779%207.41493%204.70742%207.601%204.5781%207.74417C4.44878%207.88734%204.27093%207.97744%204.079%207.997H3.999C3.7924%207.997%203.59425%207.91493%203.44816%207.76884C3.30207%207.62275%203.22%207.4246%203.22%207.218V4.779H0.779C0.585538%204.78002%200.398617%204.70902%200.254623%204.57981C0.110629%204.45061%200.0198653%204.27244%200%204.08V4C0%203.7934%200.082073%203.59526%200.228164%203.44916C0.374255%203.30307%200.572396%203.221%200.779%203.221H3.221V0.779C3.221%200.586071%203.29258%200.400004%203.4219%200.256831C3.55122%200.113658%203.72907%200.023565%203.921%200.00399971L4%200Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M11%2099C11.5304%2099%2012.0391%2098.7893%2012.4142%2098.4142C12.7893%2098.0391%2013%2097.5304%2013%2097C13%2096.4696%2012.7893%2095.9609%2012.4142%2095.5858C12.0391%2095.2107%2011.5304%2095%2011%2095C10.4696%2095%209.96086%2095.2107%209.58579%2095.5858C9.21071%2095.9609%209%2096.4696%209%2097C9%2097.5304%209.21071%2098.0391%209.58579%2098.4142C9.96086%2098.7893%2010.4696%2099%2011%2099Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M104.518%2015.035C103.055%2015.035%20101.651%2014.4538%20100.617%2013.4192C99.5817%2012.3846%2099.0003%2010.9813%2099%209.518C99%208.05454%2099.5814%206.65101%20100.616%205.61619C101.651%204.58136%20103.055%204%20104.518%204C105.981%204%20107.385%204.58136%20108.42%205.61619C109.455%206.65101%20110.036%208.05454%20110.036%209.518C110.036%2010.9813%20109.454%2012.3846%20108.419%2013.4192C107.385%2014.4538%20105.981%2015.035%20104.518%2015.035ZM104.518%2013.035C105.451%2013.035%20106.346%2012.6645%20107.005%2012.005C107.665%2011.3454%20108.036%2010.4509%20108.036%209.518C108.036%209.05601%20107.945%208.59854%20107.768%208.17172C107.591%207.7449%20107.332%207.35707%20107.006%207.0304C106.679%206.70372%20106.291%206.44459%20105.864%206.26779C105.437%206.091%20104.98%206%20104.518%206C103.585%206%20102.69%206.37065%20102.03%207.0304C101.371%207.69015%20101%208.58497%20101%209.518C101%2010.4509%20101.371%2011.3454%20102.031%2012.005C102.69%2012.6645%20103.585%2013.035%20104.518%2013.035Z'%20fill='%238D9AA5'/%3e%3c/svg%3e",p2e=l.defineComponent({name:"QTable",components:{Column:l2e,ColumnGroup:d2e,DataTable:RD,Row:f2e,QBadge:Da,QTooltip:t6},props:{id:{type:String,default:""},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},sortBy:{type:String,default:""},itemsPerPage:{type:Number,default:20},currentPage:{type:Number,default:1},searchPlaceholder:{type:String,default:""},filters:{type:Object,default:()=>({})},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},globalFilters:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isMultiSort:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},rowSelect:{type:Function,default:()=>{}},rowUnselect:{type:Function,default:()=>{}},fixedTopOffset:{type:Number,default:0},skeletonRows:{type:Number,default:6},leftScrollAmount:{type:Number,default:200},rightScrollAmount:{type:Number,default:200},overrideFrozen:{type:Boolean,default:!1},searchDelay:{type:Number,default:300}},emits:["is-empty"],setup(n,{emit:e}){const{deviceType:t}=n6(),r=l.ref(),i=l.ref(!1),o=l.ref(!1),s=l.ref(!1),a=l.ref(!1),c=l.ref(!0),u=l.ref(h2e),d=l.ref(),f=l.ref(""),h=l.ref([]),p=l.ref(),m=l.ref(0),y=l.ref({global:{matchMode:It.CONTAINS,value:""},...n.filters}),b=l.computed(()=>t.value==="desktop"),w=l.computed(()=>{var R;const $=!n.loading&&((R=r.value)==null?void 0:R.empty);return e("is-empty",$),$}),v=l.computed(()=>{const $=[],R={};let q=0;return n.columns.forEach(re=>{R[re.key]=""}),[...Array(n.skeletonRows)].forEach(()=>{$.push({...R,shimmer:q%2?"bg-gray-10":"bg-gray-30"}),q++}),$}),k=()=>{var $,R;d.value.scrollWidth>d.value.clientWidth?(i.value=!0,($=d.value)==null||$.classList.add("is-scrolled")):(i.value=!1,(R=d.value)==null||R.classList.remove("is-scrolled")),d.value&&d.value.setAttribute("data-scroll",d.value.scrollLeft.toString()),P(),S(),E(),L()},C=$=>{n.rowSelect($)},T=$=>{n.rowUnselect($)},S=()=>{var re,ue;const $=p.value.offsetTop-n.fixedTopOffset,R=document.querySelector('div[data-pc-section="header"]'),q=(re=d.value)==null?void 0:re.querySelector("thead");if(o.value=!!n.fixedTopOffset&&p.value&&window.scrollY>=$,o.value)if(R.style.top=n.fixedTopOffset+"px",i.value)q.style.top="";else{const K=n.fixedTopOffset+R.clientHeight+1;q.style.top=K+"px"}else R.style.top="",q.style.top="";if(o.value&&i.value){const K=document.querySelector('div[data-pc-section="header"] > div[data-pc-section="wrapper"]');(ue=K==null?void 0:K.querySelectorAll("th"))==null||ue.forEach((H,j)=>{var J;const F=(J=d.value)==null?void 0:J.querySelector(`th:nth-child(${j+1})`),G=F==null?void 0:F.getAttribute("aria-sort");H==null||H.setAttribute("aria-sort",G),H.classList.contains("actions")&&(H.style.minWidth=(F==null?void 0:F.clientWidth)+"px")})}P(),E(),L()},E=()=>{const R=d.value.scrollWidth-d.value.clientWidth;c.value=Math.abs(d.value.scrollLeft)<=1,a.value=Math.abs(d.value.scrollLeft-R)<=1},O=()=>{s.value=!1,n.columns.forEach(($,R)=>{$.frozen&&p.value.querySelectorAll(`th:nth-child(${R+1}), td:nth-child(${R+1})`).forEach(q=>{q.classList.add("sticky"),R===0?q.classList.add("left-0"):R===n.columns.length-1&&$.frozen&&(q.classList.add("right-0"),s.value=!0)})})},I=()=>{var R,q,re,ue;const $=(R=d.value)==null?void 0:R.cloneNode(!0);if($){const K=document.querySelector('div[data-pc-section="header"]');K==null||K.append($);const H=K==null?void 0:K.querySelector('div[data-pc-section="wrapper"]');(q=H==null?void 0:H.querySelector("tbody"))==null||q.remove(),H==null||H.addEventListener("scroll",()=>{d.value.scrollLeft=H.scrollLeft,E(),L()}),(re=d.value)==null||re.addEventListener("scroll",()=>{var j;H.scrollLeft=d.value.scrollLeft,E(),(j=d.value)==null||j.setAttribute("data-scroll",d.value.scrollLeft.toString()),L()}),(ue=H==null?void 0:H.querySelectorAll("th"))==null||ue.forEach((j,F)=>{j==null||j.addEventListener("click",async()=>{var G;if(o.value&&i.value){const J=(G=d.value)==null?void 0:G.querySelector(`th:nth-child(${F+1})`);await(J==null?void 0:J.click());const ae=J==null?void 0:J.getAttribute("aria-sort");j==null||j.setAttribute("aria-sort",ae)}})})}},P=()=>{const $=d.value.clientWidth+"px",R=document.querySelector('div[data-pc-section="header"]'),q=R.querySelector('div[data-pc-section="wrapper"] thead');R.style.width=$,d.value.querySelector("thead").style.width=$,q&&(q.style.width=$)},D=()=>{if(d.value){const $=-Math.min(n.leftScrollAmount,d.value.scrollLeft),R=o.value?"instant":"smooth";d.value.scrollBy({left:$,behavior:R})}},B=()=>{if(d.value){const $=d.value.scrollWidth-d.value.clientWidth,R=Math.min(n.rightScrollAmount,$-d.value.scrollLeft),q=o.value?"instant":"smooth";d.value.scrollBy({left:R,behavior:q})}},V=()=>{var $,R,q;if(i.value||!b.value){const re=c.value?"hidden":"",ue=a.value?"hidden":"";($=p.value)==null||$.insertAdjacentHTML("beforeend",`<button type="button" class="q-table-scroll-button scroll-button scroll-left ${re}"></button>
388
- <button type="button" class="q-table-scroll-button scroll-button scroll-right ${ue}"></button>`);const K=l.h(z0,{icon:"chevron-left",type:"",size:"md",class:"p-[0.1875rem]"}),H=l.h(z0,{icon:"chevron-right",type:"",size:"md",class:"p-[0.1875rem]"}),j=(R=p.value)==null?void 0:R.querySelector(".scroll-button.scroll-left"),F=(q=p.value)==null?void 0:q.querySelector(".scroll-button.scroll-right");l.render(K,j),l.render(H,F),j==null||j.addEventListener("click",D),F==null||F.addEventListener("click",B),L()}},U=()=>{var $,R;(R=($=p.value)==null?void 0:$.querySelectorAll(".scroll-button"))==null||R.forEach(q=>{q.remove()})},L=()=>{var j,F,G,J;const $=(j=p.value)==null?void 0:j.querySelector(".scroll-button.scroll-left"),R=(F=p.value)==null?void 0:F.querySelector(".scroll-button.scroll-right"),q=(G=d.value)==null?void 0:G.querySelector("td.sticky:first-child"),re=(J=p.value)==null?void 0:J.getBoundingClientRect(),ue=document.querySelector('div[data-pc-section="header"]'),K=(ue==null?void 0:ue.getBoundingClientRect().height)||0,H=d.value;if(p.value&&re&&H){const ae=(q==null?void 0:q.getBoundingClientRect().width)||0;p.value.style.setProperty("--first-sticky-width",`${ae}px`);const Oe=H.getBoundingClientRect(),be=Math.max(Oe.top,K),Le=Math.min(Oe.bottom,window.innerHeight),pt=be<window.innerHeight&&Le>K,pn=Le-be,$r=be+pn/2;if($&&R)if(pt&&i.value){$.classList.remove("hidden"),R.classList.remove("hidden");const Kn=Math.max(be,Math.min($r,Le-$.offsetHeight));$.style.top=`${Kn}px`,R.style.top=`${Kn}px`,$.style.left=`${re.left+ae+8}px`,R.style.right=`${window.innerWidth-re.right+8}px`}else $.classList.add("hidden"),R.classList.add("hidden");$&&(c.value||!i.value?$.classList.add("hidden"):$.classList.remove("hidden")),R&&(a.value||!i.value?R.classList.add("hidden"):R.classList.remove("hidden"))}},N=q8($=>{y.value.global.value=$},n.searchDelay);return l.watch(f,$=>{N($)}),l.onMounted(()=>{d.value=document.querySelector('div[data-pc-section="wrapper"]'),k(),window.addEventListener("resize",k),window.addEventListener("scroll",S),I(),b.value||V()}),l.onUnmounted(()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",S)}),{dataTableRef:r,horizontalScroll:i,isFixed:o,isLastCellSticky:s,isScrolledToEnd:a,isScrolledToStart:c,noResultsPath:u,scrollableElement:d,scrollLeft:D,scrollRight:B,search:f,selectedRows:h,tableContainer:p,tableFilters:y,tableHeight:m,isDesktop:b,isEmpty:w,skeletonData:v,addScrollButtons:V,onPageResizeOrLoad:k,onSelectRow:C,onUnselectRow:T,removeScrollButtons:U,setSticky:O,mq:Ln,deviceType:t}}}),m2e=["id"],g2e={class:"search-and-filters"},y2e={class:"inspections-search"},b2e={for:"search",class:"search-label"},w2e={key:0,class:"inspection-actions"},v2e={class:"flex relative"},C2e={key:0},k2e={key:1},S2e={key:0,class:"table-empty flex flex-col items-center justify-center"},M2e=["src"];function E2e(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("q-input"),c=l.resolveComponent("q-badge"),u=l.resolveComponent("q-tooltip"),d=l.resolveComponent("column"),f=l.resolveComponent("data-table");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:n.id,class:["table-container",{"is-fixed":n.isFixed},{"using-scroll":n.horizontalScroll},{"is-loading":n.loading},{"scroll-start":n.isScrolledToStart},{"scroll-end":n.isScrolledToEnd},{"is-empty bg-white":n.isEmpty},{"last-cell-sticky":n.isLastCellSticky}],ref:"tableContainer"},{[l.toHandlerKey(n.isDesktop&&"mouseenter")]:e[3]||(e[3]=(...h)=>n.addScrollButtons&&n.addScrollButtons(...h))},{[l.toHandlerKey(n.isDesktop&&"mouseleave")]:e[4]||(e[4]=(...h)=>n.removeScrollButtons&&n.removeScrollButtons(...h))}),[l.createVNode(f,{filters:n.tableFilters,"onUpdate:filters":e[1]||(e[1]=h=>n.tableFilters=h),selection:n.selectedRows,"onUpdate:selection":e[2]||(e[2]=h=>n.selectedRows=h),"global-filter-fields":n.globalFilters,loading:n.loading,"meta-key-selection":!1,"scroll-height":n.horizontalScroll&&n.tableHeight?`${n.tableHeight}px`:"","selection-mode":n.isMultiSelect?"multiple":"single","sort-mode":n.isMultiSort?"multiple":"single",value:n.loading?n.skeletonData:n.modelValue,"data-key":"id","filter-display":"menu",ref:"dataTableRef","removable-sort":"",scrollable:"",onRowSelect:n.onSelectRow,onRowUnselect:n.onUnselectRow,onValueChange:n.setSticky},{header:l.withCtx(()=>[n.hasSearch?l.renderSlot(n.$slots,"search-and-filters",{key:0},()=>[l.createElementVNode("div",g2e,[l.createElementVNode("div",y2e,[n.hasSearch?l.renderSlot(n.$slots,"search",{key:0},()=>[l.createElementVNode("label",b2e,[l.createVNode(s,{class:"mr-2",color:"gray-40",icon:"search",size:"md",type:""}),l.createVNode(a,{id:"search",modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=h=>n.search=h),"hide-clear":!!n.mq.md,placeholder:n.searchPlaceholder||n.$t("HC_SEARCH"),class:"text-base","control-class":"!border-0 !px-0"},null,8,["modelValue","hide-clear","placeholder"])])],!0):l.createCommentVNode("",!0)]),Object.keys(n.tableFilters).length||n.$slots.tableActions?(l.openBlock(),l.createElementBlock("div",w2e,[Object.keys(n.tableFilters).length?l.renderSlot(n.$slots,"filters",{key:0},()=>[l.createVNode(u,{class:"z-[45] ml-2"},{trigger:l.withCtx(()=>[l.createElementVNode("div",v2e,[l.createVNode(s,{class:"filters-icon ml-0",color:"gray-40",icon:"filter",size:"md",onClick:n.filtersAction},null,8,["onClick"]),n.filtersCount?(l.openBlock(),l.createBlock(c,{key:0,class:"filters-count",color:"white"},{text:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.filtersCount),1)]),_:1})):l.createCommentVNode("",!0)])]),content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_FILTERS")),1)]),_:1})],!0):l.createCommentVNode("",!0),n.$slots.tableActions?l.renderSlot(n.$slots,"tableActions",{key:1},void 0,!0):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])],!0):l.createCommentVNode("",!0)]),empty:l.withCtx(()=>[]),default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.columns,h=>(l.openBlock(),l.createBlock(d,{key:h.key,field:h.key,"filter-field":h.key,header:h.name,sortable:h.sortable,frozen:h.frozen&&!n.overrideFrozen,class:l.normalizeClass([h.key,h.size?`cell-${h.size}`:"",{"text-right":h.key==="actions"}])},{body:l.withCtx(({data:p})=>[n.loading?n.loading?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["animate-shimmer",p.shimmer])},"   ",2)):l.createCommentVNode("",!0):l.renderSlot(n.$slots,h.key,l.normalizeProps(l.mergeProps({key:0},p)),()=>[h.key.match(/\./)?(l.openBlock(),l.createElementBlock("div",k2e,l.toDisplayString(p[h.key.split(".")[0]][h.key.split(".")[1]]),1)):(l.openBlock(),l.createElementBlock("div",C2e,l.toDisplayString(p[h.key]),1))],!0)]),_:2},1032,["field","filter-field","header","sortable","frozen","class"]))),128))]),_:3},8,["filters","selection","global-filter-fields","loading","scroll-height","selection-mode","sort-mode","value","onRowSelect","onRowUnselect","onValueChange"]),n.isEmpty?(l.openBlock(),l.createElementBlock("div",S2e,[l.renderSlot(n.$slots,"no-results-illustration",{},()=>[l.createElementVNode("img",{class:"mb-5",src:n.noResultsPath},null,8,M2e)],!0),l.renderSlot(n.$slots,"no-results-text",l.normalizeProps(l.guardReactiveProps({tableFilters:n.tableFilters})),void 0,!0)])):l.createCommentVNode("",!0)],16,m2e)}const A2e=me(p2e,[["render",E2e],["__scopeId","data-v-d263ecc3"]]),T2e=l.defineComponent({name:"QTag",components:{},props:{tagClass:{type:String,default:""},bgColor:{type:String,default:"bg-green-0"},textColor:{type:String,default:"text-green-20"},shape:{type:String,default:"square"}},setup(n,{slots:e}){return{hasIcon:!!e.icon}}});function x2e(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["tag flex items-center",[n.tagClass,n.bgColor,n.textColor,"tag-"+n.shape,{"has-icon":n.hasIcon}]])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0)],2)}const I2e=me(T2e,[["render",x2e],["__scopeId","data-v-1a01844c"]]),FD="update:model-value",O2e=l.defineComponent({name:"QTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},controlClass:{type:String,default:""},persistentPlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},rows:{type:Number,default:2},status:{type:String,default:""},textareaClass:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:[FD],setup(n,{attrs:e,emit:t,slots:r}){const i=l.ref(!1),o=l.ref(),s=l.computed(()=>!!r.actions),a=l.computed(()=>!!e.disabled||!!n.isDisabled),c=l.computed(()=>[{[`has-${n.status}`]:n.status&&!a.value},{"is-focused":i.value},{"is-disabled":a.value}]),u=l.computed(()=>["textarea",n.textareaClass,{[n.status]:n.status&&!a.value},{populated:!!n.modelValue&&n.persistentPlaceholder},{"is-focused":i.value&&n.persistentPlaceholder}]),d=()=>{o.value.style.height="auto",o.value.style.height=o.value.scrollHeight+"px"},f=h=>{t(FD,h.target.value)};return l.onMounted(()=>{d()}),{focused:i,disabled:a,rootClasses:c,textarea:o,textareaClasses:u,hasActions:s,resizeTextarea:d,updateValue:f}}}),D2e=["id","disabled","placeholder","rows","value"],N2e={key:0,class:"action flex items-end py-2 pr-4"},P2e=["for"];function _2e(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[n.rootClasses,n.controlClass],"control flex"])},[l.createElementVNode("textarea",l.mergeProps({id:String(n.$attrs.id),ref:"textarea",disabled:n.isDisabled,class:[n.textareaClasses],placeholder:n.persistentPlaceholder?"":n.placeholder,rows:n.rows,value:n.modelValue},n.$attrs,{onInput:e[0]||(e[0]=(...s)=>n.updateValue&&n.updateValue(...s)),onFocusin:e[1]||(e[1]=s=>n.focused=!n.focused),onFocusout:e[2]||(e[2]=s=>n.focused=!n.focused),onKeyup:e[3]||(e[3]=(...s)=>n.resizeTextarea&&n.resizeTextarea(...s))}),`
389
- `,16,D2e),n.hasActions?(l.openBlock(),l.createElementBlock("div",N2e,[l.renderSlot(n.$slots,"actions",{},void 0,!0)])):l.createCommentVNode("",!0),n.persistentPlaceholder?(l.openBlock(),l.createElementBlock("label",{key:1,for:String(n.$attrs.id),class:"placeholder"},l.toDisplayString(n.placeholder),9,P2e)):l.createCommentVNode("",!0)],2)}const L2e=me(O2e,[["render",_2e],["__scopeId","data-v-fda73545"]]),jD="update:modelValue",zD="undo-action",HD="timeout-done",B2e=l.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},transitionClass:{type:String,default:"component-slide-right"},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[jD,zD,HD],setup(n,{emit:e}){const t=l.ref(null),r=l.computed({get:()=>n.modelValue,set:u=>{e(jD,u)}}),i=l.computed(()=>n.variant?"is-"+n.variant:""),o=l.computed(()=>n.position?"toast-fixed "+n.position:""),s=l.computed(()=>n.withTransition&&n.transitionClass),a=()=>{e(zD)},c=()=>{t.value=setTimeout(()=>{r.value=!1,e(HD)},n.duration)};return l.onBeforeUnmount(()=>{t.value&&(clearTimeout(t.value),t.value=null)}),l.watchEffect(()=>{r.value&&n.duration?c():t.value&&(clearTimeout(t.value),t.value=null)}),{show:r,statusClass:i,positionClass:o,computedTransition:s,startTimeout:c,undoAction:a}}}),R2e=["aria-live"],$2e={class:"message flex-grow"},V2e=["aria-label"];function F2e(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createBlock(l.Transition,{name:String(n.computedTransition),appear:""},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["toast flex",n.statusClass,n.positionClass,n.undoButton?"gap-2":"gap-3"]),role:"alert","aria-live":n.variant=="error"?"assertive":"polite","aria-atomic":"true"},[n.icon?(l.openBlock(),l.createBlock(s,{key:0,icon:n.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):l.createCommentVNode("",!0),l.createElementVNode("span",$2e,[l.renderSlot(n.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.message),1)],!0)]),n.undoButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=a=>n.undoAction())},[l.renderSlot(n.$slots,"undo-message",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_UNDO")),1)],!0)])):l.createCommentVNode("",!0),n.closeButton?(l.openBlock(),l.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=a=>n.show=!n.show),"aria-label":n.$t("HC_CLOSE")},[l.createVNode(s,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,V2e)):l.createCommentVNode("",!0)],10,R2e)):l.createCommentVNode("",!0)]),_:3},8,["name"])}const j2e=me(B2e,[["render",F2e],["__scopeId","data-v-3862f72b"]]),z2e={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},H2e=(n,e,t)=>{const{container:r,arrow:i,margin:o,padding:s,position:a,variantFlipOrder:c,positionFlipOrder:u}={container:document.documentElement.getBoundingClientRect(),...z2e,...t},{left:d,top:f}=e.style;e.style.left="0",e.style.top="0";const h=n.getBoundingClientRect(),p=e.getBoundingClientRect(),m={t:h.top-p.height-o,b:h.bottom+o,r:h.right+o,l:h.left-p.width-o},y={vs:h.left,vm:h.left+h.width/2-p.width/2,ve:h.left+h.width-p.width,hs:h.top,hm:h.bottom-h.height/2-p.height/2,he:h.bottom-p.height},[b,w="middle"]=a.split("-"),v=u[b],k=c[w],{top:C,left:T,bottom:S,right:E}=r;for(const O of v){const I=O==="t"||O==="b";let P=m[O];const[D,B]=I?["top","left"]:["left","top"],[V,U]=I?[p.height,p.width]:[p.width,p.height],[L,N]=I?[S,E]:[E,S],[$,R]=I?[C,T]:[T,C];if(!(P<$||P+V+s>L))for(const q of k){let re=y[(I?"v":"h")+q];if(!(re<R||re+U+s>N)){if(re-=p[B],P-=p[D],e.style[B]=`${re}px`,e.style[D]=`${P}px`,i){const ue=I?h.width/2:h.height/2,K=U/2,H=ue>K,j={s:H?K:ue,m:K,e:H?K:U-ue},F={t:V,b:0,r:0,l:V},G=re+j[q],J=P+F[O];i.style[B]=`${G}px`,i.style[D]=`${J}px`}return O+q}}}return e.style.left=d,e.style.top=f,null},U2e=(n,e,t)=>{const r=typeof n=="object"&&!(n instanceof HTMLElement)?n:{reference:n,popper:e,...t};return{update(i=r){const{reference:o,popper:s}=Object.assign(r,i);if(!s||!o)throw new Error("Popper- or reference-element missing.");return H2e(o,s,r)}}},Z2e=l.defineComponent({name:"QTour",props:{name:{type:String,default:"default"},steps:{type:Array,required:!0},backdrop:{type:Boolean,default:!0},autoStart:{type:Boolean,default:!1},startDelay:{type:Number,default:2e3},highlight:{type:Boolean,default:!0},margin:{type:Number,default:8},buttonLabels:{type:Object,default:()=>{const{t:n}=ao();return{next:n("HC_NEXT"),back:n("HC_BACK"),end:n("HC_GOT_IT"),snooze:n("HC_SNOOZE")}}},saveProgress:{type:Boolean,default:!0},hideSnooze:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},noScroll:{type:Boolean,default:!1}},emits:["onTourStart","onTourStop","onTourEnd","onTourStep","onTourSnooze"],setup(n,{emit:e,expose:t}){const r=`tour-${n.name}`,i=`${r}-tooltip`,o=`${r}-backdrop`,s=`${r}-arrow`,a=l.ref(null),c=l.ref(null),u=l.ref(!1),d=l.computed(()=>n.steps.filter(L=>{var N;return!((N=L.skip)!=null&&N.call(L))})),f=l.reactive({currentStep:0,lastStep:0,nextStep:1,getCurrentStep:l.computed(()=>d.value[f.currentStep]),getLastStep:l.computed(()=>d.value[f.lastStep]),getNextStep:l.computed(()=>d.value[f.nextStep])}),h=l.computed(()=>f.currentStep===d.value.length-1?n.buttonLabels.end:n.buttonLabels.next),p=()=>{window.addEventListener("resize",U),window.addEventListener("scroll",U,!0)},m=()=>{window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)},y=()=>{if(localStorage.getItem("tour-"+n.name)==="true")return;n.saveProgress?f.currentStep=parseInt(localStorage.getItem("tour-"+n.name)||"0"):f.currentStep=0;const L=async()=>{if(await E(f.currentStep),!a.value){const N=document.querySelector(f.getCurrentStep.target);a.value=U2e(N,c.value,{position:f.getCurrentStep.placement||"right",margin:n.margin||8})}O(),p()};n.autoStart?setTimeout(L,n.startDelay):L(),e("onTourStart")},b=async()=>{var L,N;f.currentStep<d.value.length&&f.getCurrentStep.onAfter&&await f.getCurrentStep.onAfter(),n.backdrop&&((L=document.querySelector(`#${o}`))==null||L.setAttribute("data-hidden","")),(n.highlight||f.getLastStep.highlight)&&document.querySelectorAll(".tour-highlight").forEach($=>$.classList.remove("tour-highlight")),(N=c.value)==null||N.setAttribute("data-hidden",""),m(),e("onTourStop")},w=L=>{b(),f.currentStep=0,f.lastStep=0,f.nextStep=1,localStorage.removeItem("tour-"+n.name),L&&y()},v=async()=>{if(f.getCurrentStep.onAfter&&await f.getCurrentStep.onAfter(),f.lastStep=f.currentStep,f.currentStep++,f.currentStep>=d.value.length){T();return}await E(f.currentStep),f.nextStep=f.currentStep+1,O()},k=async()=>{var L,N;if(await((N=(L=f.getCurrentStep).onAfter)==null?void 0:N.call(L)),await E(f.lastStep),f.currentStep=f.lastStep,f.lastStep--,f.lastStep<0&&(f.lastStep=0),f.currentStep<0){T();return}f.nextStep=f.currentStep+1,O()},C=()=>{b(),e("onTourSnooze")},T=()=>{b(),u.value=!1,localStorage.removeItem("tour-"+n.name),e("onTourEnd")},S=async L=>{await E(L),f.currentStep=L,f.lastStep=L-1,f.lastStep<0&&(f.lastStep=0),f.nextStep=L+1,O()},E=async L=>{var N,$,R,q;(N=c.value)==null||N.setAttribute("data-hidden",""),await((R=($=d.value[L])==null?void 0:$.onBefore)==null?void 0:R.call($)),(q=c.value)==null||q.removeAttribute("data-hidden")},O=async()=>{var L,N,$,R,q,re;if(I(),P(),(L=c.value)==null||L.setAttribute("data-hidden",""),f.getCurrentStep.tooltipWidth?(N=c.value)==null||N.style.setProperty("width",f.getCurrentStep.tooltipWidth):($=c.value)==null||$.style.removeProperty("width"),!n.noScroll&&!f.getCurrentStep.noScroll){const ue=document.querySelector(f.getCurrentStep.target);if(ue){const K=ue.getBoundingClientRect();K.top>=0&&K.left>=0&&K.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&K.right<=(window.innerWidth||document.documentElement.clientWidth)||ue.scrollIntoView({behavior:"smooth",block:"center"})}}(R=c.value)==null||R.removeAttribute("data-hidden"),(re=c.value)==null||re.setAttribute("data-arrow",((q=a.value)==null?void 0:q.update({reference:document.querySelector(f.getCurrentStep.target),position:f.getCurrentStep.placement||"right"}))||"right"),n.saveProgress&&localStorage.setItem("tour-"+n.name,f.currentStep.toString()),e("onTourStep")},I=()=>{if(document.querySelectorAll(".tour-highlight").forEach($=>$.classList.remove("tour-highlight")),!(n.highlight&&f.getCurrentStep.highlight!==!1||f.getCurrentStep.highlight===!0))return;const N=document.querySelector(f.getCurrentStep.target);N==null||N.classList.add("tour-highlight")},P=()=>{const L=document.querySelector(`#${o}`);if(!n.backdrop||!L){L==null||L.setAttribute("data-hidden","");return}const N=document.querySelector(f.getCurrentStep.target);if(!N){L.setAttribute("data-hidden","");return}const $=N.getBoundingClientRect(),R=f.getCurrentStep.clipPadding??0,q=`path('M 0,0 L 0,${window.innerHeight} L ${window.innerWidth},${window.innerHeight} L ${window.innerWidth},0 Z M ${$.left-R},${$.top-R} L ${$.right+R},${$.top-R} L ${$.right+R},${$.bottom+R} L ${$.left-R},${$.bottom+R} Z')`;L.style.clipPath=q,L.removeAttribute("data-hidden")},D=()=>{u.value=!u.value},B=L=>{u.value=!1,localStorage.setItem("tour-"+n.name,L.toString()),y()},V=L=>Number(localStorage.getItem("tour-"+n.name))>=L,U=()=>{f.getCurrentStep&&P()};return l.onMounted(()=>{c.value=document.querySelector(`#${i}`),n.autoStart&&y()}),l.onUnmounted(()=>{m()}),t({startTour:y,nextStep:v,lastStep:k,endTour:T,stopTour:b,snoozeTour:C,goToStep:S,resetTour:w}),{_CurrentStep:f,getNextLabel:h,startTour:y,nextStep:v,lastStep:k,endTour:T,stopTour:b,snoozeTour:C,goToStep:S,resetTour:w,props:n,tooltipId:i,backdropId:o,arrowId:s,showPopover:u,togglePopover:D,startStepFromPopover:B,isStepViewed:V,visibleSteps:d}}}),W2e={class:"tour-popover"},q2e={key:0,class:"tour-steps-container"},K2e={class:"mt-[1px]"},G2e={class:"popover-heading"},Y2e={class:"step-list"},Q2e={class:"text-black"},X2e={class:"text-black/70"},J2e=["onClick"],efe=["id"],tfe=["id"],nfe={class:"tour-title"},rfe=["innerHTML"],ife={class:"tour-actions"},ofe={class:"flex items-center gap-6"},sfe={class:"flex gap-1"},afe=["onClick"],lfe={class:"flex items-center gap-1"},cfe=["id"];function ufe(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("i18n-t");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",W2e,[n.showPopover?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"tour-fab",onClick:e[0]||(e[0]=(...c)=>n.togglePopover&&n.togglePopover(...c))},[l.createVNode(s,{icon:"quore-glyph",type:"",size:"sm",color:"white"})])),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.showPopover?(l.openBlock(),l.createElementBlock("div",q2e,[l.createElementVNode("button",{class:"hide-button",onClick:e[1]||(e[1]=(...c)=>n.togglePopover&&n.togglePopover(...c))},[l.createElementVNode("span",K2e,l.toDisplayString(n.$t("HC_HIDE")),1),l.createVNode(s,{icon:"close",type:"",size:"sm",color:"inkwell-30"})]),l.createElementVNode("div",G2e,[l.createVNode(a,{keypath:"HC_CONTINUE_THE_TOUR",tag:"div",scope:"global",class:"flex items-center"},{icon:l.withCtx(()=>[l.createVNode(s,{icon:"quore-glyph",type:"",size:"lg",color:"green-quore",class:"mx-1"})]),_:1})]),l.createElementVNode("div",Y2e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.visibleSteps,(c,u)=>(l.openBlock(),l.createElementBlock("div",{key:u,class:l.normalizeClass(["step-item",{viewed:n.isStepViewed(u)}])},[l.createElementVNode("div",null,[l.createElementVNode("span",Q2e,l.toDisplayString(u+1)+".",1),l.createTextVNode(),l.createElementVNode("span",X2e,l.toDisplayString(c.title),1)]),l.createElementVNode("button",{class:l.normalizeClass(["step-button",{viewed:n.isStepViewed(u)}]),onClick:d=>n.startStepFromPopover(u)},l.toDisplayString(n.isStepViewed(u)?n.$t("HC_OPEN"):n.$t("HC_START")),11,J2e)],2))),128))]),l.createElementVNode("button",{class:"text-blue-10 text-center mt-5",onClick:e[2]||(e[2]=c=>n.endTour())},l.toDisplayString(n.$t("HC_I_DONT_NEED_HELP")),1)])):l.createCommentVNode("",!0)]),_:1})]),l.createElementVNode("div",{id:n.backdropId,class:"tour-backdrop","data-hidden":!0},null,8,efe),l.createElementVNode("div",{id:n.tooltipId,class:"tour-tooltip",role:"tooltip","data-arrow":"r","data-hidden":""},[n._CurrentStep.getCurrentStep?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{class:"close-button",onClick:e[3]||(e[3]=l.withModifiers(c=>n.snoozeTour(),["prevent"]))},[l.createVNode(s,{icon:"close",size:"sm",color:"inkwell-40",type:""})]),l.renderSlot(n.$slots,"header",{currentStep:n._CurrentStep.getCurrentStep},()=>[l.createElementVNode("div",nfe,l.toDisplayString(n._CurrentStep.getCurrentStep.title),1)]),l.renderSlot(n.$slots,"body",{currentStep:n._CurrentStep.getCurrentStep},()=>[typeof n._CurrentStep.getCurrentStep.content=="object"?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n._CurrentStep.getCurrentStep.content),{key:0})):(l.openBlock(),l.createElementBlock("div",{key:1,class:"tour-content",innerHTML:n._CurrentStep.getCurrentStep.content},null,8,rfe))]),l.renderSlot(n.$slots,"footer",{currentStep:n._CurrentStep.getCurrentStep,snoozeTour:n.snoozeTour,lastStep:n.lastStep,nextStep:n.nextStep,buttonLabels:n.props.buttonLabels},()=>[l.createElementVNode("div",ife,[l.createElementVNode("div",ofe,[n.props.hideSnooze?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"snooze-button",onClick:e[4]||(e[4]=l.withModifiers(c=>n.snoozeTour(),["prevent"]))},l.toDisplayString(n.props.buttonLabels.snooze),1)),l.createElementVNode("div",sfe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.visibleSteps,(c,u)=>(l.openBlock(),l.createElementBlock("button",{key:u,onClick:d=>n.goToStep(u),class:l.normalizeClass(["w-2 h-2 rounded-full",n._CurrentStep.currentStep===u?"step-button-active bg-blue-20 border border-gray-30 scale-125":"step-button bg-blue-5"])},null,10,afe))),128))])]),l.createElementVNode("div",lfe,[n._CurrentStep.lastStep<n._CurrentStep.currentStep?(l.openBlock(),l.createElementBlock("button",{key:0,class:"back-button",onClick:e[5]||(e[5]=l.withModifiers(c=>n.lastStep(),["prevent"]))},l.toDisplayString(n.props.buttonLabels.back),1)):l.createCommentVNode("",!0),l.createElementVNode("button",{class:"next-button",onClick:e[6]||(e[6]=l.withModifiers(c=>n.nextStep(),["prevent"]))},l.toDisplayString(n.getNextLabel),1)])])])],64)):l.createCommentVNode("",!0),n.props.hideArrow?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,id:n.arrowId,class:"tour-arrow"},null,8,cfe))],8,tfe)],64)}const dfe=me(Z2e,[["render",ufe]]),ffe={install:({config:n,provide:e})=>{n.globalProperties.$datetime=rt,e("$datetime",rt)}};function Bf(n){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bf(n)}function UD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ev(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?UD(Object(t),!0).forEach(function(r){hfe(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):UD(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function hfe(n,e,t){return e=pfe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pfe(n){var e=mfe(n,"string");return Bf(e)=="symbol"?e:String(e)}function mfe(n,e){if(Bf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var ZD={ripple:!1,inputStyle:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[It.STARTS_WITH,It.CONTAINS,It.NOT_CONTAINS,It.ENDS_WITH,It.EQUALS,It.NOT_EQUALS],numeric:[It.EQUALS,It.NOT_EQUALS,It.LESS_THAN,It.LESS_THAN_OR_EQUAL_TO,It.GREATER_THAN,It.GREATER_THAN_OR_EQUAL_TO],date:[It.DATE_IS,It.DATE_IS_NOT,It.DATE_BEFORE,It.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},gfe=Symbol();function yfe(n,e,t,r){if(n!==e){var i=document.getElementById(t),o=i.cloneNode(!0),s=i.getAttribute("href").replace(n,e);o.setAttribute("id",t+"-clone"),o.setAttribute("href",s),o.addEventListener("load",function(){i.remove(),o.setAttribute("id",t),r&&r()}),i.parentNode&&i.parentNode.insertBefore(o,i.nextSibling)}}var bfe={install:function(e,t){var r=t?ev(ev({},ZD),t):ev({},ZD),i={config:l.reactive(r),changeTheme:yfe};e.config.globalProperties.$primevue=i,e.provide(gfe,i)}};const wfe={global:{css:`
387
+ `);this.responsiveStyleElement.innerHTML=o}},destroyResponsiveStyle:function(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(e){var t=e||this.processedData;if(t&&this.paginator){var r=this.lazy?0:this.d_first;return t.slice(r,r+this.d_rows)}return t},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(e){return z.isNotEmpty(e)}},computed:{columns:function(){var e=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var t=[],r=_f(this.d_columnOrder),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=this.findColumnByKey(e,o);s&&!this.columnProp(s,"hidden")&&t.push(s)}}catch(a){r.e(a)}finally{r.f()}return[].concat(t,et(e.filter(function(a){return t.indexOf(a)<0})))}return e},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var e,t=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return t.columnProp(r,"type")==="header"})},footerColumnGroup:function(){var e,t=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return t.columnProp(r,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var e,t=this.value||[];return!this.lazy&&!((e=this.virtualScrollerOptions)!==null&&e!==void 0&&e.lazy)&&t&&t.length&&(this.hasFilters&&(t=this.filter(t)),this.sorted&&(this.sortMode==="single"?t=this.sortSingle(t):this.sortMode==="multiple"&&(t=this.sortMultiple(t)))),t},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var e=this.processedData;return e?e.length:0},empty:function(){var e=this.processedData;return!e||e.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var e=this;if(this.selectAll!==null)return this.selectAll;var t=this.frozenValue?[].concat(et(this.frozenValue),et(this.processedData)):this.processedData;return z.isNotEmpty(t)&&this.selection&&Array.isArray(this.selection)&&t.every(function(r){return e.selection.some(function(i){return e.equals(i,r)})})},attributeSelector:function(){return zr()},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},virtualScrollerDisabled:function(){return z.isEmpty(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:iD,DTTableHeader:PD,DTTableBody:vD,DTTableFooter:ED,DTVirtualScroller:Fw,ArrowDownIcon:AO,ArrowUpIcon:TO,SpinnerIcon:cf}};function Lf(n){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lf(n)}function $D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function VD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$D(Object(t),!0).forEach(function(r){n2e(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$D(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function n2e(n,e,t){return e=r2e(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r2e(n){var e=i2e(n,"string");return Lf(e)=="symbol"?e:String(e)}function i2e(n,e){if(Lf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function o2e(n,e,t,r,i,o){var s=l.resolveComponent("SpinnerIcon"),a=l.resolveComponent("DTPaginator"),c=l.resolveComponent("DTTableHeader"),u=l.resolveComponent("DTTableBody"),d=l.resolveComponent("DTTableFooter"),f=l.resolveComponent("DTVirtualScroller");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:n.cx("root"),"data-scrollselectors":".p-datatable-wrapper"},n.ptmi("root")),[l.renderSlot(n.$slots,"default"),n.loading?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:n.cx("loadingOverlay")},n.ptm("loadingOverlay")),[n.$slots.loading?l.renderSlot(n.$slots,"loading",{key:0}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.$slots.loadingicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.loadingicon),{key:0,class:l.normalizeClass(n.cx("loadingIcon"))},null,8,["class"])):n.loadingIcon?(l.openBlock(),l.createElementBlock("i",l.mergeProps({key:1,class:[n.cx("loadingIcon"),"pi-spin",n.loadingIcon]},n.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,spin:"",class:n.cx("loadingIcon")},n.ptm("loadingIcon")),null,16,["class"]))],64))],16)):l.createCommentVNode("",!0),n.$slots.header?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:n.cx("header")},n.ptm("header")),[l.renderSlot(n.$slots,"header")],16)):l.createCommentVNode("",!0),o.paginatorTop?(l.openBlock(),l.createBlock(a,{key:2,rows:i.d_rows,first:i.d_first,totalRecords:o.totalRecordsLength,pageLinkSize:n.pageLinkSize,template:n.paginatorTemplate,rowsPerPageOptions:n.rowsPerPageOptions,currentPageReportTemplate:n.currentPageReportTemplate,class:l.normalizeClass(n.cx("paginator")),onPage:e[0]||(e[0]=function(h){return o.onPage(h)}),alwaysShow:n.alwaysShowPaginator,unstyled:n.unstyled,pt:n.ptm("paginator")},l.createSlots({_:2},[n.$slots.paginatorstart?{name:"start",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorstart")]}),key:"0"}:void 0,n.$slots.paginatorend?{name:"end",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorend")]}),key:"1"}:void 0,n.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorfirstpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"2"}:void 0,n.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorprevpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"3"}:void 0,n.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatornextpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"4"}:void 0,n.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorlastpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"5"}:void 0,n.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorjumptopagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"6"}:void 0,n.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorrowsperpagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({class:n.cx("wrapper"),style:[n.sx("wrapper"),{maxHeight:o.virtualScrollerDisabled?n.scrollHeight:""}]},n.ptm("wrapper")),[l.createVNode(f,l.mergeProps({ref:"virtualScroller"},n.virtualScrollerOptions,{items:o.processedData,columns:o.columns,style:n.scrollHeight!=="flex"?{height:n.scrollHeight}:void 0,scrollHeight:n.scrollHeight!=="flex"?void 0:"100%",disabled:o.virtualScrollerDisabled,loaderDisabled:"",inline:"",autoSize:"",showSpacer:!1,pt:n.ptm("virtualScroller")}),{content:l.withCtx(function(h){return[l.createElementVNode("table",l.mergeProps({ref:"table",role:"table",class:[n.cx("table"),n.tableClass],style:[n.tableStyle,h.spacerStyle]},VD(VD({},n.tableProps),n.ptm("table"))),[l.createVNode(c,{columnGroup:o.headerColumnGroup,columns:h.columns,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,groupRowSortField:o.groupRowSortField,reorderableColumns:n.reorderableColumns,resizableColumns:n.resizableColumns,allRowsSelected:o.allRowsSelected,empty:o.empty,sortMode:n.sortMode,sortField:i.d_sortField,sortOrder:i.d_sortOrder,multiSortMeta:i.d_multiSortMeta,filters:i.d_filters,filtersStore:n.filters,filterDisplay:n.filterDisplay,filterInputProps:n.filterInputProps,onColumnClick:e[1]||(e[1]=function(p){return o.onColumnHeaderClick(p)}),onColumnMousedown:e[2]||(e[2]=function(p){return o.onColumnHeaderMouseDown(p)}),onFilterChange:o.onFilterChange,onFilterApply:o.onFilterApply,onColumnDragstart:e[3]||(e[3]=function(p){return o.onColumnHeaderDragStart(p)}),onColumnDragover:e[4]||(e[4]=function(p){return o.onColumnHeaderDragOver(p)}),onColumnDragleave:e[5]||(e[5]=function(p){return o.onColumnHeaderDragLeave(p)}),onColumnDrop:e[6]||(e[6]=function(p){return o.onColumnHeaderDrop(p)}),onColumnResizestart:e[7]||(e[7]=function(p){return o.onColumnResizeStart(p)}),onCheckboxChange:e[8]||(e[8]=function(p){return o.toggleRowsWithCheckbox(p)}),unstyled:n.unstyled,pt:n.pt},null,8,["columnGroup","columns","rowGroupMode","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","allRowsSelected","empty","sortMode","sortField","sortOrder","multiSortMeta","filters","filtersStore","filterDisplay","filterInputProps","onFilterChange","onFilterApply","unstyled","pt"]),n.frozenValue?(l.openBlock(),l.createBlock(u,{key:0,ref:"frozenBodyRef",value:n.frozenValue,frozenRow:!0,columns:h.columns,first:i.d_first,dataKey:n.dataKey,selection:n.selection,selectionKeys:i.d_selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:i.d_editingRowKeys,templates:n.$slots,responsiveLayout:n.responsiveLayout,isVirtualScrollerDisabled:!0,onRowgroupToggle:o.toggleRowGroup,onRowClick:e[9]||(e[9]=function(p){return o.onRowClick(p)}),onRowDblclick:e[10]||(e[10]=function(p){return o.onRowDblClick(p)}),onRowRightclick:e[11]||(e[11]=function(p){return o.onRowRightClick(p)}),onRowTouchend:o.onRowTouchEnd,onRowKeydown:o.onRowKeyDown,onRowMousedown:o.onRowMouseDown,onRowDragstart:e[12]||(e[12]=function(p){return o.onRowDragStart(p)}),onRowDragover:e[13]||(e[13]=function(p){return o.onRowDragOver(p)}),onRowDragleave:e[14]||(e[14]=function(p){return o.onRowDragLeave(p)}),onRowDragend:e[15]||(e[15]=function(p){return o.onRowDragEnd(p)}),onRowDrop:e[16]||(e[16]=function(p){return o.onRowDrop(p)}),onRowToggle:e[17]||(e[17]=function(p){return o.toggleRow(p)}),onRadioChange:e[18]||(e[18]=function(p){return o.toggleRowWithRadio(p)}),onCheckboxChange:e[19]||(e[19]=function(p){return o.toggleRowWithCheckbox(p)}),onCellEditInit:e[20]||(e[20]=function(p){return o.onCellEditInit(p)}),onCellEditComplete:e[21]||(e[21]=function(p){return o.onCellEditComplete(p)}),onCellEditCancel:e[22]||(e[22]=function(p){return o.onCellEditCancel(p)}),onRowEditInit:e[23]||(e[23]=function(p){return o.onRowEditInit(p)}),onRowEditSave:e[24]||(e[24]=function(p){return o.onRowEditSave(p)}),onRowEditCancel:e[25]||(e[25]=function(p){return o.onRowEditCancel(p)}),editingMeta:i.d_editingMeta,onEditingMetaChange:o.onEditingMetaChange,unstyled:n.unstyled,pt:n.pt},null,8,["value","columns","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"])):l.createCommentVNode("",!0),l.createVNode(u,{ref:"bodyRef",value:o.dataToRender(h.rows),class:l.normalizeClass(h.styleClass),columns:h.columns,empty:o.empty,first:i.d_first,dataKey:n.dataKey,selection:n.selection,selectionKeys:i.d_selectionKeys,selectionMode:n.selectionMode,contextMenu:n.contextMenu,contextMenuSelection:n.contextMenuSelection,rowGroupMode:n.rowGroupMode,groupRowsBy:n.groupRowsBy,expandableRowGroups:n.expandableRowGroups,rowClass:n.rowClass,rowStyle:n.rowStyle,editMode:n.editMode,compareSelectionBy:n.compareSelectionBy,scrollable:n.scrollable,expandedRowIcon:n.expandedRowIcon,collapsedRowIcon:n.collapsedRowIcon,expandedRows:n.expandedRows,expandedRowGroups:n.expandedRowGroups,editingRows:n.editingRows,editingRowKeys:i.d_editingRowKeys,templates:n.$slots,responsiveLayout:n.responsiveLayout,virtualScrollerContentProps:h,isVirtualScrollerDisabled:o.virtualScrollerDisabled,onRowgroupToggle:o.toggleRowGroup,onRowClick:e[26]||(e[26]=function(p){return o.onRowClick(p)}),onRowDblclick:e[27]||(e[27]=function(p){return o.onRowDblClick(p)}),onRowRightclick:e[28]||(e[28]=function(p){return o.onRowRightClick(p)}),onRowTouchend:o.onRowTouchEnd,onRowKeydown:function(m){return o.onRowKeyDown(m,h)},onRowMousedown:o.onRowMouseDown,onRowDragstart:e[29]||(e[29]=function(p){return o.onRowDragStart(p)}),onRowDragover:e[30]||(e[30]=function(p){return o.onRowDragOver(p)}),onRowDragleave:e[31]||(e[31]=function(p){return o.onRowDragLeave(p)}),onRowDragend:e[32]||(e[32]=function(p){return o.onRowDragEnd(p)}),onRowDrop:e[33]||(e[33]=function(p){return o.onRowDrop(p)}),onRowToggle:e[34]||(e[34]=function(p){return o.toggleRow(p)}),onRadioChange:e[35]||(e[35]=function(p){return o.toggleRowWithRadio(p)}),onCheckboxChange:e[36]||(e[36]=function(p){return o.toggleRowWithCheckbox(p)}),onCellEditInit:e[37]||(e[37]=function(p){return o.onCellEditInit(p)}),onCellEditComplete:e[38]||(e[38]=function(p){return o.onCellEditComplete(p)}),onCellEditCancel:e[39]||(e[39]=function(p){return o.onCellEditCancel(p)}),onRowEditInit:e[40]||(e[40]=function(p){return o.onRowEditInit(p)}),onRowEditSave:e[41]||(e[41]=function(p){return o.onRowEditSave(p)}),onRowEditCancel:e[42]||(e[42]=function(p){return o.onRowEditCancel(p)}),editingMeta:i.d_editingMeta,onEditingMetaChange:o.onEditingMetaChange,unstyled:n.unstyled,pt:n.pt},null,8,["value","class","columns","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"]),o.hasSpacerStyle(h.spacerStyle)?(l.openBlock(),l.createElementBlock("tbody",l.mergeProps({key:1,class:n.cx("virtualScrollerSpacer"),style:{height:"calc(".concat(h.spacerStyle.height," - ").concat(h.rows.length*h.itemSize,"px)")}},n.ptm("virtualScrollerSpacer")),null,16)):l.createCommentVNode("",!0),l.createVNode(d,{columnGroup:o.footerColumnGroup,columns:h.columns,pt:n.pt},null,8,["columnGroup","columns","pt"])],16)]}),_:1},16,["items","columns","style","scrollHeight","disabled","pt"])],16),n.$slots.footer?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:3,class:n.cx("footer")},n.ptm("footer")),[l.renderSlot(n.$slots,"footer")],16)):l.createCommentVNode("",!0),o.paginatorBottom?(l.openBlock(),l.createBlock(a,{key:4,rows:i.d_rows,first:i.d_first,totalRecords:o.totalRecordsLength,pageLinkSize:n.pageLinkSize,template:n.paginatorTemplate,rowsPerPageOptions:n.rowsPerPageOptions,currentPageReportTemplate:n.currentPageReportTemplate,class:l.normalizeClass(n.cx("paginator")),onPage:e[43]||(e[43]=function(h){return o.onPage(h)}),alwaysShow:n.alwaysShowPaginator,unstyled:n.unstyled,pt:n.ptm("paginator")},l.createSlots({_:2},[n.$slots.paginatorstart?{name:"start",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorstart")]}),key:"0"}:void 0,n.$slots.paginatorend?{name:"end",fn:l.withCtx(function(){return[l.renderSlot(n.$slots,"paginatorend")]}),key:"1"}:void 0,n.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorfirstpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"2"}:void 0,n.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorprevpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"3"}:void 0,n.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatornextpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"4"}:void 0,n.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorlastpagelinkicon",{class:l.normalizeClass(h.class)})]}),key:"5"}:void 0,n.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorjumptopagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"6"}:void 0,n.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:l.withCtx(function(h){return[l.renderSlot(n.$slots,"paginatorrowsperpagedropdownicon",{class:l.normalizeClass(h.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):l.createCommentVNode("",!0),l.createElementVNode("div",l.mergeProps({ref:"resizeHelper",class:n.cx("resizeHelper"),style:{display:"none"}},n.ptm("resizeHelper")),null,16),n.reorderableColumns?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:5,ref:"reorderIndicatorUp",class:n.cx("reorderIndicatorUp"),style:{position:"absolute",display:"none"}},n.ptm("reorderIndicatorUp")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.reorderindicatorupicon||"ArrowDownIcon")))],16)):l.createCommentVNode("",!0),n.reorderableColumns?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:6,ref:"reorderIndicatorDown",class:n.cx("reorderIndicatorDown"),style:{position:"absolute",display:"none"}},n.ptm("reorderIndicatorDown")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.$slots.reorderindicatordownicon||"ArrowUpIcon")))],16)):l.createCommentVNode("",!0)],16)}RD.render=o2e;var s2e={},a2e={name:"BaseColumn",extends:we,props:{columnKey:{type:null,default:null},field:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},filterField:{type:[String,Function],default:null},dataType:{type:String,default:"text"},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},style:{type:null,default:null},class:{type:String,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},showFilterMenu:{type:Boolean,default:!0},showFilterOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showFilterMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},filterMatchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},excludeGlobalFilter:{type:Boolean,default:!1},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:void 0},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1},alignFrozen:{type:String,default:"left"},exportable:{type:Boolean,default:!0},exportHeader:{type:String,default:null},exportFooter:{type:String,default:null},filterMatchMode:{type:String,default:null},hidden:{type:Boolean,default:!1}},style:s2e,provide:function(){return{$parentInstance:this}}},l2e={name:"Column",extends:a2e,inheritAttrs:!1,inject:["$columns"],mounted:function(){var e;(e=this.$columns)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columns)===null||e===void 0||e.delete(this.$)},render:function(){return null}},c2e={},u2e={name:"BaseColumnGroup",extends:we,props:{type:{type:String,default:null}},style:c2e,provide:function(){return{$parentInstance:this}}},d2e={name:"ColumnGroup",extends:u2e,inheritAttrs:!1,inject:["$columnGroups"],mounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.delete(this.$)},render:function(){return null}},f2e={name:"Row",extends:we,inject:["$rows"],mounted:function(){var e;(e=this.$rows)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$rows)===null||e===void 0||e.delete(this.$)},render:function(){return null}};const h2e="data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%200%20118%2099'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M104.165%2059.815C107.107%2062.7762%20108.893%2066.692%20109.201%2070.8549C109.508%2075.0179%20108.317%2079.1536%20105.842%2082.515L105.642%2082.782L105.412%2083.082L117.521%2095.245C117.828%2095.5546%20118%2095.973%20118%2096.409C118%2096.845%20117.828%2097.2634%20117.521%2097.573C117.232%2097.8651%20116.844%2098.0376%20116.434%2098.0561C116.023%2098.0746%20115.621%2097.9378%20115.307%2097.673L115.207%2097.573L103.122%2085.438L102.822%2085.682C99.4939%2088.3942%2095.2763%2089.772%2090.9889%2089.5476C86.7016%2089.3233%2082.6508%2087.5127%2079.624%2084.468C76.3686%2081.1921%2074.5414%2076.7614%2074.5414%2072.143C74.5414%2067.5247%2076.3686%2063.0939%2079.624%2059.818C81.2316%2058.2001%2083.1433%2056.916%2085.2491%2056.0397C87.3548%2055.1634%2089.6131%2054.7121%2091.8939%2054.7118C94.1747%2054.7115%2096.4331%2055.1622%2098.539%2056.0381C100.645%2056.9139%20102.557%2058.1975%20104.165%2059.815ZM81.935%2062.131C79.2951%2064.7964%2077.8142%2068.3961%2077.8142%2072.1475C77.8142%2075.8989%2079.2951%2079.4986%2081.935%2082.164C83.2368%2083.4792%2084.7865%2084.5233%2086.4944%2085.2358C88.2022%2085.9484%2090.0344%2086.3153%2091.885%2086.3153C93.7355%2086.3153%2095.5678%2085.9484%2097.2756%2085.2358C98.9835%2084.5233%20100.533%2083.4792%20101.835%2082.164C104.475%2079.4986%20105.956%2075.8989%20105.956%2072.1475C105.956%2068.3961%20104.475%2064.7964%20101.835%2062.131C100.533%2060.8158%2098.9835%2059.7717%2097.2756%2059.0592C95.5678%2058.3466%2093.7355%2057.9797%2091.885%2057.9797C90.0344%2057.9797%2088.2022%2058.3466%2086.4944%2059.0592C84.7865%2059.7717%2083.2368%2060.8158%2081.935%2062.131ZM31.4%2075.042V76.442C31.4001%2076.5544%2031.4224%2076.6656%2031.4656%2076.7694C31.5087%2076.8731%2031.5719%2076.9673%2031.6515%2077.0466C31.7311%2077.126%2031.8255%2077.1888%2031.9294%2077.2316C32.0333%2077.2744%2032.1446%2077.2963%2032.257%2077.296H72.357C72.5818%2078.1673%2072.8638%2079.0228%2073.201%2079.857H32.258C31.3506%2079.8589%2030.4796%2079.5003%2029.8366%2078.86C29.1935%2078.2198%2028.8311%2077.3504%2028.829%2076.443V75.043L31.4%2075.042ZM86.162%2022C87.0694%2021.9981%2087.9404%2022.3568%2088.5834%2022.997C89.2265%2023.6372%2089.5889%2024.5066%2089.591%2025.414V51.808C88.7243%2051.9101%2087.8652%2052.0684%2087.019%2052.282V25.414C87.0189%2025.3016%2086.9966%2025.1904%2086.9534%2025.0867C86.9103%2024.9829%2086.8471%2024.8887%2086.7675%2024.8094C86.6879%2024.7301%2086.5935%2024.6672%2086.4896%2024.6244C86.3857%2024.5816%2086.2744%2024.5597%2086.162%2024.56H25.429C25.3166%2024.5597%2025.2053%2024.5816%2025.1014%2024.6244C24.9975%2024.6672%2024.9031%2024.7301%2024.8235%2024.8094C24.7439%2024.8887%2024.6807%2024.9829%2024.6376%2025.0867C24.5944%2025.1904%2024.5721%2025.3016%2024.572%2025.414V69.587C24.5721%2069.6994%2024.5944%2069.8106%2024.6376%2069.9144C24.6807%2070.0181%2024.7439%2070.1123%2024.8235%2070.1916C24.9031%2070.271%2024.9975%2070.3338%2025.1014%2070.3766C25.2053%2070.4194%2025.3166%2070.4413%2025.429%2070.441H71.766C71.697%2071.2932%2071.6806%2072.1488%2071.717%2073.003H25.429C24.5216%2073.0049%2023.6506%2072.6463%2023.0076%2072.006C22.3645%2071.3658%2022.0021%2070.4964%2022%2069.589V25.414C22.0021%2024.5066%2022.3645%2023.6372%2023.0076%2022.997C23.6506%2022.3568%2024.5216%2021.9981%2025.429%2022H86.162ZM77.701%2054.948C77.8695%2054.9484%2078.0362%2054.982%2078.1918%2055.0468C78.3473%2055.1117%2078.4885%2055.2065%2078.6073%2055.3259C78.7262%2055.4453%2078.8204%2055.587%2078.8845%2055.7428C78.9486%2055.8986%2078.9814%2056.0655%2078.981%2056.234C78.9811%2056.2983%2078.9764%2056.3624%2078.967%2056.426C78.557%2056.7693%2078.159%2057.1327%2077.773%2057.516H77.701H34.374C34.0329%2057.516%2033.7058%2057.3805%2033.4647%2057.1393C33.2235%2056.8982%2033.088%2056.5711%2033.088%2056.23C33.088%2055.8889%2033.2235%2055.5618%2033.4647%2055.3207C33.7058%2055.0795%2034.0329%2054.944%2034.374%2054.944L77.701%2054.948ZM92.991%2028.859C93.8984%2028.8571%2094.7694%2029.2158%2095.4124%2029.856C96.0555%2030.4962%2096.4179%2031.3656%2096.42%2032.273V52.168C95.5725%2051.9753%2094.7133%2051.8377%2093.848%2051.756V32.273C93.8479%2032.1606%2093.8256%2032.0494%2093.7824%2031.9457C93.7393%2031.8419%2093.6761%2031.7477%2093.5965%2031.6684C93.5169%2031.5891%2093.4225%2031.5262%2093.3186%2031.4834C93.2147%2031.4406%2093.1034%2031.4187%2092.991%2031.419H91.291V28.858L92.991%2028.859ZM77.701%2046.375C78.0421%2046.375%2078.3692%2046.5105%2078.6103%2046.7517C78.8515%2046.9928%2078.987%2047.3199%2078.987%2047.661C78.987%2048.0021%2078.8515%2048.3292%2078.6103%2048.5703C78.3692%2048.8115%2078.0421%2048.947%2077.701%2048.947H34.374C34.0329%2048.947%2033.7058%2048.8115%2033.4647%2048.5703C33.2235%2048.3292%2033.088%2048.0021%2033.088%2047.661C33.088%2047.3199%2033.2235%2046.9928%2033.4647%2046.7517C33.7058%2046.5105%2034.0329%2046.375%2034.374%2046.375H77.701ZM59.983%2037.801C60.3241%2037.801%2060.6512%2037.9365%2060.8923%2038.1777C61.1335%2038.4188%2061.269%2038.7459%2061.269%2039.087C61.269%2039.4281%2061.1335%2039.7552%2060.8923%2039.9963C60.6512%2040.2375%2060.3241%2040.373%2059.983%2040.373H34.374C34.0329%2040.373%2033.7058%2040.2375%2033.4647%2039.9963C33.2235%2039.7552%2033.088%2039.4281%2033.088%2039.087C33.088%2038.7459%2033.2235%2038.4188%2033.4647%2038.1777C33.7058%2037.9365%2034.0329%2037.801%2034.374%2037.801H59.983Z'%20fill='%238D9AA5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%200C4.2066%200%204.40475%200.0820729%204.55084%200.228164C4.69693%200.374255%204.779%200.572397%204.779%200.779V3.221H7.221C7.41393%203.221%207.6%203.29258%207.74317%203.4219C7.88634%203.55122%207.97643%203.72907%207.996%203.921V4.001C7.996%204.2076%207.91393%204.40575%207.76784%204.55184C7.62175%204.69793%207.4236%204.78%207.217%204.78H4.779V7.222C4.779%207.41493%204.70742%207.601%204.5781%207.74417C4.44878%207.88734%204.27093%207.97744%204.079%207.997H3.999C3.7924%207.997%203.59425%207.91493%203.44816%207.76884C3.30207%207.62275%203.22%207.4246%203.22%207.218V4.779H0.779C0.585538%204.78002%200.398617%204.70902%200.254623%204.57981C0.110629%204.45061%200.0198653%204.27244%200%204.08V4C0%203.7934%200.082073%203.59526%200.228164%203.44916C0.374255%203.30307%200.572396%203.221%200.779%203.221H3.221V0.779C3.221%200.586071%203.29258%200.400004%203.4219%200.256831C3.55122%200.113658%203.72907%200.023565%203.921%200.00399971L4%200Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M11%2099C11.5304%2099%2012.0391%2098.7893%2012.4142%2098.4142C12.7893%2098.0391%2013%2097.5304%2013%2097C13%2096.4696%2012.7893%2095.9609%2012.4142%2095.5858C12.0391%2095.2107%2011.5304%2095%2011%2095C10.4696%2095%209.96086%2095.2107%209.58579%2095.5858C9.21071%2095.9609%209%2096.4696%209%2097C9%2097.5304%209.21071%2098.0391%209.58579%2098.4142C9.96086%2098.7893%2010.4696%2099%2011%2099Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M104.518%2015.035C103.055%2015.035%20101.651%2014.4538%20100.617%2013.4192C99.5817%2012.3846%2099.0003%2010.9813%2099%209.518C99%208.05454%2099.5814%206.65101%20100.616%205.61619C101.651%204.58136%20103.055%204%20104.518%204C105.981%204%20107.385%204.58136%20108.42%205.61619C109.455%206.65101%20110.036%208.05454%20110.036%209.518C110.036%2010.9813%20109.454%2012.3846%20108.419%2013.4192C107.385%2014.4538%20105.981%2015.035%20104.518%2015.035ZM104.518%2013.035C105.451%2013.035%20106.346%2012.6645%20107.005%2012.005C107.665%2011.3454%20108.036%2010.4509%20108.036%209.518C108.036%209.05601%20107.945%208.59854%20107.768%208.17172C107.591%207.7449%20107.332%207.35707%20107.006%207.0304C106.679%206.70372%20106.291%206.44459%20105.864%206.26779C105.437%206.091%20104.98%206%20104.518%206C103.585%206%20102.69%206.37065%20102.03%207.0304C101.371%207.69015%20101%208.58497%20101%209.518C101%2010.4509%20101.371%2011.3454%20102.031%2012.005C102.69%2012.6645%20103.585%2013.035%20104.518%2013.035Z'%20fill='%238D9AA5'/%3e%3c/svg%3e",p2e=l.defineComponent({name:"QTable",components:{Column:l2e,ColumnGroup:d2e,DataTable:RD,Row:f2e,QBadge:Da,QTooltip:t6},props:{id:{type:String,default:""},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},sortBy:{type:String,default:""},itemsPerPage:{type:Number,default:20},currentPage:{type:Number,default:1},searchPlaceholder:{type:String,default:""},filters:{type:Object,default:()=>({})},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},globalFilters:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isMultiSort:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},rowSelect:{type:Function,default:()=>{}},rowUnselect:{type:Function,default:()=>{}},fixedTopOffset:{type:Number,default:0},skeletonRows:{type:Number,default:6},leftScrollAmount:{type:Number,default:200},rightScrollAmount:{type:Number,default:200},overrideFrozen:{type:Boolean,default:!1},searchDelay:{type:Number,default:300}},emits:["is-empty"],setup(n,{emit:e}){const{deviceType:t}=n6(),r=l.ref(),i=l.ref(!1),o=l.ref(!1),s=l.ref(!1),a=l.ref(!1),c=l.ref(!0),u=l.ref(h2e),d=l.ref(),f=l.ref(""),h=l.ref([]),p=l.ref(),m=l.ref(0),y=l.ref({global:{matchMode:It.CONTAINS,value:""},...n.filters}),b=l.computed(()=>t.value==="desktop"),w=l.computed(()=>{var R;const $=!n.loading&&((R=r.value)==null?void 0:R.empty);return e("is-empty",$),$}),v=l.computed(()=>{const $=[],R={};let q=0;return n.columns.forEach(re=>{R[re.key]=""}),[...Array(n.skeletonRows)].forEach(()=>{$.push({...R,shimmer:q%2?"bg-gray-10":"bg-gray-30"}),q++}),$}),k=()=>{var $,R;d.value.scrollWidth>d.value.clientWidth?(i.value=!0,($=d.value)==null||$.classList.add("is-scrolled")):(i.value=!1,(R=d.value)==null||R.classList.remove("is-scrolled")),d.value&&d.value.setAttribute("data-scroll",d.value.scrollLeft.toString()),P(),S(),E(),L()},C=$=>{n.rowSelect($)},T=$=>{n.rowUnselect($)},S=()=>{var re,ce;const $=p.value.offsetTop-n.fixedTopOffset,R=document.querySelector('div[data-pc-section="header"]'),q=(re=d.value)==null?void 0:re.querySelector("thead");if(o.value=!!n.fixedTopOffset&&p.value&&window.scrollY>=$,o.value)if(R.style.top=n.fixedTopOffset+"px",i.value)q.style.top="";else{const K=n.fixedTopOffset+R.clientHeight+1;q.style.top=K+"px"}else R.style.top="",q.style.top="";if(o.value&&i.value){const K=document.querySelector('div[data-pc-section="header"] > div[data-pc-section="wrapper"]');(ce=K==null?void 0:K.querySelectorAll("th"))==null||ce.forEach((H,j)=>{var J;const F=(J=d.value)==null?void 0:J.querySelector(`th:nth-child(${j+1})`),G=F==null?void 0:F.getAttribute("aria-sort");H==null||H.setAttribute("aria-sort",G),H.classList.contains("actions")&&(H.style.minWidth=(F==null?void 0:F.clientWidth)+"px")})}P(),E(),L()},E=()=>{const R=d.value.scrollWidth-d.value.clientWidth;c.value=Math.abs(d.value.scrollLeft)<=1,a.value=Math.abs(d.value.scrollLeft-R)<=1},O=()=>{s.value=!1,n.columns.forEach(($,R)=>{$.frozen&&p.value.querySelectorAll(`th:nth-child(${R+1}), td:nth-child(${R+1})`).forEach(q=>{q.classList.add("sticky"),R===0?q.classList.add("left-0"):R===n.columns.length-1&&$.frozen&&(q.classList.add("right-0"),s.value=!0)})})},I=()=>{var R,q,re,ce;const $=(R=d.value)==null?void 0:R.cloneNode(!0);if($){const K=document.querySelector('div[data-pc-section="header"]');K==null||K.append($);const H=K==null?void 0:K.querySelector('div[data-pc-section="wrapper"]');(q=H==null?void 0:H.querySelector("tbody"))==null||q.remove(),H==null||H.addEventListener("scroll",()=>{d.value.scrollLeft=H.scrollLeft,E(),L()}),(re=d.value)==null||re.addEventListener("scroll",()=>{var j;H.scrollLeft=d.value.scrollLeft,E(),(j=d.value)==null||j.setAttribute("data-scroll",d.value.scrollLeft.toString()),L()}),(ce=H==null?void 0:H.querySelectorAll("th"))==null||ce.forEach((j,F)=>{j==null||j.addEventListener("click",async()=>{var G;if(o.value&&i.value){const J=(G=d.value)==null?void 0:G.querySelector(`th:nth-child(${F+1})`);await(J==null?void 0:J.click());const ae=J==null?void 0:J.getAttribute("aria-sort");j==null||j.setAttribute("aria-sort",ae)}})})}},P=()=>{const $=d.value.clientWidth+"px",R=document.querySelector('div[data-pc-section="header"]'),q=R.querySelector('div[data-pc-section="wrapper"] thead');R.style.width=$,d.value.querySelector("thead").style.width=$,q&&(q.style.width=$)},D=()=>{if(d.value){const $=-Math.min(n.leftScrollAmount,d.value.scrollLeft),R=o.value?"instant":"smooth";d.value.scrollBy({left:$,behavior:R})}},B=()=>{if(d.value){const $=d.value.scrollWidth-d.value.clientWidth,R=Math.min(n.rightScrollAmount,$-d.value.scrollLeft),q=o.value?"instant":"smooth";d.value.scrollBy({left:R,behavior:q})}},V=()=>{var $,R,q;if(i.value||!b.value){const re=c.value?"hidden":"",ce=a.value?"hidden":"";($=p.value)==null||$.insertAdjacentHTML("beforeend",`<button type="button" class="q-table-scroll-button scroll-button scroll-left ${re}"></button>
388
+ <button type="button" class="q-table-scroll-button scroll-button scroll-right ${ce}"></button>`);const K=l.h(z0,{icon:"chevron-left",type:"",size:"md",class:"p-[0.1875rem]"}),H=l.h(z0,{icon:"chevron-right",type:"",size:"md",class:"p-[0.1875rem]"}),j=(R=p.value)==null?void 0:R.querySelector(".scroll-button.scroll-left"),F=(q=p.value)==null?void 0:q.querySelector(".scroll-button.scroll-right");l.render(K,j),l.render(H,F),j==null||j.addEventListener("click",D),F==null||F.addEventListener("click",B),L()}},U=()=>{var $,R;(R=($=p.value)==null?void 0:$.querySelectorAll(".scroll-button"))==null||R.forEach(q=>{q.remove()})},L=()=>{var j,F,G,J;const $=(j=p.value)==null?void 0:j.querySelector(".scroll-button.scroll-left"),R=(F=p.value)==null?void 0:F.querySelector(".scroll-button.scroll-right"),q=(G=d.value)==null?void 0:G.querySelector("td.sticky:first-child"),re=(J=p.value)==null?void 0:J.getBoundingClientRect(),ce=document.querySelector('div[data-pc-section="header"]'),K=(ce==null?void 0:ce.getBoundingClientRect().height)||0,H=d.value;if(p.value&&re&&H){const ae=(q==null?void 0:q.getBoundingClientRect().width)||0;p.value.style.setProperty("--first-sticky-width",`${ae}px`);const Oe=H.getBoundingClientRect(),be=Math.max(Oe.top,K),Le=Math.min(Oe.bottom,window.innerHeight),pt=be<window.innerHeight&&Le>K,pn=Le-be,$r=be+pn/2;if($&&R)if(pt&&i.value){$.classList.remove("hidden"),R.classList.remove("hidden");const Kn=Math.max(be,Math.min($r,Le-$.offsetHeight));$.style.top=`${Kn}px`,R.style.top=`${Kn}px`,$.style.left=`${re.left+ae+8}px`,R.style.right=`${window.innerWidth-re.right+8}px`}else $.classList.add("hidden"),R.classList.add("hidden");$&&(c.value||!i.value?$.classList.add("hidden"):$.classList.remove("hidden")),R&&(a.value||!i.value?R.classList.add("hidden"):R.classList.remove("hidden"))}},N=q8($=>{y.value.global.value=$},n.searchDelay);return l.watch(f,$=>{N($)}),l.onMounted(()=>{d.value=document.querySelector('div[data-pc-section="wrapper"]'),k(),window.addEventListener("resize",k),window.addEventListener("scroll",S),I(),b.value||V()}),l.onUnmounted(()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",S)}),{dataTableRef:r,horizontalScroll:i,isFixed:o,isLastCellSticky:s,isScrolledToEnd:a,isScrolledToStart:c,noResultsPath:u,scrollableElement:d,scrollLeft:D,scrollRight:B,search:f,selectedRows:h,tableContainer:p,tableFilters:y,tableHeight:m,isDesktop:b,isEmpty:w,skeletonData:v,addScrollButtons:V,onPageResizeOrLoad:k,onSelectRow:C,onUnselectRow:T,removeScrollButtons:U,setSticky:O,mq:Ln,deviceType:t}}}),m2e=["id"],g2e={class:"search-and-filters"},y2e={class:"inspections-search"},b2e={for:"search",class:"search-label"},w2e={key:0,class:"inspection-actions"},v2e={class:"flex relative"},C2e={key:0},k2e={key:1},S2e={key:0,class:"table-empty flex flex-col items-center justify-center"},M2e=["src"];function E2e(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("q-input"),c=l.resolveComponent("q-badge"),u=l.resolveComponent("q-tooltip"),d=l.resolveComponent("column"),f=l.resolveComponent("data-table");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:n.id,class:["table-container",{"is-fixed":n.isFixed},{"using-scroll":n.horizontalScroll},{"is-loading":n.loading},{"scroll-start":n.isScrolledToStart},{"scroll-end":n.isScrolledToEnd},{"is-empty bg-white":n.isEmpty},{"last-cell-sticky":n.isLastCellSticky}],ref:"tableContainer"},{[l.toHandlerKey(n.isDesktop&&"mouseenter")]:e[3]||(e[3]=(...h)=>n.addScrollButtons&&n.addScrollButtons(...h))},{[l.toHandlerKey(n.isDesktop&&"mouseleave")]:e[4]||(e[4]=(...h)=>n.removeScrollButtons&&n.removeScrollButtons(...h))}),[l.createVNode(f,{filters:n.tableFilters,"onUpdate:filters":e[1]||(e[1]=h=>n.tableFilters=h),selection:n.selectedRows,"onUpdate:selection":e[2]||(e[2]=h=>n.selectedRows=h),"global-filter-fields":n.globalFilters,loading:n.loading,"meta-key-selection":!1,"scroll-height":n.horizontalScroll&&n.tableHeight?`${n.tableHeight}px`:"","selection-mode":n.isMultiSelect?"multiple":"single","sort-mode":n.isMultiSort?"multiple":"single",value:n.loading?n.skeletonData:n.modelValue,"data-key":"id","filter-display":"menu",ref:"dataTableRef","removable-sort":"",scrollable:"",onRowSelect:n.onSelectRow,onRowUnselect:n.onUnselectRow,onValueChange:n.setSticky},{header:l.withCtx(()=>[n.hasSearch?l.renderSlot(n.$slots,"search-and-filters",{key:0},()=>[l.createElementVNode("div",g2e,[l.createElementVNode("div",y2e,[n.hasSearch?l.renderSlot(n.$slots,"search",{key:0},()=>[l.createElementVNode("label",b2e,[l.createVNode(s,{class:"mr-2",color:"gray-40",icon:"search",size:"md",type:""}),l.createVNode(a,{id:"search",modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=h=>n.search=h),"hide-clear":!!n.mq.md,placeholder:n.searchPlaceholder||n.$t("HC_SEARCH"),class:"text-base","control-class":"!border-0 !px-0"},null,8,["modelValue","hide-clear","placeholder"])])],!0):l.createCommentVNode("",!0)]),Object.keys(n.tableFilters).length||n.$slots.tableActions?(l.openBlock(),l.createElementBlock("div",w2e,[Object.keys(n.tableFilters).length?l.renderSlot(n.$slots,"filters",{key:0},()=>[l.createVNode(u,{class:"z-[45] ml-2"},{trigger:l.withCtx(()=>[l.createElementVNode("div",v2e,[l.createVNode(s,{class:"filters-icon ml-0",color:"gray-40",icon:"filter",size:"md",onClick:n.filtersAction},null,8,["onClick"]),n.filtersCount?(l.openBlock(),l.createBlock(c,{key:0,class:"filters-count",color:"white"},{text:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.filtersCount),1)]),_:1})):l.createCommentVNode("",!0)])]),content:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_FILTERS")),1)]),_:1})],!0):l.createCommentVNode("",!0),n.$slots.tableActions?l.renderSlot(n.$slots,"tableActions",{key:1},void 0,!0):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])],!0):l.createCommentVNode("",!0)]),empty:l.withCtx(()=>[]),default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.columns,h=>(l.openBlock(),l.createBlock(d,{key:h.key,field:h.key,"filter-field":h.key,header:h.name,sortable:h.sortable,frozen:h.frozen&&!n.overrideFrozen,class:l.normalizeClass([h.key,h.size?`cell-${h.size}`:"",{"text-right":h.key==="actions"}])},{body:l.withCtx(({data:p})=>[n.loading?n.loading?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["animate-shimmer",p.shimmer])},"   ",2)):l.createCommentVNode("",!0):l.renderSlot(n.$slots,h.key,l.normalizeProps(l.mergeProps({key:0},p)),()=>[h.key.match(/\./)?(l.openBlock(),l.createElementBlock("div",k2e,l.toDisplayString(p[h.key.split(".")[0]][h.key.split(".")[1]]),1)):(l.openBlock(),l.createElementBlock("div",C2e,l.toDisplayString(p[h.key]),1))],!0)]),_:2},1032,["field","filter-field","header","sortable","frozen","class"]))),128))]),_:3},8,["filters","selection","global-filter-fields","loading","scroll-height","selection-mode","sort-mode","value","onRowSelect","onRowUnselect","onValueChange"]),n.isEmpty?(l.openBlock(),l.createElementBlock("div",S2e,[l.renderSlot(n.$slots,"no-results-illustration",{},()=>[l.createElementVNode("img",{class:"mb-5",src:n.noResultsPath},null,8,M2e)],!0),l.renderSlot(n.$slots,"no-results-text",l.normalizeProps(l.guardReactiveProps({tableFilters:n.tableFilters})),void 0,!0)])):l.createCommentVNode("",!0)],16,m2e)}const A2e=me(p2e,[["render",E2e],["__scopeId","data-v-d263ecc3"]]),T2e=l.defineComponent({name:"QTag",components:{},props:{tagClass:{type:String,default:""},bgColor:{type:String,default:"bg-green-0"},textColor:{type:String,default:"text-green-20"},shape:{type:String,default:"square"}},setup(n,{slots:e}){return{hasIcon:!!e.icon}}});function x2e(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["tag flex items-center",[n.tagClass,n.bgColor,n.textColor,"tag-"+n.shape,{"has-icon":n.hasIcon}]])},[n.hasIcon?l.renderSlot(n.$slots,"icon",{key:0},void 0,!0):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default",{},void 0,!0)],2)}const I2e=me(T2e,[["render",x2e],["__scopeId","data-v-1a01844c"]]),FD="update:model-value",O2e=l.defineComponent({name:"QTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},controlClass:{type:String,default:""},persistentPlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},rows:{type:Number,default:2},status:{type:String,default:""},textareaClass:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:[FD],setup(n,{attrs:e,emit:t,slots:r}){const i=l.ref(!1),o=l.ref(),s=l.computed(()=>!!r.actions),a=l.computed(()=>!!e.disabled||!!n.isDisabled),c=l.computed(()=>[{[`has-${n.status}`]:n.status&&!a.value},{"is-focused":i.value},{"is-disabled":a.value}]),u=l.computed(()=>["textarea",n.textareaClass,{[n.status]:n.status&&!a.value},{populated:!!n.modelValue&&n.persistentPlaceholder},{"is-focused":i.value&&n.persistentPlaceholder}]),d=()=>{o.value.style.height="auto",o.value.style.height=o.value.scrollHeight+"px"},f=h=>{t(FD,h.target.value)};return l.onMounted(()=>{d()}),{focused:i,disabled:a,rootClasses:c,textarea:o,textareaClasses:u,hasActions:s,resizeTextarea:d,updateValue:f}}}),D2e=["id","disabled","placeholder","rows","value"],N2e={key:0,class:"action flex items-end py-2 pr-4"},P2e=["for"];function _2e(n,e,t,r,i,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([[n.rootClasses,n.controlClass],"control flex"])},[l.createElementVNode("textarea",l.mergeProps({id:String(n.$attrs.id),ref:"textarea",disabled:n.isDisabled,class:[n.textareaClasses],placeholder:n.persistentPlaceholder?"":n.placeholder,rows:n.rows,value:n.modelValue},n.$attrs,{onInput:e[0]||(e[0]=(...s)=>n.updateValue&&n.updateValue(...s)),onFocusin:e[1]||(e[1]=s=>n.focused=!n.focused),onFocusout:e[2]||(e[2]=s=>n.focused=!n.focused),onKeyup:e[3]||(e[3]=(...s)=>n.resizeTextarea&&n.resizeTextarea(...s))}),`
389
+ `,16,D2e),n.hasActions?(l.openBlock(),l.createElementBlock("div",N2e,[l.renderSlot(n.$slots,"actions",{},void 0,!0)])):l.createCommentVNode("",!0),n.persistentPlaceholder?(l.openBlock(),l.createElementBlock("label",{key:1,for:String(n.$attrs.id),class:"placeholder"},l.toDisplayString(n.placeholder),9,P2e)):l.createCommentVNode("",!0)],2)}const L2e=me(O2e,[["render",_2e],["__scopeId","data-v-fda73545"]]),jD="update:modelValue",zD="undo-action",HD="timeout-done",B2e=l.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},transitionClass:{type:String,default:"component-slide-right"},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[jD,zD,HD],setup(n,{emit:e}){const t=l.ref(null),r=l.computed({get:()=>n.modelValue,set:u=>{e(jD,u)}}),i=l.computed(()=>n.variant?"is-"+n.variant:""),o=l.computed(()=>n.position?"toast-fixed "+n.position:""),s=l.computed(()=>n.withTransition&&n.transitionClass),a=()=>{e(zD)},c=()=>{t.value=setTimeout(()=>{r.value=!1,e(HD)},n.duration)};return l.onBeforeUnmount(()=>{t.value&&(clearTimeout(t.value),t.value=null)}),l.watchEffect(()=>{r.value&&n.duration?c():t.value&&(clearTimeout(t.value),t.value=null)}),{show:r,statusClass:i,positionClass:o,computedTransition:s,startTimeout:c,undoAction:a}}}),R2e=["aria-live"],$2e={class:"message flex-grow"},V2e=["aria-label"];function F2e(n,e,t,r,i,o){const s=l.resolveComponent("q-icon");return l.openBlock(),l.createBlock(l.Transition,{name:String(n.computedTransition),appear:""},{default:l.withCtx(()=>[n.show?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["toast flex",n.statusClass,n.positionClass,n.undoButton?"gap-2":"gap-3"]),role:"alert","aria-live":n.variant=="error"?"assertive":"polite","aria-atomic":"true"},[n.icon?(l.openBlock(),l.createBlock(s,{key:0,icon:n.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):l.createCommentVNode("",!0),l.createElementVNode("span",$2e,[l.renderSlot(n.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.message),1)],!0)]),n.undoButton?(l.openBlock(),l.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=a=>n.undoAction())},[l.renderSlot(n.$slots,"undo-message",{},()=>[l.createTextVNode(l.toDisplayString(n.$t("HC_UNDO")),1)],!0)])):l.createCommentVNode("",!0),n.closeButton?(l.openBlock(),l.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=a=>n.show=!n.show),"aria-label":n.$t("HC_CLOSE")},[l.createVNode(s,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,V2e)):l.createCommentVNode("",!0)],10,R2e)):l.createCommentVNode("",!0)]),_:3},8,["name"])}const j2e=me(B2e,[["render",F2e],["__scopeId","data-v-3862f72b"]]),z2e={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},H2e=(n,e,t)=>{const{container:r,arrow:i,margin:o,padding:s,position:a,variantFlipOrder:c,positionFlipOrder:u}={container:document.documentElement.getBoundingClientRect(),...z2e,...t},{left:d,top:f}=e.style;e.style.left="0",e.style.top="0";const h=n.getBoundingClientRect(),p=e.getBoundingClientRect(),m={t:h.top-p.height-o,b:h.bottom+o,r:h.right+o,l:h.left-p.width-o},y={vs:h.left,vm:h.left+h.width/2-p.width/2,ve:h.left+h.width-p.width,hs:h.top,hm:h.bottom-h.height/2-p.height/2,he:h.bottom-p.height},[b,w="middle"]=a.split("-"),v=u[b],k=c[w],{top:C,left:T,bottom:S,right:E}=r;for(const O of v){const I=O==="t"||O==="b";let P=m[O];const[D,B]=I?["top","left"]:["left","top"],[V,U]=I?[p.height,p.width]:[p.width,p.height],[L,N]=I?[S,E]:[E,S],[$,R]=I?[C,T]:[T,C];if(!(P<$||P+V+s>L))for(const q of k){let re=y[(I?"v":"h")+q];if(!(re<R||re+U+s>N)){if(re-=p[B],P-=p[D],e.style[B]=`${re}px`,e.style[D]=`${P}px`,i){const ce=I?h.width/2:h.height/2,K=U/2,H=ce>K,j={s:H?K:ce,m:K,e:H?K:U-ce},F={t:V,b:0,r:0,l:V},G=re+j[q],J=P+F[O];i.style[B]=`${G}px`,i.style[D]=`${J}px`}return O+q}}}return e.style.left=d,e.style.top=f,null},U2e=(n,e,t)=>{const r=typeof n=="object"&&!(n instanceof HTMLElement)?n:{reference:n,popper:e,...t};return{update(i=r){const{reference:o,popper:s}=Object.assign(r,i);if(!s||!o)throw new Error("Popper- or reference-element missing.");return H2e(o,s,r)}}},Z2e=l.defineComponent({name:"QTour",props:{name:{type:String,default:"default"},steps:{type:Array,required:!0},backdrop:{type:Boolean,default:!0},autoStart:{type:Boolean,default:!1},startDelay:{type:Number,default:2e3},highlight:{type:Boolean,default:!0},margin:{type:Number,default:8},buttonLabels:{type:Object,default:()=>{const{t:n}=ao();return{next:n("HC_NEXT"),back:n("HC_BACK"),end:n("HC_GOT_IT"),snooze:n("HC_SNOOZE")}}},saveProgress:{type:Boolean,default:!0},hideSnooze:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},noScroll:{type:Boolean,default:!1}},emits:["onTourStart","onTourStop","onTourEnd","onTourStep","onTourSnooze"],setup(n,{emit:e,expose:t}){const r=`tour-${n.name}`,i=`${r}-tooltip`,o=`${r}-backdrop`,s=`${r}-arrow`,a=l.ref(null),c=l.ref(null),u=l.ref(!1),d=l.computed(()=>n.steps.filter(L=>{var N;return!((N=L.skip)!=null&&N.call(L))})),f=l.reactive({currentStep:0,lastStep:0,nextStep:1,getCurrentStep:l.computed(()=>d.value[f.currentStep]),getLastStep:l.computed(()=>d.value[f.lastStep]),getNextStep:l.computed(()=>d.value[f.nextStep])}),h=l.computed(()=>f.currentStep===d.value.length-1?n.buttonLabels.end:n.buttonLabels.next),p=()=>{window.addEventListener("resize",U),window.addEventListener("scroll",U,!0)},m=()=>{window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)},y=()=>{if(localStorage.getItem("tour-"+n.name)==="true")return;n.saveProgress?f.currentStep=parseInt(localStorage.getItem("tour-"+n.name)||"0"):f.currentStep=0;const L=async()=>{if(await E(f.currentStep),!a.value){const N=document.querySelector(f.getCurrentStep.target);a.value=U2e(N,c.value,{position:f.getCurrentStep.placement||"right",margin:n.margin||8})}O(),p()};n.autoStart?setTimeout(L,n.startDelay):L(),e("onTourStart")},b=async()=>{var L,N;f.currentStep<d.value.length&&f.getCurrentStep.onAfter&&await f.getCurrentStep.onAfter(),n.backdrop&&((L=document.querySelector(`#${o}`))==null||L.setAttribute("data-hidden","")),(n.highlight||f.getLastStep.highlight)&&document.querySelectorAll(".tour-highlight").forEach($=>$.classList.remove("tour-highlight")),(N=c.value)==null||N.setAttribute("data-hidden",""),m(),e("onTourStop")},w=L=>{b(),f.currentStep=0,f.lastStep=0,f.nextStep=1,localStorage.removeItem("tour-"+n.name),L&&y()},v=async()=>{if(f.getCurrentStep.onAfter&&await f.getCurrentStep.onAfter(),f.lastStep=f.currentStep,f.currentStep++,f.currentStep>=d.value.length){T();return}await E(f.currentStep),f.nextStep=f.currentStep+1,O()},k=async()=>{var L,N;if(await((N=(L=f.getCurrentStep).onAfter)==null?void 0:N.call(L)),await E(f.lastStep),f.currentStep=f.lastStep,f.lastStep--,f.lastStep<0&&(f.lastStep=0),f.currentStep<0){T();return}f.nextStep=f.currentStep+1,O()},C=()=>{b(),e("onTourSnooze")},T=()=>{b(),u.value=!1,localStorage.removeItem("tour-"+n.name),e("onTourEnd")},S=async L=>{await E(L),f.currentStep=L,f.lastStep=L-1,f.lastStep<0&&(f.lastStep=0),f.nextStep=L+1,O()},E=async L=>{var $,R,q,re;document.querySelectorAll(".tour-highlight").forEach(ce=>ce.classList.remove("tour-highlight"));const N=document.querySelector(`#${o}`);N&&(N.style.clipPath=""),($=c.value)==null||$.setAttribute("data-hidden",""),await((q=(R=d.value[L])==null?void 0:R.onBefore)==null?void 0:q.call(R)),(re=c.value)==null||re.removeAttribute("data-hidden")},O=async()=>{var L,N,$,R,q,re;if(I(),P(),(L=c.value)==null||L.setAttribute("data-hidden",""),f.getCurrentStep.tooltipWidth?(N=c.value)==null||N.style.setProperty("width",f.getCurrentStep.tooltipWidth):($=c.value)==null||$.style.removeProperty("width"),!n.noScroll&&!f.getCurrentStep.noScroll){const ce=document.querySelector(f.getCurrentStep.target);if(ce){const K=ce.getBoundingClientRect();K.top>=0&&K.left>=0&&K.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&K.right<=(window.innerWidth||document.documentElement.clientWidth)||ce.scrollIntoView({behavior:"smooth",block:"center"})}}(R=c.value)==null||R.removeAttribute("data-hidden"),(re=c.value)==null||re.setAttribute("data-arrow",((q=a.value)==null?void 0:q.update({reference:document.querySelector(f.getCurrentStep.target),position:f.getCurrentStep.placement||"right"}))||"right"),n.saveProgress&&localStorage.setItem("tour-"+n.name,f.currentStep.toString()),e("onTourStep")},I=()=>{if(document.querySelectorAll(".tour-highlight").forEach($=>$.classList.remove("tour-highlight")),!(n.highlight&&f.getCurrentStep.highlight!==!1||f.getCurrentStep.highlight===!0))return;const N=document.querySelector(f.getCurrentStep.target);N==null||N.classList.add("tour-highlight")},P=()=>{const L=document.querySelector(`#${o}`);if(!n.backdrop||!L){L==null||L.setAttribute("data-hidden","");return}const N=document.querySelector(f.getCurrentStep.target);if(!N){L.setAttribute("data-hidden","");return}const $=N.getBoundingClientRect(),R=f.getCurrentStep.clipPadding??0,q=`path('M 0,0 L 0,${window.innerHeight} L ${window.innerWidth},${window.innerHeight} L ${window.innerWidth},0 Z M ${$.left-R},${$.top-R} L ${$.right+R},${$.top-R} L ${$.right+R},${$.bottom+R} L ${$.left-R},${$.bottom+R} Z')`;L.style.clipPath=q,L.removeAttribute("data-hidden")},D=()=>{u.value=!u.value},B=L=>{u.value=!1,localStorage.setItem("tour-"+n.name,L.toString()),y()},V=L=>Number(localStorage.getItem("tour-"+n.name))>=L,U=()=>{f.getCurrentStep&&(P(),I(),O())};return l.onMounted(()=>{c.value=document.querySelector(`#${i}`),n.autoStart&&y()}),l.onUnmounted(()=>{m()}),t({startTour:y,nextStep:v,lastStep:k,endTour:T,stopTour:b,snoozeTour:C,goToStep:S,resetTour:w}),{_CurrentStep:f,getNextLabel:h,startTour:y,nextStep:v,lastStep:k,endTour:T,stopTour:b,snoozeTour:C,goToStep:S,resetTour:w,props:n,tooltipId:i,backdropId:o,arrowId:s,showPopover:u,togglePopover:D,startStepFromPopover:B,isStepViewed:V,visibleSteps:d}}}),W2e={class:"tour-popover"},q2e={key:0,class:"tour-steps-container"},K2e={class:"mt-[1px]"},G2e={class:"popover-heading"},Y2e={class:"step-list"},Q2e={class:"text-black"},X2e={class:"text-black/70"},J2e=["onClick"],efe=["id"],tfe=["id"],nfe={class:"tour-title"},rfe=["innerHTML"],ife={class:"tour-actions"},ofe={class:"flex items-center gap-6"},sfe={class:"flex gap-1"},afe=["onClick"],lfe={class:"flex items-center gap-1"},cfe=["id"];function ufe(n,e,t,r,i,o){const s=l.resolveComponent("q-icon"),a=l.resolveComponent("i18n-t");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",W2e,[n.showPopover?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"tour-fab",onClick:e[0]||(e[0]=(...c)=>n.togglePopover&&n.togglePopover(...c))},[l.createVNode(s,{icon:"quore-glyph",type:"",size:"sm",color:"white"})])),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[n.showPopover?(l.openBlock(),l.createElementBlock("div",q2e,[l.createElementVNode("button",{class:"hide-button",onClick:e[1]||(e[1]=(...c)=>n.togglePopover&&n.togglePopover(...c))},[l.createElementVNode("span",K2e,l.toDisplayString(n.$t("HC_HIDE")),1),l.createVNode(s,{icon:"close",type:"",size:"sm",color:"inkwell-30"})]),l.createElementVNode("div",G2e,[l.createVNode(a,{keypath:"HC_CONTINUE_THE_TOUR",tag:"div",scope:"global",class:"flex items-center"},{icon:l.withCtx(()=>[l.createVNode(s,{icon:"quore-glyph",type:"",size:"lg",color:"green-quore",class:"mx-1"})]),_:1})]),l.createElementVNode("div",Y2e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.visibleSteps,(c,u)=>(l.openBlock(),l.createElementBlock("div",{key:u,class:l.normalizeClass(["step-item",{viewed:n.isStepViewed(u)}])},[l.createElementVNode("div",null,[l.createElementVNode("span",Q2e,l.toDisplayString(u+1)+".",1),l.createTextVNode(),l.createElementVNode("span",X2e,l.toDisplayString(c.title),1)]),l.createElementVNode("button",{class:l.normalizeClass(["step-button",{viewed:n.isStepViewed(u)}]),onClick:d=>n.startStepFromPopover(u)},l.toDisplayString(n.isStepViewed(u)?n.$t("HC_OPEN"):n.$t("HC_START")),11,J2e)],2))),128))]),l.createElementVNode("button",{class:"text-blue-10 text-center mt-5",onClick:e[2]||(e[2]=c=>n.endTour())},l.toDisplayString(n.$t("HC_I_DONT_NEED_HELP")),1)])):l.createCommentVNode("",!0)]),_:1})]),l.createElementVNode("div",{id:n.backdropId,class:"tour-backdrop","data-hidden":!0},null,8,efe),l.createElementVNode("div",{id:n.tooltipId,class:"tour-tooltip",role:"tooltip","data-arrow":"r","data-hidden":""},[n._CurrentStep.getCurrentStep?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("button",{class:"close-button",onClick:e[3]||(e[3]=l.withModifiers(c=>n.snoozeTour(),["prevent"]))},[l.createVNode(s,{icon:"close",size:"sm",color:"inkwell-40",type:""})]),l.renderSlot(n.$slots,"header",{currentStep:n._CurrentStep.getCurrentStep},()=>[l.createElementVNode("div",nfe,l.toDisplayString(n._CurrentStep.getCurrentStep.title),1)]),l.renderSlot(n.$slots,"body",{currentStep:n._CurrentStep.getCurrentStep},()=>[typeof n._CurrentStep.getCurrentStep.content=="object"?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n._CurrentStep.getCurrentStep.content),{key:0})):(l.openBlock(),l.createElementBlock("div",{key:1,class:"tour-content",innerHTML:n._CurrentStep.getCurrentStep.content},null,8,rfe))]),l.renderSlot(n.$slots,"footer",{currentStep:n._CurrentStep.getCurrentStep,snoozeTour:n.snoozeTour,lastStep:n.lastStep,nextStep:n.nextStep,buttonLabels:n.props.buttonLabels},()=>[l.createElementVNode("div",ife,[l.createElementVNode("div",ofe,[n.props.hideSnooze?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"snooze-button",onClick:e[4]||(e[4]=l.withModifiers(c=>n.snoozeTour(),["prevent"]))},l.toDisplayString(n.props.buttonLabels.snooze),1)),l.createElementVNode("div",sfe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.visibleSteps,(c,u)=>(l.openBlock(),l.createElementBlock("button",{key:u,onClick:d=>n.goToStep(u),class:l.normalizeClass(["w-2 h-2 rounded-full",n._CurrentStep.currentStep===u?"step-button-active bg-blue-20 border border-gray-30 scale-125":"step-button bg-blue-5"])},null,10,afe))),128))])]),l.createElementVNode("div",lfe,[n._CurrentStep.lastStep<n._CurrentStep.currentStep?(l.openBlock(),l.createElementBlock("button",{key:0,class:"back-button",onClick:e[5]||(e[5]=l.withModifiers(c=>n.lastStep(),["prevent"]))},l.toDisplayString(n.props.buttonLabels.back),1)):l.createCommentVNode("",!0),l.createElementVNode("button",{class:"next-button",onClick:e[6]||(e[6]=l.withModifiers(c=>n.nextStep(),["prevent"]))},l.toDisplayString(n.getNextLabel),1)])])])],64)):l.createCommentVNode("",!0),n.props.hideArrow?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,id:n.arrowId,class:"tour-arrow"},null,8,cfe))],8,tfe)],64)}const dfe=me(Z2e,[["render",ufe]]),ffe={install:({config:n,provide:e})=>{n.globalProperties.$datetime=rt,e("$datetime",rt)}};function Bf(n){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bf(n)}function UD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ev(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?UD(Object(t),!0).forEach(function(r){hfe(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):UD(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function hfe(n,e,t){return e=pfe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pfe(n){var e=mfe(n,"string");return Bf(e)=="symbol"?e:String(e)}function mfe(n,e){if(Bf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var ZD={ripple:!1,inputStyle:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[It.STARTS_WITH,It.CONTAINS,It.NOT_CONTAINS,It.ENDS_WITH,It.EQUALS,It.NOT_EQUALS],numeric:[It.EQUALS,It.NOT_EQUALS,It.LESS_THAN,It.LESS_THAN_OR_EQUAL_TO,It.GREATER_THAN,It.GREATER_THAN_OR_EQUAL_TO],date:[It.DATE_IS,It.DATE_IS_NOT,It.DATE_BEFORE,It.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},gfe=Symbol();function yfe(n,e,t,r){if(n!==e){var i=document.getElementById(t),o=i.cloneNode(!0),s=i.getAttribute("href").replace(n,e);o.setAttribute("id",t+"-clone"),o.setAttribute("href",s),o.addEventListener("load",function(){i.remove(),o.setAttribute("id",t),r&&r()}),i.parentNode&&i.parentNode.insertBefore(o,i.nextSibling)}}var bfe={install:function(e,t){var r=t?ev(ev({},ZD),t):ev({},ZD),i={config:l.reactive(r),changeTheme:yfe};e.config.globalProperties.$primevue=i,e.provide(gfe,i)}};const wfe={global:{css:`
390
390
  *[data-pd-ripple="true"]{
391
391
  overflow: hidden;
392
392
  position: relative;